pub struct VerificationContext { /* private fields */ }Expand description
Verifier-side context containing trusted issuers and ingested revocations.
Implementations§
Source§impl VerificationContext
impl VerificationContext
Sourcepub fn new() -> VerificationContext
pub fn new() -> VerificationContext
Create an empty verification context.
Verify and trust an issuer authority for future credential checks.
Sourcepub fn add_revocation(&mut self, revocation: JsValue) -> Result<(), JsError>
pub fn add_revocation(&mut self, revocation: JsValue) -> Result<(), JsError>
Verify and store a signed revocation from a trusted issuer.
Sourcepub fn verify_credential(&self, credential: JsValue) -> Result<bool, JsError>
pub fn verify_credential(&self, credential: JsValue) -> Result<bool, JsError>
Verify a finalized credential against trusted issuers and ingested revocations.
Verify a credential and holder authorization.
Trait Implementations§
Source§impl From<VerificationContext> for JsValue
impl From<VerificationContext> for JsValue
Source§fn from(value: VerificationContext) -> Self
fn from(value: VerificationContext) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for VerificationContext
impl FromWasmAbi for VerificationContext
Source§impl IntoWasmAbi for VerificationContext
impl IntoWasmAbi for VerificationContext
Source§impl LongRefFromWasmAbi for VerificationContext
impl LongRefFromWasmAbi for VerificationContext
Source§type Abi = WasmPtr<WasmRefCell<VerificationContext>>
type Abi = WasmPtr<WasmRefCell<VerificationContext>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<VerificationContext>
type Anchor = RcRef<VerificationContext>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for VerificationContext
impl RefFromWasmAbi for VerificationContext
Source§type Abi = WasmPtr<WasmRefCell<VerificationContext>>
type Abi = WasmPtr<WasmRefCell<VerificationContext>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<VerificationContext>
type Anchor = RcRef<VerificationContext>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for VerificationContext
impl RefMutFromWasmAbi for VerificationContext
Source§type Abi = WasmPtr<WasmRefCell<VerificationContext>>
type Abi = WasmPtr<WasmRefCell<VerificationContext>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<VerificationContext>
type Anchor = RcRefMut<VerificationContext>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for VerificationContext
impl TryFromJsValue for VerificationContext
Source§impl VectorFromWasmAbi for VerificationContext
impl VectorFromWasmAbi for VerificationContext
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VerificationContext]>
Source§impl VectorIntoWasmAbi for VerificationContext
impl VectorIntoWasmAbi for VerificationContext
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VerificationContext]>) -> Self::Abi
Source§impl WasmDescribeVector for VerificationContext
impl WasmDescribeVector for VerificationContext
impl SupportsConstructor for VerificationContext
impl SupportsInstanceProperty for VerificationContext
impl SupportsStaticProperty for VerificationContext
Auto Trait Implementations§
impl Freeze for VerificationContext
impl RefUnwindSafe for VerificationContext
impl Send for VerificationContext
impl Sync for VerificationContext
impl Unpin for VerificationContext
impl UnsafeUnpin for VerificationContext
impl UnwindSafe for VerificationContext
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.