0xPolygonMiden / miden-base

Core components of the Polygon Miden rollup
MIT License
69 stars 42 forks source link

Define block kernel inputs/outputs #920

Open Fumuran opened 5 days ago

Fumuran commented 5 days ago

What should be done?

Define the kernel inputs and outputs for the block of transactions.

How should it be done?

To be clarified

When is this task done?

To be clarified

Additional context

No response

bobbinth commented 1 day ago

We can arrange block kernel inputs in a similar manner to batch kernel inputs described in https://github.com/0xPolygonMiden/miden-base/issues/919#issuecomment-2423408808, though block kernel inputs could be a bit simpler:

Inputs:  [BATCHES_COMMITMENT]
Outputs: [BLOCK_HASH, NULLIFIER_COMMITMENT]

Where

We don't output account update commitment separately because I think this can be computed from the data underlying the BATCHES_COMMITMENT. But if that becomes difficult, we can certainly add something like ACCOUNT_UPDATES_COMMITMENT to the outputs.