Trait ssi_verification_methods_core::Controller

source ·
pub trait Controller {
    // Required method
    fn allows_verification_method(
        &self,
        id: &Iri,
        proof_purposes: ProofPurposes,
    ) -> bool;
}
Expand description

Verification method controller.

A verification method controller stores the proof purposes for its controlled verification methods. The VerificationMethod::controller method returns an identifier for its controller, which can then be retrieved using a ControllerProvider.

Required Methods§

source

fn allows_verification_method( &self, id: &Iri, proof_purposes: ProofPurposes, ) -> bool

Checks that the controller allows using the verification method for the given proof purposes.

Implementations on Foreign Types§

source§

impl<'a, T: Controller> Controller for &'a T

source§

fn allows_verification_method( &self, id: &Iri, proof_purposes: ProofPurposes, ) -> bool

Implementors§