-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathown_exceptions.py
59 lines (39 loc) · 962 Bytes
/
own_exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
class VerificationFailed(Exception):
pass
class InvalidTransaction(Exception):
pass
class UnsignedTransaction(InvalidTransaction):
pass
class InvalidNonce(InvalidTransaction):
pass
class InsufficientBalance(InvalidTransaction):
pass
class UncategorizedTransaction(InvalidTransaction):
pass
class InvalidCategory(InvalidTransaction):
pass
class InvalidBlock(Exception):
pass
class UnsignedBlock(InvalidBlock):
pass
class InvalidBlockSigner(InvalidBlock):
pass
class DkgBlockRequiresGroupKey(Exception):
pass
#For DKG and BLS
#DKG errors
class DkgAddContributionSharesError(Exception):
pass
class DkgAddVerificationVectorsError(Exception):
pass
class DkgGenKeysError(Exception):
pass
class DkgGenerateSecretKeyShareError(Exception):
pass
#BLS Errors
class BlsInvalidGroupSignature(Exception):
pass
class BlsSignError(Exception):
pass
class BlsRecoverError(Exception):
pass