AuthenticationKey class

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. https://aptos.dev/basics/basics-accounts | Account Basics

Account addresses can be derived from AuthenticationKey

Constructors

AuthenticationKey(Uint8List bytes)

Properties

bytes Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

derivedAddress() HexString
Derives an account address from AuthenticationKey. Since current AccountAddress is 32 bytes, AuthenticationKey bytes are directly translated to AccountAddress.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromEd25519PublicKey(Ed25519PublicKey publicKey) AuthenticationKey
fromMultiEd25519PublicKey(MultiEd25519PublicKey publicKey) AuthenticationKey
Converts a K-of-N MultiEd25519PublicKey to AuthenticationKey with: auth_key = sha3-256(p_1 | … | p_n | K | 0x01). K represents the K-of-N required for authenticating the transaction. 0x01 is the 1-byte scheme for multisig.

Constants

DERIVE_RESOURCE_ACCOUNT_SCHEME → const int
ED25519_SCHEME → const int
LENGTH → const int
MULTI_ED25519_SCHEME → const int