Class SchemaType
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
Smart contract schema type. This represents a single type as part of a smart contract module schema, and allows for converting structure data, such as JSON, from and to the binary representation used by a smart contract.
public sealed record SchemaType : IEquatable<SchemaType>
- Inheritance
-
SchemaType
- Implements
- Inherited Members
Constructors
SchemaType(byte[])
Smart contract schema type. This represents a single type as part of a smart contract module schema, and allows for converting structure data, such as JSON, from and to the binary representation used by a smart contract.
public SchemaType(byte[] Type)
Parameters
Type
byte[]
Properties
Type
public byte[] Type { get; init; }
Property Value
- byte[]
Methods
Equals(SchemaType?)
Check for equality.
public bool Equals(SchemaType? other)
Parameters
other
SchemaType
Returns
FromBase64String(string)
Construct SchemaType from a base64 encoding.
public static SchemaType FromBase64String(string base64)
Parameters
base64
string
Returns
FromHexString(string)
Construct SchemaType from a HEX encoding.
public static SchemaType FromHexString(string hexString)
Parameters
hexString
string
Returns
GetHashCode()
Gets hash code.
public override int GetHashCode()
Returns
ToHexString()
Convert schema type to hex string.
public string ToHexString()