Post
Topic
Board Development & Technical Discussion
Merits 4 from 3 users
Topic OP
[Challenge] Come up with scripts that could take a long time to evaluate
by
Coding Enthusiast
on 09/10/2019, 10:39:30 UTC
⭐ Merited by Royse777 (2) ,hugeblack (1) ,ETFbitcoin (1)
Scripts are being evaluated/run so that we can verify the validity of the given transaction. Depending on the script itself and the implementation, this evaluation could take a much longer time than normally expected.
As a challenge, try to come up with such scripts that could take longer than normal (could be 10 second, minute or hour!). There are also some rare examples out there on the internet from old days that you can find and post here.

  • The script doesn't have to be standard but it has to be valid (eg. no disabled OPs).
  • It doesn't have to be in a full transaction. It could be as scriptPub, scriptSig and if available redeemScript or witnesses. Or simply 1 script from start to end.
  • It should also include the expected time that it takes to evaluate in addition to the device hardware and platform used.

This topic is self-moderated to prevent it from going off-topic.