pub struct DecisionInput {Show 18 fields
pub credential: Value,
pub now: String,
pub clock_skew_seconds: i64,
pub public_key: Option<KeyEntry>,
pub mldsa44_public_key: Option<Option<Vec<u8>>>,
pub trusted_keys: BTreeMap<String, KeyEntry>,
pub resolved_keys: BTreeMap<String, KeyEntry>,
pub mldsa44_keys: BTreeMap<String, Vec<u8>>,
pub documents: BTreeMap<String, Value>,
pub trusted_roots: Option<TrustedRoots>,
pub require_post_quantum: bool,
pub expected_resource: Option<String>,
pub check_status: bool,
pub status_lists: Map<String, Value>,
pub max_depth: Option<usize>,
pub max_replay_window_seconds: f64,
pub allowed_issuers: Option<Vec<String>>,
pub chain_required_outside_roots: bool,
}Expand description
Everything one verification decision needs. The host fetched every document and status list; nothing here is fetched.
Fields§
§credential: ValueThe credential as the host received it (an object; anything else is refused as “the credential is not a JSON object”).
now: StringThe verifier’s clock, a protocol time.
clock_skew_seconds: i64Allowed clock drift, 0 to 120 seconds.
public_key: Option<KeyEntry>The issuer’s key handed over by the caller (offline verification).
mldsa44_public_key: Option<Option<Vec<u8>>>The issuer’s ML-DSA-44 key handed over by the caller: Some(None) is
a key that is not a 1312-byte ML-DSA-44 key. Supplying one requires
the post-quantum proof.
trusted_keys: BTreeMap<String, KeyEntry>The caller’s trusted keys by DID (the reference’s trusted_keys):
for a DID listed here, this is the only key.
resolved_keys: BTreeMap<String, KeyEntry>The answers of the caller’s key resolver, by DID (a resolver that answered nothing is left out). Asked after the trusted keys.
mldsa44_keys: BTreeMap<String, Vec<u8>>ML-DSA-44 keys (1312 bytes) by DID, from the caller’s ML-DSA-44 key resolver. Asked first for every signer.
documents: BTreeMap<String, Value>DID documents the host fetched, by DID: did:web documents, and the latest verified state of did:webvh logs. A DID whose fetch failed is left out.
trusted_roots: Option<TrustedRoots>The trusted starting points for a delegation chain. None (or an empty list) means none are known, so a chained credential is refused.
require_post_quantum: boolRequire the post-quantum proof on the credential and every grant.
expected_resource: Option<String>When given, intent.resource must equal it.
check_status: boolCheck credentialStatus (the reference’s default is true).
status_lists: Map<String, Value>The status list credentials the host fetched, by URL. A URL missing here is a list that could not be fetched (status_unavailable).
max_depth: Option<usize>An explicit most links a delegation chain may have.
max_replay_window_seconds: f64Credentials valid this long or less are single use (seconds, > 0).
allowed_issuers: Option<Vec<String>>When given, only these issuers are accepted (a verifier that requires a trusted issuer).
chain_required_outside_roots: boolWith trusted roots named, refuse a credential without a delegation
chain unless a root issued it (REASON_CHAIN_REQUIRED), so leaving
the chain off never steps outside a grant. The reference applies it
when the caller (or a verifier object) named the roots, and not for
roots read from VOUCH_TRUSTED_ROOTS or the saved list.