mirror of
https://github.com/bitcoin/bips.git
synced 2025-11-03 14:19:40 +00:00
BIP-374: Pass G and m to VerifyProof in GenerateProof self-check
This commit is contained in:
parent
1d186274ea
commit
1bb1aee5b0
@ -82,7 +82,7 @@ The algorithm ''GenerateProof(a, B, r, G, m)'' is defined as:
|
||||
* Let ''e = int(hash<sub>BIP0374/challenge</sub>(cbytes(A) || cbytes(B) || cbytes(C) || cbytes(G) || cbytes(R<sub>1</sub>) || cbytes(R<sub>2</sub>) || m'))''.
|
||||
* Let ''s = (k + e⋅a) mod n''.
|
||||
* Let ''proof = bytes(32, e) || bytes(32, s)''.
|
||||
* If ''VerifyProof(A, B, C, proof)'' (see below) returns failure, abort.
|
||||
* If ''VerifyProof(A, B, C, proof, G, m)'' (see below) returns failure, abort.
|
||||
* Return the proof ''proof''.
|
||||
|
||||
=== DLEQ Proof Verification ===
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user