Introducing Shentu’s Oracle Module: Dynamic Security for Smart Contracts Across Blockchain Networks

Shentu Foundation
3 min readMar 29, 2023

Introduction

In the rapidly evolving world of blockchain technology, ensuring the security and integrity of smart contracts has become a crucial necessity. To help alleviate the dynamic security risks, the Shentu Oracle Module is designed to provide a robust and secure mechanism for evaluating smart contract security across multiple blockchain networks. This innovative solution leverages the power of the Shentu Chain and its oracle operators to offer a reliable, decentralized security scoring system. In this article, we will explore the key features of the Shentu Oracle Module and how it enhances security scoring for smart contracts.

Integration with Target Chains

To facilitate seamless integration with various blockchain networks, such as Ethereum, Polygon, and BNB Chain (BSC), the Shentu Oracle Module deploys a dedicated oracle smart contract on the target chain. This contract can be queried by other smart contracts within the network, triggering a score request that is relayed to the Shentu Chain for processing.

The Oracle Operators

At the core of the Shentu Oracle Module lies a set of accounts called the oracle operators. These operators are responsible for filtering events within the Shentu Chain and processing security score requests. Upon receiving a request, the oracle operators generate a security score for a given smart contract and function, ensuring a thorough evaluation of the contract’s security parameters.

source: Shentu Chain Whitepaper

Aggregating and Finalizing Security Scores

Once the oracle operators have submitted their individual security scores, the Shentu Chain aggregates the data and computes a finalized score. This process ensures a balanced and objective evaluation of the smart contract’s security, eliminating the potential for manipulation or bias.

Relaying Scores to the Target Chain

After the final security score has been determined, the Shentu Oracle Module relays the information back to the target chain. This score is then accessible to all smart contracts within the network through the deployed oracle contract. As a result, developers and users alike can easily reference the security score when interacting with various smart contracts, fostering trust and transparency in the ecosystem.

The Shentu Oracle Module is a groundbreaking solution for enhancing the security and integrity of smart contracts across multiple blockchain networks. By leveraging the power of the Shentu Chain and its oracle operators, this module provides a reliable, decentralized security scoring system that promotes transparency and trust in the rapidly growing blockchain landscape. As the adoption of smart contracts continues to surge, the Shentu Oracle Module will play an increasingly vital role in safeguarding the security and stability of these powerful tools.

source: Shentu Chain Whitepaper

Oracle 1.5

Currently, as described above, the oracle module acts as the hub for dynamic security score processing. While it can provide the up-to-date score on many of the registered smart contracts through requests, it is not enough for the end user or smart contract to block any malicious transaction from going through, as the oracle module will not be aware of the ongoing transaction or any new incoming transactions. The score will get updated after any malicious transaction goes through, blocking any further attacks after the scores are updated accordingly.

To address this issue, the oracle module will adopt another model for defending malicious transaction, currently prototyped as Precog. Precog will function very similiarly with the current oracle module — but will provide a complementary security service that can go beyond detecting and marking malicious transactions and contracts.

📄 Website: https://shentu.foundation

🐦 Twitter:https://twitter.com/shentufoundation

💻 Github: https://github.com/shentufoundation

📚 Medium:https://shentufoundation.medium.com/

✉️ Telegram: https://shentu.technology/telegram

🎮 Discord: https://discord.com/invite/CggeAUYfwx

--

--