Skip to content

Commit

Permalink
Make Sign.getEthereumMessageHash() method public (hyperledger-web3j#1326
Browse files Browse the repository at this point in the history
)

It's useful for unit testing.
  • Loading branch information
kare authored and rach-id committed Apr 12, 2021
1 parent 286bf07 commit 8146017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/src/main/java/org/web3j/crypto/Sign.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static byte[] getEthereumMessagePrefix(int messageLength) {
return MESSAGE_PREFIX.concat(String.valueOf(messageLength)).getBytes();
}

static byte[] getEthereumMessageHash(byte[] message) {
public static byte[] getEthereumMessageHash(byte[] message) {
byte[] prefix = getEthereumMessagePrefix(message.length);

byte[] result = new byte[prefix.length + message.length];
Expand Down

0 comments on commit 8146017

Please sign in to comment.