An attestation's serialized bytes (`Attestation::serialize`) on the wire. What travels is exactly what the sending side saved, so the hash the owner computes over it is the hash the sender did.
(attestation: Vec<u8>)
| 374 | /// What travels is exactly what the sending side saved, so the hash the |
| 375 | /// owner computes over it is the hash the sender did. |
| 376 | pub fn attestation_bytes(attestation: Vec<u8>) -> pb::VersionedBytes { |
| 377 | versioned(ATTESTATION_SCHEMA, attestation) |
| 378 | } |
| 379 | |
| 380 | /// The serialized attestation a [`pb::SubmitAttestationRequest`] carries. |
| 381 | pub fn attestation_from(bytes: Option<&pb::VersionedBytes>) -> Result<Vec<u8>, String> { |