HomePhabricator

[avalanche] change how the proof id is computed

Description

[avalanche] change how the proof id is computed

Summary:
Do a first hash of the proof's data without the master key, then append the master key to this hash and hash again. Fix all tests that depend on the proofid.

This is a first step in creating a LimitedProofId without the master key, to be used in the avahello message to verify a delegation without knowing a proof.
For ease of review, I split the change in two diffs.

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Provenance
PiRKAuthored on May 17 2021, 09:54
PiRKPushed on May 21 2021, 18:39
Reviewer
Restricted Project
Differential Revision
D9543: [avalanche] change how the proof id is computed
Parents
rABC91bd147a0ebf: Split the cs_main lock in SendMessages
Branches
Unknown
Tags
Unknown