How to handle sensitive data in smart contract

Hi Community,

I'm developing an NFT marketplace. I need to store reservePrice that will be hidden from all users and when the auction ends, auction will be successful if the reservePrice is less than from the highest bid otherwise auction will be reverted.

I've explored Keccak256 algo but it's one way encryption.

If i just need to match the exact value then it can be used but i need to decode the encrypted hasd and check whether the highest bid is greater than or equal to reserve price.

reservePrice <= HighestBid

Can anyone help me out in this query.


This is a typical commit-reveal scheme. There's plenty of articles talking about it.