mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +00:00
max keys 256.
This commit is contained in:
2
nip41.ts
2
nip41.ts
@@ -6,7 +6,7 @@ import {HARDENED_OFFSET, HDKey} from '@scure/bip32'
|
|||||||
import {getPublicKey} from './keys'
|
import {getPublicKey} from './keys'
|
||||||
import {Event, getEventHash, Kind, signEvent, verifySignature} from './event'
|
import {Event, getEventHash, Kind, signEvent, verifySignature} from './event'
|
||||||
|
|
||||||
const MaxKeys = 11
|
const MaxKeys = 256
|
||||||
|
|
||||||
function getRootFromMnemonic(mnemonic: string): HDKey {
|
function getRootFromMnemonic(mnemonic: string): HDKey {
|
||||||
return HDKey.fromMasterSeed(mnemonicToSeedSync(mnemonic)).derive(
|
return HDKey.fromMasterSeed(mnemonicToSeedSync(mnemonic)).derive(
|
||||||
|
|||||||
Reference in New Issue
Block a user