Digest
Namespace: IotaSdk
A 32-byte Blake2b256 hash output.
BCS
A Digest's BCS serialized form is defined by the following:
digest = %d32 32OCTET
Due to historical reasons, even though a Digest has a fixed-length of 32,
IOTA's binary representation of a Digest is prefixed with its length
meaning its serialized binary form (in bcs) is 33 bytes long vs a more
compact 32 bytes.
public class Digest : IDigest, System.IEquatable`1[[IotaSdk.Digest, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → Digest
Implements IDigest, IEquatable<Digest>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
Digest(UInt64)
public Digest(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
NextLexicographical()
Returns the next digest in byte-increasing order.
public Digest NextLexicographical()
Returns
NextLexicographicalOpt()
Returns the next digest in byte-increasing order, or None if the
result would overflow.
public Digest? NextLexicographicalOpt()
Returns
ToBase58()
public string ToBase58()
Returns
ToBytes()
public Byte[] ToBytes()
Returns
ToString()
public override string ToString()
Returns
Equals(Digest)
public bool Equals(Digest? other)
Parameters
other Digest?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
FromBase58(String)
public static Digest FromBase58(string base58)
Parameters
base58 String
Returns
Exceptions
FromBytes(Byte[])
public static Digest FromBytes(Byte[] bytes)
Parameters
bytes Byte[]
Returns
Exceptions
Random()
public static Digest Random()