Skip to content
/ hdkeys Public
forked from modood/hdkeygen

hdkeys is a library to create Bitcoin and Nostr secret and public account keys from the same mnemonic seeds, and a command-line tool that uses this library. It allows for the creation of keys, mnemonic seeds, and Hierarchical Deterministic (HD) addresses.

License

Notifications You must be signed in to change notification settings

gotamer/hdkeys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title description tags
Hierarchical Deterministic Keys
hdkeys is a library to create Bitcoin and Nostr secret and public account keys from the same mnemonic seeds, and a command-line tool that uses this library. It allows for the creation of keys, mnemonic seeds, and Hierarchical Deterministic (HD) addresses.
nostr
nips
NIP05
NIP06
NIP19
bitcoin
BIP32
BIP39
BIP43
BIP44
BIP84
BIP86
BIP173
SLIP44

Hierarchical Deterministic Keys

hdkeys is a library to create Bitcoin and Nostr secret and public account keys from the same mnemonic seeds, and a command-line tool that uses this library. It allows for the creation of keys, mnemonic seeds, and Hierarchical Deterministic (HD) addresses.

  • hdkeys allows for the creation of mnemonic seeds, and Hierarchical Deterministic (HD) addresses.
  • hdkeys supports BIP39 passphrase protection for HD Wallets
  • hdkeys creates Bitcoin and Nostr keys/accounts from the same mnemonic seeds
  • hdkeys can create the WIF (Wallet Import Format), and decode private and public keys from WIF

  • BIP32 - Hierarchical Deterministic Wallets
  • BIP39 - Mnemonic code for generating deterministic keys
  • BIP43 - Purpose Field for Deterministic Wallets
  • BIP44 - Multi-Account Hierarchy for Deterministic Wallets
  • BIP49 - Derivation scheme for P2WPKH-nested-in-P2SH based accounts
  • BIP84 - Derivation scheme for P2WPKH based accounts
  • BIP86 - Derivation scheme for Pay-to-Taproot (P2TR) based accounts
  • BIP173 - Base32 address format for native v0-16 witness outputs
  • SLIP44 - Registered coin types for BIP-0044
  • NIP05 - Mapping Nostr keys to DNS-based internet identifiers, HEX key output
  • NIP06 - Basic key derivation from mnemonic seed phrase
  • NIP19 - bech32-encoded entities (nsec, npub)

Can I trust this code?

Don't Trust. Verify.

Install

See release page for executables.

Manual / help text

hdkeys --help

help output


Examples

Wall Of Fame

hdkeys wof -pass "" -mnemonic "leader monkey parrot ring guide accident before fence cannon height naive bean" > doc/wof.txt

wof output text

Don't Trust Verify NIP06 test vector

Wallet Import Format

$ hdkeys wif L1VZ55UPgF83k4ndU8BBf62eM9prgo4coie5ttZrvS8GBzddzrhD > doc/wif.txt

wif output text

json key set

$ hdkeys keyset -pass "" -mnemonic "leader monkey parrot ring guide accident before fence cannon height naive bean" > doc/keyset.json

keyset output json


Coders

Coders quick start: link

Base code stolen from:

hdkeygen with same license Thank you modood

About

hdkeys is a library to create Bitcoin and Nostr secret and public account keys from the same mnemonic seeds, and a command-line tool that uses this library. It allows for the creation of keys, mnemonic seeds, and Hierarchical Deterministic (HD) addresses.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Go 92.4%
  • Shell 7.6%