<p>Scripts on the ledger are passive, they do not act unless a party sends a transaction that propagates the state of the script.</p>
<p>If I understand correctly, you want a vesting scheme, this is possible. Have a look at <a href="https://www.youtube.com/watch?v=ae7U_yKIQ0Y" rel="nofollow noreferrer">(1)</a>.</p>

CC BY-SA 4.0
2022-08-11T07:53:10.797Z
2022-08-11T07:53:10.797Z
Fermat
<p>im trying to figure out how to sign a smart contract (SC) and have it put on-chain, where it waits until its validation logic returns True.</p>
<p>Edit 1:</p>
<p>To clarify what I mean by signing is the private key signature. The purpose would be to have the user sign the contract once and after X years the contract is activated. The user should not be able to Sign again after this point as the user is believed to have died and the address locked. At this point, the contract act as a last will and testament, sending the ada balance to the beneficiary.</p>

CC BY-SA 4.0
2022-02-22T19:31:12.567Z
what do you mean by "sign" a smart contract?
zhekson
CC BY-SA 4.0
2022-02-22T20:28:49.123Z
When you use nami or another wallet the user should input their password only once. If its correct the private key signature is applied. this should only happen once as the validation logic of the contract is initially False, and only becomes True once the contract should be run. This means that the contract will also stay on chain.
KryptoKing
<smart-contract><on-chain><time><submission>
How to PreSign a transaction
# How to PreSign a transaction

(Asked by: username_0 on 2022-02-22)

im trying to figure out how to sign a smart contract (SC) and have it put on-chain, where it waits until its validation logic returns True.

Edit 1:

To clarify what I mean by signing is the private key signature. The purpose would be to have the user sign the contract once and after X years the contract is activated. The user should not be able to Sign again after this point as the user is believed to have died and the address locked. At this point, the contract act as a last will and testament, sending the ada balance to the beneficiary.

**Tags:** smart-contract, on-chain, time, submission
> **Comments:**
> **username_1**: what do you mean by "sign" a smart contract?  
> **username_0**: When you use nami or another wallet the user should input their password only once. If its correct the private key signature is applied. this should only happen once as the validation logic of the contract is initially False, and only becomes True once the contract should be run. This means that the contract will also stay on chain.  

---

## 1 answers

### Answer by username_2 on 2022-08-11. Score: 1

Scripts on the ledger are passive, they do not act unless a party sends a transaction that propagates the state of the script.

If I understand correctly, you want a vesting scheme, this is possible. Have a look at [(1)](https://www.youtube.com/watch?v=ae7U_yKIQ0Y).


---

