Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VLX_mainnetAddressP2PKH = addressEncoder.AddressType{EncodeType: "base58", Alphabet: btcAlphabet, ChecksumType: "doubleSHA256", HashType: "h160", HashLen: 20, Prefix: []byte{15, 244}, Suffix: nil} VLX_testnetAddressP2PKH = addressEncoder.AddressType{EncodeType: "base58", Alphabet: btcAlphabet, ChecksumType: "doubleSHA256", HashType: "h160", HashLen: 20, Prefix: []byte{15, 244}, Suffix: nil} VLX_mainnetPrivateWIFCompressed = addressEncoder.AddressType{EncodeType: "base58", Alphabet: btcAlphabet, ChecksumType: "doubleSHA256", HashType: "", HashLen: 32, Prefix: []byte{}, Suffix: nil} VLX_testnetPrivateWIFCompressed = addressEncoder.AddressType{EncodeType: "base58", Alphabet: btcAlphabet, ChecksumType: "doubleSHA256", HashType: "", HashLen: 32, Prefix: []byte{}, Suffix: nil} Default = AddressDecoderV2{} )
Functions ¶
This section is empty.
Types ¶
type AddressDecoderV2 ¶
type AddressDecoderV2 struct {
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 地址编码
Click to show internal directories.
Click to hide internal directories.