0
I would like to know if its possible to use a Bitcoin at present in the following scenario.
When I send a Bitcoin to an another user,I set certain parameters on the Bitcoin, like it can only be used from this particular date to an another particular date. And restrict the usage of Bitcoin if its being used some other time.
Can I use it like this ?
I have a doubt regarding the second transaction. What if I make a second transaction at the same time of the first and set the
locktimeas the grace period ending. And I will broadcast both the transactions. So when the grace period starts the second person can use the bitcoin and at the end of the grace period, it will be directed back to me. Will it work ? – jgm – 2016-05-05T14:20:33.140The problem is that if
– Jestin – 2016-05-05T15:32:38.257locktimeis set, yet the time period is not up, you nodes will not relay the transaction. It prevents the transaction from being included in a block. Miners and full nodes would have to store your transaction in their mempools until it is allowed in a block. Remember, only one of the two transactions will ever be included in a block, since they both use the same UTXOs as input. I think you are confusinglocktimewith BIP65's OP_CHECKLOCKTIMEVERIFY (https://en.bitcoin.it/wiki/BIP_0065), which could also be a solution for you.I want some thing like this, the second person should possess the bitcoin only for a certain period of time and return the bitcoin to the sender , when the time is up. Would it be possible with
locktime? – jgm – 2016-05-05T15:37:17.670The contract I outlined above gives the recipient the ability to transfer the bitcoin to themselves for a limited amount of time. They have no obligation to return any portion to the sender. If unspent, it gets returned by an action of the sender. The Bitcoin network doesn't allow you to hand a transaction off to full nodes/miners for them to store and mine at a future time. In other words, you can't use it to automate a future transaction, but you can use it to guarantee that a future transaction won't take place until a certain time. You will still be in charge of initiating. – Jestin – 2016-05-05T16:08:13.523
Does this mean that the bitcoin will be the wallet of the recipient during the time frame and if unspent returned back to sender ? – jgm – 2016-05-05T16:22:22.077
No. It will be in the sender's wallet, but during the timeframe, the recipient has the ability to transfer it to his own. If transferred, the sender has no ability to get it back. To end the timeframe, the sender must submit his own transaction, spending the original UXTO. If the sender never submits his transaction, the timeframe never ends. – Jestin – 2016-05-05T16:26:08.210