Modeling Bitcoin Contracts by Timed Automata
How to deal with malleability of BitCoin transactions