Is it possible to create a contract that receives data and then performs some calculations on this data and outputs either a True or False (depending on the data).
I'm currently working on an Identity project and I've been working on a prototype (with the Bitcoin Blockchain) for the past few days. I'm just a bit confused on the Ethereum side and if what I want to achieve is even possible. An example to what I want to achieve: the smart contract receives a birthdate and then determines whether the person is over 18 or not. If the output is True, a certain area in the website gets unlocked. The importance here is of course to keep the data secretive so that nobody can see the users birthdate except for the contract.
Some tips on how to approach this are greatly appreciated