mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
wallet: make sure extra OP_RETURN output is blinded when called from fundraw
This is a followup to https://github.com/ElementsProject/elements/pull/588
This commit is contained in:
parent
b09b63bd1b
commit
533da12c2c
1 changed files with 2 additions and 0 deletions
|
|
@ -3234,6 +3234,8 @@ bool fillBlindDetails(BlindDetails* det, CWallet* wallet, CMutableTransaction& t
|
|||
// We need to make sure to dupe an asset that is in input set
|
||||
//TODO Have blinding do some extremely minimal rangeproof
|
||||
CTxOut newTxOut(det->o_assets.back(), 0, CScript() << OP_RETURN);
|
||||
CPubKey blind_pub = wallet->GetBlindingPubKey(newTxOut.scriptPubKey); // irrelevent, just needs to be non-null
|
||||
newTxOut.nNonce.vchCommitment = std::vector<unsigned char>(blind_pub.begin(), blind_pub.end());
|
||||
txNew.vout.push_back(newTxOut);
|
||||
det->o_pubkeys.push_back(wallet->GetBlindingPubKey(newTxOut.scriptPubKey));
|
||||
det->o_amount_blinds.push_back(uint256());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue