Bip340EventSigner class

Pure Dart Event Signer

Implemented types

Constructors

Bip340EventSigner({required String? privateKey, required String publicKey})
Get a new event signer with the given keys

Properties

hashCode int
The hash code for this object.
no setterinherited
privateKey String?
hex private key
getter/setter pair
publicKey String
hex public key
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canSign() bool
override
decrypt(String msg, String destPubKey, {String? id}) Future<String?>
override
encrypt(String msg, String destPubKey, {String? id}) Future<String?>
override
getPublicKey() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(Nip01Event event) Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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