Package org.starcoin.types
Class HashValue
- java.lang.Object
-
- org.starcoin.types.HashValue
-
public final class HashValue extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHashValue.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HashValuebcsDeserialize(byte[] input)byte[]bcsSerialize()static HashValuedeserialize(Deserializer deserializer)booleanequals(Object obj)inthashCode()voidserialize(Serializer serializer)static HashValuesha3Of(byte[] content)static HashValuezero()
-
-
-
Field Detail
-
LENGTH
public static final int LENGTH
- See Also:
- Constant Field Values
-
value
public final Bytes value
-
-
Constructor Detail
-
HashValue
public HashValue(Bytes value)
-
-
Method Detail
-
zero
public static HashValue zero()
-
sha3Of
public static HashValue sha3Of(byte[] content)
-
deserialize
public static HashValue deserialize(Deserializer deserializer) throws DeserializationError
- Throws:
DeserializationError
-
bcsDeserialize
public static HashValue bcsDeserialize(byte[] input) throws DeserializationError
- Throws:
DeserializationError
-
serialize
public void serialize(Serializer serializer) throws SerializationError
- Throws:
SerializationError
-
bcsSerialize
public byte[] bcsSerialize() throws SerializationError- Throws:
SerializationError
-
-