pub struct TypeDidGateway { /* private fields */ }Expand description
Verifies TypeDID envelopes and protects arbitrary agent payload bytes.
Implementations§
Source§impl TypeDidGateway
impl TypeDidGateway
Sourcepub fn new(
resolver: Arc<dyn DidResolver>,
key_store: Arc<dyn DidKeyStore>,
recipient: Did,
) -> Self
pub fn new( resolver: Arc<dyn DidResolver>, key_store: Arc<dyn DidKeyStore>, recipient: Did, ) -> Self
Create a TypeDID gateway for one local recipient DID.
Sourcepub fn open_message(
&self,
envelope: &DidEnvelope,
) -> Result<VerifiedTypeDidMessage, DidError>
pub fn open_message( &self, envelope: &DidEnvelope, ) -> Result<VerifiedTypeDidMessage, DidError>
Verify, decrypt, and protect a TypeDID message envelope.
Auto Trait Implementations§
impl !RefUnwindSafe for TypeDidGateway
impl !UnwindSafe for TypeDidGateway
impl Freeze for TypeDidGateway
impl Send for TypeDidGateway
impl Sync for TypeDidGateway
impl Unpin for TypeDidGateway
impl UnsafeUnpin for TypeDidGateway
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