Page MenuHomePhabricator

Methods for interacting with PSBT structs
ClosedPublic

Authored by deadalnix on Oct 23 2019, 16:55.

Details

Summary

Added methods which move data to/from SignatureData objects to
PSBTInput and PSBTOutput objects.

Added sanity checks for PSBTs as a whole which are done immediately
after deserialization.

Added Merge methods to merge a PSBT into another one.

This is a partial backport of Core PR13557 : https://github.com/bitcoin/bitcoin/pull/13557/commits/e9d86a43ad8b1ab83b324e9a7a64c43a61337501

Depends on D4285

Test Plan

Unfortunately, The PR dump all the tests at once at the end, so there are no tests for the new code.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable