Skip to content
SelfKey Service
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.dockerignore
.gitignore
CONTRIBUTING.md
Dockerfile
LICENSE
README.md
app.js
package-lock.json
package.json

README.md

selfkey-service

SelfKey Service

Install

Clone, install and run - requires NodeJS

git clone git@github.com:SelfKeyFoundation/selfkey-service.git

cd selfkey-service

npm install

npm run dev

Usage

Send a POST request to the service endpoint '/' with a nonce, signature and ethereum address in the body using the following fields:

nonce: <nonce value>
signature: <signature value>
publicKey: <ethereum address>

To create the data you can use the functions in the selfkey-lib library - also see the test file for an example of this.

Docker

Build the container and run it - forward the port as you see fit

docker build .

docker run -p 3018:3018 <container id>

Test

Make sure the service is running first

npm run test

Contributing

Please see the contributing notes

License

The GPL-3.0 License

Copyright (c) 2018 SelfKey Foundation https://selfkey.org/

You can’t perform that action at this time.