-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pr/codeesura/1
* main: . feat(optimization): simplification of `verify_sha256_pkcs1v15` logic feat: add support for public exponent 3 . . chore: add CI adding suggestions docs: update readme with benchmark results updated example and readme stopped being a lazy ass and did the rest of it reorg, adding an example, refactoring the readme Add benchmarks section Add installation section Add dependencies section Add example section TODOs Supplement parameter parsing section Add signature gathering section swithc to bignum 0.3.0 and remove usage of u64 num generics
- Loading branch information
Showing
20 changed files
with
683 additions
and
99 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,8 @@ | ||
--- | ||
title: "Tests fail on latest Nargo nightly release" | ||
assignees: TomAFrench | ||
--- | ||
|
||
The tests on this Noir project have started failing when using the latest nightly release of the Noir compiler. This likely means that there have been breaking changes for which this project needs to be updated to take into account. | ||
|
||
Check the [{{env.WORKFLOW_NAME}}]({{env.WORKFLOW_URL}}) workflow for details. |
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,41 @@ | ||
name: Noir Nightly Canary | ||
|
||
on: | ||
schedule: | ||
# Run a check at 9 AM UTC | ||
- cron: "0 9 * * *" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
name: Test on Nargo ${{matrix.toolchain}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: nightly | ||
|
||
- name: Run Noir tests | ||
run: nargo test | ||
|
||
- name: Run formatter | ||
working-directory: ./lib | ||
run: nargo fmt --check | ||
|
||
- name: Alert on dead canary | ||
uses: JasonEtco/create-an-issue@v2 | ||
if: ${{ failure() }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WORKFLOW_NAME: ${{ github.workflow }} | ||
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
with: | ||
update_existing: true | ||
filename: .github/NIGHTLY_CANARY_DIED.md | ||
|
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,46 @@ | ||
name: Noir tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
name: Test on Nargo ${{matrix.toolchain}} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [nightly, 0.34.0] | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
|
||
- name: Run Noir tests | ||
working-directory: ./lib | ||
run: nargo test | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.34.0 | ||
|
||
- name: Run formatter | ||
working-directory: ./lib | ||
run: nargo fmt --check |
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,2 +1,3 @@ | ||
/target | ||
./.DS_Store | ||
./.DS_Store | ||
.vscode |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
[package] | ||
name = "example" | ||
type = "bin" | ||
authors = [""] | ||
compiler_version = ">=0.31.0" | ||
|
||
[dependencies] | ||
rsa = { path = "../lib" } | ||
bignum = { tag = "v0.3.0", git = "https://github.com/noir-lang/noir-bignum" } |
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,97 @@ | ||
bn = [ | ||
[ | ||
'0xab88f7a360f88fd0782e4c8f749bb5', | ||
'0xc4df70a6920b9bc866e6f6b2e32c55', | ||
'0x29d74e3996e0669887d453eaa7e722', | ||
'0x5e46b505c0067332878ccc5ce1745b', | ||
'0xa24be548a41edc60c2476388aa79fa', | ||
'0x2f6b76f137bfc5a5ea6ee25378faa5', | ||
'0xad6db5af4521b0d05fc2c462857ef6', | ||
'0x2d2a256b3ceef4946487989942c112', | ||
'0xff87818701decef601d143ad536e75', | ||
'0x506c7dc017de18ebe07d40e5692be1', | ||
'0x56d47f8f1c1fdb3e6d687a876773f9', | ||
'0x2683a784665e910d9017b94dc74b4d', | ||
'0x522b5736042a326f8654c32be14ffe', | ||
'0xe0351aa5ef4567f5f02110a215def2', | ||
'0x46324a74609f07d86e6fffe0c327da', | ||
'0x462ab654703f35cdacbba7c9049941', | ||
'0xfc6ee90b277b12c6946001652ae11a', | ||
'0xf2', | ||
], | ||
[ | ||
'0xb80936623ea38314b69abad164724b', | ||
'0x9b4b8b47d45823815eec4f81df519c', | ||
'0xe2a236b6e5bd64cf4fa2c421fcef5b', | ||
'0x283dd152b19fbf8392bd77ef112819', | ||
'0x5a7193fa497343fc66fdecacb11673', | ||
'0xad28a77b9a15484a0912469c065e12', | ||
'0x24e2dc41a8e07f30000d1441168080', | ||
'0x3a9c86d7352fcd56c36f479bc6dd0d', | ||
'0x36f95b26a2135734a919589da7df5a', | ||
'0x4b73efbdf065bb6e3e209933c2a81b', | ||
'0x9ab2788e486374b5407a2915dee603', | ||
'0xff78ebdac2927df46eb09670d99286', | ||
'0xc6c73cf9baa421664e3035e6e03204', | ||
'0xa07bacdb33341dcb13233cbae690c0', | ||
'0xf3533ab7e32063aa7bfcde28a30c2c', | ||
'0x1b304126870b2ebc20f00071899dfc', | ||
'0xb5fffe2de7dd683141a659fb879f97', | ||
'0x10d', | ||
], | ||
] | ||
hash = [ | ||
44, | ||
242, | ||
77, | ||
186, | ||
95, | ||
176, | ||
163, | ||
14, | ||
38, | ||
232, | ||
59, | ||
42, | ||
197, | ||
185, | ||
226, | ||
158, | ||
27, | ||
22, | ||
30, | ||
92, | ||
31, | ||
167, | ||
66, | ||
94, | ||
115, | ||
4, | ||
51, | ||
98, | ||
147, | ||
139, | ||
152, | ||
36, | ||
] | ||
[signature] | ||
limbs = [ | ||
"0x3c1f7a6bdac9d799975076bb401622", | ||
"0x1662d29b2f99dcc51d320c17818a16", | ||
"0x752fb8b42585d53998776c97573b5", | ||
"0xf06107ff8fae798a1c5cf8792274d3", | ||
"0xcfd3b6b58942ac7b6baaf3d5740661", | ||
"0xbdf7adc8288e78c1488e99483e74bd", | ||
"0xd86bc4ebc1e450f6810b24f9d53e37", | ||
"0xf2b6a14967c86bf2d9699c14d8edaa", | ||
"0x3844199077a4324c3fdd2c0319b868", | ||
"0xbdd8679b0d51a763a74c7575debda1", | ||
"0x99c612a61d1466e87d4abeee4379ee", | ||
"0xb6c445ac3aa2cc5ec36505fddfcf8c", | ||
"0xe9d3e597c2e8a1290f5485df403bb3", | ||
"0x3e34cc6ce3f3e266645c8725ac911", | ||
"0x7b9f2ea85922ba5f2b9e74ce5c9dd", | ||
"0x260652f8a7cc82376455e5882eaac0", | ||
"0x221b8273f727efb358b3cf49f94c87", | ||
"0x99", | ||
] |
Oops, something went wrong.