Show / Hide Table of Contents

    Class ProtocolMessageExtensions

    Inheritance
    System.Object
    ProtocolMessageExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Lib.Extensions.Protocol.Wire
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public static class ProtocolMessageExtensions

    Methods

    | Improve this Doc View Source

    Sign(ProtocolMessage, IKeySigner, SigningContext)

    Use this to sign a before sending it. If a signature was found on the message, this will error.

    Declaration
    public static ProtocolMessage Sign(this ProtocolMessage protocolMessage, IKeySigner keySigner, SigningContext signingContext)
    Parameters
    Type Name Description
    ProtocolMessage protocolMessage

    The message that needs to be signed.

    IKeySigner keySigner

    An instance of IKeySigner used to build the signature.

    SigningContext signingContext

    The context used to sign the message.

    Returns
    Type Description
    ProtocolMessage
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network