The application discloses a video and related information lightweight credible on-chain method based on an optimized
consensus algorithm, and the method comprises the following steps: serializing a video and related attribute information into a
JSON document, calculating the Hash of the video and related information by using a Hash
algorithm to obtain a content digest, uploading the
JSON document to an IPFS to generate a content address, taking the content digest and the content address as a
blockchain transaction, verifying the
blockchain transaction by each node in the
blockchain, performing
consensus, and on-chaining by using a
smart contract, determining a node role type, constructing a confidence evaluation mechanism, periodically updating the confidence according to the reward and punishment mechanism of the
consensus behavior of the node, constructing a node
election algorithm, storing the transaction after the consensus by each node in the blockchain into the account book of the node, and completing the lightweight information credible on-chain process. The application optimizes the storage space, reduces the broadcast times in the consensus protocol, and improves the consensus efficiency.