TronPrivateKey class
Class representing a Tron private key
Constructors
- TronPrivateKey(String privateKeyHex)
-
Factory method to create a TronPrivateKey from a hexadecimal private key string
factory
-
TronPrivateKey.fromBytes(List<
int> keyBytes) -
Factory method to create a TronPrivateKey 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
-
publicKey(
) → TronPublicKey - Method to obtain the corresponding Tron public key
-
sign(
List< int> transactionDigest) → List<int> - Method to sign a transaction digest using the private key
-
signPersonalMessage(
List< int> message, {int? payloadLength, bool useEthereumPrefix = false}) → String - Signs a personal message using the private key and returns the signature as a hexadecimal string.
-
toBytes(
) → List< int> - Method to convert the private key to a list of bytes
-
toHex(
) → String - Method to convert the private key to a hexadecimal string
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited