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.
You can use the macro from ewasm-api.
There was a problem hiding this comment.
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.rsandrlp_node_codec.rsspecifically).