Skip to content

Commit baa437f

Browse files
committed
update design schema - add nullifier leaf collection
1 parent 8e811a4 commit baa437f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

design/desing.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ CREATE TABLE VotingEvent (
2727
semaphore_nft TEXT NOT NULL,
2828
semaphore_address TEXT NOT NULL,
2929
nullifier_merkle_tree TEXT NOT NULL,
30+
nullifier_leaf_commitments TEXT NOT NULL DEFAULT '[]', -- Stored as JSON: [nullifier_commitment, ...] collection of nullifier commitments to construct nullifier root hash
3031
verification_reference_input TEXT NOT NULL,
3132
current_vote_count TEXT NOT NULL, -- Stored as JSON: [(int, int, string), ...]
3233
FOREIGN KEY (admin_user_id) REFERENCES User(user_id) ON DELETE CASCADE

0 commit comments

Comments
 (0)