address

package
v0.0.0-...-1c4572a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxExecNameLength = 100

Variables

This section is empty.

Functions

func CheckAddress

func CheckAddress(addr string) (e error)

func ExecAddress

func ExecAddress(name string) string

计算量有点大,做一次cache

func ExecPubKey

func ExecPubKey(name string) []byte

func ExecPubkey

func ExecPubkey(name string) []byte

Types

type Address

type Address struct {
	Version  byte
	Hash160  [20]byte // For a stealth address: it's HASH160
	Checksum []byte   // Unused for a stealth address
	Pubkey   []byte   // Unused for a stealth address
	Enc58str string
}

func GetExecAddress

func GetExecAddress(name string) *Address

func NewAddrFromString

func NewAddrFromString(hs string) (a *Address, e error)

func PubKeyToAddress

func PubKeyToAddress(in []byte) *Address

func (*Address) String

func (a *Address) String() string

Jump to

Keyboard shortcuts

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