ToplSigningKey.fromHex constructor

ToplSigningKey.fromHex(
  1. String hex,
  2. NetworkId network,
  3. PropositionType propositionType
)

Parses a private key from the a hexadecimal representation

Implementation

ToplSigningKey.fromHex(String hex, this.network, this.propositionType)
    : privateKey =
          Bip32SigningKey.fromValidBytes(HexCoder.instance.decode(hex));