pub struct DecisionInput {Show 22 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 slhdsa128_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 slhdsa128_keys: BTreeMap<String, Vec<u8>>,
pub documents: BTreeMap<String, Value>,
pub trusted_roots: Option<TrustedRoots>,
pub require_post_quantum: bool,
pub require_suites: Vec<Suite>,
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,
pub grant_chain_checked_apart: 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.
slhdsa128_public_key: Option<Option<Vec<u8>>>The issuer’s SLH-DSA-SHA2-128s key handed over by the caller:
Some(None) is a key that is not a 32-byte SLH-DSA key. Supplying one
requires the SLH-DSA 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.
slhdsa128_keys: BTreeMap<String, Vec<u8>>SLH-DSA-SHA2-128s keys (32 bytes) by DID, from the caller’s SLH-DSA 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.
require_suites: Vec<Suite>The cryptosuites the credential’s proofs must include (the
verifier’s credential.requireSuites setting). Empty: no such rule.
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. A host that applies its
own chain rule turns it off in the request.
grant_chain_checked_apart: boolThe host verified the grant chain handed over beside a sub-grant
(one that names its parent by parentGrantDigest) on its own. Only
then does a sub-grant from a non-root skip
REASON_CHAIN_REQUIRED; a digest alone proves nothing, since it
is not looked up here.