ECPrivateKey.fromHex constructor

ECPrivateKey.fromHex(
  1. String hex, {
  2. bool compressed = true,
})

Constructs a private key from HEX encoded data. The public key may be in the compressed format which is the default.

Implementation

ECPrivateKey.fromHex(String hex, { bool compressed = true})
  : this(hexToBytes(hex), compressed: compressed);