DVDevClientSigner class

The key a dev server or a preview seals bundles with.

ES256 over P-256, the primitive VAPID and module signatures already use. A dev server generates a fresh one per run, so a pairing ends when the server does.

Constructors

DVDevClientSigner.fromPrivateKey(Uint8List privateKey)
factory
DVDevClientSigner.generate([Random? random])
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
publicKey → Uint8List
The uncompressed P-256 point a pairing link carries.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

certificate({DateTime? now}) → DVDevClientCertificate
A self-signed TLS certificate for publicKey, which a dev server presents so a device can pin its connection to the key in its link.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
seal({required Map<String, Object?> bundle, String? channel, DVDevClientManifest? requires, int? sequence}) → String
bundle sealed into an envelope.
sign(List<int> message) → Uint8List
A raw r||s ES256 signature over message.
toString() → String
A string representation of this object.
inherited

Operators

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