mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
white spaces removed
This commit is contained in:
committed by
fiatjaf_
parent
260400b24d
commit
97d838f254
4
nip06.ts
4
nip06.ts
@@ -50,9 +50,9 @@ export function accountFromExtendedKey(base58key: string, accountIndex = 0): {
|
|||||||
if (version === 'xprv') {
|
if (version === 'xprv') {
|
||||||
let privateKey = bytesToHex(child.privateKey!)
|
let privateKey = bytesToHex(child.privateKey!)
|
||||||
if (!privateKey) throw new Error('could not derive private key')
|
if (!privateKey) throw new Error('could not derive private key')
|
||||||
return { privateKey, publicKey }
|
return { privateKey, publicKey }
|
||||||
}
|
}
|
||||||
return { publicKey }
|
return { publicKey }
|
||||||
}
|
}
|
||||||
|
|
||||||
export function generateSeedWords(): string {
|
export function generateSeedWords(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user