This repository has been archived and moved to a new location. This means that the repository is no longer actively maintained or updated. Please note the new location of the repository and update your references accordingly.
The repository has been moved to https://github.com/affinidi/reference-app-certification-and-verification
This repository will remain available in its current location for historical purposes. You may continue to use or reference the code, but please be aware that it is no longer being actively maintained or updated.
We will not be accepting any new issues or pull requests for this repository. If you encounter any issues with the code, please refer to the archived repository or the new repository location for potential solutions.
Backend-proxy template for @affinidi/cli
Affinidi’s vision is to empower communities with control and ownership of their data, creating new business models and greater trust.
As the customer demand for control and ownership of data continues to increase, it is becoming increasingly important for developers to better manage data privacy and portability within their apps. With our tooling, you can start creating a privacy-preserving app within minutes.
Privacy-preserving apps make it easy to manage and store customer information while giving your customers more control over how this information is used and shared. We enable this data ownership and control through Decentralized Identifiers (DIDs) and Verifiable Credentials (VCs).
Learn more about VCs, trust triangle, Decentralized Identifiers (DIDs), and selective disclosure.
This repository is supposed to be used as a template for @affinidi/cli
Please refer to the documentation of @affinidi/cli for more details.
You may also clone this repository and run it separately, but in this case you need to follow these steps:
(You may skip first 3 steps if you already created a project before and know your api-key, projectId and projectDid)
-
Install
@affinidi/cli
and create a project:npm install -g @affinidi/cli
Use to this guide for more details: https://github.com/affinidi/affinidi-cli#installation:
-
Create an account:
affinidi sign-up
Use
affinidi login
instead if you already have an Affinidi Account -
Create a project:
affinidi create project
Save response with your credentials in safe place.
-
Copy .env.example to .env
cp .env.example .env
-
Replace placeholders in .env file with credentials from step 3:
<YOUR_AFFINIDI_APIKEY_HASH>
-apiKey.apiKeyHash
<YOUR_AFFINIDI_ISSUER_DID>
-wallet.did
<YOUR_AFFINIDI_PROJECT_ID>
-project.projectId
-
Run application:
npm start