Skip to content

Commit

Permalink
Hotfix get blinding key for derived address
Browse files Browse the repository at this point in the history
  • Loading branch information
altafan committed Dec 14, 2023
1 parent 008d8ca commit 2726d99
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/core/application/transaction_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,16 @@ func (ts *TransactionService) Transfer(
i := 0
for asset, amount := range changeByAsset {
script, _ := hex.DecodeString(addressesInfo[i].Script)
addr, _ := address.FromConfidential(addressesInfo[i].Address)
var blindingKey []byte
if !account.Unconf {
addr, _ := address.FromConfidential(addressesInfo[i].Address)
blindingKey = addr.BlindingKey
}
changeOutputs = append(changeOutputs, wallet.Output{
Asset: asset,
Amount: amount,
Script: script,
BlindingKey: addr.BlindingKey,
BlindingKey: blindingKey,
})
i++
}
Expand Down

0 comments on commit 2726d99

Please sign in to comment.