-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data availability design #144
Comments
we may use poseidon / fields rather than sha3/bits first. This will make development/test easier. Once the design is finalized, we can switch to sha3/bits_encoding. |
we can handle L1(withdraw&deposit) tx data and L2(trading&transfer) tx data differently. eg, only put L1 tx data onchain, or limit L1 tx num in each l2 block |
(only transfer now) Step1 without amount encoding. circuits add 1 public input block: hash(data) Step2 (optional) with amount encoding step 3: check availalibity: check reconstructing data can get correct merkle root (rust) more: well-designed integer encoding / a DA tree + a non-DA tree / spottrade and other txs |
As reference, in hermez they has hashed:
|
Compare to our current circuit:
And we can still post the compressed data (raw data being hashed) in rollup tx?
|
The meaning of 'data availability' is to enable proving
account
hasbalance
oftoken
in the tree.So order details are not needed.SpotTrade:
So total 42 bytes.
DepositToOld:
DepositToNew
total: 61bytes
Transfer
Withdraw
The text was updated successfully, but these errors were encountered: