SuiED25519PublicKey class
Represents a Sui ED25519 public key with verification capabilities.
- Inheritance
-
- Object
- BcsSerialization
- BcsVariantSerialization
- SuiCryptoPublicKey<
Ed25519PublicKey> - SuiED25519PublicKey
Constructors
-
SuiED25519PublicKey.fromBytes(List<
int> keyBytes) -
Creates an instance from raw public key bytes.
factory
-
SuiED25519PublicKey.fromStruct(Map<
String, dynamic> json) -
factory
Properties
- algorithm → SuiKeyAlgorithm
-
finalinherited
- hashCode → int
-
Returns the hash code for the public key.
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 SuiCryptoPublicKey< (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
-
toAddress(
) → SuiAddress -
Converts the public key to a corresponding Sui address.
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> -
Returns the public key bytes in compressed format, omitting the first byte.
override
-
toHex(
{bool lowerCase = false}) → String -
Returns the hexadecimal representation of the public key.
override
-
toJson(
) → Map< String, dynamic> -
Converts the variant structure to a JSON-compatible Map.
inherited
-
toLayoutStruct(
) → Map< String, dynamic> -
Converts the public key to a layout structure for serialization.
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 -
Verifies a message and signature pair for authenticity.
override
Operators
-
operator ==(
Object other) → bool -
Checks equality based on the public key.
override