-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(finality): merkle-tree-based public randomness commitment (#354)
Closes #350 This PR implements Merkle tree-based public randomness commitment. This includes - reverting the BIP-32 thing that is vulnerable - introducing storage of Merkle proofs - revising semantics of submitting public randomness and finality signatures Future works that will be done in subsequent PRs: - **DB schema:** instead of storing all proofs (which is O(n log n)), we need to find an efficient way to store Merkle tree and keep it in memory when it's used. - **Optimisation of proof generation/veirfictaion:** we are considering to use pollarding of Merkle tree, i.e., babylon side remembers the top X levels in the Merkle tree and the Merkle proof will become hashses in the levels lower than X. see https://github.com/wealdtech/go-merkletree/blob/master/pollard.go - **Better vector commitment schemes:** Merkle tree has other variants that have better performance in scenarios with millions of leaves. Ethereum community has stuff like Verkle tree and SSZ
- Loading branch information
1 parent
ab41ff7
commit 60cec01
Showing
46 changed files
with
1,796 additions
and
1,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.