Page MenuHomePhabricator

[avalanche] Pass a CKey to the proof builder

Authored by Fabien on Mon, Sep 13, 12:59.


Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
rABC42ac1f7dae78: [avalanche] Pass a CKey to the proof builder

The proof builder currently takes a CPubKey because it only needs to move it into the proof it is building.

In order to improve the proof format so that it is possible to update some of it's parameters (and mostly the list of stakes) without having the stakers to got through the signing process again, the stakes signature will be updated to no longer sign every parameter of the proof. This also mean that we need to the proof owner to sign these parameters to prevent anybody from updating any proof. Since we need the private key for the signature, this diff supplies it to the proof builder instead of the public key. As a consequence the buildavalancheproof RPC needs to be updated as well.

This diff is a preliminary diff and does not update the proof format.

Ref T1676.

Depends on D10077.

Test Plan
ninja all check-all

Diff Detail

rABC Bitcoin ABC
Lint Not Applicable
Tests Not Applicable