create static method
Future<ClientEnvelope>
create({
- required CoseSigner signer,
- required List<
CoseServerKey> serverKeys, - required String audience,
An envelope for audience (the configured name of the service, never
its host) that signs with signer and opens responses with
serverKeys, and starts the backend if nothing has yet.
Throws CoseMisuse for a key of the wrong shape or an empty audience.
Implementation
static Future<ClientEnvelope> create({
required CoseSigner signer,
required List<CoseServerKey> serverKeys,
required String audience,
}) =>
backend.createEnvelope(
signer: signer,
serverKeys: serverKeys,
audience: audience,
);