HomePhabricator

Check that PSBT keys are the correct length

Description

Check that PSBT keys are the correct length

Summary:
Checks that all of the one byte type keys are actually one byte and
throw an error if they are not.

Add tests for each type to check for this behavior.

This is a partial backport of Core PR13721 : https://github.com/bitcoin/bitcoin/pull/13721/commits/41df035ee1694715ee1e0f89b08ac8c73987807b

Depends on D4454

Test Plan:

make check
./test/functional/test_runner.py

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Jul 20 2018, 01:29
deadalnixCommitted on Nov 18 2019, 13:29
deadalnixPushed on Nov 18 2019, 15:17
Reviewer
Restricted Project
Differential Revision
D4456: Check that PSBT keys are the correct length
Parents
rSTAGING5b3bb8c4ef57: Add brace in bitcoin-tx.cpp
Branches
Unknown
Tags
Unknown