A secure vault program built using Pinocchio , allowing users to deposit and withdraw funds with proper access control using Program Derived Addresses (PDAs).
- Secure Deposits: Users can safely deposit funds into their personal vault
- Controlled Withdrawals: Only the vault owner can withdraw funds
- PDA-based Security: Utilizes Program Derived Addresses for enhanced security
Vault.Demo.mp4
- Rust (latest stable version)
- Cargo (Rust's package manager)
-
Clone the repository:
git clone <repository-url> cd pinocchio_vault
-
Build the program:
cargo build-spf
- Initialize project:
cargo new pinocchio_vault --lib --edition 2021
- Add dependencies:
cargo add pinocchio pinocchio-system
- For deployment artifacts, add to [Cargo.toml]:
[lib] crate-type = ["lib", "cdylib"]