-
Notifications
You must be signed in to change notification settings - Fork 114
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
In light-client, use ethereum_ssz instead of ssz-rs #1417
Comments
Can I work on this? |
@virajbhartiya yes you can work on it 🚀 |
@KolbyML @carver While looking at the implementation of |
Could you give me an example of code you are trying to update but having problems with? Or link to the lines of code which use |
Eg: trin/light-client/src/consensus/consensus_client.rs Lines 571 to 574 in 3c33623
also trin/light-client/src/types.rs Lines 1 to 3 in 3c33623
If I try removing ssz-rs , I was unable to find a replacement for these in ethereum_ssz , if it is okay to replace it with [u8] I can try to update the usages
|
So for vector you should be able to use Example usage can be found in our You didn't give an example for |
Thanks for helping out with Example for the usage of trin/light-client/src/consensus/utils.rs Line 55 in 3c33623
|
Another issue is with trin/light-client/src/consensus/utils.rs Line 36 in 3c33623
|
In |
@KolbyML I have raised a PR for this, I was unable to find a fix for |
You should be able to use this crate as a replacement https://docs.rs/tree_hash/latest/tree_hash/ we use it in ethportal-api so you can probably find an example. The rust derive's name is |
ethereum_ssz
is used for SSZ handling in most places, but light-client uses ssz-rs. Investigate replacing ssz-rs, so we can remove a dependency.The text was updated successfully, but these errors were encountered: