ZenGround0 / onramp-contracts

Prototyping smart contracts piping data to the filecoin network
2 stars 1 forks source link

xchain dameon aggregates #10

Closed ZenGround0 closed 2 months ago

ZenGround0 commented 3 months ago

Hook up xchain daemon to do aggregation when reading from data events

1.Read data event

  1. fetch from buffer
  2. compute commp and check it matches
  3. enter bin packing pipeline

Should start simple, greedy bin packing -> over threshold triggers aggregation commit. Idk how different pieces interact, I think it is not a simple additive relationship. Will want something hardened enough to make progress if we go over

Use go-datasegment to generate PODSI proofs for sending to chain. Right now thinking no send of index proof just data inclusion.

ZenGround0 commented 2 months ago

Still need to do buffer fetching but that's all that's left

ZenGround0 commented 2 months ago

Buffer fetching now works. I do it lazily upon boost transfer which is nice. Wish I could stream it but boost data transfer protocol doesn't allow that today.