This file shows how to setup, install and run our Inter-Pod Credential Exchange Protocol demo.
An example output of running the code can be found in example-output.md.
We use Node for running the code.
npm install
to install everything. (If there is a warning about Node engines, try running it with npm install --ignore-engines
)
npm run serve
to start the Community Solid Server (CSS)node index.js
to execute the demoThe demo won’t run if the CSS is not running.
We demonstrate three phases, preceded by a setup procedure (setting up three Solid Pods on the CSS, including an LDN inbox)
==> An example output of running the code can be found in example-output.md.
Notifications can be inspected via HTTP GET in the command line, e.g. http GET http://localhost:3000/verifier/inbox/b3ffb872-d4e8-40ae-bf8b-9bdde9f8a9c2
. This requires a HTTP client to be installed.
The below is not part of our demo, but might be of interest to follow along. Use on your own, we take no guarantee
Besides checking the console logs, Pods can also be inspected with Solid Pod browsers, for example Penny, or Bashlib.
Below is a short reference to Bashlib.
git clone git@github.com:SolidLabResearch/Bashlib.git
cd Bashlib
npm install
npm run build
# Create an authenticated session (for CSS 4.0.0 and up)
node bin/solid.js auth create-token
# -- and fill in all the questions
# http://localhost:3000
# Set the webid you want to use for authenticated session
# http://localhost:3000/signer/profile/card#me
# http://localhost:3000/holder/profile/card#me
# http://localhost:3000/verifier/profile/card#me
node bin/solid.js auth set http://localhost:3000/signer/profile/card#me
# Read data
node bin/solid.js ls http://localhost:3000/holder/inbox/
node bin/solid.js cat http://localhost:3000/holder/private/original
# Or, shorten this to
node bin/solid.js ls root:/private/derivation