Enum diem_crypto::traits::CryptoMaterialError [−][src]
pub enum CryptoMaterialError {
SerializationError,
DeserializationError,
ValidationError,
WrongLengthError,
CanonicalRepresentationError,
SmallSubgroupError,
PointNotOnCurveError,
BitVecError(String),
}
Expand description
An error type for key and signature validation issues, see ValidCryptoMaterial
.
This enum reflects there are two interesting causes of validation failure for the ingestion of key or signature material: deserialization errors (often, due to mangled material or curve equation failure for ECC) and validation errors (material recognizable but unacceptable for use, e.g. unsafe).
Variants
Struct to be signed does not serialize correctly.
Key or signature material does not deserialize correctly.
Key or signature material deserializes, but is otherwise not valid.
Key, threshold or signature material does not have the expected size.
Part of the signature or key is not canonical resulting to malleability issues.
A curve point (i.e., a public key) lies on a small group.
A curve point (i.e., a public key) does not satisfy the curve equation.
BitVecError(String)
BitVec errors in accountable multi-sig schemes.
Tuple Fields of BitVecError
0: String
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CryptoMaterialError
impl Send for CryptoMaterialError
impl Sync for CryptoMaterialError
impl Unpin for CryptoMaterialError
impl UnwindSafe for CryptoMaterialError
Blanket Implementations
Mutably borrows from an owned value. Read more