MCPcopy Create free account
hub / github.com/docknetwork/crypto / BBSPlusError

Enum BBSPlusError

bbs_plus/src/error.rs:16–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#[derive(Debug)]
15#[cfg_attr(feature = "serde", derive(Serialize))]
16pub enum BBSPlusError {
17 CannotInvert0,
18 NoMessageToSign,
19 MessageCountIncompatibleWithSigParams(usize, usize),
20 /// Signature's `A` is 0
21 ZeroSignature,
22 InvalidSignature,
23 /// Pairing check failed during verification of proof of knowledge of signature
24 PairingCheckFailed,
25 /// 1st schnorr proof failed during verification of proof of knowledge of signature
26 FirstSchnorrVerificationFailed,
27 /// 2nd schnorr proof failed during verification of proof of knowledge of signature
28 SecondSchnorrVerificationFailed,
29 InvalidMsgIdxForResponse(usize),
30 #[cfg_attr(feature = "serde", serde(with = "ArkSerializationError"))]
31 Serialization(SerializationError),
32 SchnorrError(SchnorrError),
33 MessageIndicesMustBeUniqueAndSorted(InvalidPair<usize>),
34 MessageIndexIsOutOfBounds(IndexIsOutOfBounds),
35 OTError(OTError),
36 SenderIdCannotBeSameAsSelf(ParticipantId, ParticipantId),
37 AlreadyHaveCommitmentFromParticipant(ParticipantId),
38 MissingCommitmentFromParticipant(ParticipantId),
39 IncorrectNoOfCommitments(usize, usize),
40 MissingSharesFromParticipant(ParticipantId),
41 AlreadyHaveSharesFromParticipant(ParticipantId),
42 IncorrectNoOfShares(usize, usize),
43 IncorrectCommitment,
44 UnexpectedParticipant(ParticipantId),
45 MissingOTReceiverFor(ParticipantId),
46 MissingOTSenderFor(ParticipantId),
47 NotAMultiplicationParty2(ParticipantId),
48 NotAMultiplicationParty1(ParticipantId),
49 UnexpectedMultiplicationParty1(ParticipantId),
50 UnexpectedMultiplicationParty2(ParticipantId),
51 IncorrectEByParticipant(ParticipantId),
52 IncorrectSByParticipant(ParticipantId),
53 ParticipantCannotBePresentInOthers(ParticipantId),
54 NotABaseOTSender(ParticipantId),
55 NotABaseOTReceiver(ParticipantId),
56 AlreadyHaveSenderPubkeyFrom(ParticipantId),
57 AlreadyHaveReceiverPubkeyFrom(ParticipantId),
58 ReceiverNotReadyForChallengeFrom(ParticipantId),
59 AlreadyHaveChallengesFrom(ParticipantId),
60 SenderEitherNotReadyForResponseOrAlreadySentIt(ParticipantId),
61 ReceiverEitherNotReadyForHashedKeysOrAlreadyVerifiedIt(ParticipantId),
62 SSError(SSError),
63 MissingResponsesNeededForPartialSchnorrProofVerification,
64 MissingResponsesProvidedForFullSchnorrProofVerification,
65 NeedEitherPartialOrCompleteSchnorrResponse,
66 CommonIndicesFoundInRevealedAndSkip,
67}
68
69impl From<SchnorrError> for BBSPlusError {
70 fn from(e: SchnorrError) -> Self {

Callers 1

fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected