diff options
author | Jonas Nick <jonasd.nick@gmail.com> | 2024-07-22 14:14:33 +0000 |
---|---|---|
committer | siv2r <siv2ram@gmail.com> | 2024-07-23 13:09:44 +0530 |
commit | 26bb1d8ea3e2f0f7e02e1ec37a4b70fbc0781f85 (patch) | |
tree | e7d050d01991c7b9ce75364790a440f1ca7555f2 /bip-0327 | |
parent | 0d79b5eeb56af44281618b12d3ee35ef0de932e0 (diff) |
bip-0327: 1.0.1 -> 1.0.2
(cherry picked from commit 4f2e6e7ffbd2fdc095ab8d59827be9da18b790be)
Diffstat (limited to 'bip-0327')
-rw-r--r-- | bip-0327/reference.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bip-0327/reference.py b/bip-0327/reference.py index dd3bf68..17831c5 100644 --- a/bip-0327/reference.py +++ b/bip-0327/reference.py @@ -367,7 +367,7 @@ def sign(secnonce: bytearray, sk: bytes, session_ctx: SessionContext) -> bytes: raise ValueError('secret key value is out of range.') P = point_mul(G, d_) assert P is not None - pk = PlainPk(cbytes(P)) + pk = cbytes(P) if not pk == secnonce[64:97]: raise ValueError('Public key does not match nonce_gen argument') 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 session_ctx = SessionContext(aggnonce, pubkeys, tweaks, is_xonly, msg) return partial_sig_verify_internal(psig, pubnonces[i], pubkeys[i], session_ctx) -def partial_sig_verify_internal(psig: bytes, pubnonce: bytes, pk: PlainPk, session_ctx: SessionContext) -> bool: +def partial_sig_verify_internal(psig: bytes, pubnonce: bytes, pk: bytes, session_ctx: SessionContext) -> bool: (Q, gacc, _, b, R, e) = get_session_values(session_ctx) s = int_from_bytes(psig) if s >= n: |