HomePhabricator

Add a facility to parse and validate script bitfields.

Authored by deadalnix on Jul 24 2019, 18:55.

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

Committed
deadalnixJul 25 2019, 13:21
Pushed
deadalnixJul 25 2019, 13:21
Reviewer
Restricted Project
Differential Revision
D3735: Add a facility to parse and validate script bitfields.
Parents
rABCc01807916050: net: Add option `-enablebip61` to configure sending of BIP61 notifications
Branches
Unknown
Tags
Unknown