Skip to main content

ProofMember

Enum ProofMember 

Source
pub enum ProofMember {
    SignedMessage {
        message: Message,
        signature: Vec<u8>,
    },
    Envelope(RedactedEnvelope),
    OpenedEnvelope(OpenedEnvelope),
}
Expand description

One member of an equivocation proof (CON-702 member).

Variants§

§

SignedMessage

A full signed message: the message plus its detached R4 v2 attestation signature (ADR-700). Verification reconstructs the attestation preimage from the message and its computed content hash — the full-message-holder arm of REQ-701.

Fields

§message: Message
§signature: Vec<u8>
§

Envelope(RedactedEnvelope)

A redacted envelope member (CON-702 member := … | envelope; REQ-706). The envelope carries its authenticated header and thread (REQ-701), so verification runs over exactly the same attestation preimage as the full-message arm — relabelling a genuine message into a fake conflict fails at the signature either way, and the proof discloses no payload for the envelope member (NFR-701).

§

OpenedEnvelope(OpenedEnvelope)

An opened-envelope member (SPEC-017 REQ-813): the typed root, its v3 root-signature, and the header-field openings. Verification runs crate::envelope::verify_opened — the v3 root-signature plus each opening against that signed root — so the (performative, sender, thread, content root) the predicate needs are read from authenticated openings, at zero payload disclosure (NFR-701). Relabelling a genuine message into a fake conflict fails at the opening or the signature, exactly as the full-message and redacted-envelope arms do; the proof stays pure and dialect-pinned.

Trait Implementations§

Source§

impl Clone for ProofMember

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProofMember

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ProofMember

Source§

impl PartialEq for ProofMember

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ProofMember

Auto Trait Implementations§

§

impl Forget for ProofMember

§

impl Freeze for ProofMember
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const LeafNode<String, SetValZST> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, SetValZST)>>: Freeze, PhantomData<SExpr>: Freeze, PhantomData<String>: Freeze, *const Message is !null: Freeze, PhantomData<Message>: Freeze, *const LeafNode<KeyId, SetValZST> is !null: Freeze, PhantomData<Box<(KeyId, SetValZST)>>: Freeze, PhantomData<Opening>: Freeze,

§

impl Move for ProofMember

§

impl RefUnwindSafe for ProofMember

§

impl Send for ProofMember
where RawVecInner: Send, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send, BoxRaw<(String, SetValZST)>: Send, BoxRaw<Message>: Send, NodeRef<Owned, KeyId, SetValZST, LeafOrInternal>: Send, BoxRaw<(KeyId, SetValZST)>: Send,

§

impl Sync for ProofMember
where RawVecInner: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync, BoxRaw<Message>: Sync, NodeRef<Owned, KeyId, SetValZST, LeafOrInternal>: Sync, BoxRaw<(KeyId, SetValZST)>: Sync,

§

impl Unpin for ProofMember
where *const u8 is !null: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin, Box<Message>: Unpin, *const LeafNode<KeyId, SetValZST> is !null: Unpin, Box<(KeyId, SetValZST)>: Unpin,

§

impl UnsafeUnpin for ProofMember

§

impl UnwindSafe for ProofMember
where RawVecInner: UnwindSafe, BTreeMap<String, SetValZST>: UnwindSafe, BoxRaw<Message>: UnwindSafe, BTreeMap<KeyId, SetValZST>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.