PrivateKey class

Constructors

PrivateKey(Uint8List keyBytes)
PrivateKey.fromHex(String hex)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
keyAsBase64 String
no setter
keyAsHex String
no setter
keyBytes Uint8List
final
publicKey PublicKey
no setter
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(Uint8List message, Uint8List prefix) Uint8List
Sign signs the message with privateKey and returns a signature. It will throw ArumentError if privateKey.bytes.length is not PrivateKeySize.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

keySize → const int
signatureSize → const int