The serialized attestation a [`pb::SubmitAttestationRequest`] carries.
(bytes: Option<&pb::VersionedBytes>)
| 420 | |
| 421 | /// The serialized attestation a [`pb::SubmitAttestationRequest`] carries. |
| 422 | pub fn attestation_from(bytes: Option<&pb::VersionedBytes>) -> Result<Vec<u8>, String> { |
| 423 | Ok(payload(bytes, ATTESTATION_SCHEMA)?.to_vec()) |
| 424 | } |
| 425 | |
| 426 | #[cfg(test)] |
| 427 | mod tests { |