binance

package
v0.16.10 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BinanceChainBase string
	BinanceChainId   crypto.Hash
)

Functions

func ConvertAndEncode added in v0.12.23

func ConvertAndEncode(hrp string, data []byte) (string, error)

func DecodeAndConvert added in v0.12.23

func DecodeAndConvert(bech string) (string, []byte, error)

func GenerateAssetId

func GenerateAssetId(assetKey string) crypto.Hash

func GetFromBech32 added in v0.12.23

func GetFromBech32(bech32str, prefix string) ([]byte, error)

GetFromBech32 to decode a bytestring from a bech32-encoded string

func VerifyAddress

func VerifyAddress(address string) error

func VerifyAssetKey

func VerifyAssetKey(assetKey string) error

func VerifyTransactionHash

func VerifyTransactionHash(hash string) error

Types

type AccAddress added in v0.12.23

type AccAddress []byte

func AccAddressFromBech32 added in v0.12.23

func AccAddressFromBech32(address string) (addr AccAddress, err error)

AccAddressFromBech32 to create an AccAddress from a bech32 string

func (AccAddress) String added in v0.12.23

func (bz AccAddress) String() string

String representation

Jump to

Keyboard shortcuts

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