19 Commits

Author SHA1 Message Date
Cedoor
b2da0a685a fix(proof): replace root public signal with actual root (#843)
The public signal of proof related to the Merkle root could obviously be different from what is
expected to be the root of the group. Therefore, for the proof to be valid, it is necessary that the
group root passed as a parameter matches the proof/circuit root output.

re #842
2024-07-31 10:38:02 +01:00
Cedoor
af4aec2127 refactor(proof)!: set tree depth = 1 when a group has 1 member (#831)
re #812
2024-07-19 14:10:19 +01:00
sripwoud
7b3621a701 refactor: add @zk-kit/artifacts (#788)
* refactor: add `@zk-kit/artifacts`

* chore: update `jest.config.ts`

* test: increase timeouts

* chore: bump `@zk-kit/utils`

* fix: bump `@zk-kit/artifacts`
2024-05-20 12:16:01 -05:00
Vivian Plasencia
51ebe9db4d feat: support more tree depths (#779)
* feat: support more tree depth

Now Semaphore v4 will support tree depth from 2 to 32.

re #778

* test(proof): update tests to support circuit changes and tree depth 2 - 32

re #778

* fix(contracts): update verifier VK_POINTS

re #778

* test(proof): make tests more atomic

* chore: support tree depth 1

re #778
2024-05-16 12:41:46 +02: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
Vivian Plasencia
82bc47fb24 test(proof): increase timeout for tests generating proofs (#762)
re #761
2024-04-30 15:39:38 +02:00
cedoor
197a7ae204 test: fix types on tests
Former-commit-id: fa4d9860e4
2024-03-28 12:52:16 +00:00
cedoor
a20d3db122 refactor: use native bigints
The core libraries can now use native bigints as the new ts target is es2020.


Former-commit-id: 238c6b3bbe
2024-03-28 12:06:18 +00:00
cedoor
9e5c464237 feat(utils): new semaphore utilities + zk-kit replacements
The utils package will no longer provide errors and types utilities as those functions have been
moved to zk-kit. The utils package now provides a list of supported networks and a function to
decode messages instead.

re #642, #641


Former-commit-id: d2ce1070f0
2024-03-15 23:07:44 +00:00
vplasencia
95aad1a154 refactor(proof): integrate pack unpack groth16 proof
Former-commit-id: d28448624a
2024-02-26 12:38:01 +01:00
cedoor
ec8c28a017 feat(proof): support message/scope as strings
Former-commit-id: 2df3ff3c93
2024-02-10 15:26:07 +00:00
cedoor
3a312eed5c chore: remove all fullProof occurrences
Former-commit-id: 6d4b7bbfb4
2024-02-10 15:26:07 +00:00
cedoor
fc1c170a18 refactor(proof): add merkle proof parameter
Former-commit-id: c62de79c53
2024-02-10 15:26:07 +00:00
cedoor
c6bfadbfa2 refactor: rename proof with points
Former-commit-id: 4fcfe5cac1
2024-02-10 15:26:07 +00:00
cedoor
c52120bd3b refactor(proof): include merkle depth in the proof
Former-commit-id: 0668fd3819
2024-02-10 15:26:07 +00:00
cedoor
b131b135c7 refactor(proof): support multi tree depths (1-12)
Former-commit-id: d0843a9ee7
2024-02-10 15:26:06 +00:00
cedoor
4d714385a4 test(proof): add longer timeout for generiting proofs
Former-commit-id: 172fb02a97
2024-02-10 15:26:06 +00:00
cedoor
2a7dea10d2 refactor(circuits): update merkle proof variable names
Former-commit-id: 7c33fc72ce
2024-02-10 15:26:06 +00:00
cedoor
ef389af160 chore: move test files outside src
Former-commit-id: 5ea78cdccb
2024-02-10 15:26:06 +00:00