deltadevsde / prism

prism is the first trust-minimized key-transparency solution, allowing for automatic verification of service providers via light clients. Powered by Celestia.
https://prism.deltadevs.xyz
32 stars 6 forks source link

fix: needing to recreate the whole tree to apply a single IncomingEntry #87

Closed distractedm1nd closed 1 month ago

distractedm1nd commented 2 months ago

The way that entry processing works is kinda tarded rn:

  1. Update hash chain and derived dict
  2. Regenerate entire ass IMT based on derived dict
  3. Find node in IMT to update tree

tree derivation and intermediate dictionary update logic should be separate and applied at epoch finalization