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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Abstract implementation for immutables.
  • Method Summary

    Modifier and Type
    Method
    Description
    Instantiates a new builder.
    The decoded details of this seed.
    static Seed
    ed25519SeedFromPassphrase(byte[] passphrase)
    Construct an Ed25519-compatible seed from the supplied passphrase.
    static Seed
    secp256k1SeedFromPassphrase(byte[] passphrase)
    Construct an secp256k1-compatible seed from the supplied passphrase.
    The seed value, as a Base58-encoded string.
  • Method Details

    • builder

      static ImmutableDefaultSeed.Builder builder()
      Instantiates a new builder.
      Returns:
      A ImmutableDefaultSeed.Builder.
    • ed25519SeedFromPassphrase

      static Seed ed25519SeedFromPassphrase(byte[] passphrase)
      Construct an Ed25519-compatible seed from the supplied passphrase.
      Parameters:
      passphrase - A byte-array.
      Returns:
      A Seed.
    • secp256k1SeedFromPassphrase

      static Seed secp256k1SeedFromPassphrase(byte[] passphrase)
      Construct an secp256k1-compatible seed from the supplied passphrase.
      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.