Documentation
¶
Index ¶
- Variables
- func ConvertAndEncode(hrp string, data []byte) (string, error)
- func DecodeAndConvert(bech string) (string, []byte, error)
- func GenerateAssetId(assetKey string) crypto.Hash
- func GetFromBech32(bech32str, prefix string) ([]byte, error)
- func VerifyAddress(address string) error
- func VerifyAssetKey(assetKey string) error
- func VerifyTransactionHash(hash string) error
- type AccAddress
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BinanceChainBase string BinanceChainId crypto.Hash )
Functions ¶
func ConvertAndEncode ¶ added in v0.12.23
func DecodeAndConvert ¶ added in v0.12.23
func GenerateAssetId ¶
func GetFromBech32 ¶ added in v0.12.23
GetFromBech32 to decode a bytestring from a bech32-encoded string
func VerifyAddress ¶
func VerifyAssetKey ¶
func VerifyTransactionHash ¶
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
Click to show internal directories.
Click to hide internal directories.