Trait ssi_dids_core::registration::DIDMethodRegistry

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

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

Required Methods§

source

async fn submit_transaction( &self, transaction: Value, ) -> Result<Value, DIDTransactionError>

Submit a transaction.

Provided Methods§

source

fn create( &self, _create: DIDCreate, ) -> Result<Value, DIDTransactionCreationError>

Create DID.

source

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

Update DID.

source

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

Deactivate DID.

source

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

Recover DID.

Object Safety§

This trait is not object safe.

Implementors§