mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 22:45:21 +01:00
Refactor: Rename method and parameter
This commit is contained in:
parent
400fbbd080
commit
5cfa2c77ac
2 changed files with 3 additions and 3 deletions
|
@ -95,8 +95,8 @@ public class BlindVoteConsensus {
|
|||
return Encryption.encrypt(bytes, secretKey);
|
||||
}
|
||||
|
||||
public static byte[] getHashOfEncryptedProposalList(byte[] encryptedProposalList) {
|
||||
return Hash.getSha256Ripemd160hash(encryptedProposalList);
|
||||
public static byte[] getHashOfEncryptedVotes(byte[] encryptedVotes) {
|
||||
return Hash.getSha256Ripemd160hash(encryptedVotes);
|
||||
}
|
||||
|
||||
public static byte[] getOpReturnData(byte[] hash) throws IOException {
|
||||
|
|
|
@ -261,7 +261,7 @@ public class MyBlindVoteListService implements PersistedDataHost, DaoStateListen
|
|||
private byte[] getOpReturnData(byte[] encryptedVotes) throws IOException {
|
||||
// We cannot use hash of whole blindVote data because we create the merit signature with the blindVoteTxId
|
||||
// So we use the encryptedVotes for the hash only.
|
||||
final byte[] hash = BlindVoteConsensus.getHashOfEncryptedProposalList(encryptedVotes);
|
||||
final byte[] hash = BlindVoteConsensus.getHashOfEncryptedVotes(encryptedVotes);
|
||||
log.info("Sha256Ripemd160 hash of encryptedVotes: " + Utilities.bytesAsHexString(hash));
|
||||
return BlindVoteConsensus.getOpReturnData(hash);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue