Resumen
The Internet of Things that links the cyber and physical worlds brings revolutionary changes to society, however, its security and efficiency problems have not been solved. The Consortium Blockchain + IoT is considered to be an effective solution. The IoT blockchain network?s demand for transaction processing speed is gradually increasing. The throughput problem of the blockchain needs to be solved urgently and the security problem of transaction processing that comes with it. To solve the above problems, this paper proposes a reputation-driven dynamic node security sharding consensus model (RDSCM) in the blockchain, which consists of two parts: a reputation-driven node to eliminate PBFT (RE-PBFT) and a reputation-driven node cross reconfiguration sharding scheme (NCRS). The RE-PBFT eliminates abnormal nodes in the consensus network and reduces the probability of abnormal nodes becoming master nodes. NCRS improves the blockchain throughput while ensuring sharding reliability. Finally, the experiment proves that RE-PBFT can identify abnormal nodes and remove them in a short time. NCRS can effectively guarantee the reliability of sharding, and the transaction processing efficiency has been greatly improved after sharding.