pub struct VerifierConfig {Show 14 fields
pub network: Option<NetworkName>,
pub registry_address: Option<Address>,
pub rpc_url: Option<String>,
pub max_age_ms: Option<u64>,
pub cache_ttl_ms: Option<u64>,
pub max_agents_per_human: Option<u64>,
pub include_credentials: Option<bool>,
pub require_self_provider: Option<bool>,
pub enable_replay_protection: Option<bool>,
pub replay_cache_max_entries: Option<usize>,
pub minimum_age: Option<u64>,
pub require_ofac_passed: Option<bool>,
pub allowed_nationalities: Option<Vec<String>>,
pub rate_limit_config: Option<RateLimitConfig>,
}Expand description
Configuration for creating a SelfAgentVerifier.
Fields§
§network: Option<NetworkName>Network to use: Mainnet (default) or Testnet.
registry_address: Option<Address>Override: custom registry address.
rpc_url: Option<String>Override: custom RPC URL.
max_age_ms: Option<u64>Max age for signed timestamps in ms (default: 5 min).
cache_ttl_ms: Option<u64>TTL for on-chain status cache in ms (default: 1 min).
max_agents_per_human: Option<u64>Max agents allowed per human (default: 1). Set to 0 to disable.
include_credentials: Option<bool>Include ZK-attested credentials in verification result (default: false).
require_self_provider: Option<bool>Require proof-of-human was provided by Self Protocol (default: true).
enable_replay_protection: Option<bool>Reject duplicate signatures within validity window (default: true).
replay_cache_max_entries: Option<usize>Max replay cache entries before pruning (default: 10k).
minimum_age: Option<u64>Minimum age for agent’s human (credential check, default: disabled).
require_ofac_passed: Option<bool>Require OFAC screening passed (credential check, default: false).
allowed_nationalities: Option<Vec<String>>Require nationality in list (credential check, default: disabled).
rate_limit_config: Option<RateLimitConfig>In-memory per-agent rate limiting.
Trait Implementations§
Source§impl Clone for VerifierConfig
impl Clone for VerifierConfig
Source§fn clone(&self) -> VerifierConfig
fn clone(&self) -> VerifierConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifierConfig
impl Debug for VerifierConfig
Auto Trait Implementations§
impl Freeze for VerifierConfig
impl RefUnwindSafe for VerifierConfig
impl Send for VerifierConfig
impl Sync for VerifierConfig
impl Unpin for VerifierConfig
impl UnsafeUnpin for VerifierConfig
impl UnwindSafe for VerifierConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more