-
Notifications
You must be signed in to change notification settings - Fork 959
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
Fixes a few bugs with deposit verification. #388
Merged
djrtwo
merged 9 commits into
ethereum:master
from
ralexstokes:add-missing-property-to-merkle-verification
Jan 10, 2019
Merged
Fixes a few bugs with deposit verification. #388
djrtwo
merged 9 commits into
ethereum:master
from
ralexstokes:add-missing-property-to-merkle-verification
Jan 10, 2019
Commits on Jan 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 5f19622 - Browse repository at this point
Copy the full SHA 5f19622View commit details -
Fixes bugs with description of deposit verification.
1. The order of the `deposit_data` serialization does not match the current Vyper contract. The description now matches that serialization. 2. The `deposit.merkle_tree_index` was not being used (at least explicitly) so the text now reflects which inputs are to be used for which parameters in the pseudocode spec that follows. 3. There seems to be a bug where we want the initial leaf to be the `hash` of the `DepositData`, not the data itself. The text now reflects this requirement.
Configuration menu - View commit details
-
Copy full SHA for dff84c0 - Browse repository at this point
Copy the full SHA dff84c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ea4302 - Browse repository at this point
Copy the full SHA 4ea4302View commit details -
Reorder type so the ssz serialization matches other uses
There is an order based on the Vyper deposit contract which should be maintained here. There is also a reference to it when processing `Deposit` messages. This commit corrects the order here so all serializations will match.
Configuration menu - View commit details
-
Copy full SHA for 6f5a865 - Browse repository at this point
Copy the full SHA 6f5a865View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5de2fe - Browse repository at this point
Copy the full SHA c5de2feView commit details -
Configuration menu - View commit details
-
Copy full SHA for f49f7ed - Browse repository at this point
Copy the full SHA f49f7edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a6854a - Browse repository at this point
Copy the full SHA 7a6854aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d628346 - Browse repository at this point
Copy the full SHA d628346View commit details -
Truncate the index into the Merkle tree to bytes[8]
The beacon chain expects a `uint64` in part to avoid big-int computation. This commit updates the `Deposit` log so that it broadcasts data of the appropriate size.
Configuration menu - View commit details
-
Copy full SHA for 4cf06d9 - Browse repository at this point
Copy the full SHA 4cf06d9View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.