toBytes method

List<int> toBytes()

Converts the private key to bytes.

Implementation

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