I am very new to bitcoin scripts, and need to design some high level bitcoin protocols without enough time to really dive into the details of the language itself.

Is there a way to write a script that conditions on the current time? something like this. where currentTime stands for the current time stamp.


if currentTime<GivenTimeLimit: 
 redeeming requires knowing x s.t h(x)=x (input is x)
 redeeming requires knowing x s.t. h(x)=x AND z s.t. h(z)=z (inputs are x and z)

I am trying to create a situation where until time (or date) GivenTimeLimit, only one party p1 can redeem a certain amount, but after GivenTimeLimit, only the other party, p2, can redeem this amount. Is that possible?

Thank you very much!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.