CN113570370A - UTXO-based block chain transaction supervision method and device and readable storage medium - Google Patents

UTXO-based block chain transaction supervision method and device and readable storage medium Download PDF

Info

Publication number
CN113570370A
CN113570370A CN202110866452.8A CN202110866452A CN113570370A CN 113570370 A CN113570370 A CN 113570370A CN 202110866452 A CN202110866452 A CN 202110866452A CN 113570370 A CN113570370 A CN 113570370A
Authority
CN
China
Prior art keywords
transaction data
transaction
supervision
utxo
expenditure
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
CN202110866452.8A
Other languages
Chinese (zh)
Other versions
CN113570370B (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.)
Chengdu Quality Starker Technology Co Ltd
Original Assignee
Chengdu Quality Starker Technology 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 Chengdu Quality Starker Technology Co Ltd filed Critical Chengdu Quality Starker Technology Co Ltd
Priority to CN202110866452.8A priority Critical patent/CN113570370B/en
Publication of CN113570370A publication Critical patent/CN113570370A/en
Application granted granted Critical
Publication of CN113570370B publication Critical patent/CN113570370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to the technical field of video content analysis, in particular to a block chain transaction supervision method, a device, equipment and a readable storage medium based on UTXO (unified transform and encryption algorithm). the method is applied to any first supervision node in a block chain network and used for receiving first encrypted transaction data submitted by subordinate transaction expenditure nodes; decrypting the first encrypted transaction data to obtain first transaction data; detecting a balance of the first transaction data and validity of a signature in the first transaction data; and if the balance and the signature of the first transaction data are normal, uploading the first encrypted transaction data to a blockchain network.

Description

UTXO-based block chain transaction supervision method and device and readable storage medium
Technical Field
The invention relates to the technical field of video content analysis, in particular to a block chain transaction supervision method, a block chain transaction supervision device, a block chain transaction supervision equipment and a readable storage medium based on UTXO.
Background
The block chain technology can be applied to the financial field, and the block chain technology realizes a data tamper-proof mechanism, so that the block chain technology is utilized to carry out business, and the trust crisis among business participants can be solved.
The financial field is a very strict field, but the existing financial transaction system established based on the blockchain network lacks an effective supervision method.
Disclosure of Invention
The invention aims to provide a block chain transaction supervision method, a block chain transaction supervision device, a block chain transaction supervision equipment and a readable storage medium based on a UTXO (unified transform and Crystal XO) so as to improve the problems.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in one aspect, an embodiment of the present application provides a method for supervising a blockchain transaction based on an UTXO, where the method is applied to any first supervising node in a blockchain network, where the first supervising node is a parent node common to both parties of the transaction, and includes:
receiving first encrypted transaction data submitted by subordinate transaction expenditure nodes;
decrypting the first encrypted transaction data to obtain first transaction data, wherein the first transaction data reflects receipt and payment details of the transaction;
detecting a balance of the first transaction data and validity of a signature in the first transaction data;
and if the balance and signature of the first transaction data are normal, uploading the first encrypted transaction data to a block chain network.
Optionally, detecting the validity of the balance of the first transaction data comprises:
calling the first transaction data, wherein the first transaction data comprises expenditure UTXO and two income side data, and the income side data reflects collection information of a collection side;
checking the validity of the expenditure UTXO, and if the expenditure UTXO is valid, detecting the balance of income and income data.
Optionally, the detecting the balance of revenue data if the expenditure UTXO is valid includes:
detecting the denomination of the expenditure UTXO to obtain the expenditure denomination;
calling the two income party data, wherein the income party data comprises income accounts and to-be-collected denominations;
sequentially checking the effectiveness of each income account, and counting the sum of the two to-be-collected denominations to obtain income denominations if the two income accounts are both effective accounts;
comparing whether the income denomination and the expenditure denomination are the same;
and if the income denomination is the same as the expenditure denomination, determining that the balance of the income and expenditure of the first transaction data is in a balanced state.
Optionally, detecting the validity of the signature in the first transaction data comprises:
retrieving the first transaction data, the first transaction data comprising an expenditure UTXO;
and checking whether the signature of the expenditure UTXO is valid, and if the signature of the expenditure UTXO is a valid signature, judging that the signature of the transaction data is a valid signature.
In a second aspect, an embodiment of the present application provides a method for supervising a blockchain transaction based on a UTXO, where the method is applied to any second supervising node in a blockchain network, where the second supervising node is configured to monitor whether or not the first transaction data meets a supervising rule, and the method includes:
acquiring a supervision rule, wherein the supervision rule is a character for specifying a transaction mode;
generating a first intelligent contract according to the supervision rule;
uploading the first intelligent contract into the blockchain network, wherein the first intelligent contract is used for triggering the blockchain network to detect whether the first transaction data meets the supervision rule, and if the first transaction data meets the supervision rule, executing consensus voting operation;
acquiring second encrypted transaction data on the blockchain network, wherein the second encrypted transaction data is first encrypted transaction data which is agreed and executed on the blockchain network;
decrypting the second encrypted transaction data to obtain second transaction data;
and storing the second transaction data, wherein the second transaction data reflects the completed transaction data.
In a third aspect, an embodiment of the present application provides a block chain transaction supervision apparatus based on an UTXO, where the apparatus is applied to any first supervision node in a block chain network, where the first supervision node is a common parent node of both parties to a transaction, and includes:
the first receiving module is used for receiving first encrypted transaction data submitted by subordinate transaction expenditure nodes;
the first calculation module is used for decrypting the first encrypted transaction data to obtain first transaction data, and the first transaction data reflects receipt and payment details of the transaction;
a second calculation module for detecting a balance of the first transaction data and a validity of the signature in the first transaction data;
and the third calculation module is used for uploading the first encrypted transaction data to a block chain network if the balance and the signature of the first transaction data are normal.
In a third aspect, an embodiment of the present application provides a UTXO-based blockchain transaction monitoring apparatus, where the apparatus is applied to any second monitoring node in a blockchain network, where the second monitoring node is configured to monitor whether the first transaction data meets a monitoring rule, and the apparatus includes:
the first acquisition module is used for acquiring a supervision rule, wherein the supervision rule is a character for specifying a transaction mode;
the fourth calculation module is used for generating a first intelligent contract according to the supervision rule;
a fifth calculation module, configured to upload the first intelligent contract to the blockchain network, where the first intelligent contract is used to trigger the blockchain network to detect whether the first transaction data meets the supervision rule, and if the first transaction data meets the supervision rule, perform consensus voting operation;
a sixth calculation module, configured to obtain second encrypted transaction data on the blockchain network, where the second encrypted transaction data is the first encrypted transaction data that has been agreed and executed on the blockchain network;
the seventh calculation module is used for decrypting the second encrypted transaction data to obtain second transaction data;
and the first storage module is used for storing the second transaction data, and the second transaction data reflects the completed transaction data.
In a fourth aspect, embodiments of the present application provide a UTXO-based blockchain transaction policing device, which includes a memory and a processor. The memory is used for storing a computer program; the processor is used for realizing the steps of the UTXO-based blockchain transaction supervision method when executing the computer program.
In a fifth aspect, the present application provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the UTXO-based blockchain transaction supervision method described above.
The invention has the beneficial effects that:
according to the invention, the first supervision node for monitoring the balance of the first transaction data and the signature effectiveness and the second supervision node for monitoring whether the first transaction data meets the supervision rules are arranged in the blockchain network, so that the first transaction data is supervised in an all-round way.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a block chain transaction supervision method based on UTXO according to an embodiment of the present invention;
fig. 2-1 is a schematic structural diagram a of a block chain transaction supervision apparatus based on UTXO according to an embodiment of the present invention;
fig. 2-2 is a schematic structural diagram b of a UTXO-based blockchain transaction monitoring system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a block chain transaction supervision apparatus based on UTXO according to an embodiment of the present invention;
fig. 4 is a node hierarchy diagram in a blockchain network according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers or letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides a method for supervising a blockchain transaction based on a UTXO, which includes steps S1, S2, S3 and S4.
The method comprises the following steps that S1, first encrypted transaction data submitted by subordinate transaction expenditure nodes are received;
which comprises the following steps:
s11, a subordinate transaction expenditure node firstly extracts an expenditure UTXO from an account of the subordinate transaction expenditure node, then edits payee information, and further generates a plurality of income party data (two income party data are used for explaining the embodiment), wherein one income party data corresponds to one payee user;
s12, the subordinate transaction expenditure nodes respectively encrypt each income party data by using a HIBE hierarchical identity-based encryption mode, so that each income party data can only be decrypted by each node on a collection path corresponding to each income party data, and the rest nodes in the block chain network cannot decrypt the income party data, so that the privacy of the transaction is guaranteed, wherein the collection path is a hierarchical progressive path from a first supervision node to a collection node;
step S13, the subordinate transaction expenditure node encrypts the expenditure UTXO by using a HIBE hierarchical identity-based encryption mode, so that the expenditure UTXO can be decrypted only by each node on an expenditure path, and meanwhile, the following description is that: the execution parts of the step S12 and the step S13 are in sequence at the subordinate transaction expenditure node, wherein the expenditure path is a hierarchical progressive line reflecting the subordinate transaction expenditure node to the first supervision node;
for example, in step S12 and step S13, as shown in fig. 4, it is assumed that the hosting organization 1 needs to pay 2 units to the hosting organization 4, at this time, the hosting organization a is a common parent node of the hosting organizations 1 and 4, the collection path in step S12 is hosting organization a-hosting organization b-hosting organization 4, and the payment path in step S13 is hosting organization 1-hosting organization a.
Through steps S12 and S13, the subordinate transaction expenditure node generates a first encrypted transaction data;
s14, the subordinate transaction expenditure node performs corresponding signature operation on the generated first encrypted transaction data, wherein the signature corresponding to the subordinate transaction expenditure node is included in the first encrypted transaction data;
s15, the subordinate transaction expenditure node sends the first encrypted transaction data to an upper node corresponding to the first encrypted transaction data;
s16, the corresponding upper-layer node checks the validity of the signature of the subordinate transaction expenditure node, if the signature is valid, the signature is continued, and the corresponding signature is added to the first encrypted transaction data;
and S17, the corresponding upper node sends first encrypted transaction data to a higher upper node corresponding to the corresponding upper node according to the expenditure path, and in the same way, the first encrypted transaction data is verified, signed and uploaded layer by layer and finally sent to the first supervision node.
S2, the first supervision node decrypts the first encrypted transaction data to obtain first transaction data, and the first transaction data reflects receipt and payment details of the transaction.
Step S3, the first supervision node detects the balance of the first transaction data and the validity of the signature in the first transaction data, wherein the step of detecting the balance of the first transaction data specifically comprises the following steps:
step S31, calling the first transaction data, wherein the first transaction data comprises expenditure UTXO and two income party data, and the income party data reflects collection information of a collection party;
step S32, checking the validity of the expenditure UTXO (all valid UTXOs are included in the block chain network), and if the expenditure UTXO is valid, detecting the balance of income data, wherein the specific operation step of detecting the balance of income data comprises the following steps:
s321, detecting the denomination of the expenditure UTXO to obtain the expenditure denomination;
step S322, calling the two income party data, wherein the income party data comprises income accounts and to-be-collected denominations;
step S323, the effectiveness of each income account is sequentially checked, and if the two income accounts are both effective accounts, the sum of the two to-be-collected denominations is counted to obtain income denominations;
step S324, comparing whether the income denomination is the same as the expenditure denomination;
step S325, if the income denomination is the same as the expenditure denomination, determining that the balance of the income and expenditure of the first transaction data is in a balance state;
in step S3, the specific step of detecting the validity of the signature of the first transaction data includes:
s33, calling the first transaction data, wherein the first transaction data comprises a cost UTXO;
and S34, checking whether the signature of the expenditure UTXO is valid, and if the signature of the UTXO is valid, judging that the signature of the transaction data is a valid signature.
And S4, if the balance and signature of the first transaction data are normal, the first supervision node signs the first transaction data and uploads the first encrypted transaction data to a block chain network.
In one aspect, it should be noted that in step S32, the validity of the payout UTXO is checked, and if the payout UTXO is invalid (i.e., the UTXO is not present in the blockchain network or is already in use), the first supervisory node sends a first transaction failure report to the subordinate transaction payout node;
after receiving the first transaction failure report, the subordinate transaction expenditure node firstly detects the validity of the expenditure UTXO by itself, starts a system internal self-checking program after confirming invalidity, detects relevant information of the invalid UTXO, such as the user account number, the time for storing the account number and the like, and informs relevant business personnel to contact a customer; and backing up the first transaction data; meanwhile, a failure transaction report is generated and sent to each node on the expenditure path, the failure transaction report is used for announcing all nodes on the expenditure path, the subordinate transaction expenditure nodes have cheated transactions together, and all nodes on the expenditure path can record a first transaction failure report; once the submitted transaction fails, the system considers that the transaction is a fraudulent transaction, specific information of the failed transaction needs to be reflected to relevant organizations, and meanwhile, a system vulnerability causing establishment of the fraudulent transaction is searched for and used as a backup, so that later-stage updating of the system is facilitated;
meanwhile, the first supervision node sends the first transaction failure report to a second supervision node (an organization node of a government supervision layer), and the second supervision node gives corresponding penalties to the users under the subordinate transaction expenditure nodes or the subordinate transaction expenditure nodes according to information such as the type and the amount of the transaction in the first transaction failure report.
In a second aspect, it should be noted that, in step S325, if the income denomination is not the same as the expenditure denomination, the first supervising node sends a second transaction failure report to the subordinate transaction expenditure node;
after receiving the second transaction failure report, the subordinate transaction expenditure node firstly detects the validity of the expenditure UTXO by itself, starts a system internal self-checking program after confirming the invalidity, detects the relevant information of the invalid UTXO, such as the user account number, the time for storing the account number and the like, and informs relevant business personnel to contact the customer; and backing up the first transaction data; meanwhile, a failure transaction report is generated and sent to each node on the expenditure path, the failure transaction report is used for announcing all nodes on the expenditure path, the subordinate transaction expenditure nodes have cheated transactions together, and all nodes on the expenditure path can record a second transaction failure report; once the submitted transaction fails, the system considers that the transaction is a fraudulent transaction, specific information of the failed transaction needs to be reflected to relevant organizations, and meanwhile, a system vulnerability causing establishment of the fraudulent transaction is searched for and used as a backup, so that later-stage updating of the system is facilitated;
meanwhile, the first supervision node sends the second transaction failure report to a second supervision node (an organization node of a government supervision layer), and the second supervision node gives corresponding penalties to the users under the subordinate transaction expenditure nodes or the subordinate transaction expenditure nodes according to the information such as the type and the amount of the transaction in the second transaction failure report.
In a third aspect, it should be noted that in step S34, it is checked whether the signature of the expenditure UTXO is valid, and if the signature is invalid, the first supervising node sends a third transaction failure report to the subordinate transaction expenditure node;
after receiving the third transaction failure report, the subordinate transaction expenditure node firstly detects the validity of the expenditure UTXO by itself, starts a system internal self-checking program after confirming the invalidity, detects the relevant information of the invalid UTXO, such as the user account number, the time for storing the account number and the like, and informs relevant business personnel to contact the customer; and backing up the first transaction data; meanwhile, a failure transaction report is generated and sent to each node on the expenditure path, the failure transaction report is used for announcing all nodes on the expenditure path, the subordinate transaction expenditure nodes have cheated transactions together, and all nodes on the expenditure path can record a third transaction failure report; once the submitted transaction fails, the system considers that the transaction is a fraudulent transaction, specific information of the failed transaction needs to be reflected to relevant organizations, and meanwhile, a system vulnerability causing establishment of the fraudulent transaction is searched for and used as a backup, so that later-stage updating of the system is facilitated;
meanwhile, the first supervision node sends the third transaction failure report to a second supervision node (an organization node of a government supervision layer), and the second supervision node gives corresponding penalties to the users under the subordinate transaction expenditure nodes or the subordinate transaction expenditure nodes according to the information such as the type and the amount of the transaction in the third transaction failure report.
Example 2
Based on embodiment 1, after a first supervising node uploads first encrypted transaction data to a blockchain network, a second supervising node (a node used by the second supervising node to monitor whether the first transaction data satisfies a supervising rule, as shown in fig. 4, an exemplary mid-debt node may be a second supervising node) automatically performs the following steps:
s51, acquiring a supervision rule, wherein the supervision rule is a character for specifying a transaction mode;
s52, generating a first intelligent contract according to the supervision rule;
step S53, uploading the first intelligent contract to the block chain network, wherein the first intelligent contract is used for triggering the block chain network to detect whether the first transaction data meet the supervision rule, and if the first transaction data meet the supervision rule, executing consensus voting operation;
step S54, second encrypted transaction data on the blockchain network are obtained, wherein the second encrypted transaction data are first encrypted transaction data which are agreed and executed on the blockchain network;
s55, decrypting the second encrypted transaction data to obtain second transaction data;
and S56, storing the second transaction data, wherein the second transaction data reflects the completed transaction data.
The second supervision node directly acquires each transaction data from the blockchain network, so that the transactions among different levels can be supervised by the second supervision node, and the penetrating supervision of the second supervision node is facilitated, namely the transactions generated by each level can be supervised.
Example 3
As shown in fig. 2-1, the present embodiment provides a block chain transaction supervision apparatus based on UTXO, which is applied to any first supervision node in a block chain network, where the first supervision node is a common parent node of both parties of a transaction, and includes:
a first receiving module 71, configured to receive first encrypted transaction data submitted by a subordinate transaction expenditure node;
a first calculating module 72, configured to decrypt the first encrypted transaction data to obtain first transaction data, where the first transaction data reflects receipt and payment details of a transaction;
a second calculation module 73, configured to detect a balance of the first transaction data and validity of a signature in the first transaction data;
a third calculating module 74, configured to upload the first encrypted transaction data to the blockchain network if the balance and the signature of the first transaction data are both normal.
Example 4
As shown in fig. 2-2, the present embodiment provides a UTXO-based blockchain transaction monitoring apparatus, which is applied to any second monitoring node in a blockchain network, where the second monitoring node is configured to monitor whether the first transaction data meets a monitoring rule, and includes:
a first obtaining module 75, configured to obtain a supervision rule, where the supervision rule is a text that specifies a transaction mode;
a fourth calculation module 76, configured to generate a first intelligent contract according to the supervision rule;
a fifth calculating module 77, configured to upload the first intelligent contract into the blockchain network, where the first intelligent contract is used to trigger the blockchain network to detect whether the first transaction data meets the supervision rule, and if the first transaction data meets the supervision rule, perform consensus voting operation;
a sixth calculating module 78, configured to obtain second encrypted transaction data on the blockchain network, where the second encrypted transaction data is the first encrypted transaction data that has been agreed and executed on the blockchain network;
a seventh calculating module 79, configured to decrypt the second encrypted transaction data to obtain second transaction data;
the first saving module 710 is configured to save the second transaction data, where the second transaction data reflects the completed transaction data.
Example 5
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a UTXO-based blockchain transaction monitoring device, and a UTXO-based blockchain transaction monitoring device described below and an UTXO-based blockchain transaction monitoring method described above may be referred to in correspondence with each other.
Fig. 3 is a block diagram illustrating a UTXO-based blockchain transaction policing apparatus 800 according to an example embodiment. As shown in fig. 3, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the electronic device 800 to complete all or part of the steps of the UTXO-based blockchain transaction supervision method. The memory 402 is used to store various types of data to support operation at the electronic device 800, such as instructions for any application or method operating on the electronic device 800 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the UTXO-based block chain transaction monitoring method.
In another exemplary embodiment, there is also provided a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the UTXO-based blockchain transaction policing method described above. For example, the computer readable storage medium may be the memory 802 described above that includes program instructions executable by the processor 801 of the electronic device 800 to perform the UTXO based blockchain transaction policing method described above.
Example 4
Corresponding to the above method embodiment, the present disclosure further provides a readable storage medium, and a readable storage medium described below and a UTXO-based blockchain transaction supervision method described above may be referred to in correspondence.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the UTXO-based blockchain transaction policing method of the above-described method embodiments.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A block chain transaction supervision method based on UTXO is characterized in that the method is applied to any first supervision node in a block chain network, the first supervision node is a common father node of both transaction parties, and the method comprises the following steps:
receiving first encrypted transaction data submitted by subordinate transaction expenditure nodes;
decrypting the first encrypted transaction data to obtain first transaction data, wherein the first transaction data reflects receipt and payment details of the transaction;
detecting a balance of the first transaction data and validity of a signature in the first transaction data;
and if the balance and signature of the first transaction data are normal, uploading the first encrypted transaction data to a block chain network.
2. The UTXO-based blockchain transaction policing method of claim 1, wherein detecting the validity of the balance of the first transaction data comprises:
calling the first transaction data, wherein the first transaction data comprises expenditure UTXO and two income side data, and the income side data reflects collection information of a collection side;
checking the validity of the expenditure UTXO, and if the expenditure UTXO is valid, detecting the balance of income and income data.
3. The method of claim 2, wherein detecting a balance of revenue data if the expenditure UTXO is valid comprises:
detecting the denomination of the expenditure UTXO to obtain the expenditure denomination;
calling the two income party data, wherein the income party data comprises income accounts and to-be-collected denominations;
sequentially checking the effectiveness of each income account, and counting the sum of the two to-be-collected denominations to obtain income denominations if the two income accounts are both effective accounts;
comparing whether the income denomination and the expenditure denomination are the same;
and if the income denomination is the same as the expenditure denomination, determining that the balance of the income and expenditure of the first transaction data is in a balanced state.
4. The UTXO-based blockchain transaction policing method of claim 1, wherein detecting the validity of the signature in the first transaction data comprises:
retrieving the first transaction data, the first transaction data comprising an expenditure UTXO;
and checking whether the signature of the expenditure UTXO is valid, and if the signature of the expenditure UTXO is a valid signature, judging that the signature of the transaction data is a valid signature.
5. A block chain transaction supervision method based on UTXO is characterized in that the method is applied to any second supervision node in a block chain network, and the second supervision node is used for monitoring whether the first transaction data meets the supervision rule, and comprises the following steps:
acquiring a supervision rule, wherein the supervision rule is a character for specifying a transaction mode;
generating a first intelligent contract according to the supervision rule;
uploading the first intelligent contract into the blockchain network, wherein the first intelligent contract is used for triggering the blockchain network to detect whether the first transaction data meets the supervision rule, and if the first transaction data meets the supervision rule, executing consensus voting operation;
acquiring second encrypted transaction data on the blockchain network, wherein the second encrypted transaction data is first encrypted transaction data which is agreed and executed on the blockchain network;
decrypting the second encrypted transaction data to obtain second transaction data;
and storing the second transaction data, wherein the second transaction data reflects the completed transaction data.
6. A block chain transaction supervision device based on UTXO is characterized in that the device is applied to any first supervision node in a block chain network, the first supervision node is a common father node of both transaction parties, and the device comprises:
the first receiving module is used for receiving first encrypted transaction data submitted by subordinate transaction expenditure nodes;
the first calculation module is used for decrypting the first encrypted transaction data to obtain first transaction data, and the first transaction data reflects receipt and payment details of the transaction;
a second calculation module for detecting a balance of the first transaction data and a validity of the signature in the first transaction data;
and the third calculation module is used for uploading the first encrypted transaction data to a block chain network if the balance and the signature of the first transaction data are normal.
7. A block chain transaction supervision apparatus based on UTXO, applied to any second supervision node in a block chain network, where the second supervision node is configured to monitor whether the first transaction data satisfies a supervision rule, including:
the first acquisition module is used for acquiring a supervision rule, wherein the supervision rule is a character for specifying a transaction mode;
the fourth calculation module is used for generating a first intelligent contract according to the supervision rule;
a fifth calculation module, configured to upload the first intelligent contract to the blockchain network, where the first intelligent contract is used to trigger the blockchain network to detect whether the first transaction data meets the supervision rule, and if the first transaction data meets the supervision rule, perform consensus voting operation;
a sixth calculation module, configured to obtain second encrypted transaction data on the blockchain network, where the second encrypted transaction data is the first encrypted transaction data that has been agreed and executed on the blockchain network;
the seventh calculation module is used for decrypting the second encrypted transaction data to obtain second transaction data;
and the first storage module is used for storing the second transaction data, and the second transaction data reflects the completed transaction data.
8. A readable storage medium, characterized by: the readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the UTXO-based blockchain transaction supervision method according to any one of claims 1 to 5.
CN202110866452.8A 2021-07-29 2021-07-29 UTXO-based blockchain transaction supervision method and device and readable storage medium Active CN113570370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110866452.8A CN113570370B (en) 2021-07-29 2021-07-29 UTXO-based blockchain transaction supervision method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110866452.8A CN113570370B (en) 2021-07-29 2021-07-29 UTXO-based blockchain transaction supervision method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113570370A true CN113570370A (en) 2021-10-29
CN113570370B CN113570370B (en) 2023-10-20

