pub enum Provenance {
PushCertified,
PushTransport,
}Expand description
Which path authored an op, when it was not the default author-signed submission (D41).
None on ViewOp::provenance is the default class: an actor
built, signed, and submitted the op under its own key. The variants
label the ops the node signs on behalf of a git pusher, whose key
never touches the payload — a materially different provenance that
the channel prefix (key/, git/) previously carried only by
convention. The label sits inside the signed payload, and the node’s
admission policy refuses any labeled op not signed by the node’s own
key, so the class can neither be claimed by an ordinary author nor
stripped by whoever relays the bytes.
Variants§
PushCertified
A git push whose push certificate verified: the channel names the pusher’s own key, but the node signed the op.
PushTransport
A git push with no verified certificate: the channel names only the transport user the push arrived as.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Provenance
impl Debug for Provenance
Source§impl<'de> Deserialize<'de> for Provenance
impl<'de> Deserialize<'de> for Provenance
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>,
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
Source§fn eq(&self, other: &Provenance) -> bool
fn eq(&self, other: &Provenance) -> bool
self and other values to be equal, and is used by ==.