This program demonstrates how to create and then read a compressed account on-chain.
Creates a new compressed account with initial data (owner and message).
Demonstrates reading an existing compressed account on-chain:
- Uses a single validity proof to prove inclusion of the existing account
pub struct DataAccount {
#[hash]
pub owner: Pubkey,
#[hash]
pub message: String,
}# Build the program
cargo build-sbf
# Run tests
cargo test-sbf