The Vector Vault
The Vector Vault is the off-chain component of the protocol. Since vector embeddings for large datasets can be gigabytes in size, storing them directly on a high-speed blockchain like Solana or Base is impractical.
Hybrid Storage Model
ditex402 employs a hybrid model:
On-Chain Registry: Only the metadata is stored on the blockchain. This includes the Content ID (CID), the vector dimension, the embedding model used (e.g.,
text-embedding-3-large), and the price.Off-Chain Body: The actual vector array (
[0.023, -0.15, ...]) is encrypted using the publisher's private key and stored on IPFS.
Access Control
The data on IPFS is publicly accessible but cryptographically unreadable. The "product" being sold by the publisher is not the file itself, but the Decryption Key. This key is released solely via the X402 Payment Gateway upon successful transaction confirmation.
Last updated
