mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-04 11:08:05 +01:00
Remove cbytes wrapper from m'
Co-authored-by: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
This commit is contained in:
parent
597004acef
commit
e4f1d7bb8e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ The algorithm ''GenerateProof(a, B, r, G, m)'' is defined as:
|
||||||
* Let ''R<sub>1</sub> = k⋅G''.
|
* Let ''R<sub>1</sub> = k⋅G''.
|
||||||
* Let ''R<sub>2</sub> = k⋅B''.
|
* Let ''R<sub>2</sub> = k⋅B''.
|
||||||
* Let ''m' = m if m is provided, otherwise an empty byte array''.
|
* Let ''m' = m if m is provided, otherwise an empty byte array''.
|
||||||
* Let ''e = int(hash<sub>BIP0???/challenge</sub>(cbytes(A) || cbytes(B) || cbytes(C) || cbytes(G) || cbytes(R<sub>1</sub>) || cbytes(R<sub>2</sub>) || cbytes(m')))''.
|
* Let ''e = int(hash<sub>BIP0???/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 ''s = (k + e⋅a) mod n''.
|
||||||
* Let ''proof = bytes(32, e) || bytes(32, s)''.
|
* 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)'' (see below) returns failure, abort.
|
||||||
|
|
Loading…
Add table
Reference in a new issue