Skip to main content
Module

x/earthstar/mod.ts>DocEs5

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

Contains data written and signed by an identity.

Properties

format: "es.5"

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

text: string
textHash: string
optional
deleteAfter: number

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

path: Path
signature: Signature

Used to verify the authorship of the document.

shareSignature: Signature

Used to verify the author knows the share's secret

timestamp: Timestamp

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

The share this document is from.

optional
attachmentSize: number

The size of the associated attachment in bytes, if any.

optional
attachmentHash: string

The sha256 hash of the associated attachment, if any.

optional
_localIndex: LocalIndex