mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-22 08:08:11 +00:00
Edited ch07_authorization-authentication.adoc with Atlas code editor
This commit is contained in:
parent
23c8cedb73
commit
a9dbb5f2f1
@ -1492,7 +1492,7 @@ as nested P2WSH.
|
||||
|
||||
===== Nested pay to witness public key hash
|
||||
|
||||
The first((("P2WPKH (pay to witness public key hash)", "nesting", id="p2wpkh-nest")))((("nesting", "P2WPKH (pay to witness public key hash)", id="nest-p2wpkh"))) form of output script we will examine is nested P2WPKH. This
|
||||
The first((("P2WPKH (pay to witness public key hash)", "nesting", id="p2wpkh-nest")))((("nesting", "P2WPKH (pay to witness public key hash)", id="nest-p2wpkh-ch7"))) form of output script we will examine is nested P2WPKH. This
|
||||
is a pay to witness public key hash witness program, embedded inside a
|
||||
pay to script hash script, so that a wallet that is
|
||||
not aware of segwit can pay the output script.
|
||||
@ -1525,11 +1525,11 @@ OP_HASH160 3e0547268b3b19288b3adef9719ec8659f4b2b0b OP_EQUAL
|
||||
----
|
||||
|
||||
Even though Alice's wallet has no support for segwit, the payment it
|
||||
creates can be spent by Bob with a segwit ((("P2WPKH (pay to witness public key hash)", "nesting", startref="p2wpkh-nest")))((("nesting", "P2WPKH (pay to witness public key hash)", startref="nest-p2wpkh")))transaction.
|
||||
creates can be spent by Bob with a segwit ((("P2WPKH (pay to witness public key hash)", "nesting", startref="p2wpkh-nest")))((("nesting", "P2WPKH (pay to witness public key hash)", startref="nest-p2wpkh-ch7")))transaction.
|
||||
|
||||
===== Nested pay to witness script hash
|
||||
|
||||
Similarly, ((("P2WSH (pay to witness script hash)", "nesting", id="p2wsh-nest")))((("nesting", "P2WSH (pay to witness script hash)", id="nest-p2wpkh")))a P2WSH witness program for a multisig script or other
|
||||
Similarly, ((("P2WSH (pay to witness script hash)", "nesting", id="p2wsh-nest")))((("nesting", "P2WSH (pay to witness script hash)", id="nest-p2wsh-ch7")))a P2WSH witness program for a multisig script or other
|
||||
complicated script can be embedded inside a P2SH script and address,
|
||||
making it possible for any wallet to make payments that are segwit
|
||||
compatible.
|
||||
@ -1577,7 +1577,7 @@ OP_HASH160 86762607e8fe87c0c37740cddee880988b9455b2 OP_EQUAL
|
||||
----
|
||||
|
||||
Mohammed's company can then construct segwit transactions to spend these
|
||||
payments, taking advantage of segwit features including ((("scripts", "examples of", startref="script-example-complex")))((("scripts", "segregated witness", startref="script-segwit")))((("segregated witness (segwit)", "scripts and", startref="segwit-script")))((("scripts", "segregated witness", "upgrading to", startref="script-segwit-upgrade")))((("segregated witness (segwit)", "scripts and", "upgrading to", startref="segwit-script-upgrade")))((("upgrading to segregated witness", startref="upgrade-segwit")))((("P2WSH (pay to witness script hash)", "nesting", startref="p2wsh-nest")))((("nesting", "P2WSH (pay to witness script hash)", startref="nest-p2wpkh")))lower
|
||||
payments, taking advantage of segwit features including ((("scripts", "examples of", startref="script-example-complex")))((("scripts", "segregated witness", startref="script-segwit")))((("segregated witness (segwit)", "scripts and", startref="segwit-script")))((("scripts", "segregated witness", "upgrading to", startref="script-segwit-upgrade")))((("segregated witness (segwit)", "scripts and", "upgrading to", startref="segwit-script-upgrade")))((("upgrading to segregated witness", startref="upgrade-segwit")))((("P2WSH (pay to witness script hash)", "nesting", startref="p2wsh-nest")))((("nesting", "P2WSH (pay to witness script hash)", startref="nest-p2wsh-ch7")))lower
|
||||
transaction fees.
|
||||
|
||||
[[mast]]
|
||||
|
Loading…
Reference in New Issue
Block a user