MightyNetwork :: Doc :: JSON-LD-signatures (source, CPAN)

CONTENTS

NAME

MightyNetwork::Doc::JSON-LD-signatures

DESCRIPTION

JSON-LD messages have to be signed with the actor’s key.

Please note that every MightyNetwork::Doc::ActivityPub::Activity are signed, just to be sure that the signature will be available in case we need it. That is not something in MightyNetwork::Doc::ActivityPub standard but it’s a de facto standard.

IMPORTANT NOTE

Please note that this de facto standard’s usage is decreasing: a lot of languages lacks libraries to handle JSON-LD signatures. To ensure the origin of an activity, you can fetch the activity from its original server.

SPECIFICATION

See https://w3c-dvcg.github.io/ld-signatures/.

PURPOSE

The signatures are used to authenticate the origin of an activity:

HOW TO CREATE/VERIFY JSON-LD SIGNATURES

Extracts from https://medium.com/@johnrcallahan/linked-data-signatures-with-ruby-3fa4dbc8e1fb (archive.org link).

The process of signing a JSON-LD document includes:

Verifying a signed JSON-LD document includes:

SEE ALSO

MightyNetwork::Doc, MightyNetwork::Doc::JSON-LD, MightyNetwork::Doc::ActivityPub::Activity, MightyNetwork::Doc::ActivityPub::Actor, https://w3c-dvcg.github.io/ld-signatures/