samedi 13 août 2022

How to store the number in a secure way? using Chainlink VRF generator

So i manage to run ChainLink VRF generator on my contract which stores a numbers in a public array. How can i use it in a secure way? Im not an expert, just started with solidity but to my understanding basically everything from the contract can be read.

To be more specific. ChainLink VRF gives me nice big random number as bytes32 stored in array. Is storing it already reveal the number to a potential hacker? or in what way could i manipulate the data to make it unreadable from the outside.

The thing i am trying to do is to make a simple contract with guessing the number function. In order to make it less predictable i want to use ChainLink VRF to generate a number for the contract, but if you could read the generated number stored in a contract and then have what ever syntax is written for the function, you should be able to know the number, right? even if keccak is used, you can just run it outside of the contract and compare results, right?

would appreciate a big mind to bless me with its wisdom!🙇




Aucun commentaire:

Enregistrer un commentaire