-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Use vendored copy of secp256k1lab
Co-authored-by: Sebastian Falbesoner <[email protected]>
- Loading branch information
1 parent
7451bf0
commit def1dfc
Showing
4 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[format] | ||
# Exclude the file taken from Bitcoin Core for now, in case we want to | ||
# contribute our changes back to upstream. | ||
exclude = ["secp256k1lab/secp256k1.py"] | ||
# Exclude vendored package. | ||
exclude = ["secp256k1lab/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
from pathlib import Path | ||
import sys | ||
|
||
|
||
__all__ = ["chilldkg"] | ||
|
||
# Prefer the vendored copy of secp256k1lab. | ||
sys.path.insert(0, str(Path(__file__).parent / "../secp256k1lab/src")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[mypy] | ||
# Include path to vendored copy of secp256k1lab, in order to | ||
# avoid "import-not-found" errors in mypy's `--strict` mode | ||
mypy_path = $MYPY_CONFIG_FILE_DIR/secp256k1lab/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters