Documentation ¶
Index ¶
- func AccountNameToBytes32(accountName string) []byte
- func AddressStrToBytes(addr string) []byte
- func AmountToPackedAmountBytes(a *big.Int) (res []byte, err error)
- func CleanAccountName(name string) string
- func ConcatKeccakHash(oldHash, paddingValue []byte) []byte
- func DecodeAddress(addr string) ([]byte, error)
- func FeeToPackedFeeBytes(a *big.Int) (res []byte, err error)
- func KeccakHash(value []byte) []byte
- func LowerCase(s string) string
- func MinInt64(x, y int64) int64
- func OmitSpace(s string) string
- func OmitSpaceMiddle(s string) (rs string)
- func PaddingAddressIntoBuf(buf *bytes.Buffer, address string) (err error)
- func PaddingInt64IntoBuf(buf *bytes.Buffer, a int64)
- func PaddingPkIntoBuf(buf *bytes.Buffer, pkStr string) (err error)
- func PaddingStringBigIntIntoBuf(buf *bytes.Buffer, aStr string) error
- func ParsePubKey(pkStr string) (pk *eddsa.PublicKey, err error)
- func PrefixPaddingBufToChunkSize(buf []byte) []byte
- func ReadAddress(buf []byte, offset int) (newOffset int, res string)
- func ReadBytes32(buf []byte, offset int) (newOffset int, res []byte)
- func ReadUint128(buf []byte, offset int) (newOffset int, res *big.Int)
- func ReadUint16(buf []byte, offset int) (newOffset int, res uint16)
- func ReadUint256(buf []byte, offset int) (newOffset int, res *big.Int)
- func ReadUint32(buf []byte, offset int) (newOffset int, res uint32)
- func ReadUint40(buf []byte, offset int) (newOffset int, res int64)
- func ReadUint8(buf []byte, offset int) (newOffset int, res uint8)
- func SerializeAccountName(a []byte) string
- func SuffixPaddingBufToChunkSize(buf []byte) []byte
- func ToPackedAmount(amount *big.Int) (res int64, err error)
- func ToPackedFee(amount *big.Int) (res int64, err error)
- func Uint128ToBytes(a *big.Int) []byte
- func Uint16ToBytes(a uint16) []byte
- func Uint24ToBytes(a int64) []byte
- func Uint256ToBytes(a *big.Int) []byte
- func Uint32ToBytes(a uint32) []byte
- func Uint40ToBytes(a int64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountNameToBytes32 ¶
func AddressStrToBytes ¶
func CleanAccountName ¶
func ConcatKeccakHash ¶
func DecodeAddress ¶
func KeccakHash ¶
func OmitSpaceMiddle ¶
func PaddingAddressIntoBuf ¶
func PaddingInt64IntoBuf ¶
func SerializeAccountName ¶
func ToPackedAmount ¶
ToPackedAmount : convert big int to 40 bit, 5 bits for 10^x, 35 bits for a * 10^x
func ToPackedFee ¶
ToPackedFee : convert big int to 16 bit, 5 bits for 10^x, 11 bits for a * 10^x
func Uint128ToBytes ¶
func Uint16ToBytes ¶
func Uint24ToBytes ¶
func Uint256ToBytes ¶
func Uint32ToBytes ¶
func Uint40ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.