addrdec

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TGCPublicKeyPrefix       = "PUB_"
	TGCPublicKeyK1Prefix     = "PUB_K1_"
	TGCPublicKeyR1Prefix     = "PUB_R1_"
	TGCPublicKeyPrefixCompat = "EVS"

	//TGC stuff
	TGC_mainnetPublic = addressEncoder.AddressType{"tgc", addressEncoder.BTCAlphabet, "ripemd160", "", 33, []byte(TGCPublicKeyPrefixCompat), nil}

	Default = AddressDecoderV2{}
)

Functions

This section is empty.

Types

type AddressDecoderV2

type AddressDecoderV2 struct {
	IsTestNet bool
}

AddressDecoderV2

func (*AddressDecoderV2) AddressDecode

func (dec *AddressDecoderV2) AddressDecode(pubKey string) ([]byte, error)

AddressDecode decode address

func (*AddressDecoderV2) AddressEncode

func (dec *AddressDecoderV2) AddressEncode(hash []byte) string

AddressEncode encode address

Jump to

Keyboard shortcuts

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