Shielded Types
A handle on stype unlocks all shielded computation and storage
Shielded Integers
suint - Shielded Unsigned Integer
suint256 a = suint256(10);
suint256 b = suint256(3);
// == EXAMPLES
a > b // sbool(true)
a | b // suint256(11)
a << 2 // suint256(40)
a % b // suint256(1)sint - Shielded Signed Integer
sint256 a = sint256(-10);
sint256 b = sint256(3);
// == EXAMPLES
a < b // sbool(true)
a + b // sint256(-7)
a * b // sint256(-30)sbool - Shielded Boolean
saddress - Shielded Address
sbytes - Shielded Bytes
Fixed-size: sbytes1 through sbytes32
Dynamic: sbytes
Shielded Literals
Last updated

