AptosED25519PublicKey class

Inheritance

Constructors

AptosED25519PublicKey.fromBytes(List<int> keyBytes)
factory
AptosED25519PublicKey.fromStruct(Map<String, dynamic> json)
factory

Properties

algorithm AptosKeyAlgorithm
The key algorithm used (e.g., Ed25519, Secp256k1)
finalinherited
hashCode int
The hash code for this object.
no setteroverride
publicKey → Ed25519PublicKey
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializableType BcsSerializableType
Specifies that this class represents a variant type.
no setterinherited
variantName String
Returns the name of the variant (used as the key during serialization).
no setterinherited

Methods

cast<T extends AptosCryptoPublicKey<IPublicKey>>() → T
inherited
createLayout({String? property}) → Layout<Map<String, dynamic>>
Creates a layout structure for serialization.
override
createVariantLayout({String? property}) → Layout<Map<String, dynamic>>
Creates a layout structure specifically for variants.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publicKeyBytes() List<int>
Raw bytes of the public key
override
publicKeyHex({bool lowerCase = false}) String
public key in hexadecimal format
override
toAddress({AptosEd25519AddressScheme scheme = AptosEd25519AddressScheme.ed25519}) AptosAddress
derive an Aptos address from the public key
override
toBcs({String? property}) List<int>
Serializes the object to BCS format (List of bytes).
inherited
toBcsBase64() String
Converts the BCS-encoded bytes to a Base64 string.
inherited
toBcsHex() String
Converts the BCS-encoded bytes to a hexadecimal string.
inherited
toBytes() List<int>
Serialize the public key using the variant BCS format
inherited
toHex({bool lowerCase = true, String prefix = ''}) String
Convert the public key bytes to hexadecimal string with optional prefix
inherited
toJson() Map<String, dynamic>
Converts the variant structure to a JSON-compatible Map.
inherited
toLayoutStruct() Map<String, dynamic>
Converts the current object to a layout-friendly structure (Map format).
override
toString() String
A string representation of this object.
inherited
toVariantBcs({String? property}) List<int>
Serializes the variant into BCS format (List of bytes).
inherited
toVariantBcsBase64() String
Converts the serialized variant into a Base64 string.
inherited
toVariantBcsHex() String
Converts the serialized variant into a hexadecimal string.
inherited
toVariantLayoutStruct() Map<String, dynamic>
Converts the variant to a layout-friendly structure with the variant name as the key.
inherited
verify({required List<int> message, required List<int> signature}) bool
Constructor that requires the key algorithm
override

Operators

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

Static Methods

layout({String? property}) → Layout<Map<String, dynamic>>
override