The serialized attestation a [`pb::SubmitAttestationRequest`] carries.
(bytes: Option<&pb::VersionedBytes>)
| 379 | |
| 380 | /// The serialized attestation a [`pb::SubmitAttestationRequest`] carries. |
| 381 | pub fn attestation_from(bytes: Option<&pb::VersionedBytes>) -> Result<Vec<u8>, String> { |
| 382 | Ok(payload(bytes, ATTESTATION_SCHEMA)?.to_vec()) |
| 383 | } |
| 384 | |
| 385 | #[cfg(test)] |
| 386 | mod tests { |