Documentation ¶
Index ¶
- func AddBase64Padding(value string) string
- func EncodeBytes(args ...EncoderParam) (data []byte, err error)
- func EncodeNumber(b []byte, message interface{}) error
- func ExtractHRP(address string) (string, error)
- func MsgPackStruct(msg interface{}) ([]byte, error)
- func MsgPackUnpackStruct(b []byte, message interface{}) error
- func NumberToByte(i uint64) []byte
- func ToBase64Padded(data []byte) string
- type EncoderDataType
- type EncoderParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBase64Padding ¶
func EncodeBytes ¶
func EncodeBytes(args ...EncoderParam) (data []byte, err error)
func EncodeNumber ¶
func ExtractHRP ¶
func MsgPackStruct ¶
func MsgPackUnpackStruct ¶
func NumberToByte ¶
func ToBase64Padded ¶
Types ¶
type EncoderDataType ¶
type EncoderDataType string
const ( StringEncoderDataType EncoderDataType = "string" ByteEncoderDataType EncoderDataType = "byte" BigNumEncoderDataType EncoderDataType = "bignum" IntEncoderDataType EncoderDataType = "int" HexEncoderDataType EncoderDataType = "hex" BoolEncoderDataType EncoderDataType = "bool" AddressEncoderDataType EncoderDataType = "address" )
type EncoderParam ¶
type EncoderParam struct { Type EncoderDataType Value interface{} }
Click to show internal directories.
Click to hide internal directories.