note about pubkey collision

This commit is contained in:
Anthony Towns 2019-08-24 15:08:05 +10:00 committed by Pieter Wuille
parent 0d04e41e2f
commit 4491902569

View File

@ -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.