Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BTSPublicKeyPrefix = "PUB_" BTSPublicKeyK1Prefix = "PUB_K1_" BTSPublicKeyR1Prefix = "PUB_R1_" BTSPublicKeyPrefixCompat = "BTS" //BTS stuff BTS_mainnetPublic = addressEncoder.AddressType{"bts", addressEncoder.BTCAlphabet, "ripemd160", "", 33, []byte(BTSPublicKeyPrefixCompat), 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(pubKey string, opts ...interface{}) ([]byte, error)
AddressDecode decode address
func (*AddressDecoderV2) AddressEncode ¶
func (dec *AddressDecoderV2) AddressEncode(hash []byte, opts ...interface{}) (string, error)
AddressEncode encode address
Click to show internal directories.
Click to hide internal directories.