logo

litepub.social

Website of https://litepub.social/ git clone https://anongit.hacktivis.me/git/litepub.social.git/

ap-compat.shtml (1459B)


  1. <!--#set var="title" value='LitePub for ActivityPub Implementors'--><!--#include file="templates/header.shtml" -->
  2. <h2 id="json-ld-context">JSON-LD context</h2>
  3. <p>
  4. LitePub implementations are not required to use <code>@context</code> properties on their messages.
  5. A conformant ActivityPub implementation is required to process these messages with an
  6. injected <code>@context</code> of <code>"https://www.w3.org/ns/activitystreams"</code> as described in the
  7. <a href="https://www.w3.org/TR/activitystreams-core/#jsonld">ActivityStreams 2.0 Core Specification</a>
  8. </p>
  9. <p>
  10. However, the LitePub Core Vocabulary differs from the ActivityStreams 2.0 Vocabulary.
  11. It is suggested that LitePub implementations supply a locally hosted version of the
  12. <a href="https://litepub.social/litepub/context.jsonld">LitePub JSON-LD Context</a> as their <code>@context</code>. It may be useful to
  13. inject a local copy of the LitePub JSON-LD Context instead of the default ActivityStreams
  14. 2.0 context when a message is received without a <code>@context</code> as it defines the full
  15. LitePub Core Vocabulary in a way that is useful to JSON-LD processors.
  16. </p>
  17. <h2>Signatures</h2>
  18. <p>
  19. LitePub implementations MUST use HTTP Signatures to verify the authenticity of
  20. messages being delivered to or from peering nodes. The details surrounding
  21. the way HTTP Signatures are implemented in LitePub are discussed on the Overview
  22. page.
  23. </p>
  24. <!--#include file="templates/footer.shtml" -->