HomePhabricator

[ecash-lib] Add `pushBytesOp` to make a minimal bytes pushop

Description

[ecash-lib] Add pushBytesOp to make a minimal bytes pushop

Summary:
Script requires to use minimally encoded push ops. pushBytesOp creates a minimal Op for us that pushes the given bytes.

Depends on D15938.

Test Plan: npm run test && npm run build

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Wed, Apr 10, 22:55
tobias_ruckPushed on Thu, Apr 11, 22:51
Reviewer
Restricted Project
Differential Revision
D15940: [ecash-lib] Add `pushBytesOp` to make a minimal bytes pushop
Parents
rABCaac89ce3e7df: [ecash-lib] Add `Op`, opcode consts, readOp, writeOp
Branches
Unknown
Tags
Unknown