MoneroPrivateKey.fromHex constructor

MoneroPrivateKey.fromHex(
  1. String keyHex
)

Factory method for creating an MoneroPrivateKey from a hex.

Implementation

factory MoneroPrivateKey.fromHex(String keyHex) {
  return MoneroPrivateKey.fromBytes(BytesUtils.fromHexString(keyHex));
}