1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-06-22 17:37:25 +00:00

Fail if any point is infinity when verifying

This commit is contained in:
Andrew Toth
2024-12-21 12:52:54 -05:00
parent 1f875a3706
commit 687198d72b
2 changed files with 3 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ Input:
* An optional message ''m'': a 32-byte array<ref name="why_include_a_message"> ''' Why include a message as an input?''' This could be useful for protocols that want to authorize on a compound statement, not just knowledge of a scalar. This allows the protocol to combine knowledge of the scalar and the statement.</ref>
The algorithm ''VerifyProof(A, B, C, proof, G, m)'' is defined as:
* Fail if any of ''is_infinite(A)'', ''is_infinite(B)'', ''is_infinite(C)'', ''is_infinite(G)''
* Let ''e = int(proof[0:32])''.
* Let ''s = int(proof[32:64])''; fail if ''s &ge; n''.
* Let ''R<sub>1</sub> = s⋅G - e⋅A''.