sign method

List<int> sign(
  1. List<int> digest
)

Signs the given digest with this private key.

Returns the signature as a list of bytes.

Implementation

List<int> sign(List<int> digest) {
  final signer = CardanoSigner.fromKeyBytes(toBytes());
  final sig = signer.sign(digest);
  return sig;
}