Unisigned Integer
Boolean
Type:
uintN
, where N
can be: 8, 16, 32, 64, 128, 256
.Aliases:
uint8 <-> byte
uint256 <-> root
Default value:
0
Size:
size_of(uintN): N / 8
The serialized
form on any unsined integer is the Bytes
representation of that integer.
The serialization
of uintN
is defined using the Python version of int.to_bytes
, little-endian.
The integers, represented as bytes, are padded on the right side with zeroed bytes to a total of 32 bytes for merkleization. Note:
Type: boolean
Alias: bit
Default value: False
Size: 1
Booleans have two possible values: True
or False
The Boolean value false
is serialized into a byte
of value 0
The Boolean value true
is serialized into a byte
of value 1
The boolean represented as byte is merkleized exactly like byte
, including the ability to pack (but only to byte
precision, refer to bitfields for more efficient packing).