Package org.xrpl.xrpl4j.crypto.core.keys
Interface KeyPairService
public interface KeyPairService
Interface of a service that can perform the crypto operations necessary derive XRPL seeds, key-pairs, and addresses.
-
Method Summary
Modifier and TypeMethodDescriptionderiveKeyPair
(Seed seed) Derive a public/private keypair from a Base58Check encoded 16 byte seed.default Seed
Generate a random 16-byte seed to be used to derive a private key.generateSeed
(Entropy entropy) Generate a 16 byte seed, which can be used to derive a private key, from a non-encoded value.
-
Method Details
-
generateSeed
Generate a random 16-byte seed to be used to derive a private key.- Returns:
- A
String
containing a randomly generated Base58Check encoded seed value.
-
generateSeed
Generate a 16 byte seed, which can be used to derive a private key, from a non-encoded value.- Parameters:
entropy
- AnUnsignedByteArray
containing the bytes of entropy to encode into a seed.- Returns:
- A
String
containing the Base58Check encoded seed value.
-
deriveKeyPair
Derive a public/private keypair from a Base58Check encoded 16 byte seed.
-