Blockchain Smart Contract Management
Glossary
Term DefinitionsBlockchainA distributed database technology where multiple computing devices participate in recording and maintaining a complete record of data. Smart contractsCode deployed on the blockchain that can be triggered by transactions to execute.Trusted Execution Environment (TEE)A secure area in hardware that protects the confidentiality and integrity of code and data.Intel Software Guard Extensions (SGX)A TEE technology that can create secure execution areas called "enclaves".EncryptionConverting data into an unreadable format that can only be decrypted by someone with a key.DecryptionConverting encrypted data back into a readable format using a key.Symmetric encryption uses the same key for encryption and decryption.Asymmetric encryption uses a pair of keys for encryption and decryption, called a public key and a private key.Digital EnvelopeA cryptographic method that combines symmetric and asymmetric encryption.Distributed ledgerThe way blockchain data is stored, with all nodes having an identical copy.Management of Smart ContractsA regulated smart contract whose code execution and results are restricted.Smart Contract Management RulesRules used to determine which smart contracts need to be regulated.Smart Contract BlacklistContains a list of all smart contract addresses that need to be regulated.Short Answer Questions
What is blockchain? What are its characteristics?
Blockchain is a distributed database technology that allows multiple computing devices to jointly participate in data recording and maintenance. Its characteristics include decentralization, openness, transparency, security, and immutability.
What is a smart contract? How does it work?
A smart contract is a code stored on a blockchain that can be triggered by a transaction to automatically execute predefined actions. Users deploy the code to the blockchain, and when specific conditions are met, the code will be automatically executed.
What is a trusted execution environment (TEE)? What role does it play in blockchain?
A trusted execution environment (TEE) is a secure area in hardware that protects the confidentiality and integrity of code and data. In blockchain, TEE can be used to perform operations that require high security, such as key management, privacy protection, and smart contract supervision.
Explain the difference between symmetric encryption and asymmetric encryption.
Symmetric encryption uses the same key for encryption and decryption, while asymmetric encryption uses a pair of keys, called public and private keys. The public key can be made public and is used to encrypt data, while the private key must be kept secret and is used to decrypt data.
What is the digital envelope encryption method?
The digital envelope encryption method combines the advantages of symmetric encryption and asymmetric encryption. It uses a symmetric key to encrypt data, and then uses the public key of asymmetric encryption to encrypt the symmetric key.
What is the purpose of the smart contract management method described in the learning guide?
The purpose of this method is to achieve supervision of specific smart contracts while protecting the privacy of smart contracts.
How to determine whether the target smart contract is a regulated smart contract?
It is determined by matching the address of the target smart contract with the smart contract blacklist. If the address of the target smart contract is in the blacklist, the smart contract is a regulated smart contract.
If the target smart contract is determined to be a regulated smart contract, how will the system handle it?
The system will stop executing the smart contract and return a message to the client that the call failed. At the same time, you can choose to delete the executed results or store them in the TEE and set them to prohibit extraction according to the situation.
How does this management method ensure the privacy of smart contracts?
The smart contract code is encrypted when it is stored in the blockchain and executed, and can only be decrypted and executed in a trusted execution environment, thereby ensuring the privacy of smart contracts.
How does the regulator update the smart contract management rules?
The regulator can update the smart contract management rules by calling the smart contract deployed on the regulatory blockchain.