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

Enum OTError

oblivious_transfer/src/error.rs:9–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#[derive(Debug)]
8#[cfg_attr(feature = "serde", derive(Serialize))]
9pub enum OTError {
10 NeedNonZeroNumberOfOTs,
11 OTShouldHaveAtLeast2Messages(u16),
12 IncorrectNumberOfChoices(u16, u16),
13 InvalidChoice,
14 BaseOTKeySizeMustBeMultipleOf8(u16),
15 SecurityParameterShouldBeMultipleOf8(u16),
16 IncorrectReceiverPubKeySize(u16, u16),
17 IncorrectSenderPubKeySize(u16, u16),
18 NumberOfKeysExpectedToBe2(usize),
19 NeedNonZeroNumberOfDerivedKeys,
20 IncorrectNoOfChallenges(u16, u16),
21 IncorrectNoOfBaseOTChoices(u16, u16),
22 IncorrectNoOfResponses(u16, u16),
23 InvalidResponseAtIndex(u16),
24 InvalidHashedKeyAtIndex(u16),
25 IncorrectMessageBatchSize(u16, u16),
26 IncorrectNoOfMessages(u16),
27 IncorrectOTExtensionConfig(u16, u32),
28 MessageIsTooLong(usize),
29 TooManyChoices(usize),
30 MatrixSizeIsTooBig(u64),
31 IncorrectNumberOfBaseOTKeys(u16, u16),
32 IncorrectNumberOfOTExtensionChoices(usize, usize),
33 IncorrectSizeForU(usize, usize),
34 MissingConsistencyCheck(u16, u16),
35 ConsistencyCheckFailed(u16, u16),
36 IncorrectNoOfMessagesToEncrypt(usize, usize),
37 IncorrectNoOfEncryptionsToDecrypt(usize, usize),
38 IncorrectNoOfCorrelations(usize, usize),
39 RandomLinearCombinationCheckSizeIncorrect(u16, u16),
40 RandomLinearCombinationCheckFailed,
41 IncorrectBatchSize(usize, usize),
42 IncorrectRLCSize(usize, usize),
43 IncorrectCorrelationTagSize(usize, usize),
44 InvalidSchnorrProof,
45 SchnorrError(SchnorrError),
46 NotABaseOTSender(ParticipantId),
47 NotABaseOTReceiver(ParticipantId),
48 AlreadyHaveSenderPubkeyFrom(ParticipantId),
49 SenderIdCannotBeSameAsSelf(ParticipantId, ParticipantId),
50 AlreadyHaveReceiverPubkeyFrom(ParticipantId),
51 ReceiverNotReadyForChallengeFrom(ParticipantId),
52 AlreadyHaveChallengesFrom(ParticipantId),
53 SenderEitherNotReadyForResponseOrAlreadySentIt(ParticipantId),
54 ReceiverEitherNotReadyForHashedKeysOrAlreadyVerifiedIt(ParticipantId),
55 MissingOTReceiverFor(ParticipantId),
56 MissingOTSenderFor(ParticipantId),
57 NotAMultiplicationParty2(ParticipantId),
58 NotAMultiplicationParty1(ParticipantId),
59 AlreadyHaveCommitmentFromParticipant(ParticipantId),
60 IncorrectNoOfCommitments(usize, usize),
61 IncorrectNoOfShares(usize, usize),
62 MissingCommitmentFromParticipant(ParticipantId),
63 AlreadyHaveSharesFromParticipant(ParticipantId),
64 IncorrectCommitment,
65 UnexpectedParticipant(ParticipantId),
66 MissingSharesFromParticipant(ParticipantId),

Callers 4

fromMethod · 0.85
fromMethod · 0.85
initMethod · 0.85
fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected