https://github.com/iotexproject/ioid-register-flow-demo
https://github.com/iotexproject/ioid-register-flow-demo
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iotexproject/ioid-register-flow-demo
- Owner: iotexproject
- Created: 2024-07-24T05:08:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T05:27:27.000Z (over 1 year ago)
- Last Synced: 2025-03-04T06:25:17.880Z (over 1 year ago)
- Language: TypeScript
- Size: 70.3 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.