arnaucube
arnaucube/gnark-plonky2-verifierPublic Self-hosted repository
remove check that they say is unnecessary
Jacob Jackson jacob@as-MacBook-Air.local
Wed, 05 Oct 2022 22:08:11 +0000
commit

d61e54c60e634fbe112d7cd1f1222ceb4d543cad

parent

ad21fd775fa2b1188c1e36458c45aac8248f8f05

1 files changed, 8 insertions(+), 8 deletions(-)

jump to
M edwards_curve/eddsa25519.go → edwards_curve/eddsa25519.go

@@ -56,16 +56,16 @@ // return bits_to_scalar[Ed25519Scalars](c, s)

// } func bits_to_element(c *EdCurve, input []frontend.Variable) EdPoint { - L := emulated.NewElement[Ed25519Scalars](rEd25519) + // L := emulated.NewElement[Ed25519Scalars](rEd25519) unchecked_point := decodepoint(c, input) - // TODO: https://github.com/warner/python-pure25519 says this check is not necessary: - // - // > This library is conservative, and performs full subgroup-membership checks on decoded - // > points, which adds considerable overhead. The Curve25519/Ed25519 algorithms were - // > designed to not require these checks, so a careful application might be able to - // > improve on this slightly (Ed25519 verify down to 6.2ms, DH-finish to 3.2ms). - c.AssertIsZero(c.ScalarMul(unchecked_point, L)) + // // TODO: https://github.com/warner/python-pure25519 says this check is not necessary: + // // + // // > This library is conservative, and performs full subgroup-membership checks on decoded + // // > points, which adds considerable overhead. The Curve25519/Ed25519 algorithms were + // // > designed to not require these checks, so a careful application might be able to + // // > improve on this slightly (Ed25519 verify down to 6.2ms, DH-finish to 3.2ms). + // c.AssertIsZero(c.ScalarMul(unchecked_point, L)) return unchecked_point }