ecrecover implementation in EVMMAX
chfast opened this issue · comments
Paweł Bylica commented
- Input validation
- Point "decompression"
- Implement field
sqrt
- Using
sqrt
find they
coordinate of ofR
takingr
andv
from the signature. Curve isy² = x³+7
.
- Implement field
- "Double" point multiplication
- Implement point multiplication: affine → projected
- Implement point addition: projected → projected
- Implement conversion: projected → affine
- ECDSA public key recovery
- Convert message hash
e
toz
field element - Recover public key (a point)
- Convert message hash
- Convert public key to address
Paweł Bylica commented
Done in #688.