privateKey

package
v0.0.0-...-72d1e77 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromWIF

func FromWIF(WIF string) (*btcutil.WIF, error)

func NewPublicKeyFromWIF

func NewPublicKeyFromWIF(wif btcutil.WIF, net *chaincfg.Params, compressed bool) (*btcutil.AddressPubKey, error)

create a new public key from a WIF private key

func NewWIF

func NewWIF(net *chaincfg.Params) (*btcutil.WIF, error)

creat a new privatekey in WIF format

func Reee

func Reee(net *chaincfg.Params)

func WIFToBech32

func WIFToBech32(wif *btcutil.WIF, hrp string) string

convert a WIF private key to a Bech32 address (Viacoin only, untested on other coins)

func WIFToSegwit

func WIFToSegwit(wif *btcutil.WIF, net *chaincfg.Params) (*btcutil.AddressScriptHash, error)

convert a WIF private key to a segwit address

Types

This section is empty.

Jump to

Keyboard shortcuts

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