Skip to content

Commit

Permalink
ch07: Swap placement of sender and receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
wbnns committed Mar 10, 2021
1 parent e6f8c9d commit 553e1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch07.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ However, to spend the Segregated Witness output, the transaction has no signatur

===== Wallet construction of P2WPKH

It is extremely important to note that P2WPKH should only be created by the payee (recipient) and not converted by the sender from a known public key, P2PKH script, or address. The sender has no way of knowing if the recipient's wallet has the ability to construct segwit transactions and spend P2WPKH outputs.
It is extremely important to note that P2WPKH should only be created by the payee (recipient) and not converted by the sender from a known public key, P2PKH script, or address. The receiver has no way of knowing if the sender's wallet has the ability to construct segwit transactions and spend P2WPKH outputs.

Additionally, P2WPKH outputs must be constructed from the hash of a _compressed_ public key. Uncompressed public keys are nonstandard in segwit and may be explicitly disabled by a future soft fork. If the hash used in the P2WPKH came from an uncompressed public key, it may be unspendable and you may lose funds. P2WPKH outputs should be created by the payee's wallet by deriving a compressed public key from their private key.

Expand Down

0 comments on commit 553e1a5

Please sign in to comment.