Create a new PublicKey instance from a HexInput, which can be a string or Uint8Array. This constructor validates the length of the provided public key data.
A HexInput (string or Uint8Array) representing the public key data.
Generates an authentication key from the public key using the Secp256r1 scheme. This function is essential for creating a secure authentication key that can be used for further cryptographic operations.
The generated authentication key.
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.
Note: Secp256r1Signatures can be verified synchronously.
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.
A boolean indicating whether the signature is valid for the given message.
StaticdeserializeDeserializes a Secp256r1PublicKey from the provided deserializer. This function allows you to reconstruct a Secp256r1PublicKey object from its serialized byte representation.
The deserializer instance used to read the serialized data.
StaticisDetermines if the provided public key is a valid instance of a Secp256r1 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 Secp256r1 public key.
StaticloadLoads a Secp256r1PublicKey from the provided deserializer.
The deserializer instance used to read the serialized data.
Represents a Secp256r1 ECDSA public key.