pub trait GrantBindingSource:
Send
+ Sync
+ Debug {
// Required methods
fn pass_digest(
&self,
credential: &[u8],
) -> Result<Digest32, RevocationRefusal>;
fn binding_for(
&self,
credential: &[u8],
) -> Result<AuthenticatedBinding, RevocationRefusal>;
}Expand description
The Lys producer seam (DIRECTORY-089 R2).
It authenticates the separate versioned binding for a presented credential and computes that contract’s exact canonical pass digest. Its implementation is the trust anchor; liminal compares what it returns with what it verified itself.
Required Methods§
Sourcefn pass_digest(&self, credential: &[u8]) -> Result<Digest32, RevocationRefusal>
fn pass_digest(&self, credential: &[u8]) -> Result<Digest32, RevocationRefusal>
The contract’s canonical digest of credential’s exact bytes.
§Errors
RevocationRefusal::BindingMissing when no digest contract is
available.
Sourcefn binding_for(
&self,
credential: &[u8],
) -> Result<AuthenticatedBinding, RevocationRefusal>
fn binding_for( &self, credential: &[u8], ) -> Result<AuthenticatedBinding, RevocationRefusal>
The authenticated binding produced for credential.
§Errors
RevocationRefusal::BindingMissing when no binding exists, its
signature does not verify, or it is only partly published.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".