Skip to content

Amit5601/encrypted-solana-dashboard

Repository files navigation

🔒 Encrypted Solana Dashboard

A privacy-preserving Solana analytics dApp built with Arcium-style encrypted compute.


🧠 Introduction

Encrypted Solana Dashboard demonstrates how on-chain wallet analytics can be computed without ever revealing sensitive data.
It uses client-side encryption and a simulated Arcium MXE (Multiparty Computation Execution Environment) to perform private computations on encrypted wallet data.

This project was built for the Arcium Encrypted Side Track Hackathon under the Colosseum Cypherpunk Hackathon by Amit Singhmar.


📖 Table of Contents


🔒 Overview

Blockchains like Solana are fully transparent — anyone can see wallet balances and transactions.
Arcium introduces an encrypted supercomputer that lets computations run on hidden data.

This project recreates that concept at a prototype level, showing how privacy and performance can co-exist.

Arcium Concept How It’s Simulated Here
Encrypted Compute Layer (MXE) /api/private-analyze/route.js runs encrypted computations
Client-side Encryption src/utils/encryption.js encrypts wallet data before sending
Data Privacy The backend never sees plaintext wallet info
Encrypted Output Results are re-encrypted and returned to client for decryption
Solana Integration Real wallet balances and transactions fetched via @solana/web3.js

✨ Features

🔗 Connect any Solana wallet
🪙 Fetch live balances & recent transactions (Mainnet / Devnet)
🔐 Encrypt wallet data in the browser
🧮 Run secure analysis inside a mock MXE backend
🧾 Receive & decrypt private results client-side
🌐 Deployed on Vercel for instant demo


⚙️ How It Works

  1. Wallet Connect: User connects wallet or enters a public address.
  2. Data Fetch: The dApp retrieves balances and recent transactions using Solana RPC.
  3. Client Encryption: Data is AES-encrypted using a key derived from the wallet + nonce.
  4. Encrypted Compute: The backend route decrypts, computes analytics, and re-encrypts the result — simulating an Arcium MXE node.
  5. Decryption & Display: The frontend decrypts the output and displays the result privately.

🧰 Tech Stack

Layer Technology
Framework Next.js 15 (App Router)
Blockchain Solana (@solana/web3.js, @solana/wallet-adapter)
Encryption AES via crypto-js
Styling Tailwind CSS
Deployment Vercel

🧑‍💻 Local Setup

# 1. Clone the repository
git clone https://github.com/Amit5601/encrypted-solana-dashboard.git
cd encrypted-solana-dashboard

# 2. Install dependencies
npm install

# 3. Run locally
npm run dev

🔬 Demo

🔗 Live Demo: https://encrypted-solana-dashboard.vercel.app

🪄 How to Use:

Connect wallet or paste a public Solana address.

Click Fetch Transactions to view on-chain activity.

Click Run Encrypted Analysis 🔒 to simulate encrypted compute.

Example Output:

Encrypted Analysis Result: Total: 400 Tokens: 2

This output demonstrates that private analytics can be computed on encrypted Solana data — without ever exposing wallet contents.

Releases

No releases published

Packages

 
 
 

Contributors