Create a new PublicKey instance from a HexInput, which can be a string or Uint8Array. This constructor validates the length of the provided signature data.
A HexInput (string or Uint8Array) representing the signature data.
Deserializes a Secp256k1Signature from the provided deserializer. This function allows you to reconstruct a Secp256k1Signature object from its serialized byte representation.
The deserializer instance used to read the serialized data.
Serializes the data into a byte array using the provided serializer. This function is essential for converting data into a format suitable for transmission or storage.
The serializer instance used to convert the data.
Verifies a Secp256k1 signature against the public key.
This function checks the validity of a signature for a given message, ensuring that the signature is canonical as a malleability check.
The arguments for verifying the signature.
The message that was signed.
The signature to verify against the public key.
Note: Secp256k1Signatures can be verified syncronously.
Verifies the provided signature against the given message. This function helps ensure the integrity and authenticity of the message by confirming that the signature is valid.
The arguments for signature verification.
The configuration object for connecting to the Aptos network
The message that was signed.
The signature to verify, which must be an instance of Secp256k1Signature.
A boolean indicating whether the signature is valid for the given message.
StaticisDetermines if the provided public key is a valid instance of a Secp256k1 public key. This function checks for the presence of a "key" property and validates the length of the key data.
The public key to validate.
A boolean indicating whether the public key is a valid Secp256k1 public key.
StaticisDetermine if the provided public key is an instance of Secp256k1PublicKey.
The public key to check.
Staticdeserialize
Represents a Secp256k1 ECDSA public key.