Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Provenance Hash Questions #63

Closed
spike-hue opened this issue Feb 24, 2022 · 1 comment
Closed

Provenance Hash Questions #63

spike-hue opened this issue Feb 24, 2022 · 1 comment

Comments

@spike-hue
Copy link

spike-hue commented Feb 24, 2022

I have a questions about provenance hash.

Projects such as Bored Ape Yacht Club have a webpage like this. Picture:
154821685-f279004f-7715-493f-8962-c54fffecd05e-1
Screen Shot 2022-02-23 at 10 58 01 PM

I'm not sure how one would recreate this Bored Ape Yacht Club webpage when using this library. Some questions I have are:

  1. How does one choose a starting index? Is this randomly chosen by us and set here in library as shown here with const startIndex = 0;? Some projects like Invisible Friends seem to do complicated things to get a starting index as shown in link.
  2. Is this formula (tokenId + startingIndex) % 10000 → Initial Sequence Index used at all in this library? Not sure if this is something done somewhere else.
  3. I generated the provenance hash with node utils/provenance.js using sample artwork. However, I don't see the hashes of individual images. Are these provided?
  4. Is the Bored Ape Yacht Club webpage overkill?
@nftchef
Copy link
Owner

nftchef commented Feb 24, 2022

Hi, this is a more complex subject.

  1. for most projects, yes. Attention to provenance and offset "true randomness" has fallen a bit out of popularity in the last couple of months. It's still a good practice to handle this in the contract from the beginning, but perhaps a page like this is best saved for after minting is closed and if the community asks for it (my opinion)

  2. The start index is usually chosen in a single Chainlink VRF call to get a random number (in the smart contract)

  3. This formula can be used in the smart contract for convenience, but it generally will happen off-chain on your metadata server (so you won't be using IPFS initially)

  4. The generator will output individual hash for each image as long as the option is set to true in config.js. Then, after generation, when running the provenance hash script, it will output provenance.json containing the concatenated string (like BAYC) and the single provenance hash

Hope that helps! I am moving this to a discussion to preserve the conversation for others.

Repository owner locked and limited conversation to collaborators Feb 24, 2022
@nftchef nftchef converted this issue into discussion #65 Feb 24, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants