Readonly
dataThe raw bytes of the authentication key.
Static
Readonly
LENGTHAn authentication key is always a SHA3-256 hash of data, and is always 32 bytes.
The data to hash depends on the underlying public key type and the derivation scheme.
Derives an account address from an AuthenticationKey. Since an AccountAddress is also 32 bytes, the AuthenticationKey bytes are directly translated to an AccountAddress.
AccountAddress
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(s) to an AuthenticationKey, using the derivation scheme inferred from the instance of the PublicKey type passed in.
AuthenticationKey
Static
fromthe public key and scheme to use for the derivation
Use fromPublicKey
instead
Derives an AuthenticationKey from the public key seed bytes and an explicit derivation scheme.
This facilitates targeting a specific scheme for deriving an authentication key from a public key.
Static
from
Each account stores an authentication key. Authentication key enables account owners to rotate their private key(s) associated with the account without changing the address that hosts their account.
See
Account Basics
Account addresses can be derived from AuthenticationKey