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.
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.
Static
deserializeDeserialize 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.
Static
isDetermines 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.
Static
isDetermine 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
Legacy
andUnified
authentication keys.Ed25519 scheme is represented in the SDK as
Legacy authentication key
and also asAnyPublicKey
that represents anyUnified authentication key
.