From: Chris Duncan Date: Sun, 30 Nov 2025 08:45:48 +0000 (-0800) Subject: Import and use new forked secp256k1 class. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=a2c15c32adbe3820d8c5a95303b5d1f3af79e63e;p=libnemo.git Import and use new forked secp256k1 class. --- diff --git a/src/lib/crypto/bip44.ts b/src/lib/crypto/bip44.ts index 8fb5ea1..2e08cea 100644 --- a/src/lib/crypto/bip44.ts +++ b/src/lib/crypto/bip44.ts @@ -1,7 +1,7 @@ //! SPDX-FileCopyrightText: 2025 Chris Duncan //! 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)