signConst method

List<int> signConst(
  1. List<int> digest, {
  2. bool hashMessage = true,
  3. List<int>? extraEntropy,
})

Implementation

List<int> signConst(List<int> digest,
    {bool hashMessage = true, List<int>? extraEntropy}) {
  final hash = hashMessage ? QuickCrypto.sha256Hash(digest) : digest;
  return _ecdsaSigningKey
      .signConst(digest: hash, extraEntropy: extraEntropy)
      .item1
      .toBytes(CryptoSignerConst.curveSecp256k1.baselen);
}