Package org.symbol.sdk
Class CryptoTypes.Hash256
java.lang.Object
org.symbol.sdk.ByteArray
org.symbol.sdk.CryptoTypes.Hash256
- All Implemented Interfaces:
Serializer
- Enclosing class:
CryptoTypes
- Hash256
- Represents a 256-bit hash.
-
Field Details
-
SIZE
public static final int SIZEByte size of raw hash.- See Also:
-
-
Constructor Details
-
Hash256
public Hash256(byte[] bytes) Creates a hash from raw bytes.- Parameters:
bytes- Input byte array.
-
Hash256
Creates a hash from a hex string.- Parameters:
hex- Input string.
-
-
Method Details
-
zero
- Hash256.zero
- Creates a zeroed hash.
- Returns:
- Zeroed hash.
-