1

I am trying to create a multi-signature time locking script similar to this example. I want to lock assets into a script to be released at a later date.

{
    "type": "all",
    "scripts": [
        {
            "type": "after",
            "slot": 55596400
        },
        {
            "type": "sig",
            "keyHash": "..."
        }
    ]
}

According to the docs linked above, I have to add the --invalid-before [slot] argument, where slot is greater than or equal to the value specified in my script (55596400 in my example). By doing that, I cannot submit the transaction until that slot number.

I was hoping to be able to lock the assets into a script address that could then be redeemed by the holder of the key specified in the script after the given slot. So my questions are:

  1. Is that not possible with a multisig script?
  2. If not, what is the purpose of a time-locked multisig script? I guess I could give the assembled transaction with the needed witness off-chain, but then nothing prevents me from spending the assets before the given slot.
  3. Is there a way to do what I'm wanting to do?

1 Answer 1

2
  1. It is possible
  2. The script used in the above example is used to construct an address from which funds UTXOs can only be used if they follow the logic specified by the script.
  3. Looks like you've already done it! Just continue following the instructions in your linked example for creating and funding the script address. Be sure to test with a round trip before committing any large funds!
1
  • Thank you! I was running into an error that looked exactly like this forum.cardano.org/t/… and got off the path. I was just witnessing with the wrong key. :( I appreciate you confirming that what I was wanting to do is possible and for pointing me in the right direction. Commented Apr 13, 2022 at 19:12

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.