Skip to content

Commit

Permalink
fix: implementing the workshop
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
  • Loading branch information
elribonazo committed Nov 6, 2024
1 parent bd3d946 commit 0a8aba1
Show file tree
Hide file tree
Showing 59 changed files with 12,306 additions and 6,591 deletions.
3 changes: 3 additions & 0 deletions demos/next-sdjwt-workshop/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
36 changes: 36 additions & 0 deletions demos/next-sdjwt-workshop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
49 changes: 49 additions & 0 deletions demos/next-sdjwt-workshop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<p align="center">
<a href="https://www.hyperledger.org/projects/identus">
<img src="https://cdn.jsdelivr.net/gh/hyperledger/[email protected]/resources/images/hyperledger-identus.svg" alt="identus-logo" width="513px" height="99px" />
</a>
<br>
<i> <font size="18">SDJWT Workshop Typescript</font> </i>
<br>
</p>
<hr>

# Introduction
This workshop will show you how to Issue and Verify a SD-JWT Credential and Presentation using connectionless flows, meaming, you won't need to establish a didcomm connection for issuance and verification flows.

### **What Can I expect from this workshop?**

You will learn everything that is needed to receive an Issued SD-JWT credential from the Cloud Agent and then use this credential to respond to a Presentation Submission request.

### **What are connectionless flows?**

In this presentation we won't be using [DIDComm Connections](https://hyperledger.github.io/identus-docs/docs/concepts/multi-tenancy#didcomm-connections) but instead we will generate OOB codes for Issuance and Verification.

You will then receive and process this OOB in your Edge Agent and run the corresponding flow:
1. Create the Credential Request from the Credential Offer
2. Create the Presentation Submission from the Verification Request

### Components
All documentation on how to deploy each service is inside the workshop just open the project and copy the commands:

1. Cloud Agent
2. Mediator
3. Typescript SDK

# Workshop

In order to run this workshop you must run the following commands:

```bash
git clone [email protected]:hyperledger/identus-edge-agent-sdk-ts.git
```

Then, move to the demo directory in ./demos/next-sdjwt-workshop

```bash
cd demos/next-sdjwt-workshop
npm i
npm run dev
```

**This create a site on http://localhost:3000, open the link and continue with the on screen instructions to continue the workshop**
16 changes: 16 additions & 0 deletions demos/next-sdjwt-workshop/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false,
crypto: false,
stream: false,
path: false,
};
}
return config;
},
}

module.exports = nextConfig
Loading

0 comments on commit 0a8aba1

Please sign in to comment.