[][src]Enum private_currency::api::VerifyError

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.

Variants

Error verifying block header.

Error verifying one of MapProofs 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 ListProofs 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.

Trait Implementations

impl From<BlockVerifyError> for VerifyError
[src]

impl Display for VerifyError
[src]

impl Debug for VerifyError
[src]

impl Fail for VerifyError
[src]

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Auto Trait Implementations

impl Send for VerifyError

impl Sync for VerifyError

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

impl<T> Erased for T

impl<T> Erased for T

impl<T> Same for T

Should always be Self