Skip to main content

reject_maybe_in_signature_str

Function reject_maybe_in_signature_str 

Source
pub(crate) fn reject_maybe_in_signature_str(bytes: &[u8]) -> Result<()>
Expand description

Reject a maybe type in a signature carried as a g or v value’s string form.

This is the hot path (every variant on the wire), so it avoids re-parsing the string into a Signature: m is the maybe type constructor and appears nowhere else in the signature grammar, so its presence is an exact test for a maybe type.