mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Update size of ECDH share and unify spacing
This commit is contained in:
parent
eb115afa7f
commit
8e90f02dc5
@ -17,7 +17,7 @@
|
||||
|
||||
===Abstract===
|
||||
|
||||
This document proposes additional fields and updated role responsibilities for BIP 370 PSBTv2
|
||||
This document proposes additional fields and updated role responsibilities for BIP370 PSBTv2
|
||||
which adds support for sending to silent payments as described in BIP352.
|
||||
|
||||
===Copyright===
|
||||
@ -26,7 +26,7 @@ This BIP is licensed under the 2-clause BSD license.
|
||||
|
||||
===Motivation===
|
||||
|
||||
Partially Signed Bitcoin Transaction Version 2 as described in BIP 370 is not compatible with sending to silent payments as described in BIP352. In particular, the output script of a silent payment cannot be computed until after all transaction inputs have been added.
|
||||
Partially Signed Bitcoin Transaction Version 2 as described in BIP370 is not compatible with sending to silent payments as described in BIP352. In particular, the output script of a silent payment cannot be computed until after all transaction inputs have been added.
|
||||
Also, any inputs that the Signer has the private keys for must be signed with SIGHASH_ALL and all inputs must not have any scriptPubKeys with Segwit version > 1.
|
||||
Additionally, the silent payment outputs computed by a signer must be verifiable to other entities.
|
||||
Therefore, new fields and role responsibilities must be added to carry, compute, and verify the silent payment data.
|
||||
@ -54,7 +54,7 @@ The new global types are defined as follows:
|
||||
| <tt>PSBT_GLOBAL_SP_ECDH_SHARE = 0x07</tt>
|
||||
| <tt><33 byte scan key> <36 byte outpoint>*</tt>
|
||||
| The scan key and a list of outpoints corresponding to the prevouts of the inputs that this ECDH share is for. The outpoints are composed of a 32 byte txid followed by a 32-bit little endian uint.
|
||||
| <tt><32 byte share></tt>
|
||||
| <tt><33 byte share></tt>
|
||||
| An ECDH share for a scan key, followed by a list of outpoints. The ECDH shared is computed with ''a * B_scan'', where ''a'' is the sum of all private keys of the inputs matching the list of outpoints, and ''B_scan'' is the scan key of a recipient.
|
||||
|
|
||||
| 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user