Family

ID=78169168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110866452.8A Active CN113570370B (en) 2021-07-29 2021-07-29 UTXO-based blockchain transaction supervision method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113570370B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN109600433A (en) * 2018-12-06 2019-04-09 北京磁云数字科技有限公司 Data summarization method and device in a kind of system
CN110033370A (en) * 2019-02-01 2019-07-19 阿里巴巴集团控股有限公司 Account creation method and device, electronic equipment, storage medium
CN110289962A (en) * 2019-07-22 2019-09-27 国网电子商务有限公司 A kind of IBE key updating method and device based on UTXO model
CN111489143A (en) * 2020-04-08 2020-08-04 中央财经大学 Auditable encrypted digital currency supervision method based on alliance side chain
CN111861477A (en) * 2020-08-06 2020-10-30 深圳壹账通智能科技有限公司 Block chain-based post-transaction data processing method and device and computer equipment
CN112396423A (en) * 2021-01-20 2021-02-23 腾讯科技(深圳)有限公司 Transaction data processing method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN109600433A (en) * 2018-12-06 2019-04-09 北京磁云数字科技有限公司 Data summarization method and device in a kind of system
CN110033370A (en) * 2019-02-01 2019-07-19 阿里巴巴集团控股有限公司 Account creation method and device, electronic equipment, storage medium
CN110289962A (en) * 2019-07-22 2019-09-27 国网电子商务有限公司 A kind of IBE key updating method and device based on UTXO model
CN111489143A (en) * 2020-04-08 2020-08-04 中央财经大学 Auditable encrypted digital currency supervision method based on alliance side chain
CN111861477A (en) * 2020-08-06 2020-10-30 深圳壹账通智能科技有限公司 Block chain-based post-transaction data processing method and device and computer equipment
CN112396423A (en) * 2021-01-20 2021-02-23 腾讯科技(深圳)有限公司 Transaction data processing method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张若雪;全骐;: "基于UTXO和区块链的资金穿透记账系统", 上海金融, no. 04, pages 42 - 47 *
王子钰;刘建伟;张宗洋;喻辉;: "基于聚合签名与加密交易的全匿名区块链", 计算机研究与发展, no. 10, pages 2185 - 2198 *

Also Published As

Publication number Publication date
CN113570370B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
Pourhabibi et al. Fraud detection: A systematic literature review of graph-based anomaly detection approaches
Zamani et al. On the security risks of the blockchain
CN111767578B (en) Data inspection method, device and equipment
US20210029117A1 (en) Multi-dimensional framework for defining criteria that indicate when authentication should be revoked
US20080288382A1 (en) Methods and Systems for Early Fraud Protection
US20200184479A1 (en) Systems for managing cryptocurrency transactions
CN112950343A (en) Enterprise financial data acquisition and processing method and system
US20150081570A1 (en) Customer preference management and notification systems
CN113595724A (en) Accounting method, device, equipment and readable storage medium based on block chain
CN112069529B (en) Block chain-based volume management method and device, computer and storage medium
CN113761064A (en) Block chain based daily cutting account checking method, device, equipment and readable storage medium
CN113570369B (en) Block chain privacy transaction method, device, equipment and readable storage medium
CN117132228A (en) Government affair fusion message platform method and system
CN111814193A (en) Information sharing method, device and equipment
WO2023273832A1 (en) Data verification method and apparatus
CN113570370B (en) UTXO-based blockchain transaction supervision method and device and readable storage medium
CN116071152A (en) Data processing method and device, electronic equipment and storage medium
CN114066451A (en) Method and system for managing fund transaction and electronic equipment
CN114418769A (en) Block chain transaction charging method and device and readable storage medium
CN113592650B (en) Transaction method, device and equipment based on blockchain intelligent contract
US11823287B2 (en) Outstanding check alert
Lövhall Analysis of a Bitcoin debit card: Design of a novel Bitcoin payment system
EP4060539A1 (en) Real-time malicious activity detection using non-transaction data
CN117114867A (en) Transaction data processing method, device, electronic equipment and storage medium
Adepoju The impact of security and privacy issues on data management in fog Computing

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