summaryrefslogtreecommitdiff
path: root/bip-schnorr.mediawiki
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2019-08-24 15:08:05 +1000
committerPieter Wuille <pieter.wuille@gmail.com>2020-01-19 14:47:33 -0800
commit4491902569315b375f5bd41e66d0a21a4e570852 (patch)
tree45e0c039435e373328449fcc0ee61505f4352eaf /bip-schnorr.mediawiki
parent0d04e41e2f5a588300e5c6603f40e5538e1e0e54 (diff)
downloadbips-4491902569315b375f5bd41e66d0a21a4e570852.tar.xz
note about pubkey collision
Diffstat (limited to 'bip-schnorr.mediawiki')
-rw-r--r--bip-schnorr.mediawiki2
1 files changed, 2 insertions, 0 deletions
diff --git a/bip-schnorr.mediawiki b/bip-schnorr.mediawiki
index 9c80cd5..bb2f9dc 100644
--- a/bip-schnorr.mediawiki
+++ b/bip-schnorr.mediawiki
@@ -128,6 +128,8 @@ To generate the corresponding public key:
* Fail if ''int(sk) = 0'' or ''int(sk) >= n''
* The public key corresponding to secret key ''sk'' is ''pubkey(sk)''.
+Note that the two secret keys ''sk'' and ''bytes(n-int(sk))'' will generate the same public key.
+
Alternatively, the public key can be created according to [https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki BIP32] which describes the derivation of 33-byte compressed public keys.
In order to translate such public keys into bip-schnorr compatible keys, the first byte must be dropped.