Package org.xrpl.xrpl4j.crypto.core.keys
Class Seed
java.lang.Object
org.xrpl.xrpl4j.crypto.core.keys.Seed
- All Implemented Interfaces:
Destroyable
A compact value that is used to derive the actual private and public keys for an account.
- See Also:
-
- "https://xrpl.org/cryptographic-keys.html#seed"
-
Method Summary
Modifier and TypeMethodDescriptionThe decoded details of this seed.final void
destroy()
static Seed
ed25519SeedFromEntropy
(Entropy entropy) Construct an Ed25519-compatibleSeed
from the suppliedpassphrase
.static Seed
ed25519SeedFromPassphrase
(Passphrase passphrase) Construct an Ed25519-compatibleSeed
from the suppliedpassphrase
.boolean
static Seed
fromBase58EncodedSecret
(String base58EncodedSecret) Construct aSeed
from the suppliedbase58EncodedSecret
.int
hashCode()
final boolean
static Seed
secp256k1SeedFromEntropy
(Entropy entropy) Construct an SECP256K1-compatibleSeed
from the suppliedPassphrase
.static Seed
secp256k1SeedFromPassphrase
(Passphrase passphrase) Construct an SECP256K1-compatibleSeed
from the suppliedPassphrase
.toString()
-
Method Details
-
ed25519SeedFromPassphrase
Construct an Ed25519-compatibleSeed
from the suppliedpassphrase
.- Parameters:
passphrase
- APassphrase
to generate a seed from.- Returns:
- A
Seed
.
-
secp256k1SeedFromPassphrase
Construct an SECP256K1-compatibleSeed
from the suppliedPassphrase
.- Parameters:
passphrase
- APassphrase
to generate a seed from.- Returns:
- A
Seed
.
-
ed25519SeedFromEntropy
Construct an Ed25519-compatibleSeed
from the suppliedpassphrase
. -
secp256k1SeedFromEntropy
Construct an SECP256K1-compatibleSeed
from the suppliedPassphrase
. -
fromBase58EncodedSecret
Construct aSeed
from the suppliedbase58EncodedSecret
. Values for this function are most commonly found from an XRP Faucet, for example for the XRP devnet or testnet. On the xrpl.org documentation page, this value is often referred to as an account "secret", but it is actually just a base58-encoded string that contains an encoded 16-bytes of entropy, in addition to other binary padding and identification data. -
decodedSeed
The decoded details of this seed.- Returns:
- An instance of
Decoded
.
-
destroy
public final void destroy()- Specified by:
destroy
in interfaceDestroyable
-
isDestroyed
public final boolean isDestroyed()- Specified by:
isDestroyed
in interfaceDestroyable
-
equals
-
hashCode
public int hashCode() -
toString
-