Add helper functions fromOps, ops, cutOutCodesep, isP2sh, p2sh, p2pkh, p2pkhSpend to Script.
Add ScriptOpIter, which is returned by Script.ops to iterate over the Ops of a Script.
Differential D15952
[ecash-lib] Add a bunch of helpers for `Script` tobias_ruck on Apr 11 2024, 23:01. Authored by Tags None Subscribers None
Details
Add helper functions fromOps, ops, cutOutCodesep, isP2sh, p2sh, p2pkh, p2pkhSpend to Script. Add ScriptOpIter, which is returned by Script.ops to iterate over the Ops of a Script. npm run test && npm run build
Diff Detail
Event Timeline
Comment Actions Please add some more documentation and context to functions
|