Documentation ¶
Overview ¶
Package cryptowallet - generates and manipulates SECP256 keys
Index ¶
- Constants
- func Bip44Address(seed []byte, coinType int, account int, change int, addressIndex int64) (string, *btcec.PublicKey, *btcec.PrivateKey, error)
- func PublicKeyFromPrivate(priv string) (string, string, error)
- func RandomBytes(n int) ([]byte, error)
- func RedeemPublicKey(entropy string) (secret string, err error)
- func RedeemSecret(entropy string) (secret string, err error)
Constants ¶
View Source
const ( // CoinTypeBitcoinMain is Bitcoin main network coin CoinTypeBitcoinMain = 0 // CoinTypeBitcoinTestNet is Bitcoin test network coin CoinTypeBitcoinTestNet = 1 )
Variables ¶
This section is empty.
Functions ¶
func Bip44Address ¶
func Bip44Address(seed []byte, coinType int, account int, change int, addressIndex int64) (string, *btcec.PublicKey, *btcec.PrivateKey, error)
Bip44Address - generates a bitcoin address & private key for a given BIP44 path -return btc address, private key, error
func PublicKeyFromPrivate ¶
PublicKeyFromPrivate Derive EC Public key from a private key
func RedeemPublicKey ¶
RedeemPublicKey - using supplied seed return the 1st entry in the HD walet
func RedeemSecret ¶
RedeemSecret - using supplied seed return the 1st entry in the HD walet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.