Page MenuHomePhabricator

[avalanche] Add a verifyavalancheproof RPC
ClosedPublic

Authored by Fabien on May 14 2021, 09:36.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC8bc4e1bb590b: [avalanche] Add a verifyavalancheproof RPC
Summary

As the name suggests, it runs the verification on the avalanche proof.

Test Plan
./test/functional/test_runner.py abc_rpc_avalancheproof

Diff Detail

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

Event Timeline

Fabien requested review of this revision.May 14 2021, 09:36

Add a Proof::FromHex() static deserialization method to avoid duplicating the code

majcosta requested changes to this revision.May 14 2021, 17:17
majcosta added a subscriber: majcosta.

i think this RPC is part of the decodeavalancheproof RPC, no?

This revision now requires changes to proceed.May 14 2021, 17:17
Fabien requested review of this revision.May 14 2021, 18:14

No it's a different RPC

This revision is now accepted and ready to land.May 14 2021, 18:57
src/avalanche/proof.h
100–101 ↗(On Diff #28483)

suggestion, rename error to out_error, that way I'd think it's clear enough that you can remove the // error set by FromHex comments in D9529, it's a common enough idiom I think

Rename error to errorOut

This revision was automatically updated to reflect the committed changes.