Guardian Selective Disclosure - Presentation Exchange Verifier DApp
This is a web app that interacts with the responders.
You can get and run a responder here. https://github.com/Meeco/guardian-sd-responder
See guide at https://github.com/Meeco/guardian-sd-responder/blob/main/docs/GETTING_STARTED.md
It can be run locally with node >= 16:
Ensure .env.example
is copied as .env
and completed with all properties.
Property | Description |
---|---|
REACT_APP_TESTNET_DEFAULT_TOPIC_ID |
Default topic for sending/receiving message from HCS(testnet) |
REACT_APP_MAINNET_DEFAULT_TOPIC_ID |
Default topic for sending/receiving message from HCS(mainnet) |
REACT_APP_DID_UNIVERSAL_RESOLVER_URL |
Url of universal did resolver. |
NB. The DID universal resolver defaults to https://dev.uniresolver.io. If using did:hedera
, you may need to run local resolver for testing, for example hedera-did-universal-resolver-mock.
- Install dependencies with
yarn
(npm i -g yarn
to install yarn if you do not have it installed) yarn start
to start the responder listening on the configured topics
Dependencies:
Folder structure for src
:
components
- React componentsconsensusService
- Functions relevant to Hedera consensus service e.g., submit message to topic, get topic's messagesdidService
- Functions relevant to DID e.g., resolve didfileService
- Functions relevant to Hedera file service e.g., create file, get file's contentshashConnectService
- Functions relevant to HashConnect library e.g., init connection, connect to walletmock
- Mock files for testingtypes
- e.g., message typesutils
- Utility functions e.g., decrypt data, documentLoader, poll request, derive key