We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e9e37 commit 721a41cCopy full SHA for 721a41c
packages/crypto/src/slip10.ts
@@ -181,7 +181,7 @@ export class Slip10 {
181
}
182
183
// step 5
184
- const n: bigint = this.n(curve);
+ const n = this.n(curve);
185
const returnChildKeyAsNumber = (bytesToUnsignedBigInt(il) + bytesToUnsignedBigInt(parentPrivkey)) % n;
186
const returnChildKey = intTo32be(returnChildKeyAsNumber);
187
@@ -205,7 +205,7 @@ export class Slip10 {
205
206
207
private static isGteN(curve: Slip10Curve, privkey: Uint8Array): boolean {
208
- const keyAsNumber: bigint = bytesToUnsignedBigInt(privkey);
+ const keyAsNumber = bytesToUnsignedBigInt(privkey);
209
return keyAsNumber >= this.n(curve);
210
211
0 commit comments