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 serialized integer suitable for Neo VM. MaxBytesLen = 33 // 32 bytes for 256-bit integer plus 1 if padding needed )
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 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.