Documentation ¶
Index ¶
- Variables
- func Concat(slices ...[]uint8) []uint8
- func FixLength(value []uint8, bitLength int, atStart bool) []uint8
- func FromHex(hexStr string) []uint8
- func IsU8a(value interface{}) bool
- func ToBN(value []uint8, isLittleEndian bool) *big.Int
- func ToHex(value []uint8, bitLength int, isPrefixed bool) string
- func ToString(value []uint8) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHex = errors.New("Invalid hex string")
ErrInvalidHex ...
Functions ¶
func FixLength ¶
FixLength shifts a uint8 slice to a specific bitLength. Returns a uint8 slice with the specified number of bits contained in the return value. (If bitLength is -1, length checking is not done). Values with more bits are trimmed to the specified length.
func IsU8a ¶
func IsU8a(value interface{}) bool
IsU8a ... TODO: need to implement from https://github.com/polkadot-js/common/tree/master/packages/util
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.