Skip to main content

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​

Byte[]

SigningDigest()​

Get the signing digest as bytes.

public Byte[] SigningDigest()

Returns​

Byte[]

SigningDigestHex()​

Get the signing digest as hex string.

public string SigningDigestHex()

Returns​

String

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​

String

Equals(PersonalMessage)​

public bool Equals(PersonalMessage? other)

Parameters​

other PersonalMessage?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean