Skip to content

Commit 26bb1d8

Browse files
jonasnicksiv2r
authored andcommitted
bip-0327: 1.0.1 -> 1.0.2
(cherry picked from commit 4f2e6e7)
1 parent 0d79b5e commit 26bb1d8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bip-0327.mediawiki

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,8 @@ An exception to this rule is <code>MAJOR</code> version zero (0.y.z) which is fo
782782
The <code>MINOR</code> version is incremented whenever the inputs or the output of an algorithm changes in a backward-compatible way or new backward-compatible functionality is added.
783783
The <code>PATCH</code> version is incremented for other changes that are noteworthy (bug fixes, test vectors, important clarifications, etc.).
784784
785+
* '''1.0.2''' (2024-07-22):
786+
** Fix minor bug in the specification of ''DeterministicSign'' and add small improvement to a ''PartialSigAgg'' test vector.
785787
* '''1.0.1''' (2024-05-14):
786788
** Fix minor issue in ''PartialSigVerify'' vectors.
787789
* '''1.0.0''' (2023-03-26):
@@ -825,4 +827,4 @@ The <code>PATCH</code> version is incremented for other changes that are notewor
825827
826828
== Acknowledgements ==
827829
828-
We thank Brandon Black, Riccardo Casatta, Lloyd Fournier, Russell O'Connor, and Pieter Wuille for their contributions to this document.
830+
We thank Brandon Black, Riccardo Casatta, Sivaram Dhakshinamoorthy, Lloyd Fournier, Russell O'Connor, and Pieter Wuille for their contributions to this document.

bip-0327/reference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def sign(secnonce: bytearray, sk: bytes, session_ctx: SessionContext) -> bytes:
367367
raise ValueError('secret key value is out of range.')
368368
P = point_mul(G, d_)
369369
assert P is not None
370-
pk = PlainPk(cbytes(P))
370+
pk = cbytes(P)
371371
if not pk == secnonce[64:97]:
372372
raise ValueError('Public key does not match nonce_gen argument')
373373
a = get_session_key_agg_coeff(session_ctx, P)
@@ -430,7 +430,7 @@ def partial_sig_verify(psig: bytes, pubnonces: List[bytes], pubkeys: List[PlainP
430430
session_ctx = SessionContext(aggnonce, pubkeys, tweaks, is_xonly, msg)
431431
return partial_sig_verify_internal(psig, pubnonces[i], pubkeys[i], session_ctx)
432432

433-
def partial_sig_verify_internal(psig: bytes, pubnonce: bytes, pk: PlainPk, session_ctx: SessionContext) -> bool:
433+
def partial_sig_verify_internal(psig: bytes, pubnonce: bytes, pk: bytes, session_ctx: SessionContext) -> bool:
434434
(Q, gacc, _, b, R, e) = get_session_values(session_ctx)
435435
s = int_from_bytes(psig)
436436
if s >= n:

0 commit comments

Comments
 (0)