BootstrapRequest class

W3C Verifiable Presentation 2.0 (§6.1: VPs MAY omit verifiableCredential). Custom members nonce, validUntil, label, and ask sit alongside the standard VP fields and are covered by the same DataIntegrityProof.

Constructors

BootstrapRequest({required List<String> context, required List<String> type, required String id, required String holder, required String nonce, required String validUntil, String? label, required BootstrapAsk? ask, required DataIntegrityProof proof})
const
BootstrapRequest.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

ask → Object?
What the holder is asking the maintainer to do. Tagged on type; see TemplateBootstrapAsk and AdminRotationAsk.
final
context → List<String>
JSON-LD contexts. MUST contain both https://www.w3.org/ns/credentials/v2 and https://openvtc.org/contexts/bootstrap-v1. Maintainers verifying the proof MAY refuse other shapes.
final
hashCode → int
The hash code for this object.
no setterinherited
holder → String
The integration's ephemeral did:key (Ed25519). Identifies the party the returned bundle is HPKE-sealed for; the VP proof verifies under this DID's verification method.
final
id → String
URN-shaped identifier for this presentation. urn:uuid:&lt;v4&gt; is RECOMMENDED.
final
label → String?
Optional human-readable label carried into the maintainer's audit log.
final
nonce → String
16 random bytes encoded as base64url-no-pad (22 characters). The maintainer treats this as the sealed bundle's bundleId (decoded to hex, exposed in summary.bundleIdHex) and SHOULD enforce one-shot semantics — a second provisioning with the same nonce MUST be refused as a replay.
final
proof → DataIntegrityProof
Data Integrity proof signed by the holder's Ed25519 key. Cryptosuite MUST equal eddsa-jcs-2022. proofPurpose MUST equal authentication. verificationMethod MUST resolve under holder. Signs the JCS canonicalisation of the VP with proof removed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → List<String>
VP types. MUST contain both VerifiablePresentation and BootstrapRequest. Additional task-specific types MAY be present.
final
validUntil → String
Freshness bound for the VP. RFC 3339 UTC. Maintainers SHOULD allow ±5 minutes of clock skew.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

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