summaryrefslogtreecommitdiff
path: root/bip-0327
diff options
context:
space:
mode:
authorsiv2r <siv2ram@gmail.com>2024-07-18 17:09:19 +0530
committersiv2r <siv2ram@gmail.com>2024-07-19 23:52:53 +0530
commit0d79b5eeb56af44281618b12d3ee35ef0de932e0 (patch)
tree9b557126bc6a049d0e8eedbe19e9a5820601b944 /bip-0327
parent1c6ac0c4cf1f39ea806b8594d6060b6d52fd1439 (diff)
remove P = None check as cpoint never returns None
Diffstat (limited to 'bip-0327')
-rw-r--r--bip-0327/reference.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/bip-0327/reference.py b/bip-0327/reference.py
index cc1af50..dd3bf68 100644
--- a/bip-0327/reference.py
+++ b/bip-0327/reference.py
@@ -440,8 +440,6 @@ def partial_sig_verify_internal(psig: bytes, pubnonce: bytes, pk: PlainPk, sessi
Re_s_ = point_add(R_s1, point_mul(R_s2, b))
Re_s = Re_s_ if has_even_y(R) else point_negate(Re_s_)
P = cpoint(pk)
- if P is None:
- return False
a = get_session_key_agg_coeff(session_ctx, P)
g = 1 if has_even_y(Q) else n - 1
g_ = g * gacc % n