Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About: NFTv2 attachments, how/when can we store some data? #58

Open
vipertechofficial opened this issue Jun 21, 2022 · 4 comments
Open

Comments

@vipertechofficial
Copy link

Description

Hello,

I am founder of https://pixa.pics/ a FOSS based on web technologies which converts pictures into art, pixel art that scales up awesome for personal experience-based NFTs that respect privacy!

Most artwork are between 10 to 100Kb in average, Sunny told myself some time ago, we can already store some data into VSYS DB systems, is that alright if we work in the way to store some data into NFT contract? I saw the wallet supports it, but are NFTs stored 1:1 into it?

@josephzxy
Copy link
Collaborator

josephzxy commented Jul 8, 2022

Hi @vipertechofficial,

Thanks for the question.

Data for an NFT of VSYS's NFT contract can be stored as the token description (see the code).

The token description accepts any string. So, to store a picture, we have the following options:

  • Store the base58-encoding string of the picture binary data into the NFT token description.
  • Store the picture to an IPFS service provider and store the IPFS link into the NFT token description.

It is recommended to store data in a structured fashion(e.g. as a JSON string) in the NFT token description for easier parsing on clientside.

cc @ncying

@vipertechofficial
Copy link
Author

@josephzxy

Thanks a lot I will give myself some time to make some tests!

@vipertechofficial
Copy link
Author

@josephzxy

me_boat_1x
me_boat_6x

The previous images can both be stored within less than 16Kb, the smaller weights only 12Kb leaving us place to other metadata such as tags as you suggested, it is quite good, while the seconde images generates within ms in scaled bigger google vision api can label it efficiently and other AI services might too, thus we can store HD images within the DB of vsystems or in token description while out of a few request label them before put them into the token, everything 1:1 is possible stored awesome!

Another question arise, aside we can develop a private search engine while syncing the blokchain and an API like elastic search, does it is possible to search by parameters of parsed JSON metadata directly from the API soon? I suppose it is not, but it is okay I think, no problem but I've heard of namespacing features within database API, what exactly is that?

Screenshot from 2022-07-15 21-20-48

Cheers,
Anyway soon awesome NFTs from ordinary people for life and friends of all that lives!

@josephzxy
Copy link
Collaborator

Another question arise, aside we can develop a private search engine while syncing the blokchain and an API like elastic search, does it is possible to search by parameters of parsed JSON metadata directly from the API soon? I suppose it is not, but it is okay I think, no problem but I've heard of namespacing features within database API, what exactly is that?

@ncying

@virtualeconomy virtualeconomy deleted a comment from UnionX21 Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants