XRPPrivateKey.fromHex constructor
XRPPrivateKey.fromHex(
- String privateKey, {
- XRPKeyAlgorithm? algorithm,
Factory constructor for creating an XRP private key from a hexadecimal representation.
privateKey
is the hexadecimal private key to be used for XRP transactions.
Implementation
factory XRPPrivateKey.fromHex(String privateKey,
{XRPKeyAlgorithm? algorithm}) {
List<int> bytes = BytesUtils.fromHexString(privateKey);
return XRPPrivateKey.fromBytes(bytes, algorithm: algorithm);
}