TronSigner class

Tron Signer class for cryptographic operations, including signing and verification.

Constructors

TronSigner.fromKeyBytes(List<int> keyBytes)
Factory method to create a TronSigner from a byte representation of a private key.
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
sign(List<int> digest, {bool hashMessage = true, List<int>? extraEntropy}) List<int>
Signs a message digest using the ECDSA algorithm on the secp256k1 curve.
signConst(List<int> digest, {bool hashMessage = true, List<int>? extraEntropy}) List<int>
signProsonalMessage(List<int> digest, {int? payloadLength, bool useEthPrefix = false, List<int>? extraEntropy}) List<int>
Signs a personal message digest with an optional payload length.
signProsonalMessageConst(List<int> digest, {int? payloadLength, bool useEthPrefix = false, List<int>? extraEntropy}) List<int>
toString() String
A string representation of this object.
inherited
toVerifyKey() TronVerifier
Converts the TronSigner to a TronVerifier for verification purposes.

Operators

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