New answers tagged

0

One simple way is to use StringBuilder to append the strings as arguments for kaccak256, then to use library web3j to use sha3 method. StringBuilder sb = new StringBuilder(arg1); sb.append(arg2); sb.append(arg3); byte[] hash = Hash.sha3(Numeric.hexStringToByteArray(String.valueOf(sb)));


Top 50 recent answers are included