pub enum VerifyError {
Block(BlockVerifyError),
MapProof {
error: MapProofError,
proof_description: ProofDescription,
},
ListProof {
error: ListProofError,
proof_description: ProofDescription,
},
ProofDisconnect(ProofDescription),
MissingKey(ProofDescription),
KeyMismatch(ProofDescription),
NoContents,
}
Error during WalletProof
verification.
Error verifying block header.
Error verifying one of MapProof
s included into the wallet proof.
Fields of MapProof
Cause of the verification failure.
Description of the proof where an error has occurred.
Error verifying one of ListProof
s included into the wallet proof.
Fields of ListProof
Cause of the verification failure.
Description of the proof where an error has occurred.
A ListProof
or MapProof
is disconnected from its parent. In other words, the root hash
of the index restored from the proof does not match one obtained from other proof data.
A ListProof
or MapProof
does not prove presence or absence of a key,
which it is expected to prove.
A Merkle proof proves existence of keys that do not match the plain data included into
to the proof.
For example, this error could occur if the proof mentions 3 new events in wallet history,
but the corresponding ListProof
includes only 2 of these events.
The proof shows existence of the requested wallet, but the events and unaccepted transfers
are missing from the proof.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn compat(self) -> Compat<Self> | |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
impl<T> AsFail for T where T: Fail, | |
fn as_fail(&self) -> &(dyn Fail + 'static) | |
Converts a reference to Self
into a dynamic trait object of Fail
.
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn compat(self) -> Compat<Self> | |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more