Documentation ¶
Overview ¶
Package bigint implements Neo-specific big.Int (de)serialization to/from []byte.
Index ¶
Constants ¶
View Source
const ( // MaxBytesLen is the maximum length of a serialized integer suitable for Neo VM. MaxBytesLen = 32 // 256-bit signed integer )
Variables ¶
This section is empty.
Functions ¶
func FromBytesUnsigned ¶ added in v0.96.0
FromBytesUnsigned converts data in little-endian format to an unsigned integer.
func ToBytes ¶
ToBytes converts an integer to a slice in little-endian format. Note: NEO3 serialization differs from default C# BigInteger.ToByteArray() when n == 0. For zero is equal to empty slice in NEO3.
https://github.com/neo-project/neo-vm/blob/master/src/neo-vm/Types/Integer.cs#L16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.