wallet

package
v0.0.0-...-438f3b5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addr2Script

func Addr2Script(address string) string

Addr2Script get scripthash from address

func Generate

func Generate() string

Generate new random private key string

func NEP2Decode

func NEP2Decode(key, pwd string) string

NEP2Decode get wif from key

func NEP2Encode

func NEP2Encode(wif, pwd string) string

NEP2Encode get key from wif

func Priv2Addr

func Priv2Addr(priv string) string

Priv2Addr get address from private key

func Priv2Pub

func Priv2Pub(priv string) string

Priv2Pub get public key from private key

func Priv2Wif

func Priv2Wif(priv string) string

Priv2Wif get wif from private key

func Pub2Addr

func Pub2Addr(pub string) string

Pub2Addr get address from public key

func Script2Addr

func Script2Addr(script string) string

Script2Addr get address from scripthash

func Signature

func Signature(txhash, wif string) string

Signature sign a tx by given WIF key

func Wif2Addr

func Wif2Addr(wif string) string

Wif2Addr get address from wif

func Wif2Priv

func Wif2Priv(wif string) string

Wif2Priv get wif from private key

Types

This section is empty.

Jump to

Keyboard shortcuts

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