Smart pipes are the “pipes” for data transmission, transferring data between Blockchain virtual machines and applications distributed through smart contracts.
The side chain node transmits the real-time data executed in the smart contract to external applications through the smart pipeline. After the external application executes, the results are returned to the Blockchain node in real time through the smart pipeline.
When a node executes a block, it will put the transactions in the block one by one into the virtual machine for execution. Before or after the execution of each transaction, or during operation, Smart pipelines can be inserted in. The smart pipeline is just like the breakpoint of the program. The nodes of the side chain activate a part of the pipeline (breakpoint) according to the configuration file.
When the node executes an activated smart pipeline (breakpoint), it will automatically start a stop-the-world process and transfer real-time data to external applications through this pipeline to process data (Some highly complex operations, or operations that require frequent updates are not suitable for execution inside a smart contract). After the external application is executed, the results are returned to the Blockchain nodes through the smart pipeline, and the nodes store these data in the database to complete the data upload.
The comparative advantages of Smart Pipeline versus traditional smart contracts:¶
“Smarter”: After the Smart Pipeline is deployed on-chain, it can automatically trigger according to the conditions detailed. Compared with Smart Contracts, more conditions can be considered and the execution process can be made more difficult to interfere with; this is conducive to the execution of complex transactions.
Zero gas consumption: When an application using Smart Pipelines executes a transaction, no gas is needed. Zero gas consumption does not mean zero responsibility, however, and all Smart Pipelines running code require open source supervision. Moreover, the computing resource body that the Smart Pipeline directs to is not only found on the corresponding sub-chain, but on the Smart Pipeline code. Thus, even if there is a loophole, it will not affect the performance of the corresponding sub-chain.
No limitation in programming language:¶
Smart Pipeline uses the WASM virtual machine to execute transactions. Users can write code in different programming languages and then convert to WASM. As WASM continues to improve, the types of languages supported will gradually increase, and the code efficiency will also be improved without affecting execution on the Blockchain.
Meets the needs of complex applications:¶
Smart Pipeline applications are not limited by gas and can be supported on Blockchains to facilitate more complex logic. Blockchains with Smart Pipeline can interact with other applications or services to meet the needs of large, complex applications, hence allowing for the building of applications that are not supported by existing Blockchains.