A TaprootInput class shall be added with a createInputSignature method relevant for a TR Schnorr input signature. A sign method shall be added that will throw CannotSignInput as a default implementation.
A new TaprootKeyInput class shall extend TaprootInput and take an optional SchnorrInputSignatureinsig. The sign method will be implemented to provide a key-path signature for the given internal key of the matching previous output.
A
TaprootInput
class shall be added with acreateInputSignature
method relevant for a TR Schnorr input signature. Asign
method shall be added that will throwCannotSignInput
as a default implementation.A new
TaprootKeyInput
class shall extendTaprootInput
and take an optionalSchnorrInputSignature
insig
. Thesign
method will be implemented to provide a key-path signature for the given internal key of the matching previous output.