summaryrefslogtreecommitdiff
path: root/bip-0340/test-vectors.py
diff options
context:
space:
mode:
authorAlexander Cyon <alex.cyon@gmail.com>2024-05-28 19:25:46 +0200
committerAlexander Cyon <alex.cyon@gmail.com>2024-05-28 19:25:46 +0200
commit1eefea0456d661b4c51f3a40b7262d6a99161edd (patch)
tree4f84740d22e4220a8c0488e1932d6ee8b3841547 /bip-0340/test-vectors.py
parente2f7481a132e1c5863f5ffcbff009964d7c2af20 (diff)
downloadbips-1eefea0456d661b4c51f3a40b7262d6a99161edd.tar.xz
Fix typos on 17 files.
Diffstat (limited to 'bip-0340/test-vectors.py')
-rw-r--r--bip-0340/test-vectors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0340/test-vectors.py b/bip-0340/test-vectors.py
index 317f2ec..9a5a140 100644
--- a/bip-0340/test-vectors.py
+++ b/bip-0340/test-vectors.py
@@ -99,7 +99,7 @@ def insecure_schnorr_sign_fixed_nonce(msg, seckey0, k):
e = int_from_bytes(tagged_hash("BIP0340/challenge", bytes_from_point(R) + bytes_from_point(P) + msg)) % n
return bytes_from_point(R) + bytes_from_int((k + e * seckey) % n)
-# Creates a singature with a small x(R) by using k = -1/2
+# Creates a signature with a small x(R) by using k = -1/2
def vector4():
one_half = n - 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0
seckey = bytes_from_int(0x763758E5CBEEDEE4F7D3FC86F531C36578933228998226672F13C4F0EBE855EB)