diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-06-13 09:24:07 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2021-07-02 14:47:16 +1000 |
commit | d616d5492bc6e6566af1b9f9e43b660bcd48ca29 (patch) | |
tree | 4fb2269efb70c134372df73d59e07f452f77dc60 /bip-0118.mediawiki | |
parent | 420dc42f0e771b1ee131b4fff9c50530e140b463 (diff) | |
download | bips-d616d5492bc6e6566af1b9f9e43b660bcd48ca29.tar.xz |
BIP118: tweak wording around 1-byte pubkey
Diffstat (limited to 'bip-0118.mediawiki')
-rw-r--r-- | bip-0118.mediawiki | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bip-0118.mediawiki b/bip-0118.mediawiki index df3e42b..8fa3d52 100644 --- a/bip-0118.mediawiki +++ b/bip-0118.mediawiki @@ -60,14 +60,14 @@ These keys are termed '''BIP 118 public keys'''. ==== Rules for signature opcodes ==== -The [[bip-0342.mediawiki|BIP 342]] rules for signature opcodes are modified by removing keys with the first byte <code>0x01</code> and length of 1-byte or 33-bytes from the list of unknown public key types, and adding the following rule prior to the handling of unknown public key types: +The [[bip-0342.mediawiki|BIP 342]] rules for signature opcodes are modified by removing keys with the first byte <code>0x01</code> and length of either 1-byte or 33-bytes from the list of unknown public key types, and adding the following rule prior to the handling of unknown public key types: * If the public key is the single byte <code>0x01</code>, or if the public key is 33 bytes and the first byte of the public key is <code>0x01</code>, it is considered to be a BIP 118 public key: ** If the signature is not the empty vector, the signature is validated according to the [[bip-0341.mediawiki|BIP 341]] signing validation rules with the public key, allowable <code>hash_type</code> values, and transaction digest modified as defined below. ==== Public key ==== -To convert a 1-byte BIP 118 public key for use with [[bip-0340.mediawiki|BIP 340]], use the 32-byte taproot internal key, <code>p</code>, as defined in [[bip-0341.mediawiki|BIP 341]]. +To convert the 1-byte BIP 118 public key for use with [[bip-0340.mediawiki|BIP 340]], use the 32-byte taproot internal key, <code>p</code>, as defined in [[bip-0341.mediawiki|BIP 341]]. To convert a 33-byte BIP 118 public key for use with [[bip-0340.mediawiki|BIP 340]], remove the <code>0x01</code> prefix and use the remaining 32 bytes. |