HomePhabricator

[avalanche] Consistently use Proof::FromHex() for deserializing a proof

Description

[avalanche] Consistently use Proof::FromHex() for deserializing a proof

Summary:
This deduplicates the proof deserialization code and add error checking
as needed.

Depends on D9525.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
FabienAuthored on May 14 2021, 11:19
FabienPushed on May 17 2021, 08:37
Reviewer
Restricted Project
Differential Revision
D9529: [avalanche] Consistently use Proof::FromHex() for deserializing a proof
Parents
rABC8bc4e1bb590b: [avalanche] Add a verifyavalancheproof RPC
Branches
Unknown
Tags
Unknown