Complexity limits
Watch on YouTube (opens in a new tab)- Speaker
- monsterbitar
- Space
- Published
- Length
Transcript
We're hitting the limitations of BCH contracts frequently: this, too many opcodes here, there's two long items on the stack, you can do this push operation. We did not have 64-bit numbers, and so we ended up doing a workaround in which we computed two different numbers and then we matched them together so that we'd retain some precision. All these workarounds, they come with complexity, they come with a larger surface area for things that can go wrong. Of course, today that is not as relevant. We have 64-bit numbers now, we can do both multiplication and division in script, we have native introspection, so we're not hitting the edge cases anymore, and everything is pretty much straightforward. The contract is actually very clean and very straightforward now.


