thehubbleproject / hubble-contracts

Hubble optimistic rollup
https://thehubbleproject.github.io/docs/
MIT License
133 stars 28 forks source link
optimistic-rollup rollup

Hubble Optimistic Rollup Contracts & NodeJS TypeScript Client (Node)

Node.js CI

About Hubble

Hubble is an ERC-20 token transfer solution that improves Ethereum throughput from 20 transactions per second to ~2700.

How it works

Accounts submit transfers to a coordinator node who then submits transactions and the state root of the balance updates to an Ethereum smart contract (Rollup.sol).

How does this improve throughput?

The contract does not validate either the correctness of the balance updates or the authenticity of the sender.

What if the coordinator submits incorrect balance updates?

Anyone can trigger the dispute methods of the contract and penalize the coordinator by burning the assets they staked beforehand. The contract rolls back to the last state when the balances were correct.

How is it different from other Layer 2 (L2) Ethereum projects?

Hubble has the highest throughput compared with the above, since:

What else can Hubble do

Mass Migration

Users can migrate their tokens to other L2 solutions without withdrawing to and depositing from Layer 1 (L1) again.

Create2Transfer

Users can onboard accounts to Hubble without going through L1. The coordinator can register their public keys and then they can acquire tokens from holders who are already in the Hubble L2.

Local Development

Local Development Setup

Node Operator

Node Operator

Docker

https://hub.docker.com/r/thehubbleproject/node

docker pull thehubbleproject/node:latest
# or for a specific release, ...:v0.x.y

See Docker instructions.