Trait DidJwkDocumentExt

Source
pub trait DidJwkDocumentExt {
    // Required methods
    fn new_did_jwk<'life0, 'async_trait, K, I>(
        storage: &'life0 Storage<K, I>,
        key_type: KeyType,
        alg: JwsAlgorithm,
    ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             K: JwkStorage + 'async_trait,
             I: KeyIdStorage + 'async_trait;
    fn new_did_jwk_pqc<'life0, 'async_trait, K, I>(
        storage: &'life0 Storage<K, I>,
        key_type: KeyType,
        alg: JwsAlgorithm,
    ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             K: JwkStoragePQ + 'async_trait,
             I: KeyIdStorage + 'async_trait;
    fn new_did_jwk_zk<'life0, 'async_trait, K, I>(
        storage: &'life0 Storage<K, I>,
        key_type: KeyType,
        alg: ProofAlgorithm,
    ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             K: JwkStorageBbsPlusExt + 'async_trait,
             I: KeyIdStorage + 'async_trait;
    fn new_did_compositejwk<'life0, 'async_trait, K, I>(
        storage: &'life0 Storage<K, I>,
        alg: CompositeAlgId,
    ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             K: JwkStorage + JwkStoragePQ + 'async_trait,
             I: KeyIdStorage + 'async_trait;
}
Expand description

Extension trait for creating JWK-based DID documents for traditional, zk, PQ and hybrid keys

Required Methods§

Source

fn new_did_jwk<'life0, 'async_trait, K, I>( storage: &'life0 Storage<K, I>, key_type: KeyType, alg: JwsAlgorithm, ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
where 'life0: 'async_trait, K: JwkStorage + 'async_trait, I: KeyIdStorage + 'async_trait,

Create a JWK-based DID documents with traditional keys. Returns the DID document and the fragment

Source

fn new_did_jwk_pqc<'life0, 'async_trait, K, I>( storage: &'life0 Storage<K, I>, key_type: KeyType, alg: JwsAlgorithm, ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
where 'life0: 'async_trait, K: JwkStoragePQ + 'async_trait, I: KeyIdStorage + 'async_trait,

Create a JWK-based DID documents with PQ keys. Returns the DID document and the fragment

Source

fn new_did_jwk_zk<'life0, 'async_trait, K, I>( storage: &'life0 Storage<K, I>, key_type: KeyType, alg: ProofAlgorithm, ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
where 'life0: 'async_trait, K: JwkStorageBbsPlusExt + 'async_trait, I: KeyIdStorage + 'async_trait,

Create a JWK-based DID documents with zk keys. Returns the DID document and the fragment

Source

fn new_did_compositejwk<'life0, 'async_trait, K, I>( storage: &'life0 Storage<K, I>, alg: CompositeAlgId, ) -> Pin<Box<dyn Future<Output = Result<(CoreDocument, String), JwkStorageDocumentError>> + Send + 'async_trait>>
where 'life0: 'async_trait, K: JwkStorage + JwkStoragePQ + 'async_trait, I: KeyIdStorage + 'async_trait,

Create a JWK-based DID documents with hybrid keys. Returns the DID document and the fragment

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§