Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UFCAddressPrefix_mainnet = "UFC" UFCAddressPrefix_testnet = "UFCT" )
View Source
var ( UFC_mainnetAddress = addressEncoder.AddressType{EncodeType: "base58", Alphabet: alphabet, ChecksumType: "ripemd160", HashType: "sha512_ripemd160", HashLen: 20, Prefix: []byte{0x35}, Suffix: nil} Default = AddressDecoderV2{} )
Functions ¶
This section is empty.
Types ¶
type AddressDecoderV2 ¶
type AddressDecoderV2 struct {
*openwallet.AddressDecoderV2Base
IsTestNet bool
}
AddressDecoderV2
func (*AddressDecoderV2) AddressDecode ¶
func (dec *AddressDecoderV2) AddressDecode(addr string, opts ...interface{}) ([]byte, error)
AddressDecode 地址解析
func (*AddressDecoderV2) AddressEncode ¶
func (dec *AddressDecoderV2) AddressEncode(hash []byte, opts ...interface{}) (string, error)
AddressEncode 地址编码
func (*AddressDecoderV2) AddressVerify ¶
func (dec *AddressDecoderV2) AddressVerify(address string, opts ...interface{}) bool
AddressVerify 地址校验
Click to show internal directories.
Click to hide internal directories.