Page MenuHomePhabricator

[ecash-lib] Add parseEmppScript method
ClosedPublic

Authored by bytesofman on Tue, May 6, 21:33.

Details

Reviewers
tobias_ruck
Group Reviewers
Restricted Project
Commits
rABCab3fcc0da679: [ecash-lib] Add parseEmppScript method
Summary

We have a number of methods for parsing individual pushes from an EMPP OP_RETURN, but we are missing a method to take the EMPP script and get the individual pushes.

Add it here.

Test Plan

npm test

Event Timeline

update diff info in readme

bytesofman published this revision for review.Tue, May 6, 21:49
tobias_ruck added a subscriber: tobias_ruck.
tobias_ruck added inline comments.
modules/ecash-lib/src/token/empp.ts
31 ↗(On Diff #53880)

add a nice doc comment

This revision now requires changes to proceed.Tue, May 6, 21:51
This revision is now accepted and ready to land.Wed, May 7, 09:18
This revision was automatically updated to reflect the committed changes.