DecoratedSignature

data class DecoratedSignature(val hint: ByteArray, val signature: ByteArray)

Represents a decorated signature on a Stellar transaction.

A decorated signature consists of:

  • A signature hint (last 4 bytes of the public key)

  • The actual signature bytes

The hint helps identify which key signed the transaction without transmitting the full public key.

Usage

// Sign a transaction
val keypair = KeyPair.random()
val transaction = TransactionBuilder(...)
.build()
transaction.sign(keypair)

// Access signatures
val signatures: List<DecoratedSignature> = transaction.signatures

See also

Constructors

Link copied to clipboard
constructor(hint: ByteArray, signature: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The signature hint - last 4 bytes of the public key used for signing

Link copied to clipboard

The Ed25519 signature bytes (64 bytes)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Custom equals implementation to properly compare byte arrays.

Link copied to clipboard
open override fun hashCode(): Int

Custom hashCode implementation to properly hash byte arrays.

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

Returns a string representation of this decorated signature.

Link copied to clipboard

Converts this decorated signature to its XDR representation.