Bitcoin smart contract functionality

Bitcoin smart contract functionality