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.
A wrapper to let you choose the param order.
A list of public keys
At least "threshold" signatures must be valid
ReadonlypublicList of Ed25519 public keys for this LegacyMultiEd25519PublicKey
ReadonlythresholdThe minimum number of valid signatures required, for the number of public keys specified
Static ReadonlyMAX_Maximum number of public keys supported
Static ReadonlyMIN_Minimum number of public keys needed
Static ReadonlyMIN_Minimum threshold for the number of valid signatures required
Generates an authentication key based on the current instance's byte representation. This function is essential for creating a secure authentication key that can be used for various cryptographic operations.
The generated authentication key.
Serializes the current instance into bytes using the provided serializer. This allows for the conversion of the instance's data into a format suitable for transmission or storage.
The serializer used to convert the instance into bytes.
Verifies signature with the public key and makes any network calls required to get state required to verify the signature.
The Aptos configuration
The message that was signed
The signature to verify
StaticdeserializeDeserializes a MultiEd25519Signature from the provided deserializer. This function helps in reconstructing a MultiEd25519Signature object from its serialized byte representation.
The deserializer instance used to read the serialized data.
StaticdeserializeDeserializes a MultiEd25519Signature from the provided deserializer. This function helps in reconstructing a MultiEd25519Signature object from its serialized byte representation.
The deserializer instance used to read the serialized data.
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.
Represents the public key of a K-of-N Ed25519 multi-sig transaction.
A K-of-N multi-sig transaction requires at least K out of N authorized signers to sign the transaction for it to be executed. This class encapsulates the logic for managing the public keys and the threshold for valid signatures.
See
Creating a Signed Transaction