Show / Hide Table of Contents

    Class SigningContext

    Inheritance
    System.Object
    SigningContext
    Implements
    Google.Protobuf.IMessage<SigningContext>
    Google.Protobuf.IMessage
    System.IEquatable<SigningContext>
    Google.Protobuf.IDeepCloneable<SigningContext>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Catalyst.Protocol.Cryptography
    Assembly: Catalyst.Protocol.dll
    Syntax
    public sealed class SigningContext : IMessage<SigningContext>, IMessage, IEquatable<SigningContext>, IDeepCloneable<SigningContext>

    Constructors

    | Improve this Doc View Source

    SigningContext()

    Declaration
    public SigningContext()
    | Improve this Doc View Source

    SigningContext(SigningContext)

    Declaration
    public SigningContext(SigningContext other)
    Parameters
    Type Name Description
    SigningContext other

    Fields

    | Improve this Doc View Source

    NetworkTypeFieldNumber

    Field number for the "network_type" field.

    Declaration
    public const int NetworkTypeFieldNumber = 1
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    SignatureTypeFieldNumber

    Field number for the "signature_type" field.

    Declaration
    public const int SignatureTypeFieldNumber = 2
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Descriptor

    Declaration
    public static MessageDescriptor Descriptor { get; }
    Property Value
    Type Description
    Google.Protobuf.Reflection.MessageDescriptor
    | Improve this Doc View Source

    NetworkType

    is the network enum (mainet / devnet etc)

    Declaration
    public NetworkType NetworkType { get; set; }
    Property Value
    Type Description
    NetworkType
    | Improve this Doc View Source

    Parser

    Declaration
    public static MessageParser<SigningContext> Parser { get; }
    Property Value
    Type Description
    Google.Protobuf.MessageParser<SigningContext>
    | Improve this Doc View Source

    SignatureType

    contains info on whether the signature is for a protocol message or a transaction.

    Declaration
    public SignatureType SignatureType { get; set; }
    Property Value
    Type Description
    SignatureType

    Methods

    | Improve this Doc View Source

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Clone()

    Declaration
    public SigningContext Clone()
    Returns
    Type Description
    SigningContext
    | Improve this Doc View Source

    Equals(SigningContext)

    Declaration
    public bool Equals(SigningContext other)
    Parameters
    Type Name Description
    SigningContext other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    IsValid(SignatureType)

    Checks if the signing context is usable.

    Declaration
    public bool IsValid(SignatureType expectedSignatureType = SignatureType.Unknown)
    Parameters
    Type Name Description
    SignatureType expectedSignatureType

    If provided, the signature type will be checked against the expected type. Otherwise, we simply check the type is not unknown.

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MergeFrom(SigningContext)

    Declaration
    public void MergeFrom(SigningContext other)
    Parameters
    Type Name Description
    SigningContext other
    | Improve this Doc View Source

    MergeFrom(CodedInputStream)

    Declaration
    public void MergeFrom(CodedInputStream input)
    Parameters
    Type Name Description
    Google.Protobuf.CodedInputStream input
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    | Improve this Doc View Source

    WriteTo(CodedOutputStream)

    Declaration
    public void WriteTo(CodedOutputStream output)
    Parameters
    Type Name Description
    Google.Protobuf.CodedOutputStream output

    Explicit Interface Implementations

    | Improve this Doc View Source

    IMessage.Descriptor

    Declaration
    MessageDescriptor IMessage.Descriptor { get; }
    Returns
    Type Description
    Google.Protobuf.Reflection.MessageDescriptor

    Implements

    Google.Protobuf.IMessage<T>
    Google.Protobuf.IMessage
    System.IEquatable<T>
    Google.Protobuf.IDeepCloneable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network