Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.DocEs5

An always-online Earthstar peer for your shares.
Latest
interface Earthstar.DocEs5
implements DocBase<"es.5">
Re-export
import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { DocEs5 } = Earthstar;

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