1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/how-tos/compute-to-data.md

2.7 KiB

description
How to sell compute jobs on your datasets while keeping your data and algorithms private

Sell NFT Outputs

Introducing, The Problem

{% embed url="https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExNjNmMTc3MjFjNTg2MjQwZTQyY2VkNzFiNjk1YzM5ZmJkM2NjMzA4ZiZlcD12MV9pbnRlcm5hbF9naWZzX2dpZklkJmN0PWc/17FxSFyYNOgThnonDK/giphy.gif" %}

Anyone could buy your NFT assets and then publicly share them all over the internet. Pretty scary, right? But what if there was a way that buyers could access valuable insights from your data and algorithms without actually *seeing* the data or algorithms themselves? We have a solution for that!

Enter, Compute-to-Data (also lovingly called C2D). Ocean Protocol's C2D feature enables you to monetize the OUTPUT of compute jobs on your datasets without revealing the contents of the data/algorithms themselves. Let's dive in how!

How to Compute-to-Data 💃

You will need to accomplish 2 main steps in establishing a compute-to-data flow: publish your algorithm NFT, then publish your data NFT with configurations allowing the algorithm to compute on it. That's it! Then you'll be able to sell compute jobs 🤩

First, Publish Your Algorithm NFT

Step 1 - Navigate to the Ocean Market

Step 2 - Connect your wallet

  • Click the top right Connect Wallet button to connect your self-custody wallet to the Ocean Market

Connect your self-custody wallet

  • Click the Publish link

Navigate to the Publish page

Step 4 - Enter the metadata

  • Enter the metadata for your algorithm NFT paying special attention to select the Algorithm asset type button:

Be sure to select the Algorithm asset type

  • Select the appropriate Docker image to run your code - most algorithms are written in Javascript or Python, so you can use either of these Docker images or your own custom image!

Select the appropriate Docker image for your algorithm type

Step 5 - Enter the Access information

  • Make sure to keep this option checked!

Keep this option checked for Compute-to-Data