MultiKeySignature

class MultiKeySignature(val signatures: List<AnySignature>, val bitmap: ByteArray) : Signature

Represents a multi-signature transaction using Ed25519 signatures. This class allows for the creation and management of a K-of-N multi-signature scheme, where a specified number of signatures are required to authorize a transaction.

This implementation is compatible with Kotlin Multiplatform (Common, JVM, JS, Native).

Constructors

Link copied to clipboard
constructor(signatures: List<AnySignature>, bitmap: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

4-byte (32-bit) array representing which of the N possible signers have signed.

Link copied to clipboard

The list of underlying signatures.

Functions

Link copied to clipboard

Converts the bitmap to a list of signer indices.

Link copied to clipboard
open override fun toBcs(): ByteArray

Serializes the MultiKeySignature into its raw byte representation in a KMP-compatible way. The format is the concatenation of all individual signatures followed by the 4-byte bitmap.

Link copied to clipboard
open override fun toByteArray(): ByteArray

Returns the raw byte representation of the signature. This is an alias for toBcs().