Documentation ¶
Overview ¶
Package address 计算地址相关的函数
Index ¶
Constants ¶
View Source
const MaxExecNameLength = 100
MaxExecNameLength 执行器名最大长度
View Source
const MultiSignVer byte = 5
MultiSignVer 多重签名地址的版本号
View Source
const NormalVer byte = 0
NormalVer 普通地址的版本号
Variables ¶
View Source
var ErrCheckChecksum = errors.New("Address Checksum error")
ErrCheckChecksum :
View Source
var ErrCheckVersion = errors.New("check version error")
ErrCheckVersion :
Functions ¶
func CheckMultiSignAddress ¶
CheckMultiSignAddress 检查多重签名地址的有效性
func MultiSignAddress ¶
MultiSignAddress create a multi sign address
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 HashToAddress ¶
HashToAddress hash32 to address
func NewAddrFromString ¶
NewAddrFromString new 地址
Click to show internal directories.
Click to hide internal directories.