toBytes method

List<int> toBytes()

Converts the private key to bytes.

Returns: A byte representation of the private key.

Implementation

List<int> toBytes() {
  final tob = BigintUtils.toBytes(secretMultiplier,
      length: publicKey.generator.curve.baselen);
  return tob;
}