Skip to content

Node-RED DID-JWT library allows you to sign msg.payload and verify JSON Web Tokens (JWT) for use of payload in flow.

License

Notifications You must be signed in to change notification settings

energychain/node-red-contrib-decentralized-identity

Repository files navigation

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.

npm npm CO2Offset

Based on DID-JWT and EthrDID.

Configuration

Install using Node-RED Package Manager (Palett)

Usage

Sample Flow

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

STROMDAO GmbH
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/

LICENSE

Apache-2.0

About

Node-RED DID-JWT library allows you to sign msg.payload and verify JSON Web Tokens (JWT) for use of payload in flow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published