Post
Topic
Board Bitcoin Technical Support
Merits 1 from 1 user
Re: How can this be done?
by
nc50lc
on 27/10/2022, 15:29:56 UTC
⭐ Merited by hosseinimr93 (1)
Alternatively, it can be done by providing the criteria's hash beforehand.
The hash can prove that you have not changed the criteria since everyone can compute the its hash once it's revealed.
I'd recommend SHA256 for this.

For example, the criteria is:
Code:
1. very big
2. very yellow
3. very good
If you compute the SHA256 hash of the criteria's (as text), you'll get: 63203a91c71aea8bdbfbdb62926c83a65df94c660721209b9b9f5b8ce4b522aa
When you revealed the criteria, users can verify if it's really the criteria that you've used by checking if its SHA256 hash matched the one you've provided beforehand.

Note: Some sha256 tools are parsing the new lines (enter) as space and some omit it;
so during the criteria reveal, it's best to suggest open-source hashing tools to have a consistent result, eg: github.com/emn178/online-tools (has a web version).