mirror of
https://github.com/bitcoin/bips.git
synced 2026-02-23 15:38:22 +00:00
Add policy descriptions to BIP141 and 143 and address some nits.
This commit is contained in:
@@ -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 ==
|
||||
|
||||
|
||||
Reference in New Issue
Block a user