From b584703ab5d0fd6095d921b7d7553b4367eed584 Mon Sep 17 00:00:00 2001 From: nazeh Date: Sun, 4 Aug 2024 14:18:35 +0300 Subject: [PATCH] feat(js): rename from_secret_key to fromSecretKey --- pubky/pkg/test/keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubky/pkg/test/keys.js b/pubky/pkg/test/keys.js index e7243f1..e184b3b 100644 --- a/pubky/pkg/test/keys.js +++ b/pubky/pkg/test/keys.js @@ -5,7 +5,7 @@ import { Keypair } from '../index.cjs' test('generate keys from a seed', async (t) => { const secretkey = Buffer.from('5aa93b299a343aa2691739771f2b5b85e740ca14c685793d67870f88fa89dc51', 'hex') - const keypair = Keypair.from_secret_key(secretkey) + const keypair = Keypair.fromSecretKey(secretkey) const publicKey = keypair.publicKey()