CN116542795A - Audit data cross-chain interaction method and device based on blockchain - Google Patents

Audit data cross-chain interaction method and device based on blockchain Download PDF

Info

Publication number
CN116542795A
CN116542795A CN202310516772.XA CN202310516772A CN116542795A CN 116542795 A CN116542795 A CN 116542795A CN 202310516772 A CN202310516772 A CN 202310516772A CN 116542795 A CN116542795 A CN 116542795A
Authority
CN
China
Prior art keywords
audit
project
chain
auditable
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310516772.XA
Other languages
Chinese (zh)
Other versions
CN116542795B (en
Inventor
李锡波
赵丹
王楠
阮铁源
黄肖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Zhiwang Xingdian Technology Development Co ltd
Original Assignee
Wuhan Zhiwang Xingdian Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Zhiwang Xingdian Technology Development Co ltd filed Critical Wuhan Zhiwang Xingdian Technology Development Co ltd
Priority to CN202310516772.XA priority Critical patent/CN116542795B/en
Publication of CN116542795A publication Critical patent/CN116542795A/en
Application granted granted Critical
Publication of CN116542795B publication Critical patent/CN116542795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to a block chain-based audit data cross-chain interaction method and device, comprising the following steps: extracting project audit records according to auditable projects, carrying out validity verification on the project audit records to obtain legal audit records, extracting project audit data in the legal audit records, extracting comparison audit data sets according to the project audit data sets, calculating difference variation values of the project audit data sets and the comparison audit data sets, judging whether the difference variation values are larger than a difference variation threshold value, obtaining audit normal results if the difference variation values are not larger than the difference variation threshold value, constructing audit abnormal records if the difference variation values are larger than the difference variation threshold value, and constructing early warning information. The invention also provides a cross-chain interaction device, electronic equipment and a computer readable storage medium for realizing audit data based on the blockchain. The invention can solve the problems of poor real-time performance and low flexibility of the current auditing effect by using the block chain.

Description

Audit data cross-chain interaction method and device based on blockchain
Technical Field
The invention relates to the technical field of blockchain auditing, in particular to a blockchain-based auditing data cross-chain interaction method, a blockchain-based auditing data cross-chain interaction device, electronic equipment and a computer readable storage medium.
Background
Blockchain is a distributed ledger technique with decentralised and non-tamperable features based on cryptography, consensus mechanisms. It comprises the following steps: hash algorithm, consensus mechanism, distributed network, intelligent contract and encryption algorithm, and the like, and the blockchain is widely applied to the fields of finance, internet of things and the like through the combination of the technologies.
Auditing is the process of auditing financial or economic activities of an organization, entity, or individual, and determining from the outcome of the auditing whether the financial or economic activities of the audited party are legitimate, valid, and fair. Can help organizations or enterprises understand their financial status, risk, and operational status and help solve existing problems and risks. The current process of auditing by using the blockchain mainly comprises the steps of creating an intelligent contract, deploying the intelligent contract on the blockchain, verifying and analyzing data by using a medium intelligent contract on the blockchain, and finally generating an audit report.
Disclosure of Invention
The invention provides a blockchain-based audit data cross-chain interaction method, a blockchain-based audit data cross-chain interaction device and a computer readable storage medium, and mainly aims to solve the problems of poor real-time performance and low flexibility of the current auditing effect by using a blockchain.
In order to achieve the above purpose, the invention provides a blockchain-based audit data cross-chain interaction method, which comprises the following steps:
extracting auditable block information from the pre-constructed common public chain by using a perception node of the pre-constructed user parallel chain;
extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items;
the project audit record is sent to a relay chain of the public chain by using the sensing node, and validity verification is carried out on the project audit record by using the relay chain to obtain a legal audit record;
extracting project audit data from the legal audit record, and extracting a comparison audit data set of the auditable project from the public chain according to the project audit data;
calculating a difference variation value of the project audit data and the comparison audit data set;
judging whether the difference variation value is larger than a preset difference variation threshold value or not;
if the difference variation value is not greater than the difference variation threshold value, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result;
If the difference variation value is larger than the difference variation threshold, an audit abnormal record is constructed, the audit abnormal record is sent to the fusion node of the user parallel chain, early warning information is constructed by utilizing the fusion node of the user parallel chain, and cross-chain interaction of audit data based on block chains is completed.
Optionally, the extracting, according to the auditable item, an item audit record of the auditable item in the user parallel chain includes:
extracting an associated index data set from the user parallel chain according to the auditable item;
acquiring a promise value of each associated index in the associated index data set;
acquiring an audit record ID and a time stamp, and constructing a record signature according to the audit record ID by utilizing a private key of the user parallel chain;
and constructing the project audit record according to the associated index data set, the promise value, the audit record ID, the timestamp and the record signature.
Optionally, the project audit record is as follows:
Tx=<ID,Projrcts,Cmts,TS,sign(ID)>
where Tx represents the project audit record, ID represents the audit record ID, projects represents the set of associated metrics, cms represents the set of commitment values, TS represents the timestamp, sign (ID) represents the record signature.
Optionally, before the auditable block information is extracted from the pre-constructed common public chain by the perception node using the pre-constructed user parallel chain, the method further includes:
receiving an item audit request by using the relay link of the public chain;
extracting project audit line and audit project from the project audit request, and obtaining the auditable request frequency corresponding to the project audit line;
acquiring the current request frequency of the audit item, and judging whether the current request frequency is greater than or equal to the auditable request frequency;
if the current request frequency is not more than or equal to the auditable request frequency, returning to the step of receiving the project audit request by using the relay link of the common public chain;
if the current request frequency is greater than or equal to the auditable request frequency, auditable block information of the audit item is constructed.
Optionally, the extracting the audit data set of the auditable item in the public common chain according to the item audit data includes:
acquiring a project audit interval to which the project audit data belongs;
and extracting a comparison audit data set corresponding to the project audit interval in the consensus public chain according to the project audit interval to which the project audit data belongs and auditable projects.
Optionally, the calculating a variance value of the project audit data from the control audit data set includes:
sequentially extracting to-be-examined items and index data sets corresponding to the to-be-examined items from the item audit data;
sequentially extracting the comparison audit items corresponding to the to-be-audited items from the comparison audit data set, and extracting the index data set corresponding to the comparison audit items;
and calculating the difference variation value by utilizing a pre-constructed difference variation value calculation formula according to the index data set corresponding to the project to be checked and the index data set corresponding to the comparison audit project.
Optionally, the variance variation value calculation formula is as follows:
wherein D represents a variance of difference, n 1 Indicating the total number of item indexes in the auditable item, i indicating the index number, k of the item index in the auditable item i Weights, s, representing the index of the ith item in auditable items i Index data representing an ith item index of auditable items in the item audit data, S i And indicating index data corresponding to the ith item index in the comparison audit data set.
Optionally, before the determining whether the variance variation value is greater than the preset variance variation threshold, the method further includes:
Defining a project audit line interval set, and constructing a difference change threshold corresponding to each project audit line interval in the project audit line interval set;
and constructing a difference change threshold comparison table according to the difference change threshold corresponding to the project audit limit interval.
Optionally, the construction of the early warning information by using the fusion node of the user parallel chain includes:
acquiring a difference variation interval to which the difference variation value belongs;
inquiring the early warning level in a pre-constructed intelligent contract by utilizing the difference variation interval;
and constructing the early warning information according to the early warning level and the difference variation value.
In order to solve the above problems, the present invention further provides a cross-chain interaction device for implementing audit data based on a blockchain, the device comprising:
the project audit record extraction module is used for extracting auditable block information from the pre-constructed public chain by utilizing the perception nodes of the pre-constructed user parallel chain; extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items;
The project audit record verification module is used for sending the project audit record to a relay chain of the public chain by using the sensing node, and verifying the validity of the project audit record by using the relay chain to obtain a legal audit record;
the difference variation value calculation module is used for extracting project audit data from the legal audit records and extracting a comparison audit data set of the auditable project from the public chain according to the project audit data; calculating a difference variation value of the project audit data and the comparison audit data set;
the audit result feedback module is used for judging whether the difference variation value is larger than a preset difference variation threshold value or not; if the difference variation value is not greater than the difference variation threshold value, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result; if the difference variation value is larger than the difference variation threshold, an audit abnormal record is constructed, the audit abnormal record is sent to the fusion node of the user parallel chain, and early warning information is constructed by utilizing the fusion node of the user parallel chain.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to implement the blockchain-based audit data cross-chain interaction method described above.
In order to solve the above problems, the present invention further provides a computer readable storage medium, where at least one instruction is stored, where the at least one instruction is executed by a processor in an electronic device to implement the blockchain-based audit data cross-chain interaction method described above.
Compared with the background art, the method comprises the following steps: the method mainly comprises the steps of calculating a difference change value of an existing comparison audit data set and an item audit record in a user parallel chain by using a block chain, determining an audit result of the auditable item in the user parallel chain according to the difference change value, firstly judging the auditable item, so that auditable block information can be extracted from the common public chain by using a perception node of the user parallel chain, then extracting the auditable item from the auditable block information, after the auditable item is obtained, extracting an item audit record of the auditable item from the user parallel chain according to the auditable item, when the item audit record passes legal verification, extracting the comparison audit data set of the auditable item from the common public chain according to the item audit data, then calculating the difference change value of the item data and the comparison audit data set, creating a result by judging whether the change value is larger than a preset difference threshold value, constructing an audit chain according to the difference change value is not larger than the preset difference change threshold value, and completing interaction and constructing the audit chain based on the difference record of the difference threshold value. Therefore, the blockchain-based audit data cross-chain interaction method, the blockchain-based audit data cross-chain interaction device, the electronic equipment and the computer readable storage medium can solve the problems of poor instantaneity and low flexibility of the current blockchain-based audit effect.
Drawings
FIG. 1 is a flowchart of a blockchain-based audit data cross-chain interaction method according to an embodiment of the present invention;
FIG. 2 is a functional block diagram of a cross-chain interaction device for implementing audit data based on blockchain according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device for implementing the blockchain-based audit data cross-chain interaction method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a blockchain-based audit data cross-chain interaction method. The execution subject of the blockchain-based audit data cross-chain interaction method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiments of the present application. In other words, the blockchain-based audit data cross-chain interaction method may be performed by software or hardware installed in a terminal device or a server device. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Example 1:
referring to fig. 1, a flowchart of a blockchain-based audit data cross-chain interaction method according to an embodiment of the present invention is shown. In this embodiment, the blockchain-based audit data cross-chain interaction method includes:
s1, extracting auditable block information from a pre-constructed common public chain by using a perception node of the pre-constructed user parallel chain.
The user parallel chain is a user-specific parallel chain, and can be used for transmission and storage of audit data of a user. The sensing node refers to a node for monitoring messages and collecting data in the user parallel chain, the sensing node can realize cross-chain interaction between the user parallel chain and the common shared chain, monitor the transaction or information on the common shared chain, convert the monitored transaction or information into a data format which can be processed by the user parallel chain, and then distribute the processed data to other nodes on the user parallel chain.
It can be understood that the consensus public chain refers to a public chain constructed based on a HashNet consensus mechanism, and the HashNet consensus mechanism adopts randomness and broadcasting to ensure the fairness and non-tamper property of the random weight of each node, so as to realize an efficient, rapid and safe blockchain consensus process.
Further, the auditable block information refers to information of an audit item that can accept an audit, and the audit item can include: a fund rolling budget project, a cash flow project, an asset and liability project, a performance index project, a tax finance project, and the like.
In the embodiment of the present invention, before the perceptual node using the pre-constructed user parallel chain extracts auditable block information from the pre-constructed public chain, the method further includes:
receiving an item audit request by using the relay link of the public chain;
extracting project audit line and audit project from the project audit request, and obtaining the auditable request frequency corresponding to the project audit line;
acquiring the current request frequency of the audit item, and judging whether the current request frequency is greater than or equal to the auditable request frequency;
if the current request frequency is not more than or equal to the auditable request frequency, returning to the step of receiving the project audit request by using the relay link of the common public chain;
if the current request frequency is greater than or equal to the auditable request frequency, auditable block information of the audit item is constructed.
It can be appreciated that the project audit request directs a user parallel chain to send an audit request to a relay chain of the common public chain, including: the amount of each item index in the audit item. For example: when the audit item in the item audit request is a funds rolling budget item, the item index may be: budget execution rate (Budget Implementation Efficiency), funds in place rate, funds execution rate, and individual subject amount variation. The budget execution rate refers to the in-place ratio of the budget funds of the last month, and the budget execution rate is = (actual expenditure funds/actual in-place funds) multiplied by 100%; the funds in place rate refers to the ratio of the funds raised in the last month to the planned raised funds; the rate of funds execution refers to the ratio of paid out funds to budgeted paid out funds, the single subject amount change refers to the amount change of budgeted subjects between this month and the last month, budgeted subjects can actually pay out funds, actually in place funds, budgeted paid out funds, budgeted in place funds, etc.
Further, the project audit line refers to a total amount of the budget department, for example: when the budget subjects are actual expenditure funds (50 ten thousand), actual in-place funds (60 ten thousand), budget expenditure funds (55 ten thousand) and budget in-place funds (55 ten thousand), the project audit limit is 220 ten thousand.
It can be understood that the auditable request frequency refers to the number of times that the parallel chains of the users send project audit requests to the common public chain, and because the audit related data on the parallel chains of the corresponding users are packaged and sent each time the audit requests are sent to the common public chain, the more the auditable request frequency is, the more the data obtained by the common public chain is, and the more accurate the audit on the parallel chains of the users is. Therefore, when the project audit line is larger, more auditable request frequencies are required, so that the audit accuracy is improved. For example: when the project audit limit is 100 ten thousand, the applicable frequency can be 1000 times; when the project audit limit is 200 ten thousand, the applicable frequency can be 2000 times.
It should be appreciated that the auditable block information refers to information about auditable items in the common public chain that reach an auditable request frequency, such as: when the auditable item is a funds rolling budget item, the auditable tile information may include: the information such as the current request frequency, the auditable project name, the project audit limit and the like of the auditable project.
S2, extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items.
As can be appreciated, the project audit record refers to a relevant audit record for the auditable project, such as: when the auditable item is a funds rolling budget item, the item audit record may be a corresponding budget execution rate, funds in place rate, funds execution rate, individual subject amount variation, etc. in the user parallel chain.
In the embodiment of the invention, the extracting the project audit record of the auditable project in the user parallel chain according to the auditable project comprises the following steps:
extracting an associated index data set from the user parallel chain according to the auditable item;
acquiring a promise value of each associated index in the associated index data set;
acquiring an audit record ID and a time stamp, and constructing a record signature according to the audit record ID by utilizing a private key of the user parallel chain;
and constructing the project audit record according to the associated index data set, the promise value, the audit record ID, the timestamp and the record signature.
Further, the project audit record is as follows:
Tx=<ID,Projects,Cmts,TS,sign(ID)>
Where Tx represents the project audit record, ID represents the audit record ID, projects represents the set of associated metrics, cms represents the set of commitment values, TS represents the timestamp, sign (ID) represents the record signature.
It can be understood that the audit record ID is a unique identifier of a project audit request sent by the parallel user chain to the public chain, and the record signature refers to a signature generated by the parallel user chain by using its own private key, and is used for identifying the user identity of the parallel user chain.
And S3, sending the project audit record to a relay chain of the public link by using the sensing node, and performing validity verification on the project audit record by using the relay chain to obtain a legal audit record.
The relay chain of the common public chain can verify the validity of the data information sent by the parallel chain of the user by using a common mechanism, and when the data information is legal, the node broadcasts the received data information to other nodes. This process includes a number of algorithms and mechanisms, such as: workload proof, rights proof, and the like.
And S4, extracting project audit data from the legal audit record, and extracting a comparison audit data set of the auditable project from the public chain according to the project audit data.
Further, the project audit data refers to audit data corresponding to the auditable project. The control audit dataset refers to all audit data in the auditable item relating to the auditable item, such as: when the auditable item is a fund rolling budget item, the item audit data may be a budget execution rate, a fund in-place rate, a fund execution rate, a single subject amount change and the like in the parallel chain of users, and the comparison audit data set may be a set of related item audit data corresponding to the auditable item, which is sent to the common public chain by other parallel chains of users.
In the embodiment of the present invention, the extracting, according to the project audit data, a comparison audit data set of the auditable project in the public chain includes:
acquiring a project audit interval to which the project audit data belongs;
and extracting a comparison audit data set corresponding to the project audit interval in the consensus public chain according to the project audit interval to which the project audit data belongs and auditable projects.
It can be understood that the project audit interval refers to a range interval defined according to the size of the project audit line, and each project audit interval has a corresponding comparison audit data set. For example: when the project audit interval is 100-110 ten thousand, the comparison audit data set is project audit data corresponding to a user parallel chain with all project audit lines between 100-110 ten thousand in the common public chain.
S5, calculating a difference variation value of the project audit data and the comparison audit data set.
Further, the variance value refers to a variance value of the project audit data from the control audit data set. The larger the variance value of the variance is, the larger the variance between the project audit data and the control audit data set is, which indicates that the project audit data is abnormal.
In the embodiment of the present invention, the calculating a variance value of the difference between the project audit data and the control audit data set includes:
sequentially extracting to-be-examined items and index data sets corresponding to the to-be-examined items from the item audit data;
sequentially extracting the comparison audit items corresponding to the to-be-audited items from the comparison audit data set, and extracting the index data set corresponding to the comparison audit items;
and calculating the difference variation value by utilizing a pre-constructed difference variation value calculation formula according to the index data set corresponding to the project to be checked and the index data set corresponding to the comparison audit project.
In the embodiment of the present invention, the difference variation value calculation formula is as follows:
wherein D represents a variance of difference, n 1 Indicating the total number of item indexes in the auditable item, i indicating the index number, k of the item index in the auditable item i Weights, s, representing the index of the ith item in auditable items i Index data representing an ith item index of auditable items in the item audit data, S i Represent a control trialAnd counting index data corresponding to the ith item index in the data set.
In an interpretable manner, when the auditable item is a funds scrolling budget item, the item index may be: budget execution rate, funds in place rate, funds execution rate, and individual subject amount variation.
S6, judging whether the difference variation value is larger than a preset difference variation threshold value.
The difference change threshold value is the maximum allowable value of the difference change value, and each item audit line has a corresponding difference change threshold value, and the larger the item audit line is, the smaller the difference change threshold value is, the larger the item audit line is, the greater the importance of audit is indicated, so that the limit of audit is higher.
In the embodiment of the present invention, before the determining whether the variance variation value is greater than a preset variance variation threshold, the method further includes:
defining a project audit line interval set, and constructing a difference change threshold corresponding to each project audit line interval in the project audit line interval set;
And constructing a difference change threshold comparison table according to the difference change threshold corresponding to the project audit limit interval.
The difference change threshold value comparison can be explained to be a comparison table constructed according to the corresponding relation between the project audit limit interval and the difference change threshold value.
And if the difference variation value is not greater than the difference variation threshold, executing S7, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result.
And when the difference variation value is not greater than the difference variation threshold value, generating an audit normal result through audit.
And if the difference variation value is larger than the difference variation threshold, executing S8, constructing an audit abnormal record, sending the audit abnormal record to the fusion node of the user parallel chain, constructing early warning information by utilizing the fusion node of the user parallel chain, and completing cross-chain interaction of audit data based on a block chain.
In the embodiment of the present invention, the construction of the early warning information by using the fusion node of the user parallel chain includes:
acquiring a difference variation interval to which the difference variation value belongs;
Inquiring the early warning level in a pre-constructed intelligent contract by utilizing the difference variation interval;
and constructing the early warning information according to the early warning level and the difference variation value.
Further, the audit anomaly record refers to information such as a difference change value, a difference change threshold value, an auditable project, a project audit record and the like.
It can be explained that, when the difference variation value is larger, the abnormal situation of the user parallel chain is more serious, so that different difference variation values should correspond to different early warning levels.
Compared with the background art, the method comprises the following steps: the method mainly comprises the steps of calculating a difference change value of an existing comparison audit data set and an item audit record in a user parallel chain by using a block chain, determining an audit result of the auditable item in the user parallel chain according to the difference change value, firstly judging the auditable item, so that auditable block information can be extracted from the common public chain by using a perception node of the user parallel chain, then extracting the auditable item from the auditable block information, after the auditable item is obtained, extracting an item audit record of the auditable item from the user parallel chain according to the auditable item, when the item audit record passes legal verification, extracting the comparison audit data set of the auditable item from the common public chain according to the item audit data, then calculating the difference change value of the item data and the comparison audit data set, creating a result by judging whether the change value is larger than a preset difference threshold value, constructing an audit chain according to the difference change value is not larger than the preset difference change threshold value, and completing interaction and constructing the audit chain based on the difference record of the difference threshold value. Therefore, the blockchain-based audit data cross-chain interaction method, the blockchain-based audit data cross-chain interaction device, the electronic equipment and the computer readable storage medium can solve the problems of poor instantaneity and low flexibility of the current blockchain-based audit effect.
Example 2:
FIG. 2 is a functional block diagram of a cross-chain interaction device for implementing audit data based on blockchain according to an embodiment of the present invention.
The cross-chain interaction device 100 for realizing audit data based on a blockchain can be installed in electronic equipment. According to the implemented functions, the blockchain-based cross-chain interaction device 100 for implementing audit data may include a project audit record extraction module 101, a project audit record verification module 102, a variance calculation module 103, and an audit result feedback module 104. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
The project audit record extraction module 101 is configured to extract auditable block information from the pre-constructed public chain by using a sensing node of the pre-constructed user parallel chain; extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items;
the project audit record verification module 102 is configured to send the project audit record to a relay chain of the public-public chain by using the sensing node, and perform validity verification on the project audit record by using the relay chain to obtain a legal audit record;
The difference variation value calculation module 103 is configured to extract project audit data from the legal audit record, and extract a comparison audit data set of the auditable project from the public chain according to the project audit data; calculating a difference variation value of the project audit data and the comparison audit data set;
the audit result feedback module 104 is configured to determine whether the difference variation value is greater than a preset difference variation threshold; if the difference variation value is not greater than the difference variation threshold value, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result; if the difference variation value is larger than the difference variation threshold, an audit abnormal record is constructed, the audit abnormal record is sent to the fusion node of the user parallel chain, and early warning information is constructed by utilizing the fusion node of the user parallel chain.
In detail, the modules in the blockchain-based audit data cross-chain interaction device 100 in the embodiment of the present invention adopt the same technical means as the blockchain-based audit data cross-chain interaction method described in fig. 1 and can generate the same technical effects when in use, and are not described here again.
Example 3:
fig. 3 is a schematic structural diagram of an electronic device for implementing a blockchain-based audit data cross-chain interaction method according to an embodiment of the present invention.
The electronic device 1 may include a processor 10, a memory 11, a bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a cross-chain interactive program that implements audit data based on blockchain.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as code of a cross-chain interactive program for implementing audit data based on a blockchain, but also to temporarily store data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, executes or executes programs or modules stored in the memory 11 (e.g., a cross-chain interactive program for implementing audit data based on a blockchain, etc.), and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
The bus may be a peripheral component interconnect express (peripheral component interconnect, PCI) bus, or an extended industrial express (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 3 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a comparable wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The blockchain-based implementation audit data cross-chain interactive program stored by the memory 11 in the electronic device 1 is a combination of instructions that, when executed in the processor 10, may implement:
extracting auditable block information from the pre-constructed common public chain by using a perception node of the pre-constructed user parallel chain;
extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items;
The project audit record is sent to a relay chain of the public chain by using the sensing node, and validity verification is carried out on the project audit record by using the relay chain to obtain a legal audit record;
extracting project audit data from the legal audit record, and extracting a comparison audit data set of the auditable project from the public chain according to the project audit data;
calculating a difference variation value of the project audit data and the comparison audit data set;
judging whether the difference variation value is larger than a preset difference variation threshold value or not;
if the difference variation value is not greater than the difference variation threshold value, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result;
if the difference variation value is larger than the difference variation threshold, an audit abnormal record is constructed, the audit abnormal record is sent to the fusion node of the user parallel chain, early warning information is constructed by utilizing the fusion node of the user parallel chain, and cross-chain interaction of audit data based on block chains is completed.
Specifically, the specific implementation method of the above instruction by the processor 10 may refer to descriptions of related steps in the corresponding embodiments of fig. 1 to 2, which are not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
extracting auditable block information from the pre-constructed common public chain by using a perception node of the pre-constructed user parallel chain;
extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items;
the project audit record is sent to a relay chain of the public chain by using the sensing node, and validity verification is carried out on the project audit record by using the relay chain to obtain a legal audit record;
Extracting project audit data from the legal audit record, and extracting a comparison audit data set of the auditable project from the public chain according to the project audit data;
calculating a difference variation value of the project audit data and the comparison audit data set;
judging whether the difference variation value is larger than a preset difference variation threshold value or not;
if the difference variation value is not greater than the difference variation threshold value, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result;
if the difference variation value is larger than the difference variation threshold, an audit abnormal record is constructed, the audit abnormal record is sent to the fusion node of the user parallel chain, early warning information is constructed by utilizing the fusion node of the user parallel chain, and cross-chain interaction of audit data based on block chains is completed.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. An audit data cross-chain interaction method based on a blockchain is characterized by comprising the following steps:
extracting auditable block information from the pre-constructed common public chain by using a perception node of the pre-constructed user parallel chain;
extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items;
the project audit record is sent to a relay chain of the public chain by using the sensing node, and validity verification is carried out on the project audit record by using the relay chain to obtain a legal audit record;
extracting project audit data from the legal audit record, and extracting a comparison audit data set of the auditable project from the public chain according to the project audit data;
calculating a difference variation value of the project audit data and the comparison audit data set;
judging whether the difference variation value is larger than a preset difference variation threshold value or not;
if the difference variation value is not greater than the difference variation threshold value, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result;
If the difference variation value is larger than the difference variation threshold, an audit abnormal record is constructed, the audit abnormal record is sent to the fusion node of the user parallel chain, early warning information is constructed by utilizing the fusion node of the user parallel chain, and cross-chain interaction of audit data based on block chains is completed.
2. The audit data cross-chain interaction method according to claim 1, wherein the extracting an item audit record of an auditable item in the user parallel chain according to the auditable item comprises:
extracting an associated index data set from the user parallel chain according to the auditable item;
acquiring a promise value of each associated index in the associated index data set;
acquiring an audit record ID and a time stamp, and constructing a record signature according to the audit record ID by utilizing a private key of the user parallel chain;
and constructing the project audit record according to the associated index data set, the promise value, the audit record ID, the timestamp and the record signature.
3. The audit data cross-chain interaction method according to claim 2, wherein the project audit record is as follows:
Tx=<ID,Projects,Cmts,TS,sign(ID)>
where Tx represents the project audit record, ID represents the audit record ID, projects represents the set of associated metrics, cms represents the set of commitment values, TS represents the timestamp, sign (ID) represents the record signature.
4. The audit data cross-chain interaction method according to claim 1, wherein the sensing node utilizing the pre-constructed user parallel chain extracts auditable block information from the pre-constructed common chain, the method further comprising:
receiving an item audit request by using the relay link of the public chain;
extracting project audit line and audit project from the project audit request, and obtaining the auditable request frequency corresponding to the project audit line;
acquiring the current request frequency of the audit item, and judging whether the current request frequency is greater than or equal to the auditable request frequency;
if the current request frequency is not more than or equal to the auditable request frequency, returning to the step of receiving the project audit request by using the relay link of the common public chain;
if the current request frequency is greater than or equal to the auditable request frequency, auditable block information of the audit item is constructed.
5. The audit data cross-chain interaction method according to claim 2, wherein the extracting the comparison audit data set of the auditable item in the common public chain according to the item audit data comprises:
Acquiring a project audit interval to which the project audit data belongs;
and extracting a comparison audit data set corresponding to the project audit interval in the consensus public chain according to the project audit interval to which the project audit data belongs and auditable projects.
6. The audit data cross-chain interaction method according to claim 5, wherein the calculating a variance value of the project audit data from the control audit data set comprises:
sequentially extracting to-be-examined items and index data sets corresponding to the to-be-examined items from the item audit data;
sequentially extracting the comparison audit items corresponding to the to-be-audited items from the comparison audit data set, and extracting the index data set corresponding to the comparison audit items;
and calculating the difference variation value by utilizing a pre-constructed difference variation value calculation formula according to the index data set corresponding to the project to be checked and the index data set corresponding to the comparison audit project.
7. The audit data cross-chain interaction method according to claim 6, wherein the variance value calculation formula is as follows:
wherein D represents a variance of difference, n 1 Indicating the total number of item indexes in the auditable item, i indicating the index number, k of the item index in the auditable item i Weights, s, representing the index of the ith item in auditable items i Index data representing an ith item index of auditable items in the item audit data, S i And indicating index data corresponding to the ith item index in the comparison audit data set.
8. The audit data cross-chain interaction method according to claim 6, wherein prior to said determining whether the variance value is greater than a preset variance threshold, the method further comprises:
defining a project audit line interval set, and constructing a difference change threshold corresponding to each project audit line interval in the project audit line interval set;
and constructing a difference change threshold comparison table according to the difference change threshold corresponding to the project audit limit interval.
9. The audit data cross-chain interaction method according to claim 1, wherein the constructing early warning information by using the fusion node of the user parallel chain comprises:
acquiring a difference variation interval to which the difference variation value belongs;
inquiring the early warning level in a pre-constructed intelligent contract by utilizing the difference variation interval;
and constructing the early warning information according to the early warning level and the difference variation value.
10. A blockchain-based audit data cross-chain interaction device, the device comprising:
the project audit record extraction module is used for extracting auditable block information from the pre-constructed public chain by utilizing the perception nodes of the pre-constructed user parallel chain; extracting auditable items from the auditable block information, and extracting item audit records of the auditable items in the user parallel chain according to the auditable items;
the project audit record verification module is used for sending the project audit record to a relay chain of the public chain by using the sensing node, and verifying the validity of the project audit record by using the relay chain to obtain a legal audit record;
the difference variation value calculation module is used for extracting project audit data from the legal audit records and extracting a comparison audit data set of the auditable project from the public chain according to the project audit data; calculating a difference variation value of the project audit data and the comparison audit data set;
the audit result feedback module is used for judging whether the difference variation value is larger than a preset difference variation threshold value or not; if the difference variation value is not greater than the difference variation threshold value, constructing an audit normal record, and sending the audit normal record to a fusion node of the user parallel chain to obtain an audit normal result; if the difference variation value is larger than the difference variation threshold, an audit abnormal record is constructed, the audit abnormal record is sent to the fusion node of the user parallel chain, and early warning information is constructed by utilizing the fusion node of the user parallel chain.
CN202310516772.XA 2023-05-09 2023-05-09 Audit data cross-chain interaction method and device based on blockchain Active CN116542795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310516772.XA CN116542795B (en) 2023-05-09 2023-05-09 Audit data cross-chain interaction method and device based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310516772.XA CN116542795B (en) 2023-05-09 2023-05-09 Audit data cross-chain interaction method and device based on blockchain

Publications (2)

Publication Number Publication Date
CN116542795A true CN116542795A (en) 2023-08-04
CN116542795B CN116542795B (en) 2024-02-02

Family

ID=87450135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310516772.XA Active CN116542795B (en) 2023-05-09 2023-05-09 Audit data cross-chain interaction method and device based on blockchain

Country Status (1)

Country Link
CN (1) CN116542795B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345387A (en) * 2018-09-04 2019-02-15 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, across chain communication device and storage medium
CN111489143A (en) * 2020-04-08 2020-08-04 中央财经大学 Auditable encrypted digital currency supervision method based on alliance side chain
CN112861190A (en) * 2021-04-23 2021-05-28 腾讯科技(深圳)有限公司 Data cross-chain cooperation method, system and device
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
CN114301912A (en) * 2021-12-23 2022-04-08 支付宝(杭州)信息技术有限公司 Information interaction method and device based on block chain
CN114374699A (en) * 2021-12-31 2022-04-19 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and cross-chain interaction auditing method
CN114564757A (en) * 2022-03-04 2022-05-31 中信银行股份有限公司 Data auditing method, device and equipment of block chain and readable storage medium
WO2022141059A1 (en) * 2020-12-29 2022-07-07 合肥达朴汇联科技有限公司 Method and system for cross-chain exchange of blockchain information, electronic device, and storage medium
CN115310920A (en) * 2021-05-08 2022-11-08 腾讯科技(深圳)有限公司 Management method, device and storage medium for cross-chain interoperation management based on governance chain
CN115393079A (en) * 2022-07-21 2022-11-25 暨南大学 Cross-chain transaction method, equipment and medium capable of randomizing and tracing audit

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345387A (en) * 2018-09-04 2019-02-15 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, across chain communication device and storage medium
CN111489143A (en) * 2020-04-08 2020-08-04 中央财经大学 Auditable encrypted digital currency supervision method based on alliance side chain
WO2022141059A1 (en) * 2020-12-29 2022-07-07 合肥达朴汇联科技有限公司 Method and system for cross-chain exchange of blockchain information, electronic device, and storage medium
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
CN112861190A (en) * 2021-04-23 2021-05-28 腾讯科技(深圳)有限公司 Data cross-chain cooperation method, system and device
CN115310920A (en) * 2021-05-08 2022-11-08 腾讯科技(深圳)有限公司 Management method, device and storage medium for cross-chain interoperation management based on governance chain
CN114301912A (en) * 2021-12-23 2022-04-08 支付宝(杭州)信息技术有限公司 Information interaction method and device based on block chain
CN114374699A (en) * 2021-12-31 2022-04-19 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and cross-chain interaction auditing method
CN114564757A (en) * 2022-03-04 2022-05-31 中信银行股份有限公司 Data auditing method, device and equipment of block chain and readable storage medium
CN115393079A (en) * 2022-07-21 2022-11-25 暨南大学 Cross-chain transaction method, equipment and medium capable of randomizing and tracing audit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李冰琨;: "区块链技术在审计领域的应用研究", 商业会计, no. 13 *
欧翔: "基于区块链的不动产电子证照应用系统建设研究", 现代信息科技, vol. 6, no. 2 *

Also Published As

Publication number Publication date
CN116542795B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN112789824B (en) Block chain system, information transmission method, system, device and computer medium
CN111786950B (en) Network security monitoring method, device, equipment and medium based on situation awareness
CN111612600B (en) Block chain auction method, equipment, storage medium and block chain system
WO2021254027A1 (en) Method and apparatus for identifying suspicious community, and storage medium and computer device
CN110729028A (en) Health data processing method and device, electronic equipment and storage medium
CN110909383A (en) Electronic invoice management method and device, electronic equipment and storage medium
CN112769548A (en) Block chain numerical information transmission method, system, device and computer medium
WO2017030517A1 (en) Safe e-document synchronisation, analysis and management system
CN115174148B (en) Cloud service management method and artificial intelligent platform for cloud computing and information security
CN114127771A (en) System and method for proof of viewing via blockchain
CN116910816B (en) Multiparty asset collaborative management method and device for improving privacy protection
CN109636627B (en) Insurance product management method, device, medium and electronic equipment based on block chain
CN112598502A (en) Evidence obtaining method, device, equipment and storage medium
CN116542795B (en) Audit data cross-chain interaction method and device based on blockchain
CN111881147A (en) Processing method and device of computing task, storage medium and processor
CN113379415B (en) Block chain system, information processing method, system, device and computer medium
CN113055178B (en) Block chain system, and method, system, device and medium for transmitting numerical information
CN114331460A (en) Method, device, equipment and storage medium for confirming fund transaction based on block chain
CN114372892A (en) Payment data monitoring method, device, equipment and medium
CN109919767B (en) Transaction risk management method, device and equipment
CN116707835B (en) Method and system for realizing patient information interaction based on blockchain
CN113657546B (en) Information classification method, device, electronic equipment and readable storage medium
CN116739611B (en) Customer information tracking management method, device, equipment and medium
CN113055177B (en) Block chain system, and method, system, device and medium for transmitting numerical information
CN116261139B (en) Online data security transmission method and system based on 5G message and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant