Class Digest
A serializable class representing a SHA512-256 Digest
Inherited Members
Namespace: Algorand
Assembly: Algorand.dll
Syntax
[JsonConverter(typeof(BytesConverter))]
[MessagePackObject(false)]
[MessagePackFormatter(typeof(DigestFormatterMsgPack))]
public class Digest
Constructors
| Edit this page View SourceDigest()
default values for serializer to ignore
Declaration
public Digest()
Digest(byte[])
Create a new digest.
Declaration
[JsonConstructor]
public Digest(byte[] bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | a length 32 byte array |
Digest(string)
Create a new digest from a base64 encoded string.
Declaration
public Digest(string base64String)
Parameters
| Type | Name | Description |
|---|---|---|
| string | base64String | base64 encoded string |
Properties
| Edit this page View SourceBytes
Declaration
[IgnoreMember]
public byte[] Bytes { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Methods
| Edit this page View SourceEquals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |