Package org.xrpl.xrpl4j.crypto.keys
Interface Seed
- All Superinterfaces:
Destroyable
- All Known Implementing Classes:
Seed.DefaultSeed
A compact value that is used to derive the actual private and public keys for an XRPL account.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe decoded details of this seed.Derive a public/private keypair from a Base58Check encoded 16 byte seed.static Seedstatic Seeded25519SeedFromEntropy(Entropy entropy) static Seeded25519SeedFromPassphrase(Passphrase passphrase) Construct an Ed25519-compatibleSeedfrom the suppliedPassphrase.static SeedfromBase58EncodedSecret(Base58EncodedSecret base58EncodedSecret) Construct aSeedfrom the suppliedbase58EncodedSecret.static Seedstatic Seedsecp256k1SeedFromEntropy(Entropy entropy) static Seedsecp256k1SeedFromPassphrase(Passphrase passphrase) Construct an secp256k1-compatibleSeedfrom the suppliedPassphrase.Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
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
KeyPairderived from the seed.
-
ed25519SeedFromPassphrase
Construct an Ed25519-compatibleSeedfrom the suppliedPassphrase.- Parameters:
passphrase- APassphraseto generate a seed from.- Returns:
- A
Seed.
-
secp256k1SeedFromPassphrase
Construct an secp256k1-compatibleSeedfrom the suppliedPassphrase.- Parameters:
passphrase- APassphraseto generate a seed from.- Returns:
- A
Seed.
-
ed25519Seed
Construct an Ed25519-compatibleSeedusing a randomEntropyinstance. This randomEntropyis created usingEntropy.newInstance().- Returns:
- A
Seed.
-
ed25519SeedFromEntropy
-
secp256k1Seed
Construct a secp256k1-compatibleSeedusing a randomEntropyinstance. This randomEntropyis created usingEntropy.newInstance().- Returns:
- A
Seed.
-
secp256k1SeedFromEntropy
-
fromBase58EncodedSecret
Construct aSeedfrom 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.
-