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§
Sourcefn allows_verification_method(
&self,
id: &Iri,
proof_purposes: ProofPurposes,
) -> bool
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.