keypair

package
v0.1.2-0...-0cdee03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: ISC Imports: 10 Imported by: 0

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

func PrivKey

func PrivKey(c elliptic.Curve, d *big.Int) *ecdsa.PrivateKey

PrivKey creates a private key for the specified elliptic curve and scalar.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL