Skip to content

Commit

Permalink
add support for singing multiple messages
Browse files Browse the repository at this point in the history
Signed-off-by: sczembor <[email protected]>
  • Loading branch information
sczembor committed Dec 11, 2024
1 parent 7c25541 commit 7c99c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (p *Processor) constructBtcTxsData(nativeTx *NativeTxData, signatures [][]b
return nil, err
}

var txs []*dal.Tx
txs := make([]*dal.Tx, 0, len(rawTxs))
for _, rawTx := range rawTxs {
tx := &dal.Tx{
BtcTxID: nativeTx.TxID,
Expand All @@ -89,7 +89,7 @@ func constructRawBtcTxs(nativeTx *NativeTxData, signatures [][]byte) ([][]byte,
if nativeTx == nil || signatures == nil {
return nil, fmt.Errorf("empty")
}
var rawTxs [][]byte
rawTxs := make([][]byte, 0, len(signatures))

for i := range signatures {
rawTx := []byte(fmt.Sprintf("dummy_raw_tx_%d", i))
Expand Down

0 comments on commit 7c99c7b

Please sign in to comment.