Skip to content

Commit

Permalink
Try to fix jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 3, 2025
1 parent bc83675 commit bc56cf5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
* BIP32 hierarchical deterministic (HD) wallets over secp256k1.
* @example
import { HDKey } from "@scure/bip32";
const hdkey1 = HDKey.fromMasterSeed(seed);
const hdkey2 = HDKey.fromExtendedKey(base58key);
const hdkey3 = HDKey.fromJSON({ xpriv: string });
import { HDKey } from "@scure/bip32";
const hdkey1 = HDKey.fromMasterSeed(seed);
const hdkey2 = HDKey.fromExtendedKey(base58key);
const hdkey3 = HDKey.fromJSON({ xpriv: string });
// props
[hdkey1.depth, hdkey1.index, hdkey1.chainCode];
console.log(hdkey2.privateKey, hdkey2.publicKey);
console.log(hdkey3.derive("m/0/2147483647'/1"));
const sig = hdkey3.sign(hash);
hdkey3.verify(hash, sig);
// props
[hdkey1.depth, hdkey1.index, hdkey1.chainCode];
console.log(hdkey2.privateKey, hdkey2.publicKey);
console.log(hdkey3.derive("m/0/2147483647'/1"));
const sig = hdkey3.sign(hash);
hdkey3.verify(hash, sig);
* @module
*/
Expand Down
6 changes: 3 additions & 3 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@scure/bip32",
"version": "1.6.1",
"version": "1.6.1-1",
"exports": {
".": "./index.ts"
},
"imports": {
"@noble/curves": "jsr:@noble/[email protected]",
"@noble/hashes": "jsr:@noble/[email protected]",
"@noble/curves": "jsr:@noble/[email protected]-1",
"@noble/hashes": "jsr:@noble/[email protected]-1",
"@scure/base": "jsr:@scure/[email protected]"
},
"publish": {
Expand Down

0 comments on commit bc56cf5

Please sign in to comment.