@@ -478,7 +478,7 @@ impl PartiallySignedTransaction {
478478 rng : & mut R ,
479479 secp : & secp256k1_zkp:: Secp256k1 < C > ,
480480 inp_txout_sec : & HashMap < usize , TxOutSecrets > ,
481- ) -> Result < Vec < ( AssetBlindingFactor , ValueBlindingFactor ) > , PsetBlindError > {
481+ ) -> Result < Vec < ( AssetBlindingFactor , ValueBlindingFactor , SecretKey ) > , PsetBlindError > {
482482 let ( inp_secrets, outs_to_blind) = self . blind_checks ( inp_txout_sec) ?;
483483
484484 if outs_to_blind. is_empty ( ) {
@@ -491,7 +491,7 @@ impl PartiallySignedTransaction {
491491 let mut ret = vec ! [ ] ; // return all the random values used
492492 for i in outs_to_blind {
493493 let txout = self . outputs [ i] . to_txout ( ) ;
494- let ( txout, abf, vbf, _ ) = txout
494+ let ( txout, abf, vbf, ephemeral_sk ) = txout
495495 . to_non_last_confidential (
496496 rng,
497497 secp,
@@ -538,7 +538,7 @@ impl PartiallySignedTransaction {
538538 ) ) ;
539539 }
540540 // return blinding factors used
541- ret. push ( ( abf, vbf) ) ;
541+ ret. push ( ( abf, vbf, ephemeral_sk ) ) ;
542542 }
543543
544544 // safe to unwrap because we have checked that there is atleast one output to blind
0 commit comments