Partial exchange of NFT via NFT interaction
An example operation may include one or more of generating a unique image comprising a plurality of image segments via an image generating model and displaying the unique image via a user interface of a software application, installing a smart contract associated with the unique image on a blockchain ledger, detecting a command to move an image segment from among the plurality of image segments based on user inputs via the user interface of the software application, removing the image segment from the unique image and adding the image segment to a different image based on the detected command, and transmitting the different image to a user account of the software application.
1 . An apparatus comprising:
a memory;
and
a processor coupled to the memory, the processor configured to:
generate a custom image comprising a plurality of image segments via an image generating model and display custom image via a user interface of a digital wallet on a source device,
install a smart contract associated on a blockchain ledger,
detect a command to move an image segment from the custom image based on inputs to the user interface,
detect an additional command on the user interface and display a menu,
select a contact of the source device based on an input to the menu,
detach the image segment from the custom image based on the detected command matching instructions stored within the smart contract, and
transfer the image segment from a blockchain address of the digital wallet to a different blockchain address of a respective digital wallet of the selected contact by executing a blockchain request among a plurality of blockchain peers which causes an identifier of the image segment and an identifier of the selected contact to be stored on the blockchain ledger.
2 . The apparatus of claim 1 , wherein the image generating model comprises a generative adversarial network (GAN), and the processor is configured to generate a non-fungible token (NFT) that includes the custom image based on execution of the GAN on a corpus of images.
3 . The apparatus of claim 2 , wherein the processor is configured to write an identifier of the NFT and an identifier of a condition for the image segment is to be moved into the smart contract.
4 . The apparatus of claim 1 , wherein the processor is configured to detect a selection of the image segment based a touch input on the image segment within the user interface, and add the image segment to a different image based on a second touch input associated with the different image.
5 . The apparatus of claim 1 , wherein the processor is further configured to determine that commands entered via the user interface match corresponding user interface commands to detach the image segment which are stored within the smart contract.
6 . The apparatus of claim 1 , wherein the processor is configured to detect a movement of a different portion of the custom image based on inputs via the user interface, and detach the image segment from the custom image in response to the detected movement of the different portion of the custom image.
7 . The apparatus of claim 1 , wherein the processor is further configured to write an identifier of the image segment within the smart contract based on the detected command.
8 . The apparatus of claim 1 , wherein the custom image comprises an image of a tree, and the processor is configured to remove at least one of a branch and a leaf within the image of the tree.
9 . A method comprising:
generating a custom image comprising a plurality of image segments via an image generating model and displaying the custom image via a user interface of a digital wallet on a source device;
installing a smart contract on a blockchain ledger;
detecting a command to move an image segment from the custom image based on inputs to the user interface;
detecting an additional command on the user interface and display a menu;
selecting a contact of the source device based on an input to the menu;
detaching the image segment from the custom image based on the detected command matching instructions stored within the smart contract; and
transferring the image segment from a blockchain address of the digital wallet to a different blockchain address of a respective digital wallet of the selected contact by executing a blockchain request among a plurality of blockchain peers which causes an identifier of the image segment and an identifier of the selected contact to be stored on the blockchain ledger.
10 . The method of claim 9 , wherein the image generating model comprises a generative adversarial network (GAN), and the generating the custom image comprises generating a non-fungible token (NFT) that includes the custom image based on execution of the GAN on a corpus of images.
11 . The method of claim 10 , wherein the installing the smart contract comprises writing an identifier of the NFT and an identifier of a condition for the image segment to be moved into the smart contract.
12 . The method of claim 9 , wherein the detecting comprises detecting a selection of the image segment based a touch input on the image segment within the user interface, and adding the image segment to a different image based on a second touch input associated with the different image.
13 . The method of claim 9 , wherein the method further comprises determining that commands entered via the user interface match corresponding user interface commands to detach the image segment which are stored within the smart contract.
14 . The method of claim 9 , wherein the detecting the command comprises detecting a movement of a different portion of the custom image based on inputs via the user interface, and the detaching comprises detaching the image segment from the custom image in response to the detected movement of the different portion of the custom image.
15 . The method of claim 9 , wherein the method further comprises writing an identifier of the image segment within the smart contract based on the detected command.
16 . The method of claim 9 , wherein the custom image comprises an image of a tree, and the removing the image segment comprises removing at least one of a branch and a leaf within the image of the tree.
17 . A computer-readable medium comprising instructions stored therein which when executed by a processor cause a computer to perform:
generating a custom image comprising a plurality of image segments via an image generating model and displaying the custom image via a user interface of a digital wallet on a source device;
installing a smart contract on a blockchain ledger;
detecting a command to move an image segment from the custom image based on inputs to the user interface;
detecting an additional command on the user interface and display a menu;
selecting a contact of the source device based on an input to the menu;
detaching the image segment from the custom image based on the detected command matching instructions stored within the smart contract; and
transferring the image segment from a blockchain address of the digital wallet to a different blockchain address of a respective digital wallet of the selected contact by executing a blockchain request among a plurality of blockchain peers which causes an identifier of the image segment and an identifier of the selected contact to be stored on the blockchain ledger.
18 . The computer-readable medium of claim 17 , wherein the image generating model comprises a generative adversarial network (GAN), and the generating the custom image comprises generating a non-fungible token (NFT) that includes the custom image based on execution of the GAN on a corpus of images.
19 . The computer-readable medium of claim 18 , wherein the installing the smart contract comprises writing an identifier of the NFT and an identifier of a condition for the image segment to be moved into the smart contract.
20 . The computer-readable medium of claim 17 , wherein the detecting comprises detecting a selection of the image segment based a touch input on the image segment within the user interface, and adding the image segment to a different image based on a second touch input associated with the different image.