SubstrateEcdsaSigner class
Ethereum Signer class for cryptographic operations, including signing and verification.
The ETHSigner
class facilitates the creation of Ethereum signatures and
provides methods for signing messages, personal messages, and converting to
verification keys. It uses the ECDSA (Elliptic Curve Digital Signature Algorithm)
for cryptographic operations on the secp256k1 elliptic curve.
- Implemented types
Constructors
-
SubstrateEcdsaSigner.fromKeyBytes(List<
int> keyBytes) -
Factory method to create an ETHSigner 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> -
Signs a personal message digest with an optional payload length.
override
-
signProsonalMessage(
List< int> digest, {int? payloadLength}) → List<int> -
toString(
) → String -
A string representation of this object.
inherited
-
toVerifyKey(
) → SubstrateEcdsaVerifier - Converts the ETHSigner to an ETHVerifier for verification purposes.
-
vrfSign(
List< int> message, {List<int> ? context, List<int> ? extra}) → List<int> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited