pub fn extract_signing_payload(encoded: &[u8]) -> Result<&[u8], String>Expand description
Extract the signing payload from a raw encoded statement.
The signing payload is the portion of the statement that was signed: all fields except the Compact field-count prefix and the AuthenticityProof field itself. Callers use this to verify an embedded signature before trusting any other field.
Returns Err if the statement is too short or malformed.