From d616d5492bc6e6566af1b9f9e43b660bcd48ca29 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Sun, 13 Jun 2021 09:24:07 +1000 Subject: BIP118: tweak wording around 1-byte pubkey --- bip-0118.mediawiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bip-0118.mediawiki') 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 0x01 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 0x01 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 0x01, or if the public key is 33 bytes and the first byte of the public key is 0x01, 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 hash_type 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, p, 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, p, 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 0x01 prefix and use the remaining 32 bytes. -- cgit v1.2.3