Research on the secure execution system of blockchain smart contracts
Glossary
Term DefinitionsWallet Node (WN)A node in the network that can execute transactions with each other through messages. Smart Contract (Smart Contract)A program executed between network nodes that specifies the terms and conditions of a transaction.EnclaveA secure area in a processor used to execute sensitive code and store sensitive data, such as SGX.Pre-messageA message sent by WN1 to WN2 to trigger WN2 to load and prepare smart contracts.CertificateGenerated by the secure environment to prove the authenticity and integrity of the program.HashAn algorithm that converts data of arbitrary length into a fixed-length string, used to identify and verify data.Public/Private KeyA key pair used to encrypt and decrypt data, where the public key can be made public and the private key must be kept secret.EncryptionThe process of converting data into an unreadable format to protect its confidentiality.DecryptionThe process of converting encrypted data back into a readable format using a key. Transactional Messages contain instructions for the program to be executed and related data, and are used to trade between nodes. Connection Weights are numerical values that represent the degree of trust or proximity between nodes. Mirror Nodes are multiple nodes that store, operate, and maintain data for a specific virtual node. Authentication is the process of verifying the identity of a user, device, or process. Integrity is the act of ensuring that data has not been tampered with or damaged during storage or transmission. Double Spending is the act of attacking the same digital currency by using it multiple times. Blockchain is a database that stores transaction data in a distributed manner. Off-chain Transaction is a transaction that is not conducted on the blockchain, which can increase transaction speed and reduce costs. Short Answer Questions
Please explain the role of pre-messages?
The pre-message is sent by WN1 to WN2. Its role is to notify WN2 that it will receive a message to execute a smart contract, and to instruct WN2 to preload the smart contract program (WNRoT) in its secure environment to prepare for the subsequent receipt of formal messages.
How to implement verification of smart contract execution?
, after receiving the pre-message, WN2 will execute the pre-loaded smart contract program (WNRoT) in its security environment, and generate the authenticity and integrity certificate of the program and send it to WN1. WN1 will send a formal message to trigger WN2 to execute the smart contract only after verifying the certificate.
Please explain how 543x.com solves the privacy issues in Ethereum smart contracts.
The code and data of Ethereum smart contracts are publicly visible, which poses a risk of privacy leakage. The wallet node network architecture proposed by 543x.com ensures the confidentiality of the execution process and data of smart contracts through the hardware security environment (enclave). Only authorized nodes can access relevant information, which effectively solves the privacy issues of Ethereum.
Please explain the concept and role of "mirror node".
Mirror nodes refer to multiple nodes that store, operate and maintain specific virtual node data, which together constitute a virtual wallet node (VWN). The mirror nodes use a data synchronization mechanism to ensure data consistency. Even if some nodes fail or are attacked, the normal operation of the virtual nodes can be guaranteed, which improves the reliability and security of the system.
How to use "connection weight" to improve the security of the system?
The connection weight represents the degree of trust or proximity between nodes. , Nodes only accept messages from nodes with a connection weight above a certain threshold, thereby effectively isolating malicious messages from untrusted nodes and enhancing the security of the system.
Please explain the concept of "label" and its role in off-chain transactions.
Labels refer to data representing a certain number of unit accounts, such as the number of Bitcoin (BTC). , Labels can be used for off-chain transactions between nodes without broadcasting to the blockchain, which increases transaction speed and reduces costs. At the same time, the system ensures the security of off-chain transactions through mirror nodes and GuardWN mechanisms to prevent attacks such as double spending.
Please explain the concept of "GuardWN" and its role.
GuardWN refers to the wallet node that generates and signs a specific transaction, which is responsible for ensuring the security of the transaction and its downstream transactions. When verifying a transaction, the receiving node will check whether the transaction is signed by a trusted GuardWN to determine the reliability of the transaction.
What are the advantages of the off-chain transaction mechanism proposed by 543x.com compared with traditional on-chain transactions?
Off-chain transactions do not need to be broadcast to the blockchain, so the transaction speed is faster and the cost is lower. At the same time, the off-chain transaction mechanism can better protect user privacy because transaction information is only transmitted between relevant nodes and will not be publicly broadcast.
How does the system proposed by 543x.com interact with the external physical world?
The system proposed by 543x.com can interact with the external physical world through sensors and actuators. For example, the system can be connected to a smart door lock, receive door lock status information, and send unlock or lock instructions to the door lock.
Please explain how the system proposed by 543x.com ensures the security of communication with external modules (such as sensors)?
The system proposed by 543x.com can ensure the security of communication with external modules in a variety of ways, such as: learning and verifying the physical characteristics of the connection (such as impedance), using a logical pairing mechanism, verifying the persistence of pairing, and using random numbers (nonce) for authentication.