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§
sourceasync fn submit_transaction(
&self,
transaction: Value,
) -> Result<Value, DIDTransactionError>
async fn submit_transaction( &self, transaction: Value, ) -> Result<Value, DIDTransactionError>
Submit a transaction.
Provided Methods§
sourcefn create(
&self,
_create: DIDCreate,
) -> Result<Value, DIDTransactionCreationError>
fn create( &self, _create: DIDCreate, ) -> Result<Value, DIDTransactionCreationError>
Create DID.
sourcefn update(
&self,
_update: DIDUpdate,
) -> Result<Value, DIDTransactionCreationError>
fn update( &self, _update: DIDUpdate, ) -> Result<Value, DIDTransactionCreationError>
Update DID.
sourcefn deactivate(
&self,
_deactivate: DIDDeactivate,
) -> Result<Value, DIDTransactionCreationError>
fn deactivate( &self, _deactivate: DIDDeactivate, ) -> Result<Value, DIDTransactionCreationError>
Deactivate DID.
sourcefn recover(
&self,
_recover: DIDRecover,
) -> Result<Value, DIDTransactionCreationError>
fn recover( &self, _recover: DIDRecover, ) -> Result<Value, DIDTransactionCreationError>
Recover DID.
Object Safety§
This trait is not object safe.