Commit Graph

1693 Commits

Author SHA1 Message Date
Cedoor
ea175fa90c chore: add code owners (#784)
Through Github rulesets and the definition of code owners, it is possible to automate the review
process without additional workflows. It also makes responsibilities within the project clearer. The
current CODEOWNERS file is very simple but more complex rules can be introduced in the future.

re #783
2024-05-15 14:41:35 +01:00
Cedoor
f9e41fb306 chore(circuits): update binary-merkle-root dependency (#780)
re #776
2024-05-13 17:15:18 +01:00
Cedoor
47bfebd4ed docs(docs): add v4 audit report (#777) 2024-05-12 11:17:14 +01:00
Vivian Plasencia
9e5b2285fc test: add missing tests in the js libraries (#774)
* test: add missing tests

Now all lines of js libraries are 100% covered.

re #484

* test(proof): update message type

re #484

* test(proof): update constant

re #484

* test(proof): update number constant

re #484
2024-05-09 12:53:20 +01:00
aguzmant103
de15989638 chore(website): update event list (#775) 2024-05-08 23:15:49 +02:00
sripwoud
2e56ab6b07 chore: optimize pull-requests workflow (#765)
* chore: optimize pull-requests workflow

* fix: quote glob pattern

* fix: append `$` to variables in workflow

* chore: include `yaml` files in lintstaged format check

* feat: detect to_format or to_lint changed files

* feat: run test workflow steps conditionally

* Update .github/workflows/pull-requests.yml

Co-authored-by: Daehyun Paik <paik@a30a.dev>

* Update .github/workflows/pull-requests.yml

Co-authored-by: Daehyun Paik <paik@a30a.dev>

* fix: build utils before contracts

* fix: build identity pkg before running contracts tests

* fix: need to quote `true`

* fix: build group pkg before running contracts tests

* fix: build `{group,identity,proof}` before running circuits tests

* fix: build `proof` pkg before running contracts tests

* fix: build utils before testing circuits

* fix: build `utils` before `subgraph` pkg

---------

Co-authored-by: Daehyun Paik <paik@a30a.dev>
2024-05-08 11:10:00 +01:00
hw
3329922077 test(contracts): update contract tests to be more atomic and use loadFixture (#706) (#770)
test(contracts): update contract test

update contract test to be more atomic and use loadFixture

re #706
2024-05-08 10:55:47 +01:00
Giacomo
6b6bc6a98e Improve documentation for @semaphore/cli package (#771)
docs(cli): improve code comments and readme of the @semaphore/cli package
2024-05-07 14:31:04 +01:00
Giacomo
b9fa75cba3 Improve documentation for @semaphore/data package (#768)
* docs(data): improve code comments and readme of the @semaphore/data package

* docs(data): update package.json description and small nit on README
2024-05-07 14:30:43 +01:00
Giacomo
1b34ad312d Improve documentation for @semaphore/hardhat package (#772)
* docs(hardhat): improve code comments and readme for @semaphore/hardhat package

* docs(hardhat): update package.json description
2024-05-07 14:27:32 +01:00
Vivek
74df3c204d Update articles.json (#769) 2024-05-07 10:47:15 +02:00
Nick Addison
08af4a315f Added missing await in proofs example (#767)
Added missing await in proofs example
2024-05-07 10:46:58 +02:00
cedoor
ddfe4ffd56 chore: v4.0.0-beta.9 v4.0.0-beta.9 2024-05-02 16:29:22 +01:00
Cedoor
87f63451e3 fix(group): add check for zero values in group constructor (#764) 2024-05-02 16:28:21 +01:00
Vivian Plasencia
f8deb64285 chore: update config (#763)
* chore: update lint-staged config

* chore: use czg instead of cz + cz-git

re #738

* chore: use cat instead of vim editor to write commits

re #738

* chore: use secrets.GITHUB_TOKEN instead of secrets.GH_TOKEN

re #738

* style: add a space at the end of the pre-commit file
2024-05-01 10:45:27 +02:00
Vivian Plasencia
82bc47fb24 test(proof): increase timeout for tests generating proofs (#762)
re #761
2024-04-30 15:39:38 +02:00
Seva Zhidkov
5ced7db5f8 docs: fix 404 broken link to circuit file (#760)
docs: fix broken link to circuit file 

broken since [this commit](d9d5de1569 (diff-27cc20ba62610ee534566b1969efe92677c1c6af8940cdc20b57fcb0b4e0c6b3))
2024-04-30 14:33:03 +02:00
Vivian Plasencia
5c224f214c fix: update format code command (#759) 2024-04-29 18:07:36 +02:00
sripwoud
0b9ba376db chore(docs): format mdx files (#754)
* chore(docs): format `mdx` files with `remark`

`prettier` doesn't not have proper support for MDX v3.
Docusaurus recommends using `remark` instead.
https://docusaurus.io/docs/markdown-features/react

re #503

* chore(docs): add remark lint plugins

* chore: bump yarn.lock

* chore: add `quiet` option to remark
2024-04-29 17:13:35 +02:00
cedoor
a9410fa6d1 chore: v4.0.0-beta.8 v4.0.0-beta.8 2024-04-26 18:09:23 +02:00
Cedoor
79bd8d6305 fix: update snarkjs dependency version (#755)
re #713, #675
2024-04-26 17:59:14 +02:00
Vivian Plasencia
c5448fe1f0 Move heyauthn package (#753)
chore: remove heyauthn package

The heyauthn package was moved to the semaphore-protocol extensions repo.

re #752
2024-04-25 15:57:23 +02:00
sripwoud
cf1cffdf65 refactor!: use maybeGetSemaphoreSnarkArtifacts from `@zk-kit/utils (#747)
* chore(proof): bump `@zk-kit/utils` dep

* refactor(proof): use `maybeGetSemaphoreSnarkArtifacts` from `@zk-kit/utils`

Delete logic related to fetching snark artifacts (wasm and zkey files) that was moved to
`@zk-kit/utils`

* revert(proof): add back `requireObject(snarkArtifacts)` check

* chore(proof): update rollup.browser.config.ts

* docs(proof): update README

* chore(proof): remove unused import in rollup.browser.config.ts

* Update packages/proof/package.json

Co-authored-by: Cedoor <me@cedoor.dev>

* docs(proof): add links to other repos in proof README

* chore: bump `yarn.lock`

* docs(proof): add punctuation

---------

Co-authored-by: Cedoor <me@cedoor.dev>
2024-04-24 16:43:19 +02:00
Cedoor
41a85e0e45 Merge pull request #748 from semaphore-protocol/gitignore
chore: update `.gitignore`
2024-04-24 15:08:17 +02:00
Cedoor
6502c17f7b Merge pull request #750 from semaphore-protocol/fix/docs
docs: fix `typedoc` compilation warnings
2024-04-24 15:07:24 +02:00
Cedoor
1849055e88 Merge pull request #751 from semaphore-protocol/fix/install-circom-deps
ci: fix circom deps installation steps
2024-04-24 15:01:04 +02:00
sripwoud
e536debb16 ci: add comment 2024-04-24 14:36:13 +02:00
sripwoud
4ba367bee4 chore: format 2024-04-24 13:56:48 +02:00
sripwoud
ce6d622202 ci: remove microsoft.prod sources file 2024-04-24 13:54:20 +02:00
sripwoud
3b08b67175 ci: debug pull-requests workflow 2024-04-24 13:52:02 +02:00
sripwoud
68181aa1fb docs: fix warnings about function signatures 2024-04-24 13:29:58 +02:00
sripwoud
6225b9b7c0 docs: fix typedoc entryPoints 2024-04-24 13:29:25 +02:00
sripwoud
940db25a87 chore: update .gitignore
Don't version control `asdf` and `direnv` configuration files
2024-04-24 13:09:22 +02:00
Cedoor
9dc768376c Merge pull request #743 from semaphore-protocol/fix/baby-jubjub
Add check to make sure Baby Jubjub secret scalar is < l
2024-04-19 11:04:57 +02:00
cedoor
ba8132561a chore: update lockfile 2024-04-17 10:46:45 +02:00
Cedoor
5aaa9e4f69 Merge pull request #742 from semaphore-protocol/docs/update-code
Update Solidity code to create groups in documentation website
2024-04-16 09:21:17 +01:00
cedoor
f19b632e1e docs(docs): update solidity code to create groups 2024-04-15 16:55:32 +01:00
cedoor
b40f9f13e9 test(circuits): add new test for l = r - 1 2024-04-12 18:45:34 +01:00
cedoor
e884186488 refactor(circuits): remove greater-than check and update less-than bits 2024-04-12 16:22:49 +01:00
Cedoor
a4a6837f5a Merge pull request #737 from Stumble/yumin/fix-alias
fix: incorrect alias check brought from snarkjs. (possible security vulnerability)
2024-04-12 12:12:23 +01:00
Cedoor
2aee16e082 Merge pull request #741 from 0xbok/sol-op
perf(contracts): turn on solidity optimizer
2024-04-09 10:58:49 +01:00
0xbok
7c99c74fac perf(contracts): turn on solidity optimizer
Turn on solidity optimizer

re #740
2024-04-09 02:12:08 +04:00
Yumin Xia
8e246c48bf fix: incorrect alias check brought from snarkjs. 2024-04-05 12:21:59 -07:00
cedoor
75eac56e9f chore: update lockfile 2024-03-29 17:51:34 +00:00
cedoor
d9d5de1569 fix(circuits): check whether the secret scalar is within the r field 2024-03-29 17:49:40 +00:00
cedoor
a522fff448 chore: v4.0.0-beta.7 v4.0.0-beta.7 2024-03-28 19:06:18 +00:00
Cedoor
d9d97de09c Merge pull request #734 from semaphore-protocol/fix/convert-hex-pk
Convert hexadecimal private key before signing messages
2024-03-28 19:05:01 +00:00
Cedoor
88df87e339 Update packages/identity/tests/index.test.ts
Co-authored-by: Vivian Plasencia <v.pcalana@gmail.com>
2024-03-28 17:57:24 +00:00
cedoor
9c2968eecd fix(identity): convert hex private key before signing messages
The ZK-Kit EdDSA Poseidon package only supports the following private key types: text, buffer. The
Semaphore identity supports text and hexadecimal strings. If the identity private key is an
hexadicimal string it needs to be converted before being passed to any ZK-Kit function.

re #733
2024-03-28 15:52:08 +00:00
Cedoor
c795ddce35 Merge pull request #732 from semaphore-protocol/fix/group-checks
Add checks for removed members

Former-commit-id: 2faac4e30790a049a8377807ab507d980fa21b31
2024-03-28 14:43:37 +00:00