Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/formats/format_es4.ts>DocEs4

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
interface DocEs4
implements DocBase<"es.4">
import { type DocEs4 } from "https://deno.land/x/earthstar@v10.0.0-beta.7/src/formats/format_es4.ts";

Contains data written and signed by an identity.

Properties

format: "es.4"

Which document format the doc adheres to, e.g. es.4.

content: string
contentHash: string
deleteAfter: number | null

When the document should be deleted, as a UNIX timestamp in microseconds.

path: Path
signature: Signature

Used to verify the authorship of the document.

timestamp: Timestamp

When the document was written, as a UNIX timestamp in microseconds (millionths of a second, e.g. Date.now() * 1000).

workspace: ShareAddress

The share this document is from. Shares were previously called workspaces, but we didn't want to break compatibility with previous versions by renaming this field.

optional
_localIndex: LocalIndex