-
Notifications
You must be signed in to change notification settings - Fork 62
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
SMT tests & linting #20
Conversation
- adding soliumignore file
…standards - stricter solium linting - basic sol linting changes
- found problematic aspect of SMT impl, values at a particular node do not seem to matter when proving
No objection.
True, if depth is dynamic, the number of bytes should always be
Also true. Although allowing the tree to have dynamic depth is a good upgrade, I believe that we can leave that for later. |
block = self.get_block(exiting_tx_block_num) | ||
exiting_tx = block.get_tx_by_uid(uid) | ||
# make sure this is inclusion | ||
exiting_tx_inclusion_proof = self.get_proof(exiting_tx_block_num, uid) |
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.
This is exactly what I had in mind, great
bytes prevTxBytes, bytes exitingTxBytes, | ||
bytes prevTxInclusionProof, bytes exitingTxInclusionProof, | ||
bytes sig, | ||
uint64 slot, bytes prevTxBytes, |
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.
The reason I had the arguments formatted like that is because I find them easier to read. Left side is the previousTx information, right side the exiting tx.
All the interesting changes happened in python code, ignore most of the solidity stuff because it's just linting.
challengeBefore
in python clientthoughts:
2**(depth-1)
RootChain
contract (object).