March 2018
Beginner to intermediate
656 pages
20h 9m
English
There are eight precompiled contracts in Ethereum Byzantium release. Here is the list of these contracts and details:
ECDSARECOVER (Elliptic Curve DSA Recover function) is available at address 0x1. It is denoted as ECREC and requires 3,000 gas fees for execution. If the signature is invalid, then no output is returned by this function. Public key recovery is a standard mechanism by which the public key can be derived from the private key in elliptic curve cryptography.
The ECDSA recovery function is shown as follows:
ECDSARECOVER (H, V, R, S) = Public Key
It takes four inputs: H, which is a 32-byte hash of the message to be signed and V, R, and S, which represent the ECDSA ...