Package org.xrpl.xrpl4j.crypto.keys
Class Entropy
java.lang.Object
org.xrpl.xrpl4j.crypto.keys.Entropy
- All Implemented Interfaces:
Destroyable
A compact value that is used to derive the actual private and public keys for an account.
-
Method Summary
Modifier and TypeMethodDescriptionfinal voiddestroy()booleaninthashCode()final booleanstatic EntropyConstruct a new instance of anEntropy.static Entropyof(byte[] entropy) Construct a new instance of anEntropyfrom the supplied byte array.toString()value()Accessor for a copy of the value of this seed.
-
Method Details
-
newInstance
Construct a new instance of anEntropy.- Returns:
- An
Entropy.
-
of
Construct a new instance of anEntropyfrom the supplied byte array.- Parameters:
entropy- An array of bytes.- Returns:
- An
Entropy.
-
value
Accessor for a copy of the value of this seed.- Returns:
- An instance of
UnsignedByteArray.
-
destroy
public final void destroy()- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public final boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-
equals
-
hashCode
public int hashCode() -
toString
-