Security of Transactions in Bitcoin