Summary
There should be a native function that allows to recover the signing address from a signature and a message (secp256k1 curve). Other chains are working with addresses instead of public keys which makes it impossible to replicate and verify such a signature based on the values available; additional information (public key) would be needed to do that.
Do you have any solution you want to propose?
The native smart contract CryptoLib should be extended with a function similar to byte[] ecrecover(byte[] message, Hasher hasher, byte[] signature) to allow recovering public keys for the secp256k1 curve.
Where in the software does this update applies to?
The native CryptoLib smart contract.
Summary
There should be a native function that allows to recover the signing address from a signature and a message (
secp256k1curve). Other chains are working with addresses instead of public keys which makes it impossible to replicate and verify such a signature based on the values available; additional information (public key) would be needed to do that.Do you have any solution you want to propose?
The native smart contract
CryptoLibshould be extended with a function similar tobyte[] ecrecover(byte[] message, Hasher hasher, byte[] signature)to allow recovering public keys for thesecp256k1curve.Where in the software does this update applies to?
The native
CryptoLibsmart contract.