DevicePublicKey class

A device's long-lived public identity: the key-exchange and signing public keys that peers use to seal keys to it and to verify what it signs.

The private halves never leave the device that owns them (see Identity).

Constructors

DevicePublicKey({required List<int> keyExchange, required List<int> signing})
Creates a public identity from its two keys.
const
DevicePublicKey.fromBytes(List<int> bytes)
Builds a DevicePublicKey from its toBytes encoding.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
keyExchange → List<int>
The X25519 public key other devices use with Identity.wrapFor.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signing → List<int>
The Ed25519 public key used to verify Identity.sign output.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() → List<int>
A flat 64-byte encoding: keyExchange ‖ signing.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override