nodejs Server to verify signature from floID
Go to file
2021-08-03 19:41:06 +05:30
src Update Server.js 2021-08-03 19:41:06 +05:30
.gitattributes Initial commit 2021-08-03 15:44:30 +05:30
LICENSE update ReadMe 2021-08-03 16:04:07 +05:30
README.md Update README.md 2021-08-03 16:05:51 +05:30
start.js Initial commit 2021-08-03 15:44:30 +05:30

FLO-signValidator

This nodejs Server will verify the signature sent via POST request.

Installation (for server host only)

Pre-requisite

  • Nodejs version >= 12.9

Download

Download the repository using git:

git clone https://github.com/ranchimall/FLO-signValidator.git

Starting the server

The server can be started using the following command

node ./start.js

The default port is 8080. To host the server in different port, pass the port number in command line argument as shown below

node ./start.js <port>

Usage (for clients)

The POST request must consist of a JSON string with the following:

  • floID: floID of the signer.
  • pubKey: pubKey of the signer.
  • message: message that was signed.
  • sign: sigature generated by signing using the private key of the signer.

The above values can be generated using Standard Operations