#持有SCDO未来星辰大海
Question 15: How does the Stem subchain connect to the mainnet and ensure security?
Answer: Each Stem subchain connects to the mainnet through Stem smart contracts deployed on the main chain. The creator of the subchain needs to deposit a certain amount of SCDO tokens as collateral to the main chain contract, after which the basic information of the subchain will be registered on the main chain. During operation, the subchain must regularly submit state summaries (such as block Merkle roots or state hashes) to the main chain. Validators on the main chain will record these submissions to ensure that the subchain's state is tamper-proof.
In addition, a challenge mechanism is introduced: if any user discovers illegal transactions or states in the subchain, they can submit evidence to the main chain to challenge it. Once the challenge is established, the main chain can determine that there is an issue with the subchain and take punitive measures (such as confiscating the deposit), thereby protecting user rights.
The transactions and consensus of the subchain operate independently internally, but due to regular audits and economic guarantees from the main chain, security is greatly enhanced. This main-subchain structure is similar to a tree system: the main chain is the trusted root, and the subchain achieves high scalability while obtaining security close to the main chain through anchoring and staking mechanisms.