Enum dusk_blindbid::BlindBidError[][src]

pub enum BlindBidError {
    InvalidScoreFieldsLen,
    ExpiredBid,
    MaximumBidValueExceeded {
        max_val: JubJubScalar,
        found: JubJubScalar,
    },
    MinimumBidValueUnreached {
        min_val: JubJubScalar,
        found: JubJubScalar,
    },
    WrongSecretProvided,
    IOError,
    SerializationError(DuskBytesError),
    PoseidonError(PoseidonError),
}
Expand description

Compilation of the erros that blindbid procedures might end up producing.

Variants

InvalidScoreFieldsLen

Error for the cases when we the score results are too large to fit inside a Scalar.

ExpiredBid

Error that happens when you try to generate a Score for a Bid has already expired.

MaximumBidValueExceeded

Error for the cases when we the provided Bid value is bigger than the maximum allowed by the specs..

Show fields

Fields of MaximumBidValueExceeded

max_val: JubJubScalar

The maximum bid_value allowed

found: JubJubScalar

The expected length

MinimumBidValueUnreached

Error for the cases when we the provided Bid value is lower than the minimum allowed by the specs..

Show fields

Fields of MinimumBidValueUnreached

min_val: JubJubScalar

The minimum bid_value required

found: JubJubScalar

The expected length

WrongSecretProvided

Error when there is a decrypt attempt with the wrong secret

IOError

Invalid encoding/decoding

SerializationError(DuskBytesError)

Dusk-bytes serialization error

PoseidonError(PoseidonError)

Poseidon lib error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Return a reference to the key of the leaf type

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.