Documentation
¶
Index ¶
Constants ¶
View Source
const (
Alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
)
Variables ¶
View Source
var ( NSG_mainnetAddressP2PKH = addressEncoder.AddressType{EncodeType: "base58", Alphabet: Alphabet, ChecksumType: "doubleSHA256", HashType: "ripemd160", HashLen: 20, Prefix: nil, Suffix: nil} NSG_testnetAddressP2PKH = addressEncoder.AddressType{EncodeType: "base58", Alphabet: Alphabet, ChecksumType: "doubleSHA256", HashType: "ripemd160", HashLen: 20, Prefix: nil, Suffix: nil} NSG_mainnetPrivateWIFCompressed = addressEncoder.AddressType{EncodeType: "base58", Alphabet: Alphabet, ChecksumType: "doubleSHA256", HashType: "", HashLen: 32, Prefix: []byte{}, Suffix: nil} NSG_testnetPrivateWIFCompressed = addressEncoder.AddressType{EncodeType: "base58", Alphabet: Alphabet, 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) AddressEncode ¶
func (dec *AddressDecoderV2) AddressEncode(hash []byte, opts ...interface{}) (string, error)
AddressEncode 地址编码
Click to show internal directories.
Click to hide internal directories.