-
Notifications
You must be signed in to change notification settings - Fork 431
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
Remove libsecp256k1
dependency of ink_eth_compatibility
#1068
Comments
libsecp256k1
dependency of ink_env_compatibility
libsecp256k1
dependency of ink_eth_compatibility
There is not yet an issue for this in I can imagine having e.g. sth like a That's the code which would need to be moved to this new |
I agree. We should move this to the pallet. We shouldn't need crypto inside the contract for the most basic stuff. |
I think there should be some host function available for the runtime to offload that to. Search for that here: https://github.com/paritytech/substrate/blob/master/primitives/io/src/lib.rs If is not available there we should depend on |
Haven't found appropriate function there, will move current impl dependent on |
We are trying to move away from that crate. Please implement with the It also needs a conversion to an ETH address. So maybe you can move the pub -> address function to some more general crate and use it from both places. |
We now have |
Of course. Your linked PR should not just remove the dependency but replace it with a call of the seal function. |
Do we really need this |
Yeah I don't think we need this extra crate anymore. I think we only had it to avoid pulling in the crypto dependency. But better wait for @cmichi to comment. |
We need the
libsecp256k1
dependency only in theto_eth_address
function, for getting the uncompressed 65-byte public key from the ECDSA public key.Ways to remove the dep would be to either add a new API function in the
contracts
pallet, find another no-std compatible crate, or extract the functionality from eitherlibsecp256k1
orsecp256k1
intoink_eth_compatibility
.The text was updated successfully, but these errors were encountered: