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

70 lines (35 loc) 1.37 kB
[**nostr-nsec-seedphrase v0.6.0**](../README.md) *** [nostr-nsec-seedphrase](../globals.md) / KeyPair # Interface: KeyPair Represents a Nostr key pair with associated formats ## Properties ### npub > **npub**: `string` Public key in bech32 npub format #### Defined in [index.ts:21](https://github.com/HumanjavaEnterprises/nostr-nsec-seedphrase/blob/885e04e5180059d4aa901af59d633038a53240cb/src/index.ts#L21) *** ### nsec > **nsec**: `string` Private key in bech32 nsec format #### Defined in [index.ts:19](https://github.com/HumanjavaEnterprises/nostr-nsec-seedphrase/blob/885e04e5180059d4aa901af59d633038a53240cb/src/index.ts#L19) *** ### privateKey > **privateKey**: `string` Private key in hex format #### Defined in [index.ts:15](https://github.com/HumanjavaEnterprises/nostr-nsec-seedphrase/blob/885e04e5180059d4aa901af59d633038a53240cb/src/index.ts#L15) *** ### publicKey > **publicKey**: `string` Public key in hex format #### Defined in [index.ts:17](https://github.com/HumanjavaEnterprises/nostr-nsec-seedphrase/blob/885e04e5180059d4aa901af59d633038a53240cb/src/index.ts#L17) *** ### seedPhrase > **seedPhrase**: `string` BIP39 seed phrase used to generate this key pair #### Defined in [index.ts:23](https://github.com/HumanjavaEnterprises/nostr-nsec-seedphrase/blob/885e04e5180059d4aa901af59d633038a53240cb/src/index.ts#L23)