Package org.xrpl.xrpl4j.keypairs
Interface KeyPairService
- All Known Implementing Classes:
AbstractKeyPairService
,DefaultKeyPairService
,Ed25519KeyPairService
,Secp256k1KeyPairService
Deprecated.
This class will go away in a future version. Prefer xrpl4j-crypto variants instead.
Interface of a service that can perform the crypto operations necessary to create a wallet, sign and verify XRPL
transactions, and derive XRPL addresses.
-
Method Summary
Modifier and TypeMethodDescriptionderiveAddress
(String publicKey) Deprecated.Consider using AddressUtils instead.deriveAddress
(UnsignedByteArray publicKey) Deprecated.Consider using AddressUtils instead.deriveKeyPair
(String seed) Deprecated.This class will go away in a future version.Deprecated.This class will go away in a future version.generateSeed
(UnsignedByteArray entropy) Deprecated.This class will go away in a future version.Deprecated.Consider using TransactionSigner instead from xrpl4j-crypto.sign
(UnsignedByteArray message, String privateKey) Deprecated.This class will go away in a future version.boolean
Deprecated.Consider using TransactionVerifier instead from xrpl4j-crypto.boolean
verify
(UnsignedByteArray message, String signature, String publicKey) Deprecated.Consider using TransactionVerifier instead from xrpl4j-crypto.
-
Method Details
-
generateSeed
Deprecated.This class will go away in a future version. Prefer xrpl4j-crypto variants instead.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
Deprecated.This class will go away in a future version. Prefer xrpl4j-crypto variants instead.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
Deprecated.This class will go away in a future version. Prefer xrpl4j-crypto variants instead.Derive a public/private keypair from a Base58Check encoded 16 byte seed. -
sign
Deprecated.This class will go away in a future version. Prefer xrpl4j-crypto variants instead.Sign a message using the given private key.- Parameters:
message
- AnUnsignedByteArray
with an arbitrary message.privateKey
- The hexadecimal encoded private key used to sign the transaction.- Returns:
- The signed message, in hexadecimal form.
-
sign
Deprecated.Consider using TransactionSigner instead from xrpl4j-crypto.Sign a message using the given private key.- Parameters:
message
- A hexadecimal encodedString
containing an arbitrary message.privateKey
- The hexadecimal encoded private key used to sign the transaction.- Returns:
- The signed message, in hexadecimal form.
-
verify
Deprecated.Consider using TransactionVerifier instead from xrpl4j-crypto.Verify that the signature is valid, based on the message that was signed and the public key.- Parameters:
message
- The arbitrary message that was signed with a private key.signature
- The hexadecimal encodedString
containing the signature to verify.publicKey
- The hexadecimal encoded public key derived from the private key that was used to sign the message.- Returns:
- true if the signature is valid, false if not.
-
verify
Deprecated.Consider using TransactionVerifier instead from xrpl4j-crypto.Verify that the signature is valid, based on the message that was signed and the public key.- Parameters:
message
- The hexadecimal encoded arbitrary message that was signed with a private key.signature
- The hexadecimal encodedString
containing the signature to verify.publicKey
- The hexadecimal encoded public key derived from the private key that was used to sign the message.- Returns:
- true if the signature is valid, false if not.
-
deriveAddress
Deprecated.Consider using AddressUtils instead.Derive an XRPL address from a public key.- Parameters:
publicKey
- The hexadecimal encoded public key of the account.- Returns:
- A Base58Check encoded XRPL address in Classic Address form.
-
deriveAddress
Deprecated.Consider using AddressUtils instead.Derive an XRPL address from a public key.- Parameters:
publicKey
- The public key of the account.- Returns:
- A Base58Check encoded XRPL address in Classic Address form.
-