signSchnorr method
Signs the given transaction digest using Schnorr signature (old style).
This method is primarily useful for networks like Bitcoin Cash (BCH) that support Schnorr signatures in a legacy format.
digest: The transaction digest (message) to sign.
Implementation
List<int> signSchnorr(List<int> digest, {List<int>? extraEntropy}) {
final signature =
_signingKey.signSchnorr(digest, extraEntropy: extraEntropy);
final verify = verifierKey.verifySchnorrSignature(
digest: digest, signature: signature);
if (!verify) {
throw const CryptoSignException(
'The created signature does not pass verification.');
}
return signature;
}