Documentation ¶
Index ¶
- func GetExtPrvForP2PKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)
- func GetExtPrvForP2SHAccount(seed []byte, accountIndex int, testnet bool) (string, error)
- func GetExtPrvForP2WPKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)
- func GetExtPubForP2PKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)
- func GetExtPubForP2SHAccount(seed []byte, accountIndex int, testnet bool) (string, error)
- func GetExtPubForP2WPKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)
- func GetP2PKHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)
- func GetP2SHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)
- func GetP2WPKHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExtPrvForP2PKHAccount ¶
GetExtPrvForP2PKHAccount returns extended private key for BIP44 P2PKH account
func GetExtPrvForP2SHAccount ¶
GetExtPrvForP2SHAccount returns extended private key for BIP49 P2SH account
func GetExtPrvForP2WPKHAccount ¶
GetExtPrvForP2WPKHAccount returns extended private key for BIP84 P2WPKH account
func GetExtPubForP2PKHAccount ¶
GetExtPubForP2PKHAccount returns extended public key for BIP44 P2PKH account
func GetExtPubForP2SHAccount ¶
GetExtPubForP2SHAccount returns extended public key for BIP49 P2SH account
func GetExtPubForP2WPKHAccount ¶
GetExtPubForP2WPKHAccount returns extended public key for BIP84 P2WPKH account
func GetP2PKHAddressForIndex ¶
func GetP2PKHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)
GetP2PKHAddressForIndex returns address for BTC account at given index P2PK ('1' prefixed addresses) origional pay-to-public-key (use BIP44 derived key)
func GetP2SHAddressForIndex ¶
func GetP2SHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)
GetP2SHAddressForIndex returns address for BTC account at given index P2SH ('3' prefixed addresses) pay-to-script-hash includes P2WPKH-wrapped in P2SH segwit outputs (use BIP49 derived key)
func GetP2WPKHAddressForIndex ¶
func GetP2WPKHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)
GetP2WPKHAddressForIndex returns segwit bech32 address for BTC account extended key at given index P2WPKH pay-to-witness-public-key-hash is the shorter segwit form of P2PKH (newest address format at time of writing, use BIP84 derived key)
Types ¶
This section is empty.