Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/transmute-industries/did-web-ngrok-openssl-demo
Short term web based decentralized identifiers with ngrok.
https://github.com/transmute-industries/did-web-ngrok-openssl-demo
bash did ngrok openssl w3c web
Last synced: about 1 month ago
JSON representation
Short term web based decentralized identifiers with ngrok.
- Host: GitHub
- URL: https://github.com/transmute-industries/did-web-ngrok-openssl-demo
- Owner: transmute-industries
- License: apache-2.0
- Created: 2023-03-17T20:59:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-18T19:25:13.000Z (almost 2 years ago)
- Last Synced: 2024-05-21T11:44:08.177Z (8 months ago)
- Topics: bash, did, ngrok, openssl, w3c, web
- Language: Shell
- Homepage: https://github.com/transmute-industries/did-web-ngrok-openssl-demo
- Size: 501 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web based DIDs with NGROK
This repository is for demonstration purposes only.
See [this presentation](https://docs.google.com/presentation/d/1f9jzWtGWzWaUsJ714h2elsuWA6Qpx24Gn7D6_B6BJxs) for details.
#### [Questions? Contact Transmute](https://transmute.typeform.com/to/RshfIw?typeform-source=did-web-ngrok-openssl-demo)
### Dependencies
- [openssl](https://www.openssl.org/)
- [curl](https://curl.se/)
- [jq](https://stedolan.github.io/jq/)
- [nodejs](https://nodejs.org/en)
- [ngrok](https://ngrok.com/)
- various bash / shell stuff...#### Create new DID
Generate a new decentralized identifer and new keys.
```sh
./scripts/generate.sh
```#### Get Current DID
See your current decentralized identifier.
```sh
./scripts/whoami.sh
```#### Sign with Private Key
Sign a file with openssl.
```sh
echo "🌱 Hello world\!" > ./message.txt
./scripts/sign.sh ./message.txt ./message.txt.signature ./private_key.pem
```#### Get Public Key from DID URL
Get your public key, from your did document.
```sh
DID=$(cat ./www/.well-known/did.json | jq -r ".id")
./scripts/dereference.sh $DID#key-0 public_key.pem
```Get a public key, from a DID URL.
```sh
./scripts/dereference.sh did:web:11a6aee842b7.ngrok.app#key-0 public_key.pem
```#### Verify with Public Key
Verify a file signed with openssl.
```sh
./scripts/verify.sh ./message.txt ./message.txt.signature ./public_key.pem
```#### Analyze a DID
Review network details related to your DID.
```sh
DID=$(cat ./www/.well-known/did.json | jq -r ".id")
./scripts/analyze.sh $DID
```