pub struct EventValidator { /* private fields */ }Implementations§
Source§impl EventValidator
impl EventValidator
pub fn new(db: Arc<SledEventDatabase>) -> Self
Sourcepub fn validate_event(
&self,
signed_event: &SignedEventMessage,
) -> Result<Option<IdentifierState>, Error>
pub fn validate_event( &self, signed_event: &SignedEventMessage, ) -> Result<Option<IdentifierState>, Error>
Validate Event
Validates a Key Event against the latest state of the Identifier and applies it to update the state returns the updated state
Sourcepub fn validate_validator_receipt(
&self,
vrc: &SignedTransferableReceipt,
) -> Result<Option<IdentifierState>, Error>
pub fn validate_validator_receipt( &self, vrc: &SignedTransferableReceipt, ) -> Result<Option<IdentifierState>, Error>
Process Validator Receipt
Checks the receipt against the receipted event and the state of the validator, returns the state of the identifier being receipted
pub fn get_receipt_couplets( &self, rct: &SignedNontransferableReceipt, ) -> Result<Vec<(BasicPrefix, SelfSigningPrefix)>, Error>
Sourcepub fn validate_witness_receipt(
&self,
rct: &SignedNontransferableReceipt,
) -> Result<Option<IdentifierState>, Error>
pub fn validate_witness_receipt( &self, rct: &SignedNontransferableReceipt, ) -> Result<Option<IdentifierState>, Error>
Process Witness Receipt
Checks the receipt against the receipted event returns the state of the Identifier being receipted, which may have been updated by un-escrowing events
pub fn verify( &self, data: &[u8], sig: &Signature, ) -> Result<(), VerificationError>
Auto Trait Implementations§
impl Freeze for EventValidator
impl !RefUnwindSafe for EventValidator
impl Send for EventValidator
impl Sync for EventValidator
impl Unpin for EventValidator
impl !UnwindSafe for EventValidator
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