node-red-contrib-decentralized-identity
Node-RED - DID-JWT nodes allowing to sign msg.payload and verify JSON Web Tokens (JWT) for use of payload in flow.
Configuration
Install using Node-RED Package Manager (Palett)
Usage
Sample Flow
Create JWT
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.
Validate/Resolve from JWT
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.
For Production
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"
},
},
STROMDAO GmbH Maintainer / Imprint
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/