createScriptSignature method
SchnorrInputSignature
createScriptSignature({
- required Transaction tx,
- required int inputN,
- required ECPrivateKey key,
- required List<
Output> prevOuts, - SigHashType hashType = const SigHashType.all(),
- int codeSeperatorPos = 0xFFFFFFFF,
Creates a SchnorrInputSignature to be used for the input's script data. Provides the leaf hash to an underlying call to createInputSignature.
Implementation
SchnorrInputSignature createScriptSignature({
required Transaction tx,
required int inputN,
required ECPrivateKey key,
required List<Output> prevOuts,
SigHashType hashType = const SigHashType.all(),
int codeSeperatorPos = 0xFFFFFFFF,
}) => createInputSignature(
tx: tx,
inputN: inputN,
key: key,
prevOuts: prevOuts,
hashType: hashType,
leafHash: TapLeaf(tapscript).hash,
codeSeperatorPos: codeSeperatorPos,
);