pub struct DidKey;Expand description
DidKey provides a type for implementing did:key operation and
resolution methods.
Implementations§
Source§impl DidKey
impl DidKey
Sourcepub fn create(op: &impl DidOperator, options: CreateOptions) -> Result<Document>
pub fn create(op: &impl DidOperator, options: CreateOptions) -> Result<Document>
Create a DID Document from the verifying key provided by DidOperator.
§Errors
Returns an error if the supplied verifying key is not found or not a valid format.
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