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