Closed DariusParvin closed 1 year ago
For p2tr payments (and by extension, any address methods dealing with p2tr) initEccLib
must be run at least once.
See the examples for details.
Why is this needed? Because we need an ecc library to verify the point contained in the p2tr output script.
ah okay got it, thanks a lot @junderw !
I'm experiencing an issue while trying to encode a P2TR address using
fromOutputScript
. The issue doesn't occur when encoding P2WPKH or P2WSH output scripts.Here's an example of the error:
Returns the error:
Could this be a bug, or am I doing something incorrect? I didn't see this same issue posted here.
Environment: