node-red-contrib-decentralized-identity
v1.0.6
Published
Node-RED - DID-JWT nodes allowing to sign msg.payload and verify JSON Web Tokens (JWT) for use of payload in flow.
Downloads
3
Readme
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"
},
},
Maintainer / Imprint
Project Website: https://co2offset.io/