node-red-contrib-decentralized-identity

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i node-red-contrib-decentralized-identity

Weekly Downloads

1

Version

1.0.6

License

Apache-2.0

Unpacked Size

49.2 kB

Total Files

12

Last publish

Collaborators

  • zoernert