Skip to content

Commit

Permalink
Merge pull request #1192 from wintercooled/fix-pset-example
Browse files Browse the repository at this point in the history
fix pset swap example
  • Loading branch information
psgreco committed Nov 18, 2022
2 parents 816585d + 437e1e7 commit 9c06762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/assets_tutorial/pset_swap_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@
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"])

Expand Down

0 comments on commit 9c06762

Please sign in to comment.