Represents the public key of a K-of-N Ed25519 multi-sig transaction.

Hierarchy (view full)

Constructors

  • Public key for a K-of-N multi-sig transaction. A K-of-N multi-sig transaction means that for such a transaction to be executed, at least K out of the N authorized signers have signed the transaction and passed the check conducted by the chain.

    Parameters

    • args: {
          publicKeys: Ed25519PublicKey[];
          threshold: number;
      }
      • publicKeys: Ed25519PublicKey[]

        A list of public keys

      • threshold: number

        At least "threshold" signatures must be valid

    Returns MultiEd25519PublicKey

Properties

publicKeys: Ed25519PublicKey[]

List of Ed25519 public keys for this LegacyMultiEd25519PublicKey

threshold: number

The minimum number of valid signatures required, for the number of public keys specified

MAX_KEYS: 32 = 32

Maximum number of public keys supported

MIN_KEYS: 2 = 2

Minimum number of public keys needed

MIN_THRESHOLD: 1 = 1

Minimum threshold for the number of valid signatures required

Methods

  • Serializes a Serializable value to its BCS representation. This function is the Typescript SDK equivalent of bcs::to_bytes in Move.

    Returns Uint8Array

    the BCS representation of the Serializable instance as a byte buffer

  • Helper function to get a value's BCS-serialized bytes as a Hex instance.

    Returns Hex

    a Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array

  • Parameters

    Returns void

  • Get the public key as a hex string with a 0x prefix e.g. 0x123456...

    Returns string

  • Converts a PublicKeys into Uint8Array (bytes) with: bytes = p1_bytes | ... | pn_bytes | threshold

    Returns Uint8Array

  • Verifies that the private key associated with this public key signed the message with the given signature.

    Parameters

    Returns boolean