I'm interested in building an app that would generate a new smart contract every time two users of my app come to an agreement:
The first user would then send eth to the smart contract, and would receive a simple passphrase (something like a pin code) in return. the second user would provide an eth address to receive the funds.
Then, sending the passphrase to the smart contract would allow for the release of the funds.
It would also be great if the funds are actually sent back to user1 after a certain period if the passphrase hasn't been entered.
Does that sound easy to do? I assume this is exactly the sort of stuff one can do with ethereum, right? I'm pretty new with these sort of things, would there be an example I could use as a base? Thanks a lot in advance!