0

With Bitcoin script, is it possible to construct a timelocked address X in such a way that:

  • Players A and B (maybe more players) can send bitcoin to this address;
  • When the timelock expires,the player that had sent more bitcoin to address X can withdraw all bitcoin to himself;
  • If deposits where equal, then whoever is first - withdraws; ?
3
  • 3
    There's a few misunderstandings in your question. You don't construct timelocked addresses, you can construct time-locked transaction outputs. Each payment a player makes to an address results in a different transaction output - so each would need a timelock. There is no way to cross reference information from different transaction outputs in bitcoin script, nor can the script have access to the amount.
    – Mark H
    Jun 23, 2020 at 11:16
  • Thanks for clarification! Jun 23, 2020 at 13:17
  • I guess this: bitcoin.stackexchange.com/questions/23780/… answers my question as well. Jun 23, 2020 at 13:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.