CredentialInterface class abstract

An interface for basic credentials that can sign messages.

This interface defines the basic interface for wallet credential type that can be used to sign messages in the Ethereum context.

Inheritance
Implementers

Constructors

CredentialInterface()

Properties

address EthereumAddress
The Ethereum address associated with this credential.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
publicKey Uint8List
The public key associated with this credential.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getAddress({int index = 0, dynamic bytes}) String
Returns the Hex address associated with the signer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
personalSign(Uint8List hash, {int? index, String? id}) Future<Uint8List>
Signs a message hash using the credential.
override
signToEc(Uint8List hash, {int? index, String? id}) Future<MsgSignature>
Signs a message hash and returns the ECDSA signature.
override
toJson() String
Converts the credential to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

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