EncryptedDocument

public struct EncryptedDocument: Codable, Signable

Data type to hold encrypted data and related info

  • Metadata produced by this client about this document

    Declaration

    Swift

    public let clientMeta: ClientMeta
  • The ciphertext after it has been encrypted, the keys remain unencrypted

    Declaration

    Swift

    public let encryptedData: CipherData
  • A cryptographic signature of the clientMeta and the cleartext data before it was encrypted

    Declaration

    Swift

    public let recordSignature: String
  • Declaration

    Swift

    public func serialized() -> String