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.

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

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 mnemonic seeds (or bring your own).
  • From the mnemonic seeds it will create Hierarchical Deterministic (HD) addresses, AKA HD Wallets.
  • HD Wallets means you may create nearly unlimited subkeys for Bitcoin and Nostr
  • hdkeys supports BIP39 passphrase protection for HD Wallets
  • hdkeys can create the Wallet Import Format (WIF), and decode private and public keys from WIF

Why

It is hard to keep secrets specially multiple secrets, with hdkeys you have to keep only your mnemonic seeds secret. All other Bitcoun and Nostr keys are derived from your mnemonic seeds and can be reproduced at any time.

This alows you to have multiple identieties. And you will be able to prove selectivly that those identieties belong to you.
More identieties equals more privacy, means more freedom!

Standards

  • BIPxx = Bitcoin standards
  • NIPxx = Nostr standards
  • 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 and documentation

Documents

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.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Go 88.8%
  • Shell 11.2%