Overview

This document outlines the process for generating and storing AI-generated images for a long-form generative AI NFT project. The project will use a centralized server for image generation, while leveraging decentralized storage using IPFS and IPNS.

Components

  1. Generative NFT Contract
  2. One IPFS-hosted image files for each NFT
  3. Single IPFS-hosted manifest file containing URIs for all images
  4. IPNS Name that points to the manifest file
  5. Service that coordinates all post-mint actions

Steps

1. Service Watches for NFT Events

The Service continuously monitors the NFT contract for minting events. This can be achieved using event listeners or webhooks, depending on the blockchain platform in use.

2. User Mints Generative NFT

When a user mints an NFT:

3. Service Triggers Image Generation

Once the Service detects a minting event: