BackupEnvelope class
Unencrypted metadata plus the encrypted payload. The KDF and cipher parameters travel in the clear so a reader can decrypt without knowing this specification's defaults.
Constructors
- BackupEnvelope({required int version, required String format, required String createdAt, String? sourceDid, required String sourceVersion, required KdfParams kdf, required EncryptionParams encryption, required bool includesAudit, required String ciphertext})
-
const
-
BackupEnvelope.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- ciphertext → String
-
base64url(AEAD(JSON(payload))).
final
- createdAt → String
-
When the export was taken.
final
- encryption → EncryptionParams
-
final
- format → String
-
Envelope format tag, e.g.
vtc-backup-v1.final - hashCode → int
-
The hash code for this object.
no setterinherited
- includesAudit → bool
-
Whether the audit log and its signed checkpoints are inside
ciphertext.final - kdf → KdfParams
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceDid → String?
-
DID of the community exported from, when it has one. An import cross-checks this
against the running community.
final
- sourceVersion → String
-
Version of the software that produced the envelope.
final
- version → int
-
Envelope schema version.
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