Documentation ¶
Index ¶
- Variables
- func BigIntToByteArray(value *big.Int, numBytes int) []byte
- func BytesToBigInteger(bytes []byte) *big.Int
- func EqualsBigInts(first, second *big.Int) bool
- func GetBit(h []byte, i uint) int
- func GetBitToBool(h []byte, i uint) bool
- func HexDecodeStringOdd(s string) ([]byte, error)
- func MustHexDecodeString(s string) []byte
- func ReverseByteArray(a []byte)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BoolFromInt = []bool{ false, true, } )
different representations of boolean type
Functions ¶
func BigIntToByteArray ¶
BigIntToByteArray converts a BigInteger to a little endian byte array.
func BytesToBigInteger ¶
BytesToBigInteger converts a little endian byte array to a BigInteger.
func EqualsBigInts ¶
EqualsBigInts return true is first & second equals
func GetBitToBool ¶
GetBitToBool representations as boolean type of the i'th bit
func HexDecodeStringOdd ¶
HexDecodeStringOdd return padding hex representation of string
func MustHexDecodeString ¶
MustHexDecodeString return hex representation of string
func ReverseByteArray ¶
func ReverseByteArray(a []byte)
ReverseByteArray rearranges the bytes in reverse order
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.