Ed25519SignedPayload

data class Ed25519SignedPayload(val ed25519PublicKey: ByteArray, val payload: ByteArray) : SignerKey

Ed25519 signed payload signer (CAP-40).

Ed25519 signed payload signers allow a transaction to be authorized by providing a signature of a specific payload using an Ed25519 key. This is particularly useful for multi-party contracts where signing one transaction reveals information that allows other transactions to be authorized.

Constructors

Link copied to clipboard
constructor(ed25519PublicKey: ByteArray, payload: ByteArray)

Properties

Link copied to clipboard

The 32-byte Ed25519 public key that must sign the payload

Link copied to clipboard

The payload to be signed (up to 64 bytes)

Functions

Link copied to clipboard

Gets the StrKey-encoded representation of the Ed25519 public key.

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.