Skip to content

Commit 68e8759

Browse files
authored
Merge pull request #82 from theStack/rename_secp256k1proto_secp256k1lab
python: rename secp256k1proto -> secp256k1lab
2 parents 3bcc648 + cb8fc11 commit 68e8759

15 files changed

+17
-17
lines changed

python/.ruff.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[format]
22
# Exclude the file taken from Bitcoin Core for now, in case we want to
33
# contribute our changes back to upstream.
4-
exclude = ["secp256k1proto/secp256k1.py"]
4+
exclude = ["secp256k1lab/secp256k1.py"]

python/chilldkg_ref/chilldkg.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
from secrets import token_bytes as random_bytes
1212
from typing import Any, Tuple, List, NamedTuple, NewType, Optional, NoReturn, Dict
1313

14-
from secp256k1proto.secp256k1 import Scalar, GE
15-
from secp256k1proto.bip340 import schnorr_sign, schnorr_verify
16-
from secp256k1proto.keys import pubkey_gen_plain
17-
from secp256k1proto.util import bytes_from_int
14+
from secp256k1lab.secp256k1 import Scalar, GE
15+
from secp256k1lab.bip340 import schnorr_sign, schnorr_verify
16+
from secp256k1lab.keys import pubkey_gen_plain
17+
from secp256k1lab.util import bytes_from_int
1818

1919
from .vss import VSSCommitment
2020
from . import encpedpop

python/chilldkg_ref/encpedpop.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from typing import Tuple, List, NamedTuple, NoReturn
22

3-
from secp256k1proto.secp256k1 import Scalar, GE
4-
from secp256k1proto.ecdh import ecdh_libsecp256k1
5-
from secp256k1proto.keys import pubkey_gen_plain
6-
from secp256k1proto.util import int_from_bytes
3+
from secp256k1lab.secp256k1 import Scalar, GE
4+
from secp256k1lab.ecdh import ecdh_libsecp256k1
5+
from secp256k1lab.keys import pubkey_gen_plain
6+
from secp256k1lab.util import int_from_bytes
77

88
from . import simplpedpop
99
from .util import (

python/chilldkg_ref/simplpedpop.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from secrets import token_bytes as random_bytes
22
from typing import List, NamedTuple, NewType, Tuple, Optional, NoReturn
33

4-
from secp256k1proto.bip340 import schnorr_sign, schnorr_verify
5-
from secp256k1proto.secp256k1 import GE, Scalar
4+
from secp256k1lab.bip340 import schnorr_sign, schnorr_verify
5+
from secp256k1lab.secp256k1 import GE, Scalar
66
from .util import (
77
BIP_TAG,
88
FaultyParticipantOrCoordinatorError,

python/chilldkg_ref/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any
22

3-
from secp256k1proto.util import tagged_hash
3+
from secp256k1lab.util import tagged_hash
44

55

66
BIP_TAG = "BIP DKG/"

python/chilldkg_ref/vss.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from typing import List, Tuple
44

5-
from secp256k1proto.secp256k1 import GE, G, Scalar
6-
from secp256k1proto.util import tagged_hash
5+
from secp256k1lab.secp256k1 import GE, G, Scalar
6+
from secp256k1lab.util import tagged_hash
77

88
from .util import tagged_hash_bip_dkg
99

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

python/tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from typing import Tuple, List, Optional
88
from secrets import token_bytes as random_bytes
99

10-
from secp256k1proto.secp256k1 import GE, G, Scalar
11-
from secp256k1proto.keys import pubkey_gen_plain
10+
from secp256k1lab.secp256k1 import GE, G, Scalar
11+
from secp256k1lab.keys import pubkey_gen_plain
1212

1313
from chilldkg_ref.util import (
1414
FaultyParticipantOrCoordinatorError,

python/tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ ruff check --quiet || true
1919
ruff format --diff --quiet || true
2020
mypy --no-error-summary . || true
2121
# Be more strict in the reference code
22-
mypy --no-error-summary --strict --untyped-calls-exclude=secp256k1proto -p chilldkg_ref --follow-imports=silent || true
22+
mypy --no-error-summary --strict --untyped-calls-exclude=secp256k1lab -p chilldkg_ref --follow-imports=silent || true
2323

2424
python3 tests.py

0 commit comments

Comments
 (0)