Interface Seed

All Superinterfaces:
Destroyable
All Known Implementing Classes:
Seed.DefaultSeed

public interface Seed extends Destroyable
A compact value that is used to derive the actual private and public keys for an XRPL account.
See Also:
  • "https://xrpl.org/cryptographic-keys.html#seed"
  • Method Details

    • decodedSeed

      Decoded decodedSeed()
      The decoded details of this seed.
      Returns:
      An instance of Decoded.
    • deriveKeyPair

      KeyPair deriveKeyPair()
      Derive a public/private keypair from a Base58Check encoded 16 byte seed.
      Returns:
      The KeyPair derived from the seed.
    • ed25519SeedFromPassphrase

      static Seed ed25519SeedFromPassphrase(Passphrase passphrase)
      Construct an Ed25519-compatible Seed from the supplied Passphrase.
      Parameters:
      passphrase - A Passphrase to generate a seed from.
      Returns:
      A Seed.
    • secp256k1SeedFromPassphrase

      static Seed secp256k1SeedFromPassphrase(Passphrase passphrase)
      Construct an secp256k1-compatible Seed from the supplied Passphrase.
      Parameters:
      passphrase - A Passphrase to generate a seed from.
      Returns:
      A Seed.
    • ed25519Seed

      static Seed ed25519Seed()
      Construct an Ed25519-compatible Seed using a random Entropy instance. This random Entropy is created using Entropy.newInstance().
      Returns:
      A Seed.
    • ed25519SeedFromEntropy

      static Seed ed25519SeedFromEntropy(Entropy entropy)
      Construct an Ed25519-compatible Seed from the supplied Entropy.
      Parameters:
      entropy - A Entropy to generate a Seed from.
      Returns:
      A Seed.
    • secp256k1Seed

      static Seed secp256k1Seed()
      Construct a secp256k1-compatible Seed using a random Entropy instance. This random Entropy is created using Entropy.newInstance().
      Returns:
      A Seed.
    • secp256k1SeedFromEntropy

      static Seed secp256k1SeedFromEntropy(Entropy entropy)
      Construct a secp256k1-compatible Seed from the supplied Entropy.
      Parameters:
      entropy - A Entropy to generate a Seed from.
      Returns:
      A Seed.
    • fromBase58EncodedSecret

      static Seed fromBase58EncodedSecret(Base58EncodedSecret base58EncodedSecret)
      Construct a Seed from the supplied base58EncodedSecret. 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.
      Parameters:
      base58EncodedSecret - A base58-encoded String that represents an encoded seed.
      Returns:
      A Seed.
      See Also:
      • "https://xrpl.org/xrp-testnet-faucet.html"