diff options
Diffstat (limited to 'bip-0143.mediawiki')
-rw-r--r-- | bip-0143.mediawiki | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bip-0143.mediawiki b/bip-0143.mediawiki index 892c027..a0b0cce 100644 --- a/bip-0143.mediawiki +++ b/bip-0143.mediawiki @@ -125,6 +125,11 @@ Refer to the reference implementation, reproduced below, for the precise algorit return ss.GetHash(); </source> +== Restrictions on public key type == +As a default policy, only compressed public keys are accepted in P2WPKH and P2WSH. Each public key passed to a sigop inside version 0 witness program must be a compressed key: the first byte MUST be either 0x02 or 0x03, and the size MUST be 33 bytes. Transactions that break this rule will not be relayed or mined by default. + +Since this policy is preparation for a future softfork proposal, to avoid potential future funds loss, users MUST NOT use uncompressed keys in version 0 witness programs. + == Example == === Native P2WPKH === @@ -538,7 +543,7 @@ As a soft fork, older software will continue to operate without modification. No == Reference Implementation == -https://github.com/bitcoin/bitcoin/pull/7910 +https://github.com/bitcoin/bitcoin/pull/8149 == References == |