This project visualizes the operation of sequencers within the RAFT algorithm framework. The animation showcases interactions among 8 key entities:
- 1 User
- 4 Follower Sequencers
- 1 Leader Sequencer
- 2 Rollups
- User Transaction: The user sends an encrypted transaction to one of the sequencers (this could be the leader or a follower).
- Forwarding: Follower sequencers forward the encrypted transaction to the leader.
- Ordering: The leader orders the transaction and shares the order commitment with the followers.
- Confirmation: The follower that initially received the encrypted transaction shares the order commitment with the user who sent it.
- Block Sharing: The sequencer distributes the block to the respective rollup.
- Leader Election: If the leader fails, one of the followers takes over as the leader, ensuring the liveness of the sequencing layer.
This template offers a minimal setup for running a React project with Vite, featuring Hot Module Replacement (HMR) and some ESLint configurations.
To get started with the project:
-
Clone the repository:
git clone https://github.com/gylman/svgs
-
Navigate to the project directory:
cd svgs
-
Install the necessary dependencies:
npm i
-
Start the development server:
npm run dev
- Vite
- React
- JavaScript