Creates an instance of the Ed25519Signature class from a hex input. This constructor validates the length of the signature to ensure it meets the required specifications.
The hex input representing the Ed25519 signature.
Static ReadonlyLENGTHLength of an Ed25519 public key
Generates an authentication key from the public key using the Ed25519 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 allows for the conversion of data into a format suitable for transmission or storage.
The serializer instance used to perform the serialization.
Verifies a signed message using a public key.
The arguments for verification.
Note: Ed25519Signatures 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.
A boolean indicating whether the signature is valid for the given message.
StaticdeserializeDeserialize bytes into an Ed25519Signature object. This function is used to convert serialized byte data into a usable Ed25519Signature instance.
The deserializer instance used to read the byte data.
StaticisDetermines if the provided public key is a valid Ed25519 public key. This function checks for the presence of the "key" property and verifies that its data length matches the expected length for Ed25519 public keys.
The public key to validate.
A boolean indicating whether the public key is a valid Ed25519 public key.
StaticisDetermine if the provided public key is an instance of Ed25519PublicKey.
The public key to check.
True if the public key is an instance of Ed25519PublicKey, otherwise false.
Represents the public key of an Ed25519 key pair.
Since AIP-55 Aptos supports
LegacyandUnifiedauthentication keys.Ed25519 scheme is represented in the SDK as
Legacy authentication keyand also asAnyPublicKeythat represents anyUnified authentication key.