Node-RED - DID-JWT nodes allowing to sign msg.payload and verify JSON Web Tokens (JWT) for use of payload in flow.
Install using Node-RED Package Manager (Palett)
If a new msg.paylaod
is received a DID in JWT format will be returned as msg.payload
. Ensure typeof msg.payload
is an JSON-Object.
If a new msg.payload
is received with a JWT it gets validated. On success msg.payload
contains orignal payload (from creation) and msg.issuer
the publicKey (Identifier) of the origin.
Ensure flow data gets persisted as the creation will otherwise create a new signing key on each request which makes it useless to validate the signer of a message.
Hint: .node-red/settings.json
contextStorage: {
default: {
module:"localfilesystem"
},
},
Gerhard Weiser Ring 29
69256 Mauer
Germany
+49 6226 968 009 0
kontakt@stromdao.com
Handelsregister: HRB 728691 (Amtsgericht Mannheim)
Project Website: https://co2offset.io/