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 SourceSigningContext()
Declaration
public SigningContext()
SigningContext(SigningContext)
Declaration
public SigningContext(SigningContext other)
Parameters
| Type | Name | Description |
|---|---|---|
| SigningContext | other |
Fields
| Improve this Doc View SourceNetworkTypeFieldNumber
Field number for the "network_type" field.
Declaration
public const int NetworkTypeFieldNumber = 1
Field Value
| Type | Description |
|---|---|
| System.Int32 |
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 SourceDescriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
| Type | Description |
|---|---|
| Google.Protobuf.Reflection.MessageDescriptor |
NetworkType
is the network enum (mainet / devnet etc)
Declaration
public NetworkType NetworkType { get; set; }
Property Value
| Type | Description |
|---|---|
| NetworkType |
Parser
Declaration
public static MessageParser<SigningContext> Parser { get; }
Property Value
| Type | Description |
|---|---|
| Google.Protobuf.MessageParser<SigningContext> |
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 SourceCalculateSize()
Declaration
public int CalculateSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Clone()
Declaration
public SigningContext Clone()
Returns
| Type | Description |
|---|---|
| SigningContext |
Equals(SigningContext)
Declaration
public bool Equals(SigningContext other)
Parameters
| Type | Name | Description |
|---|---|---|
| SigningContext | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
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 |
MergeFrom(SigningContext)
Declaration
public void MergeFrom(SigningContext other)
Parameters
| Type | Name | Description |
|---|---|---|
| SigningContext | other |
MergeFrom(CodedInputStream)
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
| Type | Name | Description |
|---|---|---|
| Google.Protobuf.CodedInputStream | input |
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 SourceIMessage.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>