-
Notifications
You must be signed in to change notification settings - Fork 16
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
Stateless MPT-based token script #11
base: master
Are you sure you want to change the base?
Conversation
Hm, not sure why the build failed 🤔 it says |
Updates:
I'm facing a weird bug however: For some random blocks the test fails, but when I compile the same source to native ( |
|
||
#[cfg(not(test))] | ||
#[no_mangle] | ||
pub extern "C" fn main() { |
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.
You can use the macro from ewasm-api.
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.
Fails because eth2_pushNewDeposits
is not implemented yet.
This seems to be caused by qimalloc, when switching to wee_alloc the problem is resolved. |
Initial prototype for a basic eth1-esque stateless token with the following characteristics:
Sample script for generating the merkle proofs: https://gist.github.com/s1na/df9682fc4f9a8f4290c7d34be8ffcd2f
Note: There seemed to be version conflicts for some parts of parity's trie implementation, so I had to copy the relevant parts to get it to work (
keccak_hasher.rs
andrlp_node_codec.rs
specifically).