Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Integration-for-verifiers (Billions Wallet)/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Server Configuration
PORT=8080
HOST_URL=https://your-domain.com # Your production domain or ngrok URL for development

# Verifier Configuration
#⚠️ CRITICAL: IMMUTABLE VALUES - DO NOT CHANGE AFTER FIRST USE (NULLIFIER_ID & VERIFIER_DID)
# These values CANNOT be changed once users start verifying, as changing them
# will result in different nullifier IDs and DIDs for the same users.
VERIFIER_DID=your_verifier_did_here # Download the Billions app and Login into it.Copy the DID created for your account to use as the Verifier. You can find that in settings.
USE_CASE=POU # Options: POH, POU, POVH
NULLIFIER_SESSION_ID=your_nullifier_session_id # Must be a positive BigInt for the proof request.

#Use case selection
# POH (Proof of Humanity): Verify that the user is a real human via `Human` Credential
# POU (Proof of Uniqueness): Verify that the user is unique (anti-Sybil) via `Verified Human` credential
# POVH (Proof of Verified Humanity): Verify that the user is a real verified human via `Verified Human` Credential

USE_CASE=POVH #Options: 'POH', 'POU'

# Security Configuration (Production)
ALLOWED_ORIGINS=https://your-frontend-domain.com,https://your-mobile-app-domain.com # Comma-separated list
NODE_ENV=production # Set to 'production' for strict CORS
LOG_LEVEL=info # Options: error, warn, info, debug
3 changes: 3 additions & 0 deletions Integration-for-verifiers (Billions Wallet)/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
node_modules/
logs/
60 changes: 0 additions & 60 deletions Integration-for-verifiers (Billions Wallet)/README.md

This file was deleted.

55 changes: 55 additions & 0 deletions Integration-for-verifiers (Billions Wallet)/ecosystem.config.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete it

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = {
apps: [{
name: 'billions-verifier',
script: 'src/index.js',
instances: 1,
exec_mode: 'fork',

// Environment configuration
env: {
NODE_ENV: 'development',
PORT: 8080
},
env_production: {
NODE_ENV: 'production',
PORT: 8080
},

// Process management
max_memory_restart: '1G',
min_uptime: '10s',
max_restarts: 10,
restart_delay: 4000,

// Logging
log_file: 'logs/pm2-combined.log',
out_file: 'logs/pm2-out.log',
error_file: 'logs/pm2-error.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,

// Monitoring
source_map_support: true,
instance_var: 'INSTANCE_ID',

// Health monitoring
watch: false, // Set to true for development auto-restart
ignore_watch: ['node_modules', 'logs', '.git'],

// Production optimizations
node_args: '--max-old-space-size=1024'
}],

// Deployment configuration
deploy: {
production: {
user: 'deploy',
host: ['your-server.com'],
ref: 'origin/main',
repo: 'git@github.com:your-username/billions-verifier.git',
path: '/var/www/billions-verifier',
'post-deploy': 'npm install && pm2 reload ecosystem.config.js --env production',
'pre-setup': 'apt-get install git -y'
}
}
};
19 changes: 0 additions & 19 deletions Integration-for-verifiers (Billions Wallet)/js/.env.example

This file was deleted.

Loading