Struct keri_core::processor::escrow::PartiallyWitnessedEscrow
source · pub struct PartiallyWitnessedEscrow { /* private fields */ }Expand description
Store partially witnessed events and nontransferable receipts of events that wasn’t accepted into kel yet.
Implementations§
source§impl PartiallyWitnessedEscrow
impl PartiallyWitnessedEscrow
pub fn new( db: Arc<SledEventDatabase>, escrow_db: Arc<EscrowDb>, duration: Duration, ) -> Self
sourcepub fn get_event_by_sn_and_digest(
&self,
sn: u64,
id: &IdentifierPrefix,
event_digest: &SelfAddressingIdentifier,
) -> Option<SignedEventMessage>
pub fn get_event_by_sn_and_digest( &self, sn: u64, id: &IdentifierPrefix, event_digest: &SelfAddressingIdentifier, ) -> Option<SignedEventMessage>
Return escrowed partially witness events of given identifier, sn and digest.
pub fn get_partially_witnessed_events(&self) -> Vec<SignedEventMessage>
sourcepub fn validate_receipt(
&self,
rct: &SignedNontransferableReceipt,
receipted_event: &SignedEventMessage,
witnesses: &[BasicPrefix],
) -> Result<(), Error>
pub fn validate_receipt( &self, rct: &SignedNontransferableReceipt, receipted_event: &SignedEventMessage, witnesses: &[BasicPrefix], ) -> Result<(), Error>
Verify escrowed receipts and remove those with wrong signatures.
pub fn validate_partialy_witnessed( &self, receipted_event: &SignedEventMessage, additional_receipt: Option<SignedNontransferableReceipt>, ) -> Result<(), Error>
Trait Implementations§
source§impl Notifier for PartiallyWitnessedEscrow
impl Notifier for PartiallyWitnessedEscrow
fn notify( &self, notification: &Notification, bus: &NotificationBus, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for PartiallyWitnessedEscrow
impl !RefUnwindSafe for PartiallyWitnessedEscrow
impl Send for PartiallyWitnessedEscrow
impl Sync for PartiallyWitnessedEscrow
impl Unpin for PartiallyWitnessedEscrow
impl !UnwindSafe for PartiallyWitnessedEscrow
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