PersonalMessage
Namespace: IotaSdk
A personal message that wraps around a byte array.
public class PersonalMessage : IPersonalMessage, System.IEquatable`1[[IotaSdk.PersonalMessage, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → PersonalMessage
Implements IPersonalMessage, IEquatable<PersonalMessage>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
PersonalMessage(UInt64)
public PersonalMessage(ulong pointer)
Parameters
pointer UInt64
PersonalMessage(Byte[])
Create a new personal message from bytes.
public PersonalMessage(Byte[] messageBytes)
Parameters
messageBytes Byte[]
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
MessageBytes()
Get the message as bytes.
public Byte[] MessageBytes()
Returns
SigningDigest()
Get the signing digest as bytes.
public Byte[] SigningDigest()
Returns
SigningDigestHex()
Get the signing digest as hex string.
public string SigningDigestHex()
Returns
ToDisplayString()
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
public string ToDisplayString()
Returns
Equals(PersonalMessage)
public bool Equals(PersonalMessage? other)
Parameters
other PersonalMessage?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?