Closed ggutoski closed 11 months ago
As a downstream consumer of VID, https://github.com/EspressoSystems/espresso-sequencer requires an incremental API so that txs can be added to a block one-at-a-time.
Change the VidScheme trait to give it a stateful, hash-like API (update, finalize, etc).
VidScheme
update
finalize
[u8]
Vec<F>
bytes_to_field_elements
indices[i]
i
indices[i]..indices[i+1]
no longer relevant
As a downstream consumer of VID, https://github.com/EspressoSystems/espresso-sequencer requires an incremental API so that txs can be added to a block one-at-a-time.
Change the
VidScheme
trait to give it a stateful, hash-like API (update
,finalize
, etc).Update phase
update
to add txs but cannot query anything.update
input: individual tx payload serialized to[u8]
.Vec<F>
viabytes_to_field_elements
from jellyfish.Finalize phase
update
but can now query everything.indices[i]
is the polynomial input for thei
th tx. A proof for thei
th tx is a batch KZG opening for input putsindices[i]..indices[i+1]