signScript method
Implementation
List<int> signScript(MerlinTranscript signingScript) {
final cloneScript = signingScript.clone();
final verifier = toVerifyKey();
final signature = _signer.sign(signingScript);
if (!verifier.verifyScript(signature.toBytes(), cloneScript)) {
throw const MessageException(
'The created signature does not pass verification.');
}
return signature.toBytes();
}