HomeSource World

crypto/secp256k1: add checking z sign in affineFromJacobian (#18419)

Description

crypto/secp256k1: add checking z sign in affineFromJacobian (#18419)

The z == 0 check is hit whenever we Add two points with the same x1/x2
coordinate. crypto/elliptic uses the same check in their affineFromJacobian
function. This change does not affect block processing or tx signature verification
in any way, because it does not use the Add or Double methods.

Details

Provenance
Abd ar-Rahman Hamidi <bakhtiyor.h@gmail.com>Authored on Nov 17 2020, 10:47 AM
GitHub <noreply@github.com>Committed on Nov 17 2020, 10:47 AM
Parents
rGETH844485ec6aa2: consensus/ethash: fix usage of *reflect.SliceHeader (#21372)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHdb87223269ca: crypto/secp256k1: add checking z sign in affineFromJacobian (#18419) (authored by Abd ar-Rahman Hamidi <bakhtiyor.h@gmail.com>).Nov 17 2020, 10:47 AM