pub trait UcanRevocationStore:
Send
+ Sync
+ Debug {
// Required method
fn is_revoked(&self, ucan_cid: &str) -> bool;
}Expand description
A store that can answer “has this UCAN been revoked?” for a CID.
CID format in v1: SHA-256(jwt_compact) hex-encoded (see
super::compute_cid). The verifier computes this on every link;
the store decides authoritatively.
Implementations must be Send + Sync because the verifier runs on
the per-connection task and the store may be shared via
Arc<dyn UcanRevocationStore>. Debug because super::VerifyConfig
is Clone and propagates the trait object through error contexts.
Required Methods§
Sourcefn is_revoked(&self, ucan_cid: &str) -> bool
fn is_revoked(&self, ucan_cid: &str) -> bool
Returns true if the CID is in the revocation set.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".