pub struct MonetizedPinEvent {
pub peer: PeerId,
pub pin: [u8; 32],
pub key_count: u32,
pub quote_ts: SystemTime,
}Expand description
ADR-0004: a commitment that backed a payment, surfaced by the payment verifier’s cross-check so it can receive a deterministic first audit.
Sent from the verifier to the replication engine’s first-audit drainer. The
drainer dedups by pin (a pin gets one deterministic first audit; later
audits of the same peer revert to the gossip lottery), orders most-recently-
monetized first, and runs the same run_subtree_audit under the same
per-peer cooldown and concurrency caps — only the lottery is bypassed.
Fields§
§peer: PeerIdThe peer whose commitment backed the payment.
pin: [u8; 32]The pinned commitment hash.
key_count: u32The committed key count (sizes the audit deadline).
quote_ts: SystemTimeThe accused’s own SIGNED quote timestamp. The first-audit drainer skips a pin whose quote is older than the answerability window (ADR-0004 A1 guardrail A): with grace removed, challenging an aged-out pin would false-convict, so a stale client-forwarded quote must not trigger an audit.
Trait Implementations§
Source§impl Clone for MonetizedPinEvent
impl Clone for MonetizedPinEvent
Source§fn clone(&self) -> MonetizedPinEvent
fn clone(&self) -> MonetizedPinEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MonetizedPinEvent
Auto Trait Implementations§
impl Freeze for MonetizedPinEvent
impl RefUnwindSafe for MonetizedPinEvent
impl Send for MonetizedPinEvent
impl Sync for MonetizedPinEvent
impl Unpin for MonetizedPinEvent
impl UnsafeUnpin for MonetizedPinEvent
impl UnwindSafe for MonetizedPinEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more