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 Tue, Jan 14, 19:40
bytesofmanPushed on Wed, Jan 15, 21:29
Reviewer
Restricted Project
Differential Revision
D17527: [ecash-lib] Add toHex method to Script class
Parents
rABCf7d1497b7029: [Chronik] Add chronik_info method into lib.rs
Branches
Unknown
Tags
Unknown