From: Chris Duncan Date: Sat, 30 Nov 2024 08:13:55 +0000 (-0800) Subject: Public key is validated as part of fromPublicKey call, so remove it from fromKeypair. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=7bbc3f6a9b9876f5fa62bf02bf35e4ab7b2f5543;p=libnemo.git Public key is validated as part of fromPublicKey call, so remove it from fromKeypair. --- diff --git a/src/lib/account.ts b/src/lib/account.ts index 3320e6b..f083e7f 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -130,7 +130,6 @@ export class Account { */ static fromKeypair (publicKey: string, privateKey: string, index?: number): Account { Account.#isInternal = true - Account.#validateKey(publicKey) Account.#validateKey(privateKey) const account = Account.fromPublicKey(publicKey, index) account.#prv = privateKey.toUpperCase()