Show / Hide Table of Contents

    Interface IPeerChallenger

    This class is used to validate peers by carrying out a peer challenge response

    Namespace: Catalyst.Abstractions.P2P
    Assembly: Catalyst.Abstractions.dll
    Syntax
    public interface IPeerChallenger

    Properties

    | Improve this Doc View Source

    ChallengeResponseMessageStreamer

    Declaration
    ReplaySubject<IPeerChallengeResponse> ChallengeResponseMessageStreamer { get; }
    Property Value
    Type Description
    ReplaySubject<IPeerChallengeResponse>

    Methods

    | Improve this Doc View Source

    ChallengePeerAsync(PeerId)

    Used to challenge a peer for a response based on the provided public key, ip and port chunks

    Declaration
    Task<bool> ChallengePeerAsync(PeerId recipientPeerIdentifier)
    Parameters
    Type Name Description
    PeerId recipientPeerIdentifier

    The recipient peer identifier. PeerId holds the chunks we want to validate.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    bool true means valid and false means not valid

    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network