-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added hardhat-circom and update indent size to be 2 (#2)
- Loading branch information
1 parent
2fde49a
commit e770b13
Showing
48 changed files
with
2,628 additions
and
1,289 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
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
name: style | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
push: | ||
branches: ["main"] | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
style: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Run Prettier | ||
run: yarn prettier | ||
- name: Run Prettier | ||
run: yarn prettier |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"semi": true, | ||
"arrowParens": "always", | ||
"trailingComma": "none" | ||
"semi": true, | ||
"arrowParens": "always", | ||
"trailingComma": "none" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "solhint:default" | ||
"extends": "solhint:default" | ||
} |
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,24 @@ | ||
pragma circom 2.1.6; | ||
|
||
include "../../../node_modules/circomlib/circuits/babyjub.circom"; | ||
|
||
template AddNumOnEllipticCurve () { | ||
signal input x1; | ||
signal input y1; | ||
signal input x2; | ||
signal input y2; | ||
|
||
signal input xout; | ||
signal input yout; | ||
|
||
component babyAdd = BabyAdd(); | ||
babyAdd.x1 <== x1; | ||
babyAdd.y1 <== y1; | ||
babyAdd.x2 <== x2; | ||
babyAdd.y2 <== y2; | ||
|
||
xout === babyAdd.xout; | ||
yout === babyAdd.yout; | ||
} | ||
|
||
component main = AddNumOnEllipticCurve(); |
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 @@ | ||
{ | ||
"x1": "17777552123799933955779906779655732241715742912184938656739573121738514868268", | ||
"y1": "2626589144620713026669568689430873010625803728049924121243784502389097019475", | ||
"x2": "17777552123799933955779906779655732241715742912184938656739573121738514868268", | ||
"y2": "2626589144620713026669568689430873010625803728049924121243784502389097019475", | ||
"xout": "6890855772600357754907169075114257697580319025794532037257385534741338397365", | ||
"yout": "4338620300185947561074059802482547481416142213883829469920100239455078257889" | ||
} |
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.