Closed MatthewLM closed 1 year ago
A P2TR class should be created to extend Program. This should contain the constructors fromScript, decompile, fromAsm, fromTweakedKey and fromTaproot.
P2TR
Program
fromScript
decompile
fromAsm
fromTweakedKey
fromTaproot
fromTweakedKey will take an ECPublicKey of a pre-tweaked key. fromTaproot will take a Taproot object that provides the tweaked key.
ECPublicKey
Taproot
A tweakedKey getter will return the tweaked key of the program.
tweakedKey
Completed
A
P2TR
class should be created to extendProgram
. This should contain the constructorsfromScript
,decompile
,fromAsm
,fromTweakedKey
andfromTaproot
.fromTweakedKey
will take anECPublicKey
of a pre-tweaked key.fromTaproot
will take aTaproot
object that provides the tweaked key.A
tweakedKey
getter will return the tweaked key of the program.