pub struct DIDKey;
Expand description
The did:key Method v0.7.
Implementations§
Source§impl DIDKey
impl DIDKey
pub fn generate(jwk: &JWK) -> Result<DIDBuf, GenerateError>
pub fn generate_url(jwk: &JWK) -> Result<DIDURLBuf, GenerateError>
Trait Implementations§
Source§impl DIDMethod for DIDKey
impl DIDMethod for DIDKey
Source§const DID_METHOD_NAME: &'static str = "key"
const DID_METHOD_NAME: &'static str = "key"
Name of the method.
Source§impl DIDMethodResolver for DIDKey
impl DIDMethodResolver for DIDKey
Auto Trait Implementations§
impl Freeze for DIDKey
impl RefUnwindSafe for DIDKey
impl Send for DIDKey
impl Sync for DIDKey
impl Unpin for DIDKey
impl UnwindSafe for DIDKey
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> DIDResolver for Twhere
T: DIDResolverByMethod,
impl<T> DIDResolver for Twhere
T: DIDResolverByMethod,
Source§async fn resolve_representation<'a>(
&'a self,
did: &'a DID,
options: Options,
) -> Result<Output<Vec<u8>>, Error>
async fn resolve_representation<'a>( &'a self, did: &'a DID, options: Options, ) -> Result<Output<Vec<u8>>, Error>
Resolves a DID representation. Read more
Source§async fn resolve_with<'a>(
&'a self,
did: &'a DID,
options: Options,
) -> Result<Output, Error>
async fn resolve_with<'a>( &'a self, did: &'a DID, options: Options, ) -> Result<Output, Error>
Resolves a DID with the given options. Read more
Source§async fn resolve<'a>(&'a self, did: &'a DID) -> Result<Output, Error>
async fn resolve<'a>(&'a self, did: &'a DID) -> Result<Output, Error>
Resolves a DID. Read more
Source§async fn resolve_into_any_verification_method<'a>(
&'a self,
did: &'a DID,
) -> Result<Option<DIDVerificationMethod>, Error>
async fn resolve_into_any_verification_method<'a>( &'a self, did: &'a DID, ) -> Result<Option<DIDVerificationMethod>, Error>
Resolves a DID and extracts one of the verification methods it defines. Read more
Source§async fn dereference_primary<'a>(
&'a self,
primary_did_url: &'a PrimaryDIDURL,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary<'a>( &'a self, primary_did_url: &'a PrimaryDIDURL, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL to retrieve the primary content. Read more
Source§async fn dereference_primary_with<'a>(
&'a self,
primary_did_url: &'a PrimaryDIDURL,
resolve_options: Options,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary_with<'a>( &'a self, primary_did_url: &'a PrimaryDIDURL, resolve_options: Options, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL to retrieve the primary content. Read more
Source§async fn dereference_primary_with_path_or_query<'a>(
&'a self,
_primary_did_url: &'a PrimaryDIDURL,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary_with_path_or_query<'a>( &'a self, _primary_did_url: &'a PrimaryDIDURL, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL with a path or query to retrieve the primary
content. Read more
Source§async fn dereference_with<'a>(
&'a self,
did_url: &'a DIDURL,
options: Options,
) -> Result<DerefOutput, DerefError>
async fn dereference_with<'a>( &'a self, did_url: &'a DIDURL, options: Options, ) -> Result<DerefOutput, DerefError>
Dereference a DID URL. Read more
Source§async fn dereference<'a>(
&'a self,
did_url: &'a DIDURL,
) -> Result<DerefOutput, DerefError>
async fn dereference<'a>( &'a self, did_url: &'a DIDURL, ) -> Result<DerefOutput, DerefError>
Dereference a DID URL. Read more
Source§fn into_vm_resolver_with<M>(
self,
options: Options,
) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
fn into_vm_resolver_with<M>(
self,
options: Options,
) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
Turns this DID resolver into a verification method resolver. Read more
Source§fn into_vm_resolver<M>(self) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
fn into_vm_resolver<M>(self) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
Turns this DID resolver into a verification method resolver. Read more
Source§impl<T> DIDResolverByMethod for Twhere
T: DIDMethodResolver,
impl<T> DIDResolverByMethod for Twhere
T: DIDMethodResolver,
type MethodResolver = T
Source§fn get_method(&self, method_name: &str) -> Option<&T>
fn get_method(&self, method_name: &str) -> Option<&T>
Returns a resolver for the given method name, if any.
fn supports_method(&self, method_name: &str) -> bool
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.