Generates an authentication key based on the current instance's byte representation. This key can be used for secure authentication processes within the system.
The generated authentication key.
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.
The public key to find the index for.
The corresponding index of the public key, if it exists.
Serializes the object by writing its signatures and bitmap to the provided serializer. This allows the object to be converted into a format suitable for transmission or storage.
The serializer instance used to perform the serialization.
Verifies the provided signature against the given message. This function helps ensure the integrity and authenticity of the message by checking if the signature is valid.
The arguments for verifying the signature.
Static
deserializeDeserializes a MultiKeySignature from the provided deserializer. This function retrieves the signatures and bitmap necessary for creating a MultiKeySignature object.
The deserializer instance used to read the serialized data.
Static
is
Represents a multi-key authentication scheme for accounts, allowing multiple public keys to be associated with a single account. This class enforces a minimum number of valid signatures required to authorize actions, ensuring enhanced security for multi-agent accounts.
The public keys of each individual agent can be any type of public key supported by Aptos. Since AIP-55, Aptos supports
Legacy
andUnified
authentication keys.