Skip to content

Commit

Permalink
Bump secp256k1 to v0.4.0 (#19)
Browse files Browse the repository at this point in the history
* Bump secp256k1 to v0.4.0

* Setuptools fix
  • Loading branch information
giacomocaironi authored Dec 3, 2023
1 parent 55f5fef commit 48a0d56
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -27,7 +27,7 @@ repos:
# - id: name-tests-test
- id: check-toml
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.8.1
rev: v0.11.0
hooks:
- id: markdownlint-cli2-fix
name: markdownlint-cli2-fix (in place fixes)
Expand All @@ -38,13 +38,13 @@ repos:
args: [--notice=COPYRIGHT]
files: python
- repo: https://github.com/asottile/pyupgrade
rev: v3.9.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
# exclude: *fixtures
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.0
rev: v2.2.1
hooks:
- id: autoflake
args:
Expand Down Expand Up @@ -81,7 +81,7 @@ repos:
# https://pre-commit.com/#top_level-default_language_version
# language_version: python3.11
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [Flake8-pyproject]
Expand All @@ -92,6 +92,6 @@ repos:
# disable B101 (Test for use of assert)
args: ["-s", "B101"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
rev: v1.7.1
hooks:
- id: mypy
10 changes: 9 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

Notable changes to the codebase are documented here.

## v0.4.0 (unreleased)
## v0.5.0 (unreleased)

Major changes include:

## v0.4.0

Major changes include:

- Wrapped
[libsecp256k1 0.4.0](https://github.com/bitcoin-core/secp256k1/releases/tag/v0.4.0)
(199d27c)

## v0.3.0

Major changes include:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name="btclib_libsecp256k1"
version="0.3.0"
version="0.4.0"
description="Simple python bindings to libsecp256k1"
readme = "README.md"
license = {text = "MIT"}
Expand Down Expand Up @@ -41,7 +41,7 @@ issues = "https://github.com/btclib-org/btclib_libsecp256k1/issues"
pull_requests = "https://github.com/btclib-org/btclib_libsecp256k1/pulls"

[build-system]
requires = ["hatchling", "cffi>=1.0.0"]
requires = ["hatchling", "cffi>=1.0.0", 'setuptools; python_version>="3.12"']
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel.hooks.custom]
Expand Down
2 changes: 1 addition & 1 deletion secp256k1
Submodule secp256k1 updated 64 files
+0 −409 .cirrus.yml
+33 −0 .github/actions/install-homebrew-valgrind/action.yml
+49 −0 .github/actions/run-in-docker-action/action.yml
+806 −0 .github/workflows/ci.yml
+21 −1 CHANGELOG.md
+15 −5 CMakeLists.txt
+9 −5 Makefile.am
+26 −12 ci/ci.sh
+55 −17 ci/linux-debian.Dockerfile
+21 −12 configure.ac
+483 −0 doc/ellswift.md
+33 −6 doc/release-process.md
+23 −20 examples/CMakeLists.txt
+1 −1 examples/examples_util.h
+35 −28 include/secp256k1.h
+2 −2 include/secp256k1_ecdh.h
+200 −0 include/secp256k1_ellswift.h
+12 −14 include/secp256k1_extrakeys.h
+1 −1 include/secp256k1_schnorrsig.h
+1 −1 sage/group_prover.sage
+6 −3 src/CMakeLists.txt
+57 −1 src/bench.c
+2 −5 src/bench_ecmult.c
+7 −0 src/checkmem.h
+35 −0 src/ctime_tests.c
+4 −17 src/ecdsa_impl.h
+2 −6 src/eckey_impl.h
+1 −1 src/ecmult.h
+1 −1 src/ecmult_const_impl.h
+3 −0 src/ecmult_gen_compute_table_impl.h
+2 −5 src/ecmult_gen_impl.h
+5 −7 src/ecmult_impl.h
+31 −18 src/field.h
+2 −2 src/field_10x26_impl.h
+2 −2 src/field_5x52_impl.h
+27 −35 src/field_impl.h
+16 −1 src/group.h
+147 −49 src/group_impl.h
+1 −1 src/hash_impl.h
+5 −0 src/int128_struct_impl.h
+5 −0 src/modules/ellswift/Makefile.am.include
+106 −0 src/modules/ellswift/bench_impl.h
+589 −0 src/modules/ellswift/main_impl.h
+39 −0 src/modules/ellswift/tests_exhaustive_impl.h
+436 −0 src/modules/ellswift/tests_impl.h
+1 −1 src/modules/extrakeys/tests_exhaustive_impl.h
+1 −1 src/modules/schnorrsig/main_impl.h
+5 −5 src/modules/schnorrsig/tests_exhaustive_impl.h
+0 −11 src/modules/schnorrsig/tests_impl.h
+3 −3 src/precompute_ecmult.c
+0 −1 src/precompute_ecmult_gen.c
+0 −1 src/precomputed_ecmult.c
+1 −0 src/precomputed_ecmult.h
+0 −1 src/precomputed_ecmult_gen.c
+3 −0 src/scalar.h
+80 −15 src/scalar_4x64_impl.h
+88 −24 src/scalar_8x32_impl.h
+19 −0 src/scalar_impl.h
+68 −2 src/scalar_low_impl.h
+6 −2 src/secp256k1.c
+17 −48 src/testrand_impl.h
+283 −274 src/tests.c
+26 −10 src/tests_exhaustive.c
+37 −8 src/util.h

0 comments on commit 48a0d56

Please sign in to comment.