Documentation ¶
Index ¶
- Variables
- func CheckDecode(input string, pl int) (result []byte, prefix []byte, err error)
- func CheckEncode(input []byte, version []byte) string
- func GenerateAssetId(assetKey string) crypto.Hash
- func VerifyAddress(address string) error
- func VerifyAssetKey(assetKey string) error
- func VerifyTransactionHash(hash string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TezosChainBase string TezosChainId crypto.Hash )
View Source
var ErrChecksum = errors.New("checksum error")
ErrChecksum indicates that the checksum of a check-encoded string does not verify against the checksum.
View Source
var ErrInvalidFormat = errors.New("invalid format: version and/or checksum bytes missing")
ErrInvalidFormat indicates that the check-encoded string has an invalid format.
Functions ¶
func CheckDecode ¶
CheckDecode decodes a string that was encoded with CheckEncode and verifies the checksum.
func CheckEncode ¶
CheckEncode prepends two version bytes and appends a four byte checksum.
func GenerateAssetId ¶
func VerifyAddress ¶
func VerifyAssetKey ¶
func VerifyTransactionHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.