pub struct WriteAttestation {
pub algorithm: AttestationAlgorithm,
pub public_key: String,
pub signature: String,
}Expand description
A per-write source signature carried inside Provenance (ADR 0013). The signed message
is crate::attestation_message — the domain-framed canonical bytes of the event with
attestation stripped — so any holder of public_key can re-verify offline that the
event content is exactly what the source key signed. The hash chain covers the attestation
bytes themselves, so the attestation is as tamper-evident as the rest of the event.
Fields§
§algorithm: AttestationAlgorithm§public_key: StringThe source’s Ed25519 verifying key, lowercase hex (32 bytes).
signature: StringSignature over crate::attestation_message, lowercase hex (64 bytes).
Trait Implementations§
Source§impl Clone for WriteAttestation
impl Clone for WriteAttestation
Source§fn clone(&self) -> WriteAttestation
fn clone(&self) -> WriteAttestation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteAttestation
impl Debug for WriteAttestation
Source§impl<'de> Deserialize<'de> for WriteAttestation
impl<'de> Deserialize<'de> for WriteAttestation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WriteAttestation
Source§impl PartialEq for WriteAttestation
impl PartialEq for WriteAttestation
Source§impl Serialize for WriteAttestation
impl Serialize for WriteAttestation
impl StructuralPartialEq for WriteAttestation
Auto Trait Implementations§
impl Freeze for WriteAttestation
impl RefUnwindSafe for WriteAttestation
impl Send for WriteAttestation
impl Sync for WriteAttestation
impl Unpin for WriteAttestation
impl UnsafeUnpin for WriteAttestation
impl UnwindSafe for WriteAttestation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more