Package com.algorand.algosdk.crypto
Class Digest
- java.lang.Object
-
- com.algorand.algosdk.crypto.Digest
-
- All Implemented Interfaces:
Serializable
public class Digest extends Object implements Serializable
A serializable class representing a SHA512-256 Digest- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getBytes()
String
toString()
Encode the digest to a string.
-
-
-
Constructor Detail
-
Digest
public Digest(byte[] bytes)
Create a new digest.- Parameters:
bytes
- a length 32 byte array.
-
Digest
public Digest(String base32StringDigest)
Create a new digest from a base64 encoded string.- Parameters:
base32StringDigest
- base64 encoded string
-
Digest
public Digest()
Uninitialized object used for serializer to ignore default values.
-
-