diff options
author | Luke-Jr <luke_github1@dashjr.org> | 2016-10-05 19:57:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-05 19:57:50 +0000 |
commit | 50f459166f075ba0d725d385f57679ef0c6fef61 (patch) | |
tree | e24f5199128b6bb210054e54241a7f0c84f897a3 /bip-0143.mediawiki | |
parent | ed5661dbec67bf8b02f6aea74011b5e5f84c3c1f (diff) | |
parent | 3f59ccdddc84f309dd8268706ac8240e3e42dc2b (diff) | |
download | bips-50f459166f075ba0d725d385f57679ef0c6fef61.tar.xz |
Merge pull request #459 from jl2012/segwitscript
Add policy descriptions to BIP141 and 143 and address some nits.
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 == |