8000 GitHub - caguevara11/SolCred: A decentralized professional credential platform on Solana where users can create an on-chain profile and attach verifiable career credentials. · GitHub
[go: up one dir, main page]

Skip to content
caguevara11Public

About

A decentralized professional credential platform on Solana where users can create an on-chain profile and attach verifiable career credentials.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SolCred

A Solana platform for owning, sharing, and verifying professional credentials on-chain.

SolCred is a decentralized professional credential platform built on Solana. It lets users create a wallet-based professional profile, attach verifiable credentials, and share a public profile that anyone can inspect without connecting a wallet.

Why SolCred

Professional reputation is still fragmented across resumes, screenshots, PDFs, private databases, and centralized platforms. That makes credentials hard to verify, easy to misrepresent, and difficult for users to truly own.

SolCred gives professionals a portable identity layer for their career achievements. A user connects a Solana wallet, creates an on-chain profile, and adds credentials such as certifications, courses, achievements, or professional milestones. Each credential is stored as a Solana account linked to the user's profile, making the data transparent, tamper-resistant, and publicly verifiable.

The result is a lightweight credential graph that can be shared with recruiters, employers, communities, and collaborators without requiring them to sign in or connect a wallet.

Core Features

  • Wallet-based identity: users connect Phantom and use their Solana wallet as their professional identity.
  • On-chain profiles: each user can create one professional profile account on Solana.
  • Verifiable credentials: credentials are created as on-chain accounts linked to the profile owner.
  • Public profile pages: anyone can view a user's profile and credentials from a wallet address.
  • Credential verification: credentials can be checked through a public verification route.
  • Read-only access: public profile and verification pages do not require a connected wallet.
  • Local cache fallback: successful writes are cached locally so the UI remains responsive if Devnet reads are temporarily unavailable.

Demo Flow

  1. Open the app and connect Phantom.
  2. Switch Phantom to Solana Devnet.
  3. Fund the wallet with Devnet SOL from a faucet.
  4. Create a professional profile.
  5. Add a credential to the profile.
  6. Open the public profile page.
  7. Share or verify credentials without requiring another user to connect a wallet.

Solana Program

SolCred currently targets Solana Devnet.

Program ID: DP365oxexMrcLrGY3srK3NU33dZDLSBH2L7q126q1xWs
Network: Devnet

The Anchor program includes three main instructions:

  • initialize_config: one-time admin setup.
  • create_profile: creates one profile PDA per wallet.
  • create_credential: creates a credential PDA linked to an existing profile.

Tech Stack

  • Rust
  • Anchor
  • Solana Devnet
  • Solana web3.js
  • Solana Wallet Adapter
  • Phantom Wallet
  • TypeScript
  • React
  • Vite
  • Tailwind CSS
  • shadcn/ui

Architecture

This repository is a monorepo with two independent parts:

Area Description
Root app React + TypeScript + Vite frontend
contracts/ Anchor Solana program written in Rust

The frontend uses an SDK layer to wrap Anchor program calls. Wallet-connected pages use the connected provider for writes and reads, while public pages use read-only access so profiles and credentials can be viewed without a wallet.

On-chain writes are attempted first. After successful profile or credential creation, data is cached locally as a UX fallback for faster loading and resilience during Devnet instability.

Main Routes

Path Purpose
/ Landing page
/create-profile Create an on-chain professional profile
/dashboard Manage the connected wallet's profile and credentials
/add-credential Add a credential to the connected wallet's profile
/profile/:walletAddress Public profile view
/verify/:credentialId Public credential verification

Local Development

Install frontend dependencies:

npm install

Start the frontend dev server:

npm run dev

Build the frontend:

npm run build

Run lint checks:

npm run lint

Smart Contract Development

From the contracts/ directory:

cd contracts
anchor build

Run the Anchor test suite:

anchor test

The Anchor configuration uses a local validator for tests and expects a Solana wallet at:

~/.config/solana/id.json

Devnet Wallet Notes

The app sends real Solana Devnet transactions. Devnet SOL is free test SOL, but it is still required to pay transaction fees and rent for newly created accounts.

If a transaction fails with a message like Attempt to debit an account but found no record of a prior credit, the connected Devnet wallet likely has no Devnet SOL. Fund it using a Solana Devnet faucet, then retry the transaction.

If a transaction fails with Blockhash not found, refresh the page, reconnect Phantom, confirm Phantom is on Solana Devnet, and approve the transaction promptly. Devnet RPC nodes can occasionally be slow or temporarily out of sync.

Hackathon Summary

SolCred turns professional credentials into portable, wallet-owned reputation. Instead of relying on centralized platforms or unverifiable resume claims, users can publish their career identity on Solana and share credentials that are open, inspectable, and tied to their wallet.

For judges, the key idea is simple: professional trust should be user-owned, publicly verifiable, and portable across communities, employers, and platforms.

About

A decentralized professional credential platform on Solana where users can create an on-chain profile and attach verifiable career credentials.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages

0