-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
Hey @ronaldmannak,
Everything should be fine, since it's aligned with decryption, except that I don't think that we need to have public visibility of key sizes
It's mostly because of wrong buffer sizes (encryption buffer should have 32 extra bytes, while encrypted data - 16). Let me double-check that and I'll comment what needs to be fixed P.S. Also, FYI, we're moving repos to a new location https://github.com/mewwallet/, but it's ok to finish this PR here (since it's not "deprecated" yet) and I'll merge it into mewwallet one |
In addition to MyEtherWallet/mew-wallet-ios-kit#7 and key sizes I think it better to have helper function, like |
Thanks @Foboz. I've updated the code. The unit test encrypts w/o error, but then throws an internal error code upon decryption. It looks like encryption is still not correct. Did I update everything correctly? |
@Foboz Thanks for the second review, I appreciate it. The code now seems to work and is ready for review. I've added new unit tests as well. I will update the MEWwalletKit API next. |
Hi @ronaldmannak, thanks for the update. Looks great! However, do you think that we really need to have keys size in |
@Foboz My bad, I forgot to change those back. Done. |
Hey @ronaldmannak, sorry for being silent. I'm making last checks and will merge |
This is a draft PR
Encryption is needed to have MEWwalletKit conform to EIP1024. This is a first draft with bugs (the new unit test testEncode() crashes at two different places seemingly random (unknown object release and an out-of-bounds index).
Questions for the maintainers: