Package org.starcoin.utils
Class HashUtils
- java.lang.Object
-
- org.starcoin.utils.HashUtils
-
public class HashUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description HashUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]hash(byte[] prefix, byte[] bytes)static StringhashStarcoinSignedUserTransaction(byte[] signedMessage)static byte[]hashWithStarcoinPrefix(String name)static byte[]sha3Hash(byte[] data)static Stringsha3HashStr(byte[] data)
-
-
-
Method Detail
-
hashStarcoinSignedUserTransaction
public static String hashStarcoinSignedUserTransaction(byte[] signedMessage)
-
hashWithStarcoinPrefix
public static byte[] hashWithStarcoinPrefix(String name)
-
hash
public static byte[] hash(byte[] prefix, byte[] bytes)
-
sha3Hash
public static byte[] sha3Hash(byte[] data)
-
sha3HashStr
public static String sha3HashStr(byte[] data)
-
-