Sol.College

Structure lesson (licence does not allow quoting code)

CipherVault

Multi-signature on-chain vault built with Anchor, PDAs, and CPI for SOL & SPL token management.

Original
yashwankhade5/CipherVault
SuperStack fork
Blockchains/CipherVault @ ee28e17
Stars
0
Last push (original)
2025-11-02
Languages
TypeScript, CSS, Rust, JavaScript, HTML
Detected stack
Anchorweb3.js
Categories
DeFiGovernance & DAOs
Licence
none detected: code not quoted on Sol.College
Homepage
https://ciphervault-frontend.vercel.app/

Architecture

80 source files. By extension: .tsx ×59, .ts ×10, .rs ×10, .js ×1.

Top-level directorySource files
app68
programs10
migrations1
tests1

On-chain programs: programs/cipher-valut

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
approvalApprovalContextprograms/cipher-valut/src/lib.rs:33
fn_executeTransactionExecuteContextprograms/cipher-valut/src/lib.rs:37
transaction_executeTransactionExecuteContextprograms/cipher-valut/src/instruction_handler/fn_execute.rs:5
approval_handlerApprovalContextprograms/cipher-valut/src/instruction_handler/approval_instruction.rs:5

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
app/src/App.tsxPublicKey, Transaction, useWallet, useConnection, getAccountInfo
tests/cipher-valut.tsKeypair, PublicKey, getAccountInfo, requestAirdrop, findProgramAddressSync, Program
app/src/utilis/dataParser.tsPublicKey, Transaction
programs/cipher-valut/src/state/transaction.rsPubkey, AccountInfo, Program, seeds, transfer
app/src/components/WalletConnectPage.tsxWalletMultiButton, useWallet, PublicKey, Transaction
app/src/components/tabs/MultisigsTab.tsxTransaction, PublicKey, findProgramAddressSync
app/src/anchor/setup.tsAnchorProvider, Program, useConnection
programs/cipher-valut/src/state/multisig.rsPubkey, seeds, AccountInfo, Program
app/src/components/tabs/SettingsTab.tsxuseConnection, useWallet, Connection, Transaction, Program
app/src/components/TransactionTable.tsxTransaction
app/src/utilis/pdaUtils.tsPublicKey, seeds, findProgramAddressSync
app/src/utilis/vault-types.tsPublicKey, Transaction

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/ciphervault/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run lint
appnpm run dev
appnpm run build
appnpm run lint
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it