-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executable Merkle proofs #1363
Executable Merkle proofs #1363
Conversation
a1061f0
to
d6bbd9b
Compare
specs/light_client/merkle_proofs.md
Outdated
We define the following Python custom types for type hinting and readability: | ||
|
||
| - | - | - | | ||
| `GeneralizedIndex` | `uint64` | the index of a node in a binary Merkle tree | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A GeneralizedIndex is NOT necessarily a uint64. It could be bigger. My idea was to represent it in the python executable as a bigint, but then clarify that representing it as a bitfield/bitlist is ok too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in bbaa238.
8c3f315
to
bbaa238
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue
#1323 needs some shared logic in
specs/light_client/merkle_proofs.md
. And also, we can use the helper functions inmerkle_proofs.md
to generate the test cases for #1323.Description
This PR is making
merkle_proofs.md
executable.TODOs: