Merge 9c067622cf into merged_master (Elements PR #1192)

This commit is contained in:
James Dorfman 2023-03-13 05:27:12 +00:00
commit 0a67cb9acd

View file

@ -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"])