MemoHash

class MemoHash : Memo

Represents MEMO_HASH - a 32-byte hash.

This is typically the hash of what to pull from the content server.

Throws

if the bytes array is not exactly 32 bytes

Constructors

Link copied to clipboard
constructor(bytes: ByteArray)

Creates a MEMO_HASH from a byte array.

constructor(hexString: String)

Creates a MEMO_HASH from a hex-encoded string.

Properties

Link copied to clipboard

The 32-byte hash

Link copied to clipboard

Returns the hex representation of this hash.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun toXdr(): MemoXdr

Converts this memo to its XDR representation.