You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0340.mediawiki
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,9 +136,9 @@ Input:
136
136
* The secret key ''sk'': a 32-byte array, freshly generated uniformly at random
137
137
138
138
The algorithm ''PubKey(sk)'' is defined as:
139
-
* Let ''d = int(sk)''.
140
-
* Fail if ''d = 0'' or ''d ≥ n''.
141
-
* Return ''bytes(d⋅G)''.
139
+
* Let ''d' = int(sk)''.
140
+
* Fail if ''d' = 0'' or ''d' ≥ n''.
141
+
* Return ''bytes(d'⋅G)''.
142
142
143
143
Note that we use a very different public key format (32 bytes) than the ones used by existing systems (which typically use elliptic curve points as public keys, or 33-byte or 65-byte encodings of them). A side effect is that ''PubKey(sk) = PubKey(bytes(n - int(sk))'', so every public key has two corresponding secret keys.
0 commit comments