]> zoso.dev Git - libnemo.git/commitdiff
Public key is validated as part of fromPublicKey call, so remove it from fromKeypair.
authorChris Duncan <chris@zoso.dev>
Sat, 30 Nov 2024 08:13:55 +0000 (00:13 -0800)
committerChris Duncan <chris@zoso.dev>
Sat, 30 Nov 2024 08:13:55 +0000 (00:13 -0800)
src/lib/account.ts

index 3320e6b1a95cea1c281a663946b67d68bb9e5efe..f083e7fd49ad80cd1828086a1ac84fdb97afdc3d 100644 (file)
@@ -130,7 +130,6 @@ export class Account {
        */\r
        static fromKeypair (publicKey: string, privateKey: string, index?: number): Account {\r
                Account.#isInternal = true\r
-               Account.#validateKey(publicKey)\r
                Account.#validateKey(privateKey)\r
                const account = Account.fromPublicKey(publicKey, index)\r
                account.#prv = privateKey.toUpperCase()\r