pub trait EnrollmentResolver: Send + Sync {
// Required methods
fn resolve_primary(&self, cnf: &VerifyingKey) -> Option<SignerSuiteRecord>;
fn resolve_approver(&self, kid: &[u8]) -> Option<SignerSuiteRecord>;
fn resolve_service(&self, service_domain: &str) -> Option<SignerSuiteRecord>;
}Expand description
Resolves the enrolled signer-suite records an authenticated proof’s groups must verify against.
Every method returns None for anything it does not have an exact,
unambiguous enrollment for; the caller denies. There is no permissive
default implementation and no self-certified fallback.
Required Methods§
Sourcefn resolve_primary(&self, cnf: &VerifyingKey) -> Option<SignerSuiteRecord>
fn resolve_primary(&self, cnf: &VerifyingKey) -> Option<SignerSuiteRecord>
Resolve the primary signer-suite record pinned by a credential cnf
Ed25519 key.
Sourcefn resolve_approver(&self, kid: &[u8]) -> Option<SignerSuiteRecord>
fn resolve_approver(&self, kid: &[u8]) -> Option<SignerSuiteRecord>
Resolve an anchored approver record by the key ID of the group’s first component.
Sourcefn resolve_service(&self, service_domain: &str) -> Option<SignerSuiteRecord>
fn resolve_service(&self, service_domain: &str) -> Option<SignerSuiteRecord>
Resolve the enrolled response signer for one canonical service domain.