Anthony Towns [ARCHIVE] on Nostr: 📅 Original date posted:2018-08-06 📝 Original message:On Sun, Aug 05, 2018 at ...
📅 Original date posted:2018-08-06
📝 Original message:On Sun, Aug 05, 2018 at 10:33:52AM -0400, Russell O'Connor via bitcoin-dev wrote:
> In light of this, I revise my proposed change to make the verification
> equation
>
> R + sG + eP = 0.
Isn't the verification equation "R + s(-G) + eP = 0" equally good, then,
since -G is a constant? (ie, at worst it's a matter of optimising the
verifier for -G as well as G)
If not, what's the actual performance impact of having to negate "s"
as part of batch verifying ~10000 signatures? It seems like it should
be trivially small to me? (scalar_negate benchmarks at 0.00359us, while
ecdsa_verify benchmarks at 66us, which I believe then reduces by a factor
of ~3 for batches of 10k schnorr sigs?)
FWIW, I'm a fan of the formulation "s = r + H(R,P,m)p" mostly because
it seems like the simplest possible way of describing the setup, and I'm
all for optimising for people being able to understand what's going on.
Cheers,
aj
Published at
2023-06-07 18:13:56Event JSON
{
"id": "9da6d1d6385d3e76e4b5de6ea308b32f44e71dd81ee54a500420291f2fce1998",
"pubkey": "f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab",
"created_at": 1686161636,
"kind": 1,
"tags": [
[
"e",
"cf036814e87554b5e976c81579fadaa19d458e14db64edc23227ab153e820f03",
"",
"root"
],
[
"e",
"e8a9de8890f65ba9496193c20ec6d595fac34b4b6675e876bd071cb95535038f",
"",
"reply"
],
[
"p",
"6b8e77368804013d7126ba4b77c7963bcfeff909135791531097d7a0f03ca85d"
]
],
"content": "📅 Original date posted:2018-08-06\n📝 Original message:On Sun, Aug 05, 2018 at 10:33:52AM -0400, Russell O'Connor via bitcoin-dev wrote:\n\u003e In light of this, I revise my proposed change to make the verification\n\u003e equation\n\u003e \n\u003e R + sG + eP = 0.\n\nIsn't the verification equation \"R + s(-G) + eP = 0\" equally good, then,\nsince -G is a constant? (ie, at worst it's a matter of optimising the\nverifier for -G as well as G)\n\nIf not, what's the actual performance impact of having to negate \"s\"\nas part of batch verifying ~10000 signatures? It seems like it should\nbe trivially small to me? (scalar_negate benchmarks at 0.00359us, while\necdsa_verify benchmarks at 66us, which I believe then reduces by a factor\nof ~3 for batches of 10k schnorr sigs?)\n\nFWIW, I'm a fan of the formulation \"s = r + H(R,P,m)p\" mostly because\nit seems like the simplest possible way of describing the setup, and I'm\nall for optimising for people being able to understand what's going on.\n\nCheers,\naj",
"sig": "cf441e998e623082d166569f514c32a824d24e1cf051d6499bcc583493c7f94993bcb896ee0c942172429c764ff8b7ee80678f480870300d49020d1fd99b4272"
}