mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge pull request #1192 from wintercooled/fix-pset-example
fix pset swap example
This commit is contained in:
commit
9c067622cf
1 changed files with 3 additions and 3 deletions
|
|
@ -210,9 +210,9 @@ for out in outputs:
|
|||
elif out in decoded_c["vout"]:
|
||||
blinder_idx = carol_idx
|
||||
|
||||
# The crappy rawtransaction API requires that we reconstruct blinded addresses,
|
||||
# which are split between the "addresses" and "nonce" field
|
||||
address = out["scriptPubKey"]["addresses"][0]
|
||||
# The rawtransaction API requires that we reconstruct the blinded address,
|
||||
# which is split between the "address" and "nonce" (blinding pubkey) fields
|
||||
address = out["scriptPubKey"]["address"]
|
||||
if "commitmentnonce" in out:
|
||||
address = alice.createblindedaddress(address, out["commitmentnonce"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue