Creates an instance of the AuthenticationKey using the provided hex input. This ensures that the hex input is valid and conforms to the required length for an Authentication Key.
Derives an account address from an AuthenticationKey by translating the AuthenticationKey bytes directly to an AccountAddress.
AccountAddress - The derived account address.
Serializes the fixed bytes data into a format suitable for transmission or storage.
The serializer instance used to perform the serialization.
Static
deserializeDeserialize an AuthenticationKey from the byte buffer in a Deserializer instance.
The deserializer to deserialize the AuthenticationKey from.
An instance of AuthenticationKey.
Static
fromConverts a PublicKey to an AuthenticationKey using the derivation scheme inferred from the provided PublicKey instance.
The arguments for the function.
The PublicKey to be converted.
AuthenticationKey - The derived AuthenticationKey.
Static
fromDerives an AuthenticationKey from the provided public key using a specified derivation scheme.
The arguments for deriving the authentication key.
The public key used for the derivation.
The scheme to use for deriving the authentication key.
Static
fromGenerates an AuthenticationKey from the specified scheme and input bytes. This function is essential for creating a valid authentication key based on a given scheme.
The arguments for generating the AuthenticationKey.
The input data in hexadecimal format to derive the key.
The authentication key scheme to use.
An instance of AuthenticationKey containing the generated key data.
Represents an authentication key used for account management. Each account stores an authentication key that enables account owners to rotate their private key(s) without changing the address that hosts their account. The authentication key is a SHA3-256 hash of data and is always 32 bytes in length.
See
Account Basics
Account addresses can be derived from the AuthenticationKey.