⚠️ PROOF OF CONCEPT
This is a proof of concept implementation for demonstration purposes only. Not intended for production use.
This demo NestJS server integrates three core services:
- Chopsticks - A blockchain testing and development environment
- Passkeys Bot - A service for signing and transferring memberships
- VOS Mock - A service for authentication and registration with passkeys
virto-demo/
├── src/
│ ├── modules/
│ │ ├── chopsticks/ # Chopsticks integration
│ │ ├── passkeys-bot/ # Passkeys Bot integration
│ │ └── vos-mock/ # VOS Mock integration
│ ├── app.module.ts # Main application module
│ └── main.ts # Application entry point
├── .env # Environment variables
├── package.json # Dependencies
└── tsconfig.json # TypeScript configuration
- Node.js (latest LTS version recommended)
- npm or yarn
make init # init submodule
# Install dependencies
npm installCreate a .env file in the root directory with the following variables:
# Server configuration
PORT=3000
NODE_ENV=development
# Blockchain provider URL
KREIVO_PROVIDER=wss://kreivo.kippu.rocks
WS_PROVIDER_URL=ws://127.0.0.1:12281
# Bot configuration for signing
SEED=//Alice
# Chopsticks configuration
PUBLIC_IP=0.0.0.0
# VOS Mock configuration
RP_NAME=Virto Passkeys
SIGNING_SERVICE_URL=http://localhost:3000/passkeys/sign
# Development mode
npm run start:dev
# Debug mode
npm run start:debug
# Production mode
npm run build
npm run start:prod# Run tests
npm test
# Run tests with watch mode
npm run test:watch
# Run tests with coverage
npm run test:covPOST /chopsticks/start- Start a Chopsticks instanceGET /chopsticks/session/:sessionId- Get session informationPOST /chopsticks/stop- Stop a Chopsticks instance
POST /passkeys/sign- Sign a transaction and transfer membership
POST /vos-mock/pre-register- Prepare for passkey registrationPOST /vos-mock/post-register- Complete passkey registrationPOST /vos-mock/pre-connect- Prepare for passkey authentication
# Format code
npm run format[License information]
[Contact information]