Rootstock chief engineer reveals that Bitcoin scripts have "new quadratic delays" and increasing block size poses security risks

Rootstock chief engineer reveals that Bitcoin scripts have "new quadratic delays" and increasing block size poses security risks

Rootstock lead engineer Sergio Demian Lerner revealed in a blog post that he discovered new quadratic delays in Bitcoin Script while conducting research on the SegWit protocol.

Lerner detailed that he started working on SegWit expansion last week and studying the code, specifically the “EvalScript() function”. In the process, Lerner discovered two quadratic complexity loops in the Bitcoin Core protocol. However, Lerner said that everyone does not need to worry about this test result, and he believes that “there are worse problems in Bitcoin block verification.” However, he went on to detail a potential attack scenario from malicious miners.

Lerner explained:

“A malicious miner could create a SegWit block that takes about 10 seconds to validate. The example transaction shown in the blog took less than 10 seconds.”

“I don’t consider my findings to be vulnerabilities. However, if the block size is to be increased in the future, these issues need to be addressed before that happens. The stack value of the script example given here is not empty, but the Bitcoin protocol does not require it. Bitcoin only needs the top value to be true to accept the script.”

Bitcoin scripts need to be optimized to prevent "surprises" during future expansion

Lerner further described an issue he called “Unmet Heckler: OP_IF Abuse,” and another issue he called “Rock-and-Roll” in the OP_ROLL opcode. He also detailed a lot of work being done to optimize block processing, though he said “some old code still needs to be optimized to prevent any ‘surprises’ in the future as we scale.”

“There is a new quadratic delay in Bitcoin Script. — Sergio Demian Lerner (@SDLerner) April 17, 2017”

Additionally, Bitcoin security expert Kristov Atlas complemented Lerner and his findings. He said:

“Another great write-up of a DoS attack vector. Thanks to Lerner for the research and publication.”

Parallel Validation

Lerner's blog post also prompted another thought, with one commenter asking:

"What do you think of BUIP033?"

BUIP033 is a concept proposed by Bitcoin developer Peter Tschipper in October 2016. BUIP033 proposes creating a separate thread for block verification. Essentially, this idea is the opposite of the current method of verifying each block through the main processing thread.

Lerner responded:

“I think separate threads are essential for Bitcoin to scale. It reduces the impact of all the block size issues.”

Lerner joins scaling debate

The Rootstock chief engineer has already added his voice to the current scaling debate. He recently wrote a block size proposal involving SegWit and a 2MB block size increase. Last month, the "SegWit 2mb + soft fork/hard fork combination" scaling plan received mixed reactions and comments from Bitcoin developers. Lerner is also the inventor of ASICBOOST technology, which was hotly debated in the Bitcoin community some time ago.

<<:  Financial expert Brian Wolfe believes Bitcoin's popularity is inevitable

>>:  Bitcoin demand continues to rise in India as cash reserve shortage drives up demand for Bitcoin

Recommend

Suitable for politics

1. Palace of Official Career Among the twelve pal...

How to tell your husband's appearance

Physiognomy is an academic discipline that has be...

How to read birthmark Feng Shui

Everyone's birthmark has different meanings w...

Various mouth corners face analysis of your fortune and development

The mouth is one of the five facial features and ...

What does Tianji star entering the life palace represent?

The star Tianji represents learning and activity,...

What are the characteristics of a serious illness when the health line appears?

Palmistry is a relatively important part of fortu...

Baby's palm reveals future personality traits

People usually think that palm reading is somethi...

Palmistry Illustrated Collection, Palmistry That Destines to Fail to Keep Money

We can usually see that some people obviously have...

Palmistry for a Happy Marriage Palmistry for a Happy Marriage

Marriage is one of the most important things in o...

How to read the forked wisdom line in palmistry, which means versatility!

How to read the forked wisdom line on palmistry? ...

What does a mole on the lower eyelid of a man or woman mean?

In fact, everyone's moles are different, and ...