pub struct VerifyCommand {
pub attestation: String,
pub issuer_pk: Option<String>,
pub issuer_did: Option<String>,
pub trust: Option<CliTrustPolicy>,
pub roots_file: Option<PathBuf>,
pub require_capability: Option<String>,
pub witness_receipts: Option<PathBuf>,
pub witness_threshold: usize,
pub witness_keys: Vec<String>,
}Fields§
§attestation: StringPath to authorization JSON file, or “-” to read from stdin.
issuer_pk: Option<String>Issuer public key in hex format (64 hex chars = 32 bytes).
If provided, bypasses trust resolution and uses this key directly. Takes precedence over –issuer-did and trust policy.
issuer_did: Option<String>Issuer identity ID for trust-based key resolution.
Looks up the public key from pinned identity store or roots.json. Uses –trust policy to determine behavior for unknown identities.
trust: Option<CliTrustPolicy>Trust policy for unknown identities.
Resolution precedence:
- –issuer-pk (direct key, bypasses trust)
- Pinned identity store (~/.auths/known_identities.json)
- Repository roots.json (.auths/roots.json)
- TOFU prompt (if TTY) or explicit rejection (if non-TTY)
Defaults: tofu on TTY, explicit on non-TTY (CI).
roots_file: Option<PathBuf>Path to roots.json file for explicit trust.
Overrides default .auths/roots.json lookup.
require_capability: Option<String>Require attestation to have a specific capability (sign-commit, sign-release, manage-members, rotate-keys).
witness_receipts: Option<PathBuf>Path to witness receipts JSON file.
witness_threshold: usizeWitness quorum threshold (default: 1).
witness_keys: Vec<String>Witness public keys as DID:hex pairs (e.g., “did:key:z6Mk…:abcd1234…”).
Trait Implementations§
Source§impl Args for VerifyCommand
impl Args for VerifyCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for VerifyCommand
impl Clone for VerifyCommand
Source§fn clone(&self) -> VerifyCommand
fn clone(&self) -> VerifyCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for VerifyCommand
impl CommandFactory for VerifyCommand
Source§impl Debug for VerifyCommand
impl Debug for VerifyCommand
Source§impl FromArgMatches for VerifyCommand
impl FromArgMatches for VerifyCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.