I am new to Ethereum and I apologize if my questions are silly.
I wish to use Ethereum to write an escrow service. I looked at some escrow tutorials but I didn't find answers to my questions.
Escrow services must keep the money (Ether) that is spent by the sender, until some conditions are met by the payee. When conditions are met ether leaves the contract and is given to the payee. So the contract must keep the money in a safe way in the mean time.
The questions :
1/ Does a contract have private/public keys to receive Ether from the sender and send Ether to the payee (sender and payee=external account) ?
2/ How the contract can retain Ether in a safe way ?
3/ Can the contract actually send ether to external account ?
3/ Can you give clues about the code that can do such a function (retain money in an intermediate storage ?)
Thanks a lot