Documentation ¶
Index ¶
- func BytesToInt(b []byte) int
- func EqualUint64Array(arr1, arr2 []uint64) bool
- func EqualUint64ArraySorted(arr1, arr2 []uint64) bool
- func HexToBytes(input string) []byte
- func HexToDomain(input string) spec.Domain
- func HexToDomainType(input string) spec.DomainType
- func HexToPubKey(input string) spec.BLSPubKey
- func HexToRoot(input string) spec.Root
- func HexToSignature(input string) spec.BLSSignature
- func HexToVersion(input string) spec.Version
- func Int32ToBytes(n int32) []byte
- func Int64ToBytes(n int64) []byte
- func IntToBytes(n int) []byte
- func PadByteTo(n int) []byte
- func PadByteTo32(n int) []byte
- func SplitBytes(buf []byte, lim int) [][]byte
- func TrimLeft0x(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualUint64Array ¶
func EqualUint64ArraySorted ¶
func HexToBytes ¶
HexToBytes converts a hex string to a byte array. This should only be used for pre-defined test strings; it will panic if the input is invalid.
func HexToDomain ¶
HexToDomain converts a hex string to a spec domain. This should only be used for pre-defined test strings; it will panic if the input is invalid.
func HexToDomainType ¶
func HexToDomainType(input string) spec.DomainType
HexToDomainType converts a hex string to a spec domain type. This should only be used for pre-defined test strings; it will panic if the input is invalid.
func HexToPubKey ¶
HexToPubKey converts a hex string to a spec public key. This should only be used for pre-defined test strings; it will panic if the input is invalid.
func HexToRoot ¶
HexToRoot converts a hex string to a spec root. This should only be used for pre-defined test strings; it will panic if the input is invalid.
func HexToSignature ¶
func HexToSignature(input string) spec.BLSSignature
HexToSignature converts a hex string to a spec signature. This should only be used for pre-defined test strings; it will panic if the input is invalid.
func HexToVersion ¶
HexToVersion converts a hex string to a spec version. This should only be used for pre-defined test strings; it will panic if the input is invalid.
func SplitBytes ¶
SplitBytes Splits a byte array into a two-dimensional byte array of a given size.
Types ¶
This section is empty.