/chia-did-message-demo

Demo of how DID signed messages can be signed by WalletConnect and distributed via nostr

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Warning

This sample project is intended for demonstration purposes only.

The dependencies used in this sample project may be outdated and may contain known security vulnerabilities. It is highly recommended that you only use the code as a reference when developing your project.

Overview

This is an example implementation of a Chia DID Reputation dApp using the standalone client for WalletConnect v2 to:

  • handle pairings
  • manage sessions
  • send Signature requests to a paired wallet
  • sync with nostr to send reputation messages
  • poll a known third-party service to see if the messages are valid

Running locally

Install the app's dependencies:

yarn

Set up your local environment variables by copying the example into your own .env.local file:

cp .env.local.example .env.local

Your .env.local now contains the following environment variables:

Develop

yarn dev

Test

yarn test

Build

yarn build