commit: 2a9eb7d01df4ca4ce46fa263cb04bae2c2ed3620
parent 7d22927b962464b1c14b9708d5ee25ab5f947762
Author: William Pitcock <nenolod@dereferenced.org>
Date: Mon, 3 Jun 2019 07:09:40 -0500
add notes on AP compat
Diffstat:
1 file changed, 29 insertions(+), 0 deletions(-)
diff --git a/ap-compat.md b/ap-compat.md
@@ -0,0 +1,29 @@
+---
+title: "LitePub for ActivityPub Implementors"
+---
+
+## JSON-LD context
+
+LitePub implementations are not required to use `@context` properties on their messages.
+A conformant ActivityPub implementation is required to process these messages with an
+injected `@context` of `"https://www.w3.org/ns/activitystreams"` as described in the
+[ActivityStreams 2.0 Core Specification][AS2-CORE-JSON-LD].
+
+ [AS2-CORE-JSON-LD]: https://www.w3.org/TR/activitystreams-core/#jsonld
+
+However, the LitePub Core Vocabulary differs from the ActivityStreams 2.0 Vocabulary.
+It is suggested that LitePub implementations supply a locally hosted version of the
+[LitePub JSON-LD Context][litepub-jsonld] as their `@context`. It may be useful to
+inject a local copy of the LitePub JSON-LD Context instead of the default ActivityStreams
+2.0 context when a message is received without a `@context` as it defines the full
+LitePub Core Vocabulary in a way that is useful to JSON-LD processors.
+
+ [litepub-jsonld]: https://litepub.social/litepub/litepub.jsonld
+
+
+## Signatures
+
+LitePub implementations MUST use HTTP Signatures to verify the authenticity of
+messages being delivered to or from peering nodes. The details surrounding
+the way HTTP Signatures are implemented in LitePub are discussed on the Overview
+page.