ETHPrivateKey constructor

ETHPrivateKey(
  1. String privateKeyHex
)

Creates an ETHPrivateKey instance from a hexadecimal private key string.

Implementation

factory ETHPrivateKey(String privateKeyHex) {
  return ETHPrivateKey.fromBytes(BytesUtils.fromHexString(privateKeyHex));
}