HomePhabricator

[avalanche] Use ProofId instead of PeerId

Description

[avalanche] Use ProofId instead of PeerId

Summary:
Ultimatey, we want Peer to provide some kind of Proof that they are not sybils. We will need to prvide such proof to the PeerManager and have the PeerManager, well, manage the peers.

This means we will go through a gradual deprecation of the Peer based API as it is superseded by a Proof based one.

Each proof must have some kind of unique identifier, a ProofId, which will be used by the PeerManager to identify it, and, by extension, the Peer attached to it.

Test Plan:

ninja all check-avalanche

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
deadalnixAuthored on Jul 7 2020, 10:12
deadalnixPushed on Jul 8 2020, 14:45
Reviewer
Restricted Project
Differential Revision
D6847: [avalanche] Use ProofId instead of PeerId
Parents
rABC0a5b569ba45b: Put CConnmanTest in an anonymous namespace
Branches
Unknown
Tags
Unknown