@aptos-labs/ts-sdk - v3.1.1
    Preparing search index...

    Class AbstractMultiKeyAbstract

    An abstract representation of an account public key.

    Provides a common interface for deriving an authentication key.

    Hierarchy (View Summary)

    Index

    Implementation - BCS

    • 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.

    • Converts the BCS-serialized bytes of a value into a Hex instance. This function provides a Hex representation of the BCS-serialized data for easier handling and manipulation.

      Returns Hex

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

    Implementation - Serialization

    • Create a bitmap that holds the mapping from the original public keys to the signatures passed in

      Parameters

      • args: { bits: number[] }
        • bits: number[]

          array of the index mapping to the matching public keys

      Returns Uint8Array

      Uint8array bit map

    • Get the index of the provided public key.

      This function retrieves the index of a specified public key within the MultiKey. If the public key does not exist, it throws an error.

      Parameters

      • publicKey: PublicKey

        The public key to find the index for.

      Returns number

      The corresponding index of the public key, if it exists.

      Error - If the public key is not found in the MultiKey.

    Constructors

    Methods

    Properties

    publicKeys: PublicKey[]