[**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)
