Are NFT projects doing starting index randomization and provenance wrong or is it just me?

I've used this simple dumb script to do it and it has always worked so far:

import IPFS from 'ipfs-core'
const { globSource } = IPFS;

(async () => {
  const DATA_PATH = `ipfs/metadata`

  const ipfs = await IPFS.create()

  for await (const result of ipfs.addAll(globSource(DATA_PATH, {
      recursive: true
      onlyHash: true,
  )) {
    console.log(`${result.path} - ${result.cid.toString()}`)

  return process.exit()
1 Like

From my understanding, startingIndex is used to determine the order of the metadata after the sale is over and it is time to reveal. At the end of the sale, startingIndex is set. Then, metadata is ordered based on the startingIndex, uploaded to IPFS, and then the baseURI is set.

1 Like

I'm trying to understand what is a provenance hash, what does it do, and how do you calculate it?

1 Like

do you figure out your question yet, i'm curious too on how the reveal works

1 Like

this might help you understand it much better than a quick explanation

[The Elegance of the NFT Provenance Hash solution | by Richmond Lee]

1 Like

Interesting piece of research published by Paradigm:

Twitter summary here.

Thanks @jalil – only-hash works well

Hello everybody. I hope you are all right.

Sorry for my silly question, I'm still learning all this, but should the provenance hash be created in the generative imaging software?

Thanks for this post.

Stay safe.