SuiSecp256k1PublicKey class

Represents a Sui secp256k1 public key with verification capabilities.

Inheritance

Constructors

SuiSecp256k1PublicKey.fromBytes(List<int> keyBytes)
Creates an instance from raw public key bytes.
factory
SuiSecp256k1PublicKey.fromStruct(Map<String, dynamic> json)
factory

Properties

algorithm SuiKeyAlgorithm
finalinherited
hashCode int
Returns the hash code for the public key.
no setteroverride
publicKey → Secp256k1PublicKeyEcdsa
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({PubKeyModes pubkeyMode = PubKeyModes.compressed}) List<int>
Returns the public key bytes in compressed or uncompressed format.
override
toHex({PubKeyModes pubkeyMode = PubKeyModes.compressed, 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 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 hashMessage = true}) bool
Verifies a message and signature pair for authenticity.
override

Operators

operator ==(Object other) bool
Checks equality based on the public key.
override

Static Methods

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