Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CXC_mainnetAddressP2PKH = addressEncoder.BTC_mainnetAddressP2PKH CXC_testnetAddressP2PKH = addressEncoder.BTC_testnetAddressP2PKH CXC_mainnetPrivateWIFCompressed = addressEncoder.BTC_mainnetPrivateWIFCompressed CXC_testnetPrivateWIFCompressed = addressEncoder.BTC_testnetPrivateWIFCompressed CXC_mainnetAddressP2SH = addressEncoder.BTC_mainnetAddressP2SH CXC_testnetAddressP2SH = addressEncoder.BTC_testnetAddressP2SH 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.