HomePhabricator

[ecash-lib] Add toHex method to Script class

Description

[ecash-lib] Add toHex method to Script class

Summary: I find myself frequently needing to do this manually, i.e. toHex(someScript.bytecode) ... it is simple enough manually but I also find myself always forgetting about .bytecode. Might as well have this in the lib.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: tobias_ruck, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D17527

Details

Provenance
bytesofmanAuthored on Jan 14 2025, 19:40
teamcityPushed on Jan 15 2025, 21:33
Parents
rSTAGINGf7d1497b7029: [Chronik] Add chronik_info method into lib.rs
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/52230

Event Timeline