Documentation ¶
Index ¶
- func ConvertHexaToBigInt(in []byte) (*big.Int, error)
- func ConvertToBigInt(in []byte) (*big.Int, error)
- func FlipBytes(bytesIn []byte) []byte
- func FromByteArray(bytesIn []byte) (*big.Int, error)
- func ParseHexa(in []byte) ([]*big.Int, error)
- func ParseInput(in []byte) ([]*big.Int, error)
- func ToByteArray(in *big.Int) []byte
- func UnsignedFromByteArray(bytesIn []byte) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertHexaToBigInt ¶ added in v0.6.12
Decodes a byte array (ASCII encoding of a signed integer) into a big integer
func ConvertToBigInt ¶
Decodes a byte array (ASCII encoding of a signed integer) into a big integer
func FromByteArray ¶
*
- Returns the big.Int based on the passed byte-array assuming the byte-array contains
- the two's-complement representation of this big.Int. The byte array will be in big-endian byte-order:
- the most significant byte is in the zeroth element. The array will contain the minimum number of bytes
- required to represent this BigInteger, including at least one sign bit, which is (ceil((this.bitLength() + 1)/8)).
func ParseHexa ¶ added in v0.6.12
Decodes a byte array (ASCII encoding of comma-separated integers) into an array of big integers
func ParseInput ¶
Decodes a byte array (ASCII encoding of comma-separated integers) into an array of big integers
func ToByteArray ¶
*
- Returns a byte array containing the two's-complement representation of this big.Int.
- The byte array will be in big-endian byte-order: the most significant byte is in the
- zeroth element. The array will contain the minimum number of bytes required to represent
- this BigInteger, including at least one sign bit, which is (ceil((this.bitLength() + 1)/8)).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.