Boolean datatype is most basic of all. It consist of two values: true and false.
true
false
sd.boolean is under the hood simply a sd.uint8 which encodes 1 for true and 0 for false.
sd.boolean
sd.uint8
const { toBytes, fromBytes } = sd.use(sd.boolean);
If true then
[byte 1]
Else
[byte 0]
← Extending Number →