This is a simple express-app server for verifying the signature sent from the xquery front-end.
Clone the repo:
git clone https://github.com/blocknetdx/xquery-dashboard-backend.git
Navigate to the project directory:
cd xquery-dashboard-backend
Install the dependencies:
yarn
Start the development server:
yarn start
When front-end tries to create new project, a sign message comes and it makes a signature.
After click sign, front sends the signature to backend to verify.
The endpoint includes signature and wallet address as a query param.
When this back-end receives the request, it verifies to signature and wallet are compared to correct one.
Returns success when valid, otherwise fail.
If success, front-end goes to the next step - create project.