---
# System prepended metadata

title: SSI Service Setup

---

[TOC]

# SSI Service Setup
## Clone & Run
## Create Issuer DID
## Create Credential Schema

# Credential Issuance
```javascript=
onClick() {
    const did = await web5.did.request() // STEP ONE
    const vc = await http.post(did) // STEP TWO
    
    await web5.did.deliver(vc) // STEP THREE
}
```

Step 1: Triggers the browser wallet to open and Alice clicks on a DID in her wallet to share.
Step 2: Backend server replies with the VC to then pass to did.deliver.
Step 3: Deliver the credential to Alice!


## 1. Alice Requests Employment Status Credential
Alice logs into her employee internal portal and see's an Employment Verification button.

.Image.

Upon clicking, `web5.did.request()` is called and triggers the browser wallet to open to her DID directory page and Alice clicks on a DID to share.

## 2. Create Verifiable Credential
After you capture Alice's DID now let's create her VC:

*What to Gather:*
- Schema ID (from above)
- Acme's DID (from above)
- Alice's DID we just got from `web5.did.request()`

```
curl -X PUT -d 
‘{
  "data": {
    "givenName": "Alice",
  },
  "issuer": "{{acme DID}}",
  "subject": "{{alice DID}}",
  "@context": "https://www.w3.org/2018/credentials/v1",
  "expiry": "2051-10-05T14:48:00.000Z",
  "schema": "{{schema ID}}"
}’ http://localhost:8080/v1/credentials
```

## 3. Credential Delivery
Now that the Verifiable Credential has made its way to the Employee Portal let's deliver it to Alice's Wallet with:
`web5.did.deliver(vc)`

Alice should then be able to open her wallet and accept her new Employment Status VC from Acme!

