Skip to main content

ecrecover_signature_well_formed

Function ecrecover_signature_well_formed 

Source
pub(crate) fn ecrecover_signature_well_formed(
    cx: &mut SymCx,
    input: &SymBytes,
) -> SymBoolExpr
Expand description

Returns whether a 128-byte ECRECOVER input is a well-formed signature: v is 27 or 28 and r and s are in [1, n). The precompile returns no data otherwise.