summaryrefslogtreecommitdiff
path: root/bip-0143.mediawiki
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@xbt.hk>2016-10-05 17:33:02 +0800
committerJohnson Lau <jl2012@xbt.hk>2016-10-05 21:00:53 +0800
commit3f59ccdddc84f309dd8268706ac8240e3e42dc2b (patch)
treee24f5199128b6bb210054e54241a7f0c84f897a3 /bip-0143.mediawiki
parented5661dbec67bf8b02f6aea74011b5e5f84c3c1f (diff)
downloadbips-3f59ccdddc84f309dd8268706ac8240e3e42dc2b.tar.xz
Add policy descriptions to BIP141 and 143 and address some nits.
Diffstat (limited to 'bip-0143.mediawiki')
-rw-r--r--bip-0143.mediawiki7
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 ==