Skip to content

Commit

Permalink
convert to uint8array from array of numbers (#1989)
Browse files Browse the repository at this point in the history
Signed-off-by: svetoslav-nikol0v <[email protected]>
  • Loading branch information
svetoslav-nikol0v authored Oct 23, 2023
1 parent fe3d0b3 commit b79d83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cryptography/src/primitive/bip32.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function derive(parentKey, chainCode, index) {
.getPrivate()
.add(secp256k1.keyFromPrivate(IL).getPrivate())
.mod(N);
const hexZeroPadded = hex.hexZeroPadded(ki.toBuffer(), 32);
const hexZeroPadded = hex.hexZeroPadded(Uint8Array.from(ki.toArray()), 32)
// const ki = Buffer.from(ecc.privateAdd(this.privateKey!, IL)!);

// In case ki == 0, proceed with the next value for i
Expand Down

0 comments on commit b79d83d

Please sign in to comment.