address

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const NormalVer byte = 0

NormalVer 普通地址的版本号

Variables

View Source
var ErrAddressChecksum = errors.New("address checksum error")

ErrAddressChecksum :

View Source
var ErrCheckChecksum = errors.New("Address Checksum error")

ErrCheckChecksum :

View Source
var ErrCheckVersion = errors.New("check version error")

ErrCheckVersion :

Functions

func CheckAddress

func CheckAddress(ver byte, addr string) (e error)

CheckAddress 检查地址

func PublicKeyToAddress

func PublicKeyToAddress(version byte, in []byte) string

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
}

Address 地址

func (*Address) SetBytes

func (a *Address) SetBytes(b []byte)

SetBytes 设置地址的bytes

func (*Address) String

func (a *Address) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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