TronPublicKey class

Class representing a Tron public key

Constructors

TronPublicKey(String pubHex)
Factory method to create a TronPublicKey from a hexadecimal public key string
factory
TronPublicKey.fromBytes(List<int> keyBytes)
Factory method to create a TronPublicKey from a list of key bytes
factory

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAddress() TronAddress
Method to obtain the corresponding Tron address from the public key
toBytes([PubKeyModes mode = PubKeyModes.compressed]) List<int>
Method to convert the public key to a list of bytes
toHex({PubKeyModes mode = PubKeyModes.compressed}) String
Method to convert the public key to a hexadecimal string
toString() String
Override of the toString method to return the hexadecimal representation of the public key
override
verifyPersonalMessage(List<int> messageDigest, String signature, {bool hashMessage = true, int? payloadLength, bool useEthereumPrefix = false}) bool
Verifies the signature of a personal message using the public key.

Operators

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

Static Methods

fromPersonalSignature(List<int> messageDigest, String signature, {bool hashMessage = true, int? payloadLength, bool useEthereumPrefix = false}) TronPublicKey?