cryptowallet

package
v0.0.0-...-2c2efe1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cryptowallet - generates and manipulates SECP256 keys

Index

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

func PublicKeyFromPrivate(priv string) (string, string, error)

PublicKeyFromPrivate Derive EC Public key from a private key

func RandomBytes

func RandomBytes(n int) ([]byte, error)

RandomBytes - generate n random bytes

func RedeemPublicKey

func RedeemPublicKey(entropy string) (secret string, err error)

RedeemPublicKey - using supplied seed return the 1st entry in the HD walet

func RedeemSecret

func RedeemSecret(entropy string) (secret string, err error)

RedeemSecret - using supplied seed return the 1st entry in the HD walet

Types

This section is empty.

Jump to

Keyboard shortcuts

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