- Introduction
- Key Features
- System Architecture
- Blockchain Integrations
- ZK-Compression and Privacy
- Light SDK Integration
- On-Chain Operations
- Advanced NLP and Advertising Algorithms
- Installation
- Usage
- Contributing
- License
solΦ offers a user-friendly advertising tool that turns adverts into a source of income for users. Users earn by watching adverts and using advertising platforms, while advertisers can reach their target audience directly. This creates an ecosystem that delivers value for both parties. At the same time, advertisers can never read users' data. Privacy and profit are ensured by zk-compression.
You can see the biggest disadvantages of traditional advertisement applications or protocols:
solΦ is an private advertising platform where users earn revenue by watching ads, advertisers can reach their target audience directly, and privacy is guaranteed with zk-compression technology:
Feature | Description | Technology Stack |
---|---|---|
Multi-Chain Support | Seamless integration with Solana and future blockchain networks | Solana SDK, Wormhole Protocol |
ZK-Compression | Privacy-preserving data compression | Custom ZK-SNARK implementation |
On-Chain Analytics | Decentralized and transparent ad performance metrics | Light Protocol, Solana Programs |
AI-Powered Matching | Intelligent ad-to-user pairing | gize.tech NLP algorithms (future integration) |
User Rewards | "Blinks" token system for engagement | SPL Token, Solana Token Program |
Cross-Chain Interoperability | Fluid asset and data transfer between supported chains | Wormhole Bridge |
solΦ's architecture is designed for scalability, security, and interoperability:
solΦ leverages Solana's high-throughput, low-latency blockchain for core functionalities:
- Account Management: Utilizes Solana's account model for user wallets and data storage.
- Transaction Processing: Employs Solana's parallel transaction processing for real-time ad interactions.
- Token Operations: Implements SPL Token standard for "Blinks" reward distribution.
Light Protocol enhances solΦ's privacy and scalability features:
- ZK-Compressed State: Utilizes Light's merkle tree structure for efficient state management.
- Privacy-Preserving Transactions: Implements Light's zero-knowledge proofs for confidential ad interactions.
- Scalable Analytics: Leverages Light's compression techniques for on-chain analytics storage.
In our SolΦ project, we have integrated Light SDK and ZK-compression technologies offered by Light Protocol to form the core of our advertising platform. In particular, in line with our goal of protecting privacy while tracking user behaviour and ad interactions, we store user profiles and ad data in a compressed and encrypted format using Light SDK's CompressedAccount structure. This approach both secures data privacy and significantly reduces our storage costs on the Solana blockchain. We apply the ZK-compression algorithm when analysing user behavioural data, thus protecting the privacy of individual user information while providing valuable insights to advertisers. Using the Light SDK's MerkleContext and CompressedProof constructs, we prove the accuracy of ad impressions and interactions with zero-knowledge proofs, which increases the reliability of our platform. Furthermore, using the create_invoke_instruction function provided by the Light Protocol, we create custom Solana programs that process the compressed data. These programs perform critical functions such as ad targeting, reward distribution and analytical calculations. To increase the scalability of our project, we take advantage of the Light SDK's batched update feature to perform multi-user transactions in a single compressed transaction. All these technical implementations enable SolΦ to stand out as a high-performance and privacy-focused advertising platform with a unique position in the Solana ecosystem.
solΦ's ZK-compression algorithm is at the heart of our privacy-preserving technology:
- Data Minimization: Reduces the amount of data stored on-chain without losing essential information.
- Zero-Knowledge Proofs: Allows verification of ad interactions without revealing user-specific data.
- Homomorphic Encryption: Enables computations on encrypted data for secure analytics.
use light_sdk::compressed_account::{CompressedAccount, CompressedAccountData};
fn zk_compress(data: &str) -> Result<CompressedAccount, Error> {
// ZK-compression implementation
// ...
}
solΦ extensively utilizes the Light SDK for on-chain operations:
use light_sdk::{
compressed_account::{CompressedAccount, CompressedAccountData},
merkle_context::MerkleContext,
proof::CompressedProof,
constants::PROGRAM_ID_LIGHT_TOKEN,
};
// Example of creating a compressed account
let compressed_account = CompressedAccount {
owner: program_id,
lamports: 0,
address: None,
data: Some(CompressedAccountData {
discriminator: [0; 8],
data: zk_compressed_data,
data_hash: hash_data(&zk_compressed_data),
}),
};
solΦ's on-chain components are designed for efficiency and privacy:
- Ad Serving: On-chain programs match compressed user profiles with ad inventory.
- Analytics Storage: Aggregated campaign performance data is stored in compressed format.
- Reward Distribution: Automated "Blinks" token transfers based on user engagement.
Example of an on-chain instruction:
#[derive(Accounts)]
pub struct ServeAd<'info> {
#[account(mut)]
pub user: Signer<'info>,
#[account(mut)]
pub ad_account: Account<'info, CompressedAdAccount>,
pub system_program: Program<'info, System>,
}
pub fn serve_ad(ctx: Context<ServeAd>, user_profile: Vec<u8>) -> Result<()> {
// Ad serving logic using ZK-compressed user profile
// ...
}
In future iterations, solΦ will incorporate cutting-edge NLP technologies in collaboration with gize.tech:
- Privacy-Preserving NLP: Utilizing zero-knowledge proofs for language processing without exposing raw text data.
- Federated Learning: Implementing decentralized machine learning models for improved ad targeting.
- Semantic Analysis: Employing advanced NLP techniques for nuanced understanding of user interests and ad content.
These advancements will be implemented with a continued focus on user privacy and data minimization.
At solΦ, we prioritize the integrity of our platform and the fairness of our reward system. To ensure a secure and equitable environment for all users, we've implemented robust measures against potential exploitation and undergone rigorous third-party audits. Ironnode Securtiy
To combat the risk of automated systems unfairly accumulating "Blinks" tokens, we've integrated advanced bot detection mechanisms leveraging the Twitter API:
-
User Verification:
- New users are required to link a valid Twitter account.
- We analyze account age, follower count, and posting patterns to establish authenticity.
-
Activity Correlation:
- We compare ad interaction patterns with Twitter activity timelines.
- Suspicious discrepancies trigger additional verification steps.
-
Natural Language Processing (NLP):
- We employ sophisticated NLP algorithms to analyze Twitter content.
- This helps distinguish between human-generated and bot-generated text.
-
Rate Limiting:
- We implement dynamic rate limiting based on account characteristics.
- This prevents rapid-fire ad interactions typical of bot behavior.
-
Behavioral Analysis:
- Our system monitors and learns from user behavior over time.
- Unusual patterns or sudden changes in behavior are flagged for review.
Twitter API Integration:
- Account Verification: True
- Activity Correlation: Enabled
- NLP Analysis: Advanced
- Rate Limiting: Dynamic
- Behavioral Monitoring: Continuous
Detailed installation instructions...
Step-by-step guide on how to use solΦ...
We welcome contributions! Please see our Contributing Guidelines for more details.
solΦ is released under the MIT License. See the LICENSE file for more details.