Skip to content

Commit

Permalink
Wallet migration phase update
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeShark committed Dec 23, 2015
1 parent 656b726 commit ec059d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bip-codeshark-jl2012-segwit.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,10 @@ With a soft fork, it is possible to introduce a separate witness structure to al
== Backward compatibility ==
As a soft fork, older software will continue to operate without modification. Non-upgraded nodes, however, will not see nor validate the witness data and will consider all witness programs as anyone-can-spend scripts (except a few edge cases in version 0 witness programs which are provably unspendable with original script semantics). Wallets should always be wary of anyone-can-spend scripts and treat them with suspicion. Non-upgraded nodes are strongly encouraged to upgrade in order to take advantage of the new features.

Wallets will be able to migrate in two phases:

=== P2SH compatibility ===
=== Version 0 witness programs ===
Witness programs are hashed to 256 bit "redeemscripts" which are then hashed to 160 bit P2SH. This format is fully compatible with currently existing wallets that support P2SH. Upgraded wallets will be able to send and receive to and from older wallets without any problems.

=== Native outputs ===
=== Version 1 witness programs ===
Witness programs are hashed to a 256 bit output. This format will not be compatible with older wallets but will require less block space and will have better security due to increased collision resistance.

== Deployment ==
Expand Down

0 comments on commit ec059d1

Please sign in to comment.