-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CHANGELOG and several housekeeping files (#53)
- Loading branch information
1 parent
1223fe4
commit 786ef7f
Showing
19 changed files
with
222 additions
and
77 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# See https://github.com/DavidAnson/markdownlint#rules--aliases for list of markdown lint codes | ||
default: true | ||
# MD01 lint blocks having header's incrementing by more than # at a time. | ||
MD001: false | ||
MD007: { indent: 4 } | ||
# MD013 blocks long lines | ||
MD013: false | ||
MD024: { siblings_only: true } | ||
MD025: false | ||
# MD033 lint blocks HTML in MD | ||
MD033: false | ||
# MD036 no-emphasis-as-heading | ||
MD036: false | ||
MD041: false |
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,26 @@ | ||
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ | ||
v ✰ Thanks for creating a PR! ✰ | ||
v Before hitting that submit button please review the checkboxes. | ||
v If a checkbox is n/a - please still include it but + a little note why | ||
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> | ||
|
||
## Description | ||
|
||
<!-- Add a description of the changes that this PR introduces and the files that | ||
are the most critical to review. | ||
--> | ||
|
||
closes: #XXXX | ||
|
||
--- | ||
|
||
Before we can merge this PR, please make sure that all the following items have been | ||
checked off. If any of the checklist items are not applicable, please leave them but | ||
write a little note why. | ||
|
||
- [ ] Targeted PR against correct branch (main) | ||
- [ ] Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work. | ||
- [ ] Wrote unit tests | ||
- [ ] Updated relevant documentation in the code | ||
- [ ] Added a relevant changelog entry to the `Pending` section in `CHANGELOG.md` | ||
- [ ] Re-reviewed `Files changed` in the Github PR explorer |
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,20 @@ | ||
name: Linkify Changelog | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
linkify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Add links | ||
run: python3 scripts/linkify_changelog.py CHANGELOG.md | ||
- name: Commit | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "Linkify Changelog" | ||
git push |
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,34 @@ | ||
name: Lint | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "**.md" | ||
pull_request: | ||
paths: | ||
- "**.md" | ||
|
||
jobs: | ||
build: | ||
name: Markdown linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Lint Code Base | ||
uses: docker://github/super-linter:latest | ||
env: | ||
LINTER_RULES_PATH: .github | ||
VALIDATE_ALL_CODEBASE: true | ||
DEFAULT_BRANCH: master | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_MD: true | ||
MARKDOWN_CONFIG_FILE: .markdownlint.yml | ||
VALIDATE_PROTOBUF: false | ||
VALIDATE_JSCPD: false | ||
# use Python Pylint as the only linter to avoid conflicts | ||
VALIDATE_PYTHON_BLACK: false | ||
VALIDATE_PYTHON_FLAKE8: false | ||
VALIDATE_PYTHON_ISORT: false | ||
VALIDATE_PYTHON_MYPY: false |
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,33 @@ | ||
## Pending | ||
|
||
### Breaking changes | ||
|
||
- [\#30](https://github.com/arkworks-rs/crypto-primitives/pull/30) Refactor the Merkle tree to separate the leaf hash and two-to-one hash. | ||
|
||
### Features | ||
|
||
- [\#38](https://github.com/arkworks-rs/crypto-primitives/pull/38) Add a signature verification trait `SigVerifyGadget`. | ||
- [\#44](https://github.com/arkworks-rs/crypto-primitives/pull/44) Add basic ElGamal encryption gadgets. | ||
- [\#48](https://github.com/arkworks-rs/crypto-primitives/pull/48) Add `CanonicalSerialize` and `CanonicalDeserialize` to `Path` and `CRH` outputs. | ||
|
||
### Improvements | ||
|
||
### Bug fixes | ||
|
||
## v0.2.0 | ||
|
||
### Breaking changes | ||
|
||
### Features | ||
|
||
- [\#2](https://github.com/arkworks-rs/crypto-primitives/pull/2) Add the `SNARK` gadget traits. | ||
- [\#3](https://github.com/arkworks-rs/crypto-primitives/pull/3) Add unchecked allocation for `ProofVar` and `VerifyingKeyVar`. | ||
- [\#4](https://github.com/arkworks-rs/crypto-primitives/pull/4) Add `verifier_size` to `SNARKGadget`. | ||
- [\#6](https://github.com/arkworks-rs/crypto-primitives/pull/6) Add `IntoIterator` for SNARK input gadgets. | ||
- [\#28](https://github.com/arkworks-rs/crypto-primitives/pull/28) Adds Poseidon CRH w/ constraints. | ||
|
||
### Improvements | ||
|
||
### Bug fixes | ||
|
||
## v0.1.0 (Initial release of arkworks/crypto-primitives) |
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
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
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
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
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
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
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,30 @@ | ||
import fileinput | ||
import os | ||
import re | ||
import sys | ||
|
||
# Set this to the name of the repo, if you don't want it to be read from the filesystem. | ||
# It assumes the changelog file is in the root of the repo. | ||
repo_name = "" | ||
|
||
# This script goes through the provided file, and replaces any " \#<number>", | ||
# with the valid mark down formatted link to it. e.g. | ||
# " [\#number](https://github.com/arkworks-rs/template/pull/<number>) | ||
# Note that if the number is for a an issue, github will auto-redirect you when you click the link. | ||
# It is safe to run the script multiple times in succession. | ||
# | ||
# Example usage $ python3 linkify_changelog.py ../CHANGELOG.md | ||
changelog_path = sys.argv[1] | ||
if repo_name == "": | ||
path = os.path.abspath(changelog_path) | ||
components = path.split(os.path.sep) | ||
repo_name = components[-2] | ||
|
||
for line in fileinput.input(inplace=True): | ||
line = re.sub( | ||
r"\- #([0-9]*)", | ||
r"- [\#\1](https://github.com/arkworks-rs/" + repo_name + r"/pull/\1)", | ||
line.rstrip(), | ||
) | ||
# edits the current file | ||
print(line) |
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
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
Oops, something went wrong.