HashX

data class HashX(val hash: ByteArray) : SignerKey

SHA-256 hash preimage signer (Hash-X).

Hash-X signers allow a transaction to be authorized by revealing the preimage of a specific SHA-256 hash. This is useful for creating hashlocks and other cryptographic puzzles.

Constructors

Link copied to clipboard
constructor(hash: ByteArray)

Properties

Link copied to clipboard

The 32-byte SHA-256 hash

Functions

Link copied to clipboard
open override fun encodeSignerKey(): String

Gets the encoded string representation of this signer key.

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(): SignerKeyXdr

Converts this SignerKey to its XDR representation.