Skip to content

Latest commit

ย 

History

History
110 lines (76 loc) ยท 3.58 KB

File metadata and controls

110 lines (76 loc) ยท 3.58 KB

๐Ÿ”’ 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.