Trait ssi_dids_core::registration::DIDRegistry

source ·
pub trait DIDRegistry {
    // Required method
    async fn submit_transaction(
        &self,
        transaction: DIDTransaction,
    ) -> Result<Value, DIDTransactionError>;

    // Provided methods
    fn create(
        &self,
        _method: &str,
        _create: DIDCreate,
    ) -> Result<DIDTransaction, DIDTransactionCreationError> { ... }
    fn update(
        &self,
        _update: DIDUpdate,
    ) -> Result<DIDTransaction, DIDTransactionCreationError> { ... }
    fn deactivate(
        &self,
        _deactivate: DIDDeactivate,
    ) -> Result<DIDTransaction, DIDTransactionCreationError> { ... }
    fn recover(
        &self,
        _recover: DIDRecover,
    ) -> Result<DIDTransaction, DIDTransactionCreationError> { ... }
}

Required Methods§

Provided Methods§

source

fn create( &self, _method: &str, _create: DIDCreate, ) -> Result<DIDTransaction, DIDTransactionCreationError>

Create DID.

source

fn update( &self, _update: DIDUpdate, ) -> Result<DIDTransaction, DIDTransactionCreationError>

Update DID.

source

fn deactivate( &self, _deactivate: DIDDeactivate, ) -> Result<DIDTransaction, DIDTransactionCreationError>

Deactivate DID.

source

fn recover( &self, _recover: DIDRecover, ) -> Result<DIDTransaction, DIDTransactionCreationError>

Recover DID.

Object Safety§

This trait is not object safe.

Implementors§