pub enum Error {
Show 17 variants
Upstream(UpstreamError),
CannotProveSurjection,
InvalidSurjectionProof,
InvalidPedersenCommitment,
CannotMakeRangeProof,
InvalidRangeProof,
InvalidGenerator,
InvalidTweakLength,
TweakOutOfBounds,
InvalidEcdsaAdaptorSignature,
CannotDecryptAdaptorSignature,
CannotRecoverAdaptorSecret,
CannotVerifyAdaptorSignature,
InvalidWhitelistSignature,
InvalidPakList,
CannotCreateWhitelistSignature,
InvalidWhitelistProof,
}Expand description
An ECDSA error
Variants§
Upstream(UpstreamError)
Calling through to secp256k1 resulted in an error.
CannotProveSurjection
Failed to produce a surjection proof because of an internal error within libsecp256k1-zkp
InvalidSurjectionProof
Given bytes don’t represent a valid surjection proof
InvalidPedersenCommitment
Given bytes don’t represent a valid pedersen commitment
CannotMakeRangeProof
Failed to produce a range proof because of an internal error within libsecp256k1-zkp
InvalidRangeProof
Given range proof does not prove that the commitment is within a range
InvalidGenerator
Bad generator
InvalidTweakLength
Tweak must of len 32
TweakOutOfBounds
Tweak must be less than secp curve order
InvalidEcdsaAdaptorSignature
Given bytes don’t represent a valid adaptor signature
CannotDecryptAdaptorSignature
Failed to decrypt an adaptor signature because of an internal error within libsecp256k1-zkp
CannotRecoverAdaptorSecret
Failed to recover an adaptor secret from an adaptor signature because of an internal error within libsecp256k1-zkp
CannotVerifyAdaptorSignature
Given adaptor signature is not valid for the provided combination of public key, encryption key and message
InvalidWhitelistSignature
Given bytes don’t represent a valid whitelist signature
InvalidPakList
Invalid PAK list
CannotCreateWhitelistSignature
Couldn’t create whitelist signature with the given data.
InvalidWhitelistProof
The given whitelist signature doesn’t correctly prove inclusion in the whitelist.
Trait Implementations§
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
std only.