Elektrine lite

← Feed

@Edent@mastodon.social

2026-09-04 10:04 UTC

The documentation says: > Strip type, id, and signatureValue from the signature, leaving only signature[creator] and signature[created]. > Base64-decode the signatureValue and verify it against the public key in signature[creator]. But it doesn't say *what* to validate the signature against! Is it a JSON document just containing creator and created? Or is it something else?

Replies (2)

  • @Edent@mastodon.social 2026-10-18 09:33

    I've added an #OpenAPI / #Swagger specification to #ActivityBot. https://gitlab.com/edent/activity-bot/-/blob/main/openapi.yaml I've never done this before - so please do feel free to give me constructive criticism on what I've done 😊

    Open ##5103939

  • @grishka@mastodon.social 2026-09-04 10:12

    @Edent@mastodon.social oh.... it's against some wild RDF thingy that you obtain by putting the JSON document through some JSON-LD processing algorithms. My memory is fuzzy because I implemented that from scratch way back in 2019, but here's my known working implementation if that helps: https://github.com/grishka/Smithereen/blob/master/src/main/java/smithereen/jsonld/LinkedDataSignatures.java

    Open ##5175079