Add a vendored copy of the secp256k1lab library (master branch, commit a265da139aea27386085a2a8760f8698e1bda64e) that the half-aggregation reference implementation and test vector scripts depend on.
1.2 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
Added
-
Added new methods
Scalar.from_int_nonzero_checkedandScalar.from_bytes_nonzero_checkedthat ensure a constructed scalar is in the range0 < s < N(i.e. is non-zero and within the group order) and throw aValueErrorotherwise. This is e.g. useful for ensuring that newly generated secret keys or nonces are valid without having to do the non-zero check manually. The already existing methodsScalar.from_int_checkedandScalar.from_bytes_checkederror on overflow, but not on zero, i.e. they only ensure0 <= s < N. -
Added a new method
GE.from_bytes_compressed_with_infinityto parse a compressed public key (33 bytes) to a group element, where the all-zeros bytestring maps to the point at infinity. This is the counterpart to the already existing serialization methodGE.to_bytes_compressed_with_infinity.
[1.0.0] - 2025-03-31
Initial release.