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:
- Is that not possible with a multisig script?
- 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.
- Is there a way to do what I'm wanting to do?