-
Notifications
You must be signed in to change notification settings - Fork 158
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
Implement EIP 712 #57
Conversation
3304ccd
to
572a22c
Compare
@kclowes @pipermerriam there is still stuff to be done and this is just a The |
@Bhargavasomu I'm working on adding EIP 712 support in a Plasma Cash client I am writting in Python here: https://github.com/zatoichi-labs/plasma-cash-vyper/tree/signed-structs I can try and implement using your updates to see how the EIP 712 compatibility works in a practical use case. |
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.
Looking good @Bhargavasomu! I just left a few comments
Also @kclowes should we move out the EDIT - I have added the best /cc @pipermerriam |
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.
I
Also I feel that this whole |
I'm fine having an |
If it's all the same to you two, I'd rather call it something more descriptive like |
883d970
to
a837cad
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.
I have some ideas about how I would restructure the code (including some code not added in this PR), and add a new API, but it is not a quick thing so I'll save it for later. Edit: created #58 I don't see any red flags in any of the existing code. I didn't do a deep dive on the structured message encoder implementation, but it's all pretty separated from any key handling. No objections 👍 |
23f3e9c
to
8c11672
Compare
@Bhargavasomu I just cut a new |
@pipermerriam @kclowes The whole |
@pipermerriam @kclowes review please. |
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.
@kclowes all of my issues have been addressed (assuming the things in this review are cleaned up as somu see's fit)
bbd74ec
to
d0533b7
Compare
d0533b7
to
8880e38
Compare
@pipermerriam I have addressed all your issues. Thankyou. |
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.
Looks good to me @Bhargavasomu!
I think this was requested here. Just added some new methods to the |
Method documentation found here: Related exceptions (you probably won't have to worry about these too much): |
816178a
to
15d6f1f
Compare
@davesque I don't think the new version of |
15d6f1f
to
f6b134e
Compare
@Bhargavasomu Correct. Python 3.5 support (and, thus, also pypy support) was removed. |
@davesque but here in @pipermerriam @carver should we remove the support for |
@Bhargavasomu we're discussing internally what we want to do about this python issue. Maybe you can revert your last changes and keep this PR using it's own hand rolled utility and open an issue to track the need to update once python3.5 is no longer supported. |
f6b134e
to
8880e38
Compare
This PR is now back to the old version and have opened the issue here #59 |
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 looks good to me @Bhargavasomu! Nice work!
Is there something more to be done as part of this PR? If not, could someone please merge this? |
What was wrong?
Fixes Issue #35
How was it fixed?
Example.js of the EIP was taken as reference.
TODOS
Supporting the scenario where thedata
could bearrays
(Including error handling etc.)Validation of theJSON Structured data
. (With the use ofRegex
)Appropriate Error Handling. (Especially in case where the data is not of the specified corresponding type)Addtests
for the failing or Exception rising casesAddtests
for theArray Data
and its correspondingErrors
orExceptions
.Cute Animal Picture