mirror of
https://github.com/bitcoin/bips.git
synced 2026-05-18 16:59:30 +00:00
BIP-352: test vectors: allow specifying repeated recipients for sending
Introduce an optional "count" field for recipient objects. Also update the documentation of the fields.
This commit is contained in:
@@ -393,7 +393,15 @@ A [[bip-0352/send_and_receive_test_vectors.json|collection of test vectors in JS
|
||||
{
|
||||
"given": {
|
||||
"vin": [<array of vin objects with an added field for the private key. These objects are structured to match the `vin` output field from `getrawtransaction verbosity=2`>],
|
||||
"recipients": [<array of strings, where each string is a bech32m encoding representing a silent payment address>]
|
||||
"recipients": [<array of recipient objects, consisting of the address and its contained scan/spend public keys each>
|
||||
{
|
||||
"address": <bech32m encoding representing a silent payment address>,
|
||||
"scan_pub_key": <hex encoded scan public key>,
|
||||
"spend_pub_key": <hex encoded spend public key>,
|
||||
"count": <optional integer for specifying the same recipient repeatedly (1 by default)>
|
||||
},
|
||||
...
|
||||
]
|
||||
},
|
||||
"expected": {
|
||||
"outputs": [<array of strings, where each string is a hex encoding of 32-byte X-only public key; contains all possible output sets, test must match a subset of size `n_outputs`>],
|
||||
|
||||
Reference in New Issue
Block a user