Module zkevm_keccak::util::expression
source · [−]Modules
Returns
1
when expr[0] && expr[1] && ... == 1
, and returns 0
otherwise. Inputs need to be booleanReturns
1
when b == 0
, and returns 0
otherwise.
b
needs to be booleanReturns
1
when expr[0] || expr[1] || ... == 1
, and returns 0
otherwise. Inputs need to be booleanReturns
when_true
when selector == 1
, and returns when_false
when
selector == 0
. selector
needs to be boolean.Returns the sum of the passed in cells
Returns
a ^ b
.
a
and b
needs to be booleanTraits
Trait that implements functionality to get a constant expression from
commonly used types.
Functions
Given a bytes-representation of an expression, it computes and returns the
single expression.
Returns 2**by as FieldExt