Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
View Source
var ErrVersion = errors.New("moac version error")
Functions ¶
func MoacDecode ¶
* Decode the input string into byte array * with checksum * REturn is a byte array holding the data * can be converted to string with hex.EncodeToString
func MoacEncode ¶
* Encode the account address, contract address * with checksum * This function should be called after check the * input HEX address. * data - byte array with * prefix - 00 for account address, * or 01 for contract address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.