Skip to content

Commit

Permalink
Return publicKey field in getNext{Change}Address APIs (#300)
Browse files Browse the repository at this point in the history
* bump dependency marina-provider to 1.4.6

* bump dependency ldk to 0.4.4

* updates yarn.lock

* add test to verify existence of publicKey on address

* prettier
  • Loading branch information
bordalix authored Feb 3, 2022
1 parent 1215856 commit 3c62d92
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"decimal.js": "^10.2.1",
"formik": "^2.2.6",
"google-protobuf": "^3.15.8",
"ldk": "0.4.3",
"ldk": "0.4.4",
"lodash.debounce": "^4.0.8",
"lottie-web": "^5.7.8",
"marina-provider": "^1.4.5",
"marina-provider": "^1.4.6",
"moment": "^2.29.1",
"path-browserify": "^1.0.1",
"postcss": "^7.0.35",
Expand Down
5 changes: 5 additions & 0 deletions test/spend.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ describe('create send pset (build, blind & sign)', () => {
const blindAndSign = (pset: string, changeAddress: string) =>
blindAndSignPset(pset, unspents, [mnemonic], [RECEIVER], [changeAddress]);

test('address should have a public key', async () => {
const addr = await mnemonic.getNextAddress();
expect(addr.publicKey).toHaveLength(66);
});

test('should be able to create a regular transaction', async () => {
const [changeAddress, getChangeAddress] = await makeChangeAddressGetter();

Expand Down
15 changes: 10 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6417,10 +6417,10 @@ lcid@^3.0.0:
dependencies:
invert-kv "^3.0.0"

[email protected].3:
version "0.4.3"
resolved "https://registry.yarnpkg.com/ldk/-/ldk-0.4.3.tgz#e2dc0c4810f58a9f9ab0dd0688539e3782afd898"
integrity sha512-VoQc5HOZIPhcVEbIaJivUPldTuw/6asLBNvbFaf7884WZFhBGUZNJ/+xoxFXgU7Wy2I3ssbu6a9p5HYNqJ6mXQ==
[email protected].4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/ldk/-/ldk-0.4.4.tgz#f71fffecc54f376d133a08324e06d5d2d75a43eb"
integrity sha512-e/iEPuXv4ivPUGr79J19qfvPLncx18x98/qj/iW3cqDQpIv7nfUYdfEnrfg0AfebrybGTT0RLXOTcWSkWmoBGQ==
dependencies:
axios "^0.21.1"
bip32 "^2.0.6"
Expand Down Expand Up @@ -6713,11 +6713,16 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"

marina-provider@^1.0.0, marina-provider@^1.4.5:
marina-provider@^1.0.0:
version "1.4.5"
resolved "https://registry.yarnpkg.com/marina-provider/-/marina-provider-1.4.5.tgz#2ec20ac786f7a333c9f2ed9f515a3a464d039eb8"
integrity sha512-jnckZGyPIg0wS/+KgFO2yAwE6isk3KxrxWOeFNStUR5fZOgUwtREV5J7wEfvoGZ3yW9H++fMR72SbJ+KHct1Vw==

marina-provider@^1.4.6:
version "1.4.6"
resolved "https://registry.yarnpkg.com/marina-provider/-/marina-provider-1.4.6.tgz#3f03f574392e62169f8ebe0890e92629b68e6d31"
integrity sha512-AqhAgWI8hpqIl0y4PTt1/8zIhXct1xsMAKPoVVfkVLDvYzwZwOa1bNb0daAZ03I7GXyeul4C3I16CmHhx83BVA==

marky@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/marky/-/marky-1.2.2.tgz#4456765b4de307a13d263a69b0c79bf226e68323"
Expand Down

0 comments on commit 3c62d92

Please sign in to comment.