+ if (!signatureObject || !signatureObject.creator) {
+ res.sendStatus(403)
+ return false
+ }
+
+ const [ creator ] = signatureObject.creator.split('#')
+
+ logger.debug('Checking JsonLD signature of actor %s...', creator)
+
+ const actor = await getOrCreateActorAndServerAndModel(creator)
+ const verified = await isJsonLDSignatureVerified(actor, req.body)
+
+ if (verified !== true) {
+ res.sendStatus(403)
+ return false
+ }
+
+ res.locals.signature = { actor }
+
+ return true