Inspiration

When publishing a book on smart contract code and law, we decided to distribute NFTs randomly including rare NFTs. I thought that the VRF would be an effective solution to avoid the criticism that authors can arbitrarily distribute NFTs at this time.

What it does

  • NFTs will be distributed to book purchasers, and rare NFTs will be distributed randomly without arbitrariness by the author.
  • Only the randomly selected holders of the rare NFTs will have access to the secret content on the special website.

How we built it

  • We discussed how to prevent the arbitrary distribution of rare NFTs by authors.
  • Since random NFTs are legally problematic, we discussed how to prevent them from becoming illegal.
  • Based on these discussions, we created a smart contract code.

Challenges we ran into

  • Book purchasers are unfamiliar with transactions through metamask and likely do not hold native tokens.
  • Therefore, we will need to carry out the mint transaction and distribute the NFT. This is where the arbitrariness issue of authors arises.
  • Since we can decide when to mint, it is inappropriate to generate random numbers by block numbers, etc. Appropriate random numbers are needed for us.

Accomplishments that we're proud of

  • The VRF prevents authors from arbitrarily distributing rare NFTs even if authors carry out the mint transactions of NFTs.
  • We have also created a mechanism that allows only rare NFT holders to see the content, using a combination of session verification and address verification.

What we learned

  • Simply using VRF does not eliminate arbitrariness.
  • It is necessary to create code that uses VRF after specifying in advance the order of addresses to receive NFTs, etc.
  • It is important to utilize VRF after carefully understanding the smart contract specifications and VRF specifications.

What's next for Smart Contract Book - VRF NFT –

  • We are a Japanese Lawyer and a Japanese Crypto Project Smart Contract Engineer and next month we will publish a book on Smart Contract Code and Regulation.
  • We have a plan to distribute rare NFTs at random.
  • Now, we are working to explain the challenges and attractions of smart contracts to Japanese enterprises. In order for them to participate in public blockchain-related projects, we need to communicate the importance of oracles that read information outside the blockchain into the blockchain.
  • We explain the importance of decentralized oracles, Chainlink, in more than 10 pages in the book, but we can persuasively convey the need for decentralized oracles by actually using VRF to solve our own challenges related to smart contracts.

Built With

Share this project:

Updates