# [−][src]Enum bulletproofs::errors::R1CSError

pub enum R1CSError {
InvalidGeneratorsLength,
FormatError,
VerificationError,
MissingAssignment,
description: String,
},
}

Represents an error during the proving or verifying of a constraint system.

XXX: should this be separate from a ProofError?

## Variants

InvalidGeneratorsLength

Occurs when there are insufficient generators for the proof.

FormatError

This error occurs when the proof encoding is malformed.

VerificationError

Occurs when verification of an R1CSProof fails.

MissingAssignment

Occurs when trying to use a missing variable assignment. Used by gadgets that build the constraint system to signal that a variable assignment is not provided when the prover needs it.

GadgetError

Occurs when a gadget receives an inconsistent input.

### Fields of GadgetError

description: String

The description of the reasons for the error.

## Blanket Implementations

### impl<T> Same<T> for T

#### type Output = T

Should always be Self

### impl<T> ToOwned for T where    T: Clone, [src]

#### type Owned = T

The resulting type after obtaining ownership.

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

#### type Error = !

The type returned in the event of a conversion error.

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

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.