Search

CN-121984685-A - Zero knowledge proof intelligent safety protection method and system driven by block chain data

CN121984685ACN 121984685 ACN121984685 ACN 121984685ACN-121984685-A

Abstract

The application discloses a zero knowledge proof intelligent safety protection method and system driven by block chain data, belonging to the technical field of block chains, the technical proposal adopts layered architecture design, comprising a data layer, an analysis layer, a proof layer and a protective layer, the application organically combines the blockchain data analysis and the zero knowledge proof technology, and realizes the automatic safety strategy execution through intelligent contracts. The system firstly trains a protection model based on historical transaction data, identifies an abnormal transaction mode, triggers a zero knowledge proof verification mechanism when suspicious transactions are detected, and requires a transaction initiator to provide corresponding validity proof.

Inventors

  • ZHANG JIANHAI
  • WANG CHENYU

Assignees

  • 厦门慢雾科技有限公司

Dates

Publication Date
20260505
Application Date
20260210

Claims (10)

  1. 1. The zero-knowledge proof intelligent safety protection system driven by the blockchain data is characterized by adopting a hierarchical architecture design, comprising a data layer, an analysis layer, a proof layer and a protection layer, wherein each layer is used for realizing intelligent and self-adaptive blockchain safety protection in a cooperative manner: The system comprises a data layer, a data preprocessing unit, a block chain data acquisition unit, an intelligent contract state data and account behavior data, wherein the data layer is used for acquiring, storing and preprocessing block chain data and comprises a block chain data acquisition unit, a distributed storage unit and a data preprocessing unit; The system comprises an analysis layer, a safety threat identification and risk assessment module, a safety threat analysis module and a safety threat analysis module, wherein the characteristic engineering module constructs multidimensional characteristic vectors of transaction mode characteristics, account behavior characteristics and time sequence characteristics; the system comprises a zero knowledge proof generation unit, a proof verification module and a proof management module, wherein the zero knowledge proof generation unit adopts an improved Groth16 protocol to generate zero knowledge proof through multithread parallel processing, the proof verification module realizes proof compression and batch verification, and the proof management module supports classified management of transaction validity proof, asset ownership proof and identity authentication proof; The protection layer is used for executing and optimizing a security protection strategy and is deployed in an intelligent contract of a blockchain network, and comprises a strategy executing module, a protection optimizing module and a monitoring feedback module, wherein the strategy executing module executes transaction limiting, account freezing, contract calling interception or emergency suspension operation based on a risk assessment result, the protection optimizing module dynamically adjusts the protection strategy according to attack mode change, and the monitoring feedback module monitors system performance and protection effect in real time.
  2. 2. The blockchain data-driven zero-knowledge proof intelligent security system according to claim 1, wherein the data collected by the blockchain data collection unit comprises transaction data such as transaction hash, sender address, receiver address, transaction amount, timestamp, gas consumption, intelligent contract state data such as contract address, calling method, parameters and execution state, account behavior data such as account balance change and interaction frequency.
  3. 3. The blockchain data-driven zero-knowledge proof intelligent safety protection system according to claim 1, wherein the zero-knowledge proof generating unit comprises the steps of constructing an arithmetic circuit to represent a constraint relation to be proven, generating the proof in parallel by adopting a multithreading technology, and optimizing the proof generating efficiency by adopting a pre-calculation and witness compression technology.
  4. 4. The blockchain data driven zero knowledge proof intelligent security system of claim 1, wherein the intelligent contracts of the protection layer ensure the consistency of the execution of the protection policies of all nodes of the network through a consensus mechanism, and support the dynamic updating and emergency response mechanisms of the protection policies.
  5. 5. The blockchain data-driven zero-knowledge proof intelligent safety protection system according to claim 1, further comprising a deployment layer, wherein the system is rapidly deployed and elastically expanded by adopting a containerization technology, unified management of system parameters is realized by a configuration management tool, and log recording and auditing functions are provided.
  6. 6. A zero knowledge proof intelligent security method driven by block chain data, characterized in that the system of any one of claims 1-5 is applied, comprising the following steps: s1, data acquisition and preprocessing, namely acquiring transaction data, intelligent contract state data and account behavior data of a blockchain in real time through a data layer, and storing the transaction data, the intelligent contract state data and the account behavior data in a distributed storage unit after cleaning, feature extraction and standardization processing; S2, intelligent analysis and risk assessment, wherein a feature engineering module of an analysis layer constructs a multidimensional feature vector, a machine learning module captures time sequence features through an LSTM network, an abnormal transaction mode is identified by combining a random forest algorithm, and an intelligent decision module outputs a risk assessment result; S3, generating and verifying zero knowledge proof, namely triggering a zero knowledge proof generating unit of a proof layer if a risk assessment result is suspicious transaction, generating the zero knowledge proof by adopting an improved Groth16 protocol, and verifying the validity of the proof by a proof verification module through a batch verification mechanism; S4, executing an intelligent protection strategy, namely executing corresponding protection operation through an intelligent contract according to a risk assessment result and a proof verification result by a strategy execution module of the protection layer, wherein the verification is performed normally through a transaction with lower risk, and the verification failure or high risk transaction is intercepted; and S5, optimizing the protection strategy, namely acquiring system performance and protection effect data in real time by the monitoring feedback module, and dynamically adjusting the protection strategy and the abnormal detection model parameters by the protection optimization module based on the data to realize self-adaptive protection.
  7. 7. The blockchain data-driven zero-knowledge proof intelligent safety protection method according to claim 6, wherein the online learning mechanism of the machine learning module in step S2 includes periodically collecting new blockchain data, performing incremental training on an anomaly detection model, and updating model parameters to adapt to a novel attack mode.
  8. 8. The blockchain data-driven zero-knowledge proof intelligent security method of claim 6, wherein the verification of the zero-knowledge proof in step S3 supports participation of a third party, which can verify the validity of the transaction without knowing the specific transaction content.
  9. 9. The blockchain data-driven zero-knowledge proof intelligent security protection method of claim 6, wherein the protection operation in step S4 comprises dynamically adjusting transaction constraints, temporarily freezing suspicious accounts, intercepting abnormal contract calls, triggering an emergency suspension mechanism.
  10. 10. The blockchain data-driven zero knowledge proof intelligent security protection method of claim 6, wherein the protection policy optimization in step S5 further comprises adjusting the number of concurrent threads and pre-calculation parameters of the proof generation according to the generation efficiency and the verification success rate of the zero knowledge proof.

Description

Zero knowledge proof intelligent safety protection method and system driven by block chain data Technical Field The application relates to the technical field of blockchain, in particular to a zero knowledge proof intelligent safety protection method and system driven by blockchain data. Background At present, two types of technical schemes are mainly adopted for the block chain safety protection: Firstly, a traditional blockchain safety monitoring scheme is adopted, data on a chain is analyzed in real time through deployment of monitoring nodes, abnormal transactions and malicious behaviors are identified, and protection is carried out by adopting preset rules; Secondly, the privacy protection scheme based on zero knowledge proof ensures the validity of the transaction through the cryptology proof and protects the privacy data of the transaction participants. These schemes guarantee the security of the blockchain system from two dimensions, transaction monitoring and privacy protection, respectively, which have the following problems: The traditional monitoring scheme depends on a fixed rule base, lacks self-adaptive learning capability, and is difficult to cope with novel attack means; The existing zero knowledge proving scheme has high calculation complexity and low verification efficiency, and only pays attention to privacy protection and ignores integral safety protection; The two technologies are split, and the advantages of data analysis and privacy protection are not effectively combined; the lack of an intelligent decision mechanism can not dynamically adjust the protection strategy according to the threat situation. Disclosure of Invention Aiming at the defects existing in the prior art, the invention aims to provide a zero knowledge proof intelligent safety protection method and system driven by block chain data. The system firstly trains a protection model based on historical transaction data, identifies an abnormal transaction mode, triggers a zero knowledge proof verification mechanism when suspicious transactions are detected, and requires a transaction initiator to provide corresponding validity proof. In order to achieve the aim, the invention provides the technical scheme that the zero knowledge proof intelligent safety protection system driven by the blockchain data adopts a hierarchical architecture design, and comprises a data layer, an analysis layer, a proof layer and a protection layer, wherein the layers cooperate to achieve intelligent and self-adaptive blockchain safety protection: The system comprises a data layer, a data preprocessing unit, a block chain data acquisition unit, an intelligent contract state data and account behavior data, wherein the data layer is used for acquiring, storing and preprocessing block chain data and comprises a block chain data acquisition unit, a distributed storage unit and a data preprocessing unit; The system comprises an analysis layer, a safety threat identification and risk assessment module, a safety threat analysis module and a safety threat analysis module, wherein the characteristic engineering module constructs multidimensional characteristic vectors of transaction mode characteristics, account behavior characteristics and time sequence characteristics; the system comprises a zero knowledge proof generation unit, a proof verification module and a proof management module, wherein the zero knowledge proof generation unit adopts an improved Groth16 protocol to generate zero knowledge proof through multithread parallel processing, the proof verification module realizes proof compression and batch verification, and the proof management module supports classified management of transaction validity proof, asset ownership proof and identity authentication proof; The protection layer is used for executing and optimizing a security protection strategy and is deployed in an intelligent contract of a blockchain network, and comprises a strategy executing module, a protection optimizing module and a monitoring feedback module, wherein the strategy executing module executes transaction limiting, account freezing, contract calling interception or emergency suspension operation based on a risk assessment result, the protection optimizing module dynamically adjusts the protection strategy according to attack mode change, and the monitoring feedback module monitors system performance and protection effect in real time. The invention further preferably comprises the step of collecting data by the blockchain data collection unit, wherein the data comprise transaction data such as transaction hash, sender address, receiver address, transaction amount, time stamp, gas consumption and the like, intelligent contract state data such as contract address, calling method, parameters, execution state and the like, account balance change and account behavior data such as interaction frequency and the like. The zero knowledge proof generating unit further preferably c