peercoin / coinlib

The most feature-complete *coin library in the entire Dart/Flutter ecosystem.
BSD 3-Clause "New" or "Revised" License
6 stars 11 forks source link

P2TR program for key-spends #8

Closed MatthewLM closed 1 year ago

MatthewLM commented 1 year ago

A P2TR class should be created to extend Program. This should contain the constructors fromScript, decompile, fromAsm, fromTweakedKey and fromTaproot.

fromTweakedKey will take an ECPublicKey of a pre-tweaked key. fromTaproot will take a Taproot object that provides the tweaked key.

A tweakedKey getter will return the tweaked key of the program.

MatthewLM commented 1 year ago

Completed