Skip to content

Commit 2348acf

Browse files
ValarDragonPratyush
authored andcommitted
Update changelog for release
1 parent b8a268d commit 2348acf

File tree

3 files changed

+74
-23
lines changed

3 files changed

+74
-23
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Linkify Changelog
2+
3+
on:
4+
workflow_dispatch
5+
6+
jobs:
7+
linkify:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Add links
13+
run: python3 scripts/linkify_changelog.py CHANGELOG.md
14+
- name: Commit
15+
run: |
16+
git config user.name github-actions
17+
git config user.email [email protected]
18+
git add .
19+
git commit -m "Linkify Changelog"
20+
git push

CHANGELOG.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
## Pending
1+
## v0.2.0
22

33
### Breaking changes
4-
- #12 Make the output of the `ToBitsGadget` impl for `FpVar` fixed-size
5-
- #48 Add `Clone` trait bound to `CondSelectGadget`.
4+
- [\#12](https://github.com/arkworks-rs/r1cs-std/pull/12) Make the output of the `ToBitsGadget` impl for `FpVar` fixed-size
5+
- [\#48](https://github.com/arkworks-rs/r1cs-std/pull/48) Add `Clone` trait bound to `CondSelectGadget`.
66

77
### Features
8-
- #21 Add `UInt128`
9-
- #50 Add `DensePolynomialVar`
8+
- [\#21](https://github.com/arkworks-rs/r1cs-std/pull/21) Add `UInt128`
9+
- [\#50](https://github.com/arkworks-rs/r1cs-std/pull/50) Add `DensePolynomialVar`
1010

1111
### Improvements
12-
- #5 Speedup BLS-12 pairing
13-
- #13 Add `ToConstraintFieldGadget` to `ProjectiveVar`
14-
- #15, #16 Allow `cs` to be `None` when converting a Montgomery point into a Twisted Edwards point
15-
- #20 Add `CondSelectGadget` impl for `UInt`s
16-
- #22 Reduce density of `three_bit_cond_neg_lookup`
17-
- #23 Reduce allocations in `UInt`s
18-
- #33 Speedup scalar multiplication by a constant
19-
- #35 Construct a `FpVar` from bits
20-
- #36 Implement `ToConstraintFieldGadget` for `Vec<Uint8>`
21-
- #40, #43 Faster scalar multiplication for Short Weierstrass curves by relying on affine formulae
22-
- #46 Add mux gadget as an auto-impl in `CondSelectGadget` to support random access of an array
12+
- [\#5](https://github.com/arkworks-rs/r1cs-std/pull/5) Speedup BLS-12 pairing
13+
- [\#13](https://github.com/arkworks-rs/r1cs-std/pull/13) Add `ToConstraintFieldGadget` to `ProjectiveVar`
14+
- [\#15](https://github.com/arkworks-rs/r1cs-std/pull/15), #16 Allow `cs` to be `None` when converting a Montgomery point into a Twisted Edwards point
15+
- [\#20](https://github.com/arkworks-rs/r1cs-std/pull/20) Add `CondSelectGadget` impl for `UInt`s
16+
- [\#22](https://github.com/arkworks-rs/r1cs-std/pull/22) Reduce density of `three_bit_cond_neg_lookup`
17+
- [\#23](https://github.com/arkworks-rs/r1cs-std/pull/23) Reduce allocations in `UInt`s
18+
- [\#33](https://github.com/arkworks-rs/r1cs-std/pull/33) Speedup scalar multiplication by a constant
19+
- [\#35](https://github.com/arkworks-rs/r1cs-std/pull/35) Construct a `FpVar` from bits
20+
- [\#36](https://github.com/arkworks-rs/r1cs-std/pull/36) Implement `ToConstraintFieldGadget` for `Vec<Uint8>`
21+
- [\#40](https://github.com/arkworks-rs/r1cs-std/pull/40), #43 Faster scalar multiplication for Short Weierstrass curves by relying on affine formulae
22+
- [\#46](https://github.com/arkworks-rs/r1cs-std/pull/46) Add mux gadget as an auto-impl in `CondSelectGadget` to support random access of an array
2323

2424
### Bug fixes
25-
- #8 Fix bug in `three_bit_cond_neg_lookup` when using a constant lookup bit
26-
- #9 Fix bug in `short_weierstrass::ProjectiveVar::to_affine`
27-
- #29 Fix `to_non_unique_bytes` for `BLS12::G1Prepared`
28-
- #34 Fix `mul_by_inverse` for constants
29-
- #42 Fix regression in `mul_by_inverse` constraint count
30-
- #47 Compile with `panic='abort'` in release mode, for safety of the library across FFI boundaries
31-
- #57 Clean up `UInt` docs
25+
- [\#8](https://github.com/arkworks-rs/r1cs-std/pull/8) Fix bug in `three_bit_cond_neg_lookup` when using a constant lookup bit
26+
- [\#9](https://github.com/arkworks-rs/r1cs-std/pull/9) Fix bug in `short_weierstrass::ProjectiveVar::to_affine`
27+
- [\#29](https://github.com/arkworks-rs/r1cs-std/pull/29) Fix `to_non_unique_bytes` for `BLS12::G1Prepared`
28+
- [\#34](https://github.com/arkworks-rs/r1cs-std/pull/34) Fix `mul_by_inverse` for constants
29+
- [\#42](https://github.com/arkworks-rs/r1cs-std/pull/42) Fix regression in `mul_by_inverse` constraint count
30+
- [\#47](https://github.com/arkworks-rs/r1cs-std/pull/47) Compile with `panic='abort'` in release mode, for safety of the library across FFI boundaries
31+
- [\#57](https://github.com/arkworks-rs/r1cs-std/pull/57) Clean up `UInt` docs
3232

3333
## v0.1.0
3434

scripts/linkify_changelog.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import re
2+
import sys
3+
import fileinput
4+
import os
5+
6+
# Set this to the name of the repo, if you don't want it to be read from the filesystem.
7+
# It assumes the changelog file is in the root of the repo.
8+
repo_name = ""
9+
10+
# This script goes through the provided file, and replaces any " \#<number>",
11+
# with the valid mark down formatted link to it. e.g.
12+
# " [\#number](https://github.com/arkworks-rs/template/pull/<number>)
13+
# Note that if the number is for a an issue, github will auto-redirect you when you click the link.
14+
# It is safe to run the script multiple times in succession.
15+
#
16+
# Example usage $ python3 linkify_changelog.py ../CHANGELOG.md
17+
if len(sys.argv) < 2:
18+
print("Must include path to changelog as the first argument to the script")
19+
print("Example Usage: python3 linkify_changelog.py ../CHANGELOG.md")
20+
exit()
21+
22+
changelog_path = sys.argv[1]
23+
if repo_name == "":
24+
path = os.path.abspath(changelog_path)
25+
components = path.split(os.path.sep)
26+
repo_name = components[-2]
27+
28+
for line in fileinput.input(inplace=True):
29+
line = re.sub(r"\- #([0-9]*)", r"- [\\#\1](https://github.com/arkworks-rs/" + repo_name + r"/pull/\1)", line.rstrip())
30+
# edits the current file
31+
print(line)

0 commit comments

Comments
 (0)