Trait 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<T> Controller for &T
where T: Controller,

Source§

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

Implementors§