addrdec

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BARPublicKeyPrefix       = "PUB_"
	BARPublicKeyK1Prefix     = "PUB_K1_"
	BARPublicKeyR1Prefix     = "PUB_R1_"
	BARPublicKeyPrefixCompat = "BAR"

	//BAR stuff
	BAR_mainnetPublic = addressEncoder.AddressType{"bar", addressEncoder.BTCAlphabet, "ripemd160", "", 33, []byte(BARPublicKeyPrefixCompat), 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(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

Jump to

Keyboard shortcuts

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