Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.7 KB

File metadata and controls

40 lines (27 loc) · 1.7 KB

Sequencer for SYB

SYB sequencer is a zk-rollup sequencer designed to compute uniqueness score for each user account based on the vouches made between accounts. This score will reflect the interactions and endorsements that one account provides to another. Acting as a backend middleware, sequencer facilitates communication between the smart contract and the Circuit, which is responsible for calculating the uniqueness score.

By utilizing a zk-rollup architecture, we aim to significantly reduce the computational costs associated with calculating scores directly through smart contracts, which would otherwise be prohibitively high. This approach ensures efficiency and scalability while maintaining the integrity of our computations.

Setup

cp .env.example .env
brew install go-task # for running various tasks, especially tests

Running Tests

task test-<name> # for example: task test-historydb

Architecture

E2E flow

Sync flow (interactive link)

CMD to run sequencer in sync mode

go run main.go run --mode sync --cfg cfg.toml

Coord flow (interactive link)

CMD to run sequencer in coord mode

go run main.go run --mode coord --cfg cfg.toml