pub enum ResolveError {
Parse(String),
Transport(String),
Rpc(String),
NotFound,
RootRequired,
VerifyFailed(String),
DecryptFailed,
}Expand description
A hard, fail-closed resolution failure. Distinct from the network-unreachable
state, which is a successful crate::ResolvedData carrying a branded page.
Variants§
Parse(String)
The input was not a syntactically valid DIG URN.
Transport(String)
A transport-level failure talking to a specific endpoint (DNS, TLS,
connection, timeout, malformed HTTP). Not the same as “every tier down”
(that is the unreachable state), nor a not-found (that is Self::NotFound).
Rpc(String)
The RPC endpoint returned a JSON-RPC / protocol error, or a malformed response the resolver cannot interpret.
NotFound
The resource does not exist in the store at the resolved root. A hard, fail-closed verdict — never masked behind a friendly page.
RootRequired
A rootless URN was resolved over the untrusted rpc tier, where the trust root
cannot be established without trusting the gateway. Pin a root in the URN
(urn:dig:chia:<store>:<root>/<path>), or resolve via a loopback node. A
hard, fail-closed error — the resolver will not verify against a
gateway-asserted root.
VerifyFailed(String)
The served ciphertext failed integrity verification against the chain-anchored root (tampered bytes, a non-chaining proof, or a decoy from a wrong store). FAIL-CLOSED: the bytes are discarded, never returned.
DecryptFailed
The verified ciphertext did not decrypt under the URN’s key (AES-256-GCM-SIV tag failure — wrong key/salt or corruption). FAIL-CLOSED.
Trait Implementations§
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()