Documentation ¶
Index ¶
- Constants
- func BytesReverse(u []byte) []byte
- func BytesToHexString(data []byte) string
- func CompareHeight(blockHeight uint64, heights []uint64) bool
- func GetUint16Array(source []byte) ([]uint16, error)
- func HexStringToBytes(value string) ([]byte, error)
- func HexStringToBytesReverse(value string) ([]byte, error)
- func ToByteArray(source []uint16) []byte
- type Fixed64
- type Uint168
- type Uint256
Constants ¶
View Source
const UINT168SIZE = 21
This is a magical change of Uint168, with length from 20 to 21. In fact, It is UINT168 now.
View Source
const UINT256SIZE int = 32
Variables ¶
This section is empty.
Functions ¶
func BytesReverse ¶
func BytesToHexString ¶
func CompareHeight ¶
func GetUint16Array ¶
func HexStringToBytes ¶
func HexStringToBytesReverse ¶
func ToByteArray ¶
Types ¶
type Uint168 ¶
type Uint168 [UINT168SIZE]uint8
func Uint168FromBytes ¶
func Uint68FromAddress ¶
func (*Uint168) ToArrayReverse ¶
type Uint256 ¶
type Uint256 [UINT256SIZE]uint8
func Uint256ParseFromBytes ¶
func (*Uint256) ToArrayReverse ¶
Click to show internal directories.
Click to hide internal directories.