this post was submitted on 28 Jul 2023
1 points (100.0% liked)

ActivityPub

275 readers
1 users here now

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

When making an activitypub request from either a lemmy or mastodon server (I haven't tried others)

(eg curl https://programming.dev/c/activitypub -A 'WhizzleGig/0.1;' -H 'Accept: application/activity+json'),

for their context they include...

"@context": [                                                                                                                                                                                                                                                                                                                                                                                                                          
    "https://www.w3.org/ns/activitystreams",                                                                                                                                                                                                                                                                                                                                                                                             
    "https://w3id.org/security/v1",                                                                                                                                                                                                                                                                                                                                                                                                      
    {

(note: https://w3id.org/security/v1), and for the security portion of the record, they return something like ...

"publicKey": {                                                                                                                                                                                                    
    "id": "https://programming.dev/c/activitypub#main-key",                                                                                                                                                         
    "owner": "https://programming.dev/c/activitypub",                                                                                                                                                               
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nBlahBlahBlah\n-----END PUBLIC KEY-----\n"                                                                                                                                                           
  },

(note how publicKeyPem and owner are both nested inside publicKey).

However, upon reviewing https://w3id.org/security/v1 and https://w3id.org/security, my interpretation is that those should not be nested inside publicKey but should be at the same level. Am I misreading something?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here