Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyPairAddress ¶
func KeyPairAddress(params *chaincfg.Params) (*ecdsa.PrivateKey, *secp256k1.PublicKey, dcrutil.Address, *wif.WIF, error)
KeyPairAddress generates a random private key for the specified network using the curve provided by wif.Curve(). Return values are the ecdsa PrivateKey, the secp256k1.PublicKey, the P2PKH address, and a WIF structure for importing into a wallet.
func PrintPrivateKey ¶
func PrintPrivateKey(p *ecdsa.PrivateKey) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.