Only newer currencies you could lock your money into a smart contract, or just stake it, such that you literally could not transfer your money for a year (or more). Lower liquidity but would de-fang ransom like this.
Alternatively, a smart contract could require large transfers to escrow for X months, and could have a secret poison pill such that it would abort after 30 days if you used a trap password.
Edit: Given the downvotes I guess people just wanted to snark? I interpreted this as a technical question but maybe I misread.