White Paper:
Digital Identity Platform Whitepaper (Draft)
Prerequire
-
Go version >= 1.9.2
-
Install Go follow by installation instructions.
-
Tendermint 0.16.0
-
Install Tendermint by following installation instructions.
Important: After runninggo get github.com/tendermint/tendermint/cmd/tendermint
, you need to change tendermint cloned source to version 0.16.0 before continuing the installation)cd $GOPATH/src/github.com/tendermint/tendermint git checkout v0.16.0
-
Setup
go get github.com/ndidplatform/ndid
go get -u github.com/tendermint/abci/cmd/abci-cli
cd $GOPATH/src/github.com/ndidplatform/ndid
and thengo get ./...
go get -u github.com/tendermint/tendermint/cmd/tendermint
Run IdP node
- open 4 terminal window
cd $GOPATH/src/github.com/ndidplatform/ndid
and thengo run abci/server.go tcp://127.0.0.1:46000
tendermint --home ./config/tendermint/IDP unsafe_reset_all && tendermint --home ./config/tendermint/IDP node --consensus.create_empty_blocks=false
cd $GOPATH/src/github.com/ndidplatform/ndid
and thengo run api/server.go -port :8000 -tenderm 127.0.0.1:45000
- test call API
curl http://127.0.0.1:8000/identity/cid/1234567890123
Run RP node
- open 4 terminal window
cd $GOPATH/src/github.com/ndidplatform/ndid
and thengo run abci/server.go tcp://127.0.0.1:46001
tendermint --home ./config/tendermint/RP unsafe_reset_all && tendermint --home ./config/tendermint/RP node --consensus.create_empty_blocks=false
cd $GOPATH/src/github.com/ndidplatform/ndid
and thengo run api/server.go -port :8001 -tenderm 127.0.0.1:45001
- test call API
curl http://127.0.0.1:8001/identity/cid/1234567890123
Run in Docker
Required
- Docker CE Install docker
- docker-compose Install docker-compose
cd docker
docker-compose up
API specs
Testing
- run test api for rp
silk -silk.url="http://127.0.0.1:8001" api/specs/relying_party/*.silk.md