whitecoin_addrdec

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XWCAddressPrefix_mainnet = "XWC"
	XWCAddressPrefix_testnet = "XWCT"
)
View Source
var (
	XWC_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 NewAddressDecoderV2

func NewAddressDecoderV2() *AddressDecoderV2

NewAddressDecoder 地址解析器

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 地址校验

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL