-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Now
Any log can be submitted to network infinite times, and the subscriber would be invoked every time.
Goal
- Keep track of every submitted log.
- Check if log has been submitted before in
submitLog. - And let relayers know (by emitting events) which ones have been submitted.
Possible solutions
- Store the root of a sparse merkle tree on-chain.
- Relayers would have to, in addition to submitting log proofs, provide proof of non-inclusion of log in the SMT.
- Contracts wouldn't be able to query ethbase to see if a log has been emitted recently.
- Each block, only one transaction would modify the merkle root, and the rest of txes will fail, as their proof becomes invalid. Discussion regarding this issue.
Metadata
Metadata
Assignees
Labels
No labels