Skip to content

Commit

Permalink
bump to latest version of @metamask/scure-bip39
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Jan 6, 2023
1 parent 2e73c97 commit b4538a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
]
},
"dependencies": {
"@metamask/scure-bip39": "^2.0.4",
"@metamask/scure-bip39": "^2.1.0",
"@metamask/utils": "^3.3.0",
"@noble/ed25519": "^1.6.0",
"@noble/hashes": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/derivers/bip39.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mnemonicToSeedSync } from '@metamask/scure-bip39';
import { mnemonicToSeed } from '@metamask/scure-bip39';
import { wordlist as englishWordlist } from '@metamask/scure-bip39/dist/wordlists/english';
import { hmac } from '@noble/hashes/hmac';
import { sha512 } from '@noble/hashes/sha512';
Expand Down Expand Up @@ -32,7 +32,7 @@ export async function deriveChildKey({
curve,
}: DeriveChildKeyArgs): Promise<SLIP10Node> {
return createBip39KeyFromSeed(
mnemonicToSeedSync(path, englishWordlist),
await mnemonicToSeed(path, englishWordlist),
curve,
);
}
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ __metadata:
"@metamask/eslint-config-jest": ^11.0.0
"@metamask/eslint-config-nodejs": ^11.0.1
"@metamask/eslint-config-typescript": ^11.0.0
"@metamask/scure-bip39": ^2.0.4
"@metamask/scure-bip39": ^2.1.0
"@metamask/utils": ^3.3.0
"@noble/ed25519": ^1.6.0
"@noble/hashes": ^1.0.0
Expand Down Expand Up @@ -894,13 +894,13 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/scure-bip39@npm:^2.0.4":
version: 2.0.4
resolution: "@metamask/scure-bip39@npm:2.0.4"
"@metamask/scure-bip39@npm:^2.1.0":
version: 2.1.0
resolution: "@metamask/scure-bip39@npm:2.1.0"
dependencies:
"@noble/hashes": ~1.1.1
"@scure/base": ~1.1.0
checksum: 9ab83ddad70a39dc46a869801d33e639006f7f8dc0b050f1e4711af3fae9bfe5f82ab90d890753935413491adb7064860aa40b3dc7ad1d31a8d70b5c1548d359
checksum: 13e07f03077472e9b230f702cbba7848ecac752028396647ccdeedd7bc280ceb50ee15203e25603f05c4c6ca5d4dc7277825f7004beb113e1a415adc91f059f9
languageName: node
linkType: hard

Expand Down

0 comments on commit b4538a5

Please sign in to comment.