]> git.codecow.com Git - libnemo.git/commitdiff
Import and use new forked secp256k1 class.
authorChris Duncan <chris@zoso.dev>
Sun, 30 Nov 2025 08:45:48 +0000 (00:45 -0800)
committerChris Duncan <chris@zoso.dev>
Sun, 30 Nov 2025 08:45:48 +0000 (00:45 -0800)
src/lib/crypto/bip44.ts

index 8fb5ea151cac6a1e88df93f1f4f37621278f4b09..2e08cead9bdc28f49228f442e984f400915c70e2 100644 (file)
@@ -1,7 +1,7 @@
 //! SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
 //! SPDX-License-Identifier: GPL-3.0-or-later
 
-import * as secp256k1 from '.'
+import { Secp256k1 } from '.'
 
 type ExtendedKey = {
        privateKey: ArrayBuffer
@@ -84,7 +84,7 @@ export class Bip44 {
                } else if (curve === 'ed25519 seed') {
                        throw new RangeError('Only hardened child keys are supported for ed25519')
                } else {
-                       data.set(secp256k1.getPublicKey(pk))
+                       data.set(Secp256k1.getPublicKey(pk))
                        data.set(this.ser32(index), 33)
                }
                return this.hmac(key, data)