Helge on Nostr: The basic problem for me is: What happens if you run a json-ld processing algorithm? ...
The basic problem for me is: What happens if you run a json-ld processing algorithm?
Example: If you compact the bad example against ["
https://www.w3.org/ns/activitystreams";, "
https://w3id.org/security/data-integrity/v1";] in order to only have a single @context value in the document, the proof would become invalid.
Compacting against a known context is one of the ways, I'm aware of to ensure that the keys of a document mean what you expect.
Published at
2023-12-30 17:33:41Event JSON
{
"id": "453135fb5cfd8f9369609ca28ff74ee79925cf7909311e9d1a1a96a74cb58887",
"pubkey": "e23d29a5a0263cf9dc9e285d32268613aabf2d2b09461c4c845c195921bf4087",
"created_at": 1703957621,
"kind": 1,
"tags": [
[
"p",
"f1b14f99f2dd58152dd4ca6e386a3094d05951ad3ca16925788329efe465c9ec",
"wss://relay.mostr.pub"
],
[
"p",
"6a5f35dc281276c30c527e1240ef6bad3ef27bcf92b4fef017dc7f5a5c31e5ec",
"wss://relay.mostr.pub"
],
[
"e",
"6cffd6f06fb09ea5a19aa27b2b27ec7b904047819fc5519e354f334a3dbf748e",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mymath.rocks/objects/da9f9479-216c-46d0-9695-c2e063dc04e0",
"activitypub"
]
],
"content": "The basic problem for me is: What happens if you run a json-ld processing algorithm?\nExample: If you compact the bad example against [\"https://www.w3.org/ns/activitystreams\", \"https://w3id.org/security/data-integrity/v1\"] in order to only have a single @context value in the document, the proof would become invalid.\nCompacting against a known context is one of the ways, I'm aware of to ensure that the keys of a document mean what you expect.\n",
"sig": "2ca33f5356637e32d2a2064197083ee9731bbd6e6632f12be375b541353ac53d92a01dbe8a8971e0ba34666a3ac9b41f52cb54542dde774a8d35638533488b79"
}