EthPrivateKey constructor

EthPrivateKey(
  1. Uint8List privateKey
)

Creates a private key from a byte array representation.

The bytes are interpreted as an unsigned integer forming the private key.

Implementation

EthPrivateKey(this.privateKey)
    : privateKeyInt = bytesToUnsignedInt(privateKey);