Giter Site home page Giter Site logo

aries-framework-javascript-demo's Introduction

DEMO

This is the Aries Framework Javascript demo (extracted from https://github.com/hyperledger/aries-framework-javascript/tree/main/demo and adapted to not depend on Indy SDK and work properly with node 18). Walk through the AFJ flow yourself together with agents Alice and Faber.

Alice, a former student of Faber College, connects with the College, is issued a credential about her degree and then is asked by the College for a proof.

Features

  • ✅ Creating a connection
  • ✅ Offering a credential
  • ✅ Requesting a proof
  • ✅ Sending basic messages

Getting Started

Platform Specific Setup

In order to use Aries Framework JavaScript some platform specific dependencies and setup is required. See our guides below to quickly set up you project with Aries Framework JavaScript for NodeJS, React Native and Electron.

Run the demo

These are the steps for running the AFJ demo:

Clone the AFJ git repository:

git clone https://github.com/genaris/aries-framework-javascript-demo.git

Open two different terminals next to each other and in both, go to the demo folder:

cd aries-framework-javascript-demo

Install the project in one of the terminals:

yarn install

In the left terminal run Alice:

yarn alice

In the right terminal run Faber:

yarn faber

Usage

To set up a connection:

  • Select 'receive connection invitation' in Alice and 'create connection invitation' in Faber
  • Faber will print a invitation link which you then copy and paste to Alice
  • You have now set up a connection!

To offer a credential:

  • Select 'offer credential' in Faber
  • Faber will start with registering a schema and the credential definition accordingly
  • You have now send a credential offer to Alice!
  • Go to Alice to accept the incoming credential offer by selecting 'yes'.

To request a proof:

  • Select 'request proof' in Faber
  • Faber will create a new proof attribute and will then send a proof request to Alice!
  • Go to Alice to accept the incoming proof request

To send a basic message:

  • Select 'send message' in either one of the Agents
  • Type your message and press enter
  • Message sent!

Exit:

  • Select 'exit' to shutdown the agent.

Restart:

  • Select 'restart', to shutdown the current agent and start a new one

aries-framework-javascript-demo's People

Contributors

genaris avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.