HomePhabricator

[Cashtab] Add new validation function for parsing opreturn as a bip21 parameter

Description

[Cashtab] Add new validation function for parsing opreturn as a bip21 parameter

Summary:
Add new function and unit tests for validating a raw hex string to be included in OP_RETURN for an eCash tx. See D15032 for proof of concept / where this is going.

Spec for ref: https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/doc/standards/bip21-ecash-additions.md

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK, Fabien

Reviewed By: #bitcoin_abc, PiRK, Fabien

Subscribers: PiRK, Fabien

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

Details

Provenance
bytesofmanAuthored on Dec 22 2023, 00:31
bytesofmanPushed on Jan 3 2024, 13:55
Reviewer
Restricted Project
Differential Revision
D15035: [Cashtab] Add new validation function for parsing opreturn as a bip21 parameter
Parents
rABCebf7d87cfd36: Remove LOCKTIME_MEDIAN_TIME_PAST constant
Branches
Unknown
Tags
Unknown