mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-06 07:44:33 +01:00
feat(js): rename from_secret_key to fromSecretKey
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user