UNPKG

nostr-nsec-seedphrase

Version:

A comprehensive TypeScript library for Nostr key management with BIP39 seed phrases, supporting both ESM and CommonJS. Implements NIP-01, NIP-06, NIP-19, and NIP-26 with key generation, event signing, bech32 encoding/decoding, and secure cryptographic ope

15 lines (14 loc) 451 B
declare function toWords(data: Uint8Array): number[]; declare function fromWords(words: number[]): number[]; declare function encode(prefix: string, words: number[], limit: number): string; declare function decode(str: string, limit?: number): { prefix: string; words: number[]; }; export declare const bech32: { toWords: typeof toWords; fromWords: typeof fromWords; encode: typeof encode; decode: typeof decode; }; export {};