HomePhabricator

Add a facility to parse and validate script bitfields.

Description

Add a facility to parse and validate script bitfields.

Summary: As per title. Bitfield are little endian and has a size proportional to the number of bits they represent. The decoder validates that there are no out of bound bits.

Test Plan: Added unit tests.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
deadalnixAuthored on Jul 24 2019, 18:55
jasonbcoxPushed on Jul 25 2019, 16:06
Reviewer
Restricted Project
Differential Revision
D3735: Add a facility to parse and validate script bitfields.
Parents
rSTAGINGc01807916050: net: Add option `-enablebip61` to configure sending of BIP61 notifications
Branches
Unknown
Tags
Unknown