cmdruid / tapscript

A humble library for working with Tapscript and Bitcoin Transactions.
https://www.npmjs.com/package/@cmdcode/tapscript
Creative Commons Zero v1.0 Universal
196 stars 50 forks source link

`Tx.encode` fail for file larger than 260 byte #14

Closed satoshiman closed 1 year ago

satoshiman commented 1 year ago

I have tried to inscribe file has size < 260b successfully according to the example, but for files larger than 260b it seems that encoding tx is having problems. it seems the 520 byte limit is misdefined leading to the wrong encoding (personally)

cmdruid commented 1 year ago

I apologize for the delay. This should be fixed in 1.4.3. Please feel free to re-open this issue if you are still having the same problem in the new version.