Is there a limit in bits for the data hashed in hash-locked script?

0

What is the limit in bits for the plain-text data of a secret (the data that it is actually hashed and used in a script) in a hash locked contract?

skydanc3r

Posted 2017-07-19T21:51:35.610

Reputation: 139

Answers

1

The maximum number of bytes pushable to the stack is set to 520 bytes, so that would be the maximum plain-text data of a secret (if you want to be able to redeem the output afterwards).

Another question discussing about this limit can be found here.

cpsola

Posted 2017-07-19T21:51:35.610

Reputation: 1 453