Skip to content

Commit

Permalink
Fix sonar complain
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-zack committed Oct 16, 2024
1 parent 0cf1adf commit 0bc0589
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ private static void signLegacyTransactionInputFromP2shMultiSig(BtcTransaction tr
public static List<Sha256Hash> generateTransactionInputsSigHashes(BtcTransaction btcTx) {
return IntStream.range(0, btcTx.getInputs().size())
.mapToObj(i -> generateSigHashForP2SHTransactionInput(btcTx, i))
.collect(Collectors.toList());
.toList();
}

public static List<byte[]> generateSignerEncodedSignatures(BtcECKey signingKey, List<Sha256Hash> sigHashes) {
return sigHashes.stream()
.map(signingKey::sign)
.map(BtcECKey.ECDSASignature::encodeToDER)
.collect(Collectors.toList());
.toList();
}
}

0 comments on commit 0bc0589

Please sign in to comment.