From 8f23e4a05ea64af6414a51a5a92fb2242751f8bf Mon Sep 17 00:00:00 2001 From: Veronica Manuel Date: Wed, 17 May 2023 14:23:25 +0000 Subject: [PATCH] GITBOOK-132: change request with no subject merged in GitBook --- SUMMARY.md | 5 +- how-tos/compute-to-data.md | 59 ------------------- how-tos/compute-to-data/README.md | 20 +++++++ .../make-a-boss-c2d-algorithm.md | 9 +++ .../publish-a-c2d-algorithm-nft.md | 45 ++++++++++++++ .../compute-to-data/publish-a-c2d-data-nft.md | 6 ++ 6 files changed, 84 insertions(+), 60 deletions(-) delete mode 100644 how-tos/compute-to-data.md create mode 100644 how-tos/compute-to-data/README.md create mode 100644 how-tos/compute-to-data/make-a-boss-c2d-algorithm.md create mode 100644 how-tos/compute-to-data/publish-a-c2d-algorithm-nft.md create mode 100644 how-tos/compute-to-data/publish-a-c2d-data-nft.md diff --git a/SUMMARY.md b/SUMMARY.md index b876a498..54b7d454 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -12,7 +12,10 @@ * [📜 How To's](how-tos/README.md) * [Publish an NFT](how-tos/marketplace-publish-data-asset.md) * [Download NFT Assets](how-tos/marketplace-download-data-asset.md) - * [Sell NFT Outputs](how-tos/compute-to-data.md) + * [Sell NFT Outputs](how-tos/compute-to-data/README.md) + * [Make a Boss C2D Algorithm](how-tos/compute-to-data/make-a-boss-c2d-algorithm.md) + * [Publish a C2D Algorithm NFT](how-tos/compute-to-data/publish-a-c2d-algorithm-nft.md) + * [Publish a C2D Data NFT](how-tos/compute-to-data/publish-a-c2d-data-nft.md) * [Host Assets](how-tos/asset-hosting/README.md) * [Arweave](how-tos/asset-hosting/arweave.md) * [AWS](how-tos/asset-hosting/aws.md) diff --git a/how-tos/compute-to-data.md b/how-tos/compute-to-data.md deleted file mode 100644 index c6d41720..00000000 --- a/how-tos/compute-to-data.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -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 - -* Go to [https://market.oceanprotocol.com](https://market.oceanprotocol.com) - -#### 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

- -#### Step 3 - Click the Publish link in the top left corner of the page - -* 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

- -#### Step 6 - Set a price, Fixed or Free, for your algorithm - -* It is recommended that you set a fixed price since the price that you choose for your algorithm will be charged any time that someone selects to run your algorithm on a dataset, including datasets that aren't yours! - -

Set a price for your algorithm

diff --git a/how-tos/compute-to-data/README.md b/how-tos/compute-to-data/README.md new file mode 100644 index 00000000..cdc0116e --- /dev/null +++ b/how-tos/compute-to-data/README.md @@ -0,0 +1,20 @@ +--- +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 **3 main steps** in establishing a compute-to-data flow: [create an algorithm](make-a-boss-c2d-algorithm.md) that's compatible with C2D, [publish your C2D-specific algorithm NFT](publish-a-c2d-algorithm-nft.md), then [publish your data NFT with C2D configurations](publish-a-c2d-data-nft.md) allowing the algorithm to compute on it. That's it! Then you'll be able to sell compute jobs 🤩 + diff --git a/how-tos/compute-to-data/make-a-boss-c2d-algorithm.md b/how-tos/compute-to-data/make-a-boss-c2d-algorithm.md new file mode 100644 index 00000000..99bee6c0 --- /dev/null +++ b/how-tos/compute-to-data/make-a-boss-c2d-algorithm.md @@ -0,0 +1,9 @@ +--- +description: >- + How to construct the beginnings of an awesome algorithm for C2D compute jobs + on datasets +--- + +# Make a Boss C2D Algorithm + +The beginning of any great algorithm for Compute-to-Data first starts by references the dataset file correctly on the Docker container. Here is the code in Javascript and in Python for how to correctly reference the dataset file that's local on the Docker container that you choose. [(If all of this is unintelligible to you, then skim the Sell NFT Outputs page!)](./) diff --git a/how-tos/compute-to-data/publish-a-c2d-algorithm-nft.md b/how-tos/compute-to-data/publish-a-c2d-algorithm-nft.md new file mode 100644 index 00000000..77500d5f --- /dev/null +++ b/how-tos/compute-to-data/publish-a-c2d-algorithm-nft.md @@ -0,0 +1,45 @@ +--- +description: How to publish a C2D algorithm NFT on the Ocean Market +--- + +# Publish a C2D Algorithm NFT + +### Publish Your Algorithm NFT + +#### Step 1 - Navigate to the Ocean Market + +* Go to [https://market.oceanprotocol.com](https://market.oceanprotocol.com) + +#### 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

+ +#### Step 3 - Click the Publish link in the top left corner of the page + +* 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

+ +#### Step 6 - Set a price, Fixed or Free, for your algorithm + +* It is recommended that you set a fixed price since the price that you choose for your algorithm will be charged any time that someone selects to run your algorithm on a dataset, including datasets that aren't yours! + +

Set a price for your C2D algorithm NFT

diff --git a/how-tos/compute-to-data/publish-a-c2d-data-nft.md b/how-tos/compute-to-data/publish-a-c2d-data-nft.md new file mode 100644 index 00000000..cd26b589 --- /dev/null +++ b/how-tos/compute-to-data/publish-a-c2d-data-nft.md @@ -0,0 +1,6 @@ +--- +description: How to publish a data NFT with C2D configurations +--- + +# Publish a C2D Data NFT +