Package org.xrpl.xrpl4j.crypto
Interface Seed
- All Known Implementing Classes:
ImmutableDefaultSeed
,Seed.DefaultSeed
public interface Seed
A typed instance of an XRPL Seed, which can be decoded into an instance of
Decoded
.- See Also:
-
- "https://xrpl.org/cryptographic-keys.html#seed"
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Abstract implementation for immutables. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableDefaultSeed.Builder
builder()
Instantiates a new builder.The decoded details of this seed.static Seed
ed25519SeedFromPassphrase
(byte[] passphrase) Construct an Ed25519-compatible seed from the suppliedpassphrase
.static Seed
secp256k1SeedFromPassphrase
(byte[] passphrase) Construct an secp256k1-compatible seed from the suppliedpassphrase
.value()
The seed value, as a Base58-encoded string.
-
Method Details
-
builder
Instantiates a new builder.- Returns:
- A
ImmutableDefaultSeed.Builder
.
-
ed25519SeedFromPassphrase
Construct an Ed25519-compatible seed from the suppliedpassphrase
.- Parameters:
passphrase
- A byte-array.- Returns:
- A
Seed
.
-
secp256k1SeedFromPassphrase
Construct an secp256k1-compatible seed from the suppliedpassphrase
.- Parameters:
passphrase
- A byte array.- Returns:
- A
Seed
.
-
value
String value()The seed value, as a Base58-encoded string.- Returns:
- A
String
.
-
decodedSeed
Decoded decodedSeed()The decoded details of this seed.- Returns:
- An instance of
Decoded
.
-