-
Notifications
You must be signed in to change notification settings - Fork 345
[EVM] re-enable ecrecover as a native function #436
Comments
duplicate of #419 |
What is the aim of this? If the aim is just to support code using So it seems (unless I'm mistaken) this only makes sense if we introduce/add back support for secp256k1 keys. If we do that, how do we deal with ed25519 signatures? It seems like Ethereum have plans to introduce support for other signatures (ethereum/EIPs#28) so do they have a way to deal with it. It would be useful to see an example usage of |
Here is an instructive example: https://github.com/edmundedgar/realitykeys-examples-ethereum/blob/master/sponsor/sponsor.sol#L55 address signer_address = ecrecover(result_hash, v, r, s);
uint256 result_value = uint256(result_value_hex) / p.base_unit;
LogSettlementAmount(result_value);
if (signer_address != p.oracle_address) {
LogFail(signer_address);
LogFail(p.oracle_address);
return false;
} It seems in that example since the arguments for ecrecover and the Whereas it would fail if, for example, the I suppose if it is acceptable to push the responsibility for ensuring those entities participating in your contract that uses |
👍 |
See #777 |
No description provided.
The text was updated successfully, but these errors were encountered: