File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ import sys
2
+
3
+
1
4
__all__ = ["chilldkg" ]
5
+
6
+ # Prefer the vendored copy of secp256k1proto.
7
+ sys .path .append ("secp256k1proto/src" )
Original file line number Diff line number Diff line change 7
7
from typing import Tuple , List , Optional
8
8
from secrets import token_bytes as random_bytes
9
9
10
- from secp256k1proto .secp256k1 import GE , G , Scalar
11
- from secp256k1proto .keys import pubkey_gen_plain
12
-
13
10
from chilldkg_ref .util import (
14
11
FaultyParticipantOrCoordinatorError ,
15
12
FaultyCoordinatorError ,
21
18
import chilldkg_ref .encpedpop as encpedpop
22
19
import chilldkg_ref .chilldkg as chilldkg
23
20
21
+ # Import from secp256k1proto after the chilldkg_ref imports because the latter
22
+ # modifies sys.path to make sure the vendored copy of secp256k1proto is found.
23
+ from secp256k1proto .secp256k1 import GE , G , Scalar
24
+ from secp256k1proto .keys import pubkey_gen_plain
25
+
24
26
from example import simulate_chilldkg_full as simulate_chilldkg_full_example
25
27
26
28
You can’t perform that action at this time.
0 commit comments