CredentialSigner class

Implemented types

Constructors

CredentialSigner.create(EthPrivateKey privateKey, String password, Random random, {int scryptN = 8192, int p = 1})
CredentialSigner.createRandom(String password)
factory
CredentialSigner.fromJson(String source, String password)
factory

Properties

address EthereumAddress
The Ethereum address associated with this credential.
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
publicKey Uint8List
The public key associated with this credential.
read-onlyoverride
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.
override
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.
override
toString() String
A string representation of this object.
inherited

Operators

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