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

x/earthstar/src/formats/format_es5.ts>DocEs5

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
interface DocEs5
implements DocBase<"es.5">
import { type DocEs5 } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/src/formats/format_es5.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