An open API service indexing awesome lists of open source software.

https://github.com/iotexproject/ioid-register-flow-demo


https://github.com/iotexproject/ioid-register-flow-demo

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# ioid-register-demo

## file structure
```
📦with-contract-flow(Code with the full contract example)
┣ 📂abi
┃ ┗ 📜index.ts (abi for storing contracts)
┣ 📜device.ts (Analulated devices, can be software or hardware)
┣ 📜index.ts
┣ 📜service.ts (Services used for verify signatures)
┗ 📜verifyProxy.ts (Calls the verifyProxy registration method)
```

To install dependencies:
```bash
bun install
pnpm add @spruceid/didkit (run postinstall. bun has the compatibility issues)
```

To run:

```bash
bun run examples/base-flow/index.ts
bun run examples/with-contract-flow/index.ts
bun run scripts/set-nft-weight.ts
```

This project was created using `bun init` in bun v1.0.6. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.