CruzPrivateKey class

Ed25519 private key (pair), 64 bytes.

Inheritance
Annotations
  • @immutable

Constructors

CruzPrivateKey(Uint8List data)
Fully specified constructor used by JSON deserializer.
CruzPrivateKey.fromJson(String x)
Unmarshals a base64-encoded string to CruzPrivateKey.

Properties

data Uint8List
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

derivePublicKey() CruzPublicKey
Used to verify the key pair.
override
getPublicKey() CruzPublicKey
The second half of an Ed25519 private key is the public key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() String
Marshals CruzPrivateKey as a base64-encoded string.
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

size → const int
64