mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-17 21:32:50 +01:00
Move updater to before signer
This commit is contained in:
parent
0d5e14ce19
commit
c12ea5ac58
@ -115,6 +115,12 @@ Additionally to PSBTv2, the Constructor must also follow additional rules:
|
||||
Inputs spending an output with script using Segwit version > 1 may only be added if there are no outputs with PSBT_OUT_SP_V0_INFO set.
|
||||
Outputs with PSBT_OUT_SP_V0_INFO set may only be added if there are no inputs spending an output script using Segwit version > 1.
|
||||
|
||||
===Updater===
|
||||
|
||||
====Change Detection====
|
||||
|
||||
Updaters may add two PSBT_OUT_BIP32_DERIVATION key-value-pairs with the corresponding derivation path of both the scan and spend keys. The Signer can then use these fields to verify that the silent payment code is change.
|
||||
|
||||
===Signer===
|
||||
|
||||
All rules must be followed from PSBTv2 for this role. If there are any outputs with PSBT_OUT_SP_V0_INFO set, then the following additional rules must also be adhered to:
|
||||
@ -164,10 +170,6 @@ Compute the PSBT_OUT_SCRIPT using the procedure in [https://github.com/bitcoin/b
|
||||
If there are multiple silent payment codes with the same scan key, sort the codes lexicographically in ascending order to determine the ordering of the ''k'' value.
|
||||
If there are multiple silent payment codes with both the same scan and spend keys, sort the subgroup by output index in ascending order.
|
||||
|
||||
====Change Detection====
|
||||
|
||||
Updaters may add two PSBT_OUT_BIP32_DERIVATION key-value-pairs with the corresponding derivation path of both the scan and spend keys. The Signer can then use these fields to verify that the silent payment code is change.
|
||||
|
||||
===Transaction Extractor===
|
||||
|
||||
For silent payment capable PSBTs, the transaction extractor should compute all output scripts for silent payment codes and verify they are correct using the ECDH shares and DLEQ proofs, otherwise fail.
|
||||
|
Loading…
x
Reference in New Issue
Block a user