8000 GitHub - 2-5-Foundation/vane_web3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

2-5-Foundation/vane_web3

Repository files navigation

Vane Logo

vane_web3

A full sovereign custodian implementation of risk-free transaction sending for web3 users.

What are we solving?

  • Losing funds due to wrong address input ( a huge pain currently in web3 as the action is irreversible after sending the transaction ).

  • Losings funds due to wrong network selection while sending the transaction.

At some point the address can be correct but the choice of the network can result to loss of funds.

Our Solution

Vane acts as a safety net for web3 users.

Key Features

Transaction Safety Layer

  • Provides a safety net for Web3 transactions
  • Verifies receiver addresses before transactions
  • Supports multiple chains (BNB, Ethereum, Solana)

P2P Networking

  • Uses libp2p for peer-to-peer communication
  • Handles peer discovery and connection management
  • Manages swarm events and message routing

RPC Server

  • Provides JSON-RPC interface for transaction operations
  • Handles transaction state updates
  • Manages user interactions

Transaction Flow

  1. Genesis state: Initial transaction creation
  2. Receiver address confirmation
  3. Network confirmation
  4. Sender confirmation
  5. Transaction submission to blockchain

DEMO POST

https://x.com/MrishoLukamba/status/1866162459800707165


Technical design

Special Features

  • e2e feature for end-to-end testing
  • Support for both WASM and native environments
  • Redis integration for distributed state management
  • Local database for peer information caching

It in itself is not a wallet, but can work with any type of wallet as it acts as an extension safety layer for web3.

Error Handling

  • Comprehensive error handling using anyhow
  • Transaction state machine for tracking transaction status
  • Graceful error recovery and logging

Architecture Benefits

The code is designed to provide a secure layer for Web3 transactions by:

  • Verifying receiver addresses
  • Confirming transaction details with both parties
  • Providing a safety net against wrong addresses or networks
  • Supporting multiple blockchain networks
  • Using P2P networking for secure communication

This architecture ensures that transactions are verified and confirmed by both parties before being submitted to the blockchain, removing the risk of sending funds to wrong addresses or networks.

Features

  1. Vane provides a comprehensive safety net for Web3 users by ensuring receiver address confirmation, transaction execution simulation, and ownership verification of the receiver's account, thereby preventing losses from incorrect addresses and network selections before routing transactions to the intended destination.

  2. Batching transactions, reducing fees drastically.

  3. Turn any wallet into a smart account abstraction wallet


SCR-20241217-pikb

HOW TO RUN & TEST

  1. Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Generate prisma code
./scripts/db_tests.sh
  1. Compile & Run
cargo build --release
./target/release -p app
or 
./target/release -p app --db-url "url"
  1. Test
cargo test --package integration-test --lib e2e_tests::transaction_processing_test -- --exact

Using Docker

  1. Build the image
    docker build -t vane_web3_app .
    
  2. Run
    docker run vane_web3_app
    

CONTRIBUTE & GET PAID

  1. tip issue - 15 - 20 usd
  2. medium issue - 30 - 60 usd
  3. hard issue - 70 - 150 usd

🛣️ Roadmap Our development roadmap for the vane_web3 project:

  1. Build vane_web3 core features and node ✅

    • Completed the initial implementation of the core transaction processing, peer-to-peer communication, and database management features.
  2. Build for WASM target 🚧

    • Currently in progress, focusing on making the codebase compatible with WebAssembly for browser and WASI environments.
  3. Web application 🚧

    • Developing the web-based user interface and integration with the WASM-compiled core library.
  4. Mobile client ⏱️

    • Planned for the next phase, to provide a native mobile experience for users.
  5. Docker container MVP setup ✅

    • Spawn new docker containers for each registered user, this enables easy setup and better UX.
Screenshot 2025-01-11 at 02 18 55

The team is actively working on the browser client and mobile PWA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0