[go: up one dir, main page]

CN113570370B - UTXO-based blockchain transaction supervision method and device and readable storage medium - Google Patents

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

Info

Publication number
CN113570370B
CN113570370B CN202110866452.8A CN202110866452A CN113570370B CN 113570370 B CN113570370 B CN 113570370B CN 202110866452 A CN202110866452 A CN 202110866452A CN 113570370 B CN113570370 B CN 113570370B
Authority
CN
China
Prior art keywords
transaction
transaction data
utxo
expenditure
data
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.)
Active
Application number
CN202110866452.8A
Other languages
Chinese (zh)
Other versions
CN113570370A (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

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 application relates to the technical field of video content analysis, in particular to a blockchain transaction supervision method, a device, equipment and a readable storage medium based on UTXO, wherein the method is applied to any first supervision node in a blockchain 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 balance of the first transaction data and validity of a signature in the first transaction data; if the balance and signature of the first transaction data are normal, uploading the first encrypted transaction data to a blockchain network, wherein the first monitoring node for monitoring the balance and signature validity of the first transaction data and the second monitoring node for monitoring whether the first transaction data meet the monitoring rules are arranged in the blockchain network, so that the omnibearing monitoring of the first transaction data is realized.

Description

UTXO-based blockchain transaction supervision method and device and readable storage medium
Technical Field
The application relates to the technical field of video content analysis, in particular to a blockchain transaction supervision method, device and equipment based on UTXO and a readable storage medium.
Background
The blockchain technology can be applied to the financial field, and because the blockchain technology realizes a data tamper-proof mechanism, the blockchain technology is utilized to develop business, and the trust crisis among parties involved in the business can be solved.
The financial field is a very strict supervision field, but the existing financial transaction system established based on the blockchain network lacks a set of effective supervision methods.
Disclosure of Invention
The present application aims to provide a blockchain transaction supervision method, device, equipment and readable storage medium based on UTXO, so as to improve the above problems.
In order to achieve the above object, the embodiment of the present application provides the following technical solutions:
in one aspect, an embodiment of the present application provides a blockchain transaction supervision method based on UTXO, where the method is applied to any first supervision node in a blockchain network, where the first supervision node is a parent node common to both parties of a transaction, and includes:
receiving first encrypted transaction data submitted by a subordinate transaction payout node;
decrypting the first encrypted transaction data to obtain first transaction data, wherein the first transaction data reflects the balance detail of the transaction;
detecting 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.
Optionally, detecting validity of balance of the first transaction data includes:
invoking the first transaction data, the first transaction data comprising a payout UTXO and two pieces of revenue party data, the revenue party data reflecting receipt information of a payee;
and checking the validity of the expenditure UTXO, and if the expenditure UTXO is valid, detecting the balance of the income data.
Optionally, if the payout UTXO is valid, detecting a balance of the revenue data includes:
detecting the denomination of the expenditure UTXO to obtain the expenditure denomination;
invoking the two pieces of revenue party data, the revenue party data including a revenue account and a denomination to be received;
sequentially checking the validity of each income account, and if the two income accounts are valid accounts, counting the sum of the two denominations to be collected to obtain income denominations;
comparing whether the revenue denomination and the payout denomination are the same;
and if the income denomination is the same as the expenditure denomination, determining that the balance of the first transaction data is in an equilibrium state.
Optionally, detecting validity of the signature in the first transaction data includes:
invoking the first transaction data, the first transaction data comprising a payout UTXO;
and checking whether the signature of the expenditure UTXO is valid, and if the signature of the 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 blockchain transaction supervision method based on UTXO, where the method is applied to any second supervision node in a blockchain network, where the second supervision node is used to monitor whether the first transaction data meets a node of a supervision rule, and the method includes:
acquiring a supervision rule, wherein the supervision rule is a text for prescribing a transaction mode;
generating a first intelligent contract according to the supervision rule;
uploading the first intelligent contract to the blockchain network, wherein the first intelligent contract is used for triggering the blockchain network to detect whether the first transaction data accords with the supervision rule, and if the first transaction data meets the supervision rule, executing a consensus voting operation;
acquiring second encrypted transaction data on a 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 blockchain transaction supervision device based on UTXO, where the device is applied to any first supervision node in a blockchain network, where the first supervision node is a parent node common to both parties of a transaction, and includes:
the first receiving module is used for receiving first encrypted transaction data submitted by the subordinate transaction expenditure node;
the first calculation module is used for decrypting the first encrypted transaction data to obtain first transaction data, and the first transaction data reflects the balance detail of the transaction;
a second computing module for detecting a balance of the first transaction data and validity of a signature in the first transaction data;
and the third calculation module is used for uploading the first encrypted transaction data to a blockchain 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 blockchain transaction supervision device based on UTXO, where the device is applied to any second supervision node in a blockchain network, where the second supervision node is used to monitor whether the first transaction data meets a supervision rule, and the device includes:
the first acquisition module is used for acquiring supervision rules, wherein the supervision rules are words for specifying a transaction mode;
a fourth calculation module, configured to generate 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 configured 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, execute a consensus voting operation;
a sixth computing module configured to obtain second encrypted transaction data on the blockchain network, the second encrypted transaction data being first encrypted transaction data that has been agreed and executed on the blockchain network;
a seventh calculation module, configured to decrypt 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, an embodiment of the present application provides a UTXO-based blockchain transaction supervision device, the device including a memory and a processor. The memory is used for storing a computer program; the processor is configured to implement the steps of the UTXO-based blockchain transaction supervision method described above when executing the computer program.
In a fifth aspect, embodiments of the present application provide 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 supervision method described above.
The beneficial effects of the application are as follows:
according to the application, the first supervision node for monitoring the balance of the first transaction data and the signature validity and the second supervision node for monitoring whether the first transaction data meets the supervision rule are arranged in the blockchain network, so that the omnibearing supervision of the first transaction data is realized.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a blockchain transaction supervision method based on UTXO according to an embodiment of the present application;
fig. 2-1 is a schematic block chain transaction supervision device structure a based on UTXO according to an embodiment of the present application;
fig. 2-2 is a schematic block chain transaction supervision system architecture b based on UTXO according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a UTXO-based blockchain transaction supervision device according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating node layering in a blockchain network according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application 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 application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals or letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish 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 blockchain transaction supervision method based on UTXOs, which includes step S1, step S2, step S3 and step S4.
S1, receiving first encrypted transaction data submitted by subordinate transaction expenditure nodes;
the method comprises the following steps:
step S11, firstly, extracting a payment UTXO from an account of a subordinate transaction payment node, and then editing information of a payee to generate a plurality of pieces of income party data (the embodiment is described by two pieces of income party data), wherein one piece of income party data corresponds to one payee user;
step S12, the subordinate transaction expenditure node encrypts 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 corresponding collection path, other nodes in the blockchain network can not decrypt the income party data, and the privacy of the transaction is guaranteed, wherein the collection path is a hierarchical progressive path of a first supervision node to a collection node;
step S13, encrypting the payment UTXO by the subordinate transaction payment node in a HIBE layered identity-based encryption mode, so that the payment UTXO can only be decrypted by each node on a payment path, and meanwhile, the following should be noted: step S12 and step S13 are performed in sequence on the execution part of subordinate transaction expenditure nodes, wherein the expenditure path is a hierarchical progressive line for reflecting the subordinate transaction expenditure nodes to the first supervision node;
for example, step S12 and step S13 are illustrated, and as shown in fig. 4, assuming that the hosting mechanism 1 needs to pay 2 yuan to the hosting mechanism 4, at this time, the hosting mechanism a is a common parent node of the hosting mechanism 1 and the hosting mechanism 4, the collection path in step S12 is a hosting mechanism a-hosting mechanism b-hosting mechanism 4, and the payout path in step S13 is a hosting mechanism 1-a-hosting mechanism a.
The subordinate transaction payout node generates first encrypted transaction data through the steps S12 and S13;
s14, performing corresponding signature operation on the generated first encrypted transaction data by the subordinate transaction expenditure node, wherein the first encrypted transaction data comprises a signature corresponding to the subordinate transaction expenditure node;
s15, the subordinate transaction expenditure node sends the first encrypted transaction data to the upper node corresponding to the subordinate transaction expenditure node;
s16, checking the validity of the signature of the subordinate transaction expenditure node by the corresponding upper node, if so, continuing, and adding the corresponding signature to the first encrypted transaction data;
and S17, the corresponding upper node sends first encrypted transaction data to the higher upper node corresponding to the corresponding upper node according to the expenditure path, and 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 the balance detail of the transaction.
S3, a first supervision node detects the balance of the first transaction data and the validity of the signature in the first transaction data, wherein the detection of the balance of the first transaction data specifically comprises the following steps:
s31, calling the first transaction data, wherein the first transaction data comprises a expenditure UTXO and two income party data, and the income party data reflects the collection information of a collection party;
step S32, checking the validity of the expenditure UTXO (the blockchain network comprises all valid UTXOs), and if the expenditure UTXO is valid, detecting the balance of the income data, wherein the specific operation steps of detecting the balance of the income data comprise:
s321, detecting the denomination of the expenditure UTXO to obtain the expenditure denomination;
s322, calling the two income party data, wherein the income party data comprises income accounts and denominations to be collected;
step S323, sequentially checking the validity of each income account, and if the two income accounts are valid accounts, counting the sum of the two denominations to be collected to obtain income denominations;
step S324, comparing whether the income denomination and the expenditure denomination are the same;
s325, if the income denomination is the same as the expenditure denomination, judging that the balance of the first transaction data is in a balance state;
in step S3, the specific step of detecting the signature validity of the first transaction data includes:
s33, retrieving the first transaction data, wherein the first transaction data comprises a expenditure UTXO;
and S34, checking whether the signature of the expenditure UTXO is valid, and if the signature of the expenditure UTXO is valid, judging that the signature of the transaction data is valid.
And S4, if the balance and the signature of the first transaction data are normal, the first supervision node signs the first transaction data and then uploads the first encrypted transaction data to a blockchain network.
In one aspect, it should be noted that in step S32, the validity of the disbursement UTXOs is checked, and if the disbursement UTXOs are invalid (i.e., there is no UTXO in the blockchain network or the UTXO has been used), the first supervising node sends a first transaction failure report to the subordinate transaction disbursement node;
after receiving the first transaction failure report, the subordinate transaction expenditure node firstly detects the validity of the expenditure UTXO, after confirming invalidation, starts a self-checking program in the system, detects the related information of the invalidated UTXO, such as the user account number, the account deposit time and the like, and informs related business personnel to contact customers; and backing up the first transaction data; meanwhile, generating a failed transaction report and sending the failed transaction report to each node on the expenditure path, wherein the failed transaction report is used for notifying all nodes on the expenditure path, the subordinate transaction expenditure nodes generate fraudulent transactions together, and all nodes on the expenditure path record a first transaction failure report; that is, once the submitted transaction fails, the system considers the transaction as a fraudulent transaction, and needs to respond specific information of the failed transaction to a related mechanism, and searches for a system vulnerability which causes the fraudulent transaction to be established, and the system vulnerability is used as a backup, so that the later updating of the system is facilitated;
meanwhile, the first supervision node sends the first transaction failure report to the second supervision node (the agency node of the government supervision level), and the second supervision node gives corresponding penalties to the subordinate transaction expenditure node or the user under the subordinate transaction expenditure node according to the information such as the type, the amount and the like of the transaction in the first transaction failure report.
In a second aspect, it should be noted that, in step S325, if the revenue denomination is not the same as the payout denomination, the first supervising node sends a second transaction failure report to the subordinate transaction payout node;
after receiving the second transaction failure report, the subordinate transaction expenditure node firstly detects the validity of the expenditure UTXO, after confirming invalidation, starts a self-checking program in the system, detects the related information of the invalidated UTXO, such as the user account number, the account deposit time and the like, and informs related business personnel to contact customers; and backing up the first transaction data; meanwhile, generating a failed transaction report and sending the failed transaction report to each node on the expenditure path, wherein the failed transaction report is used for notifying all nodes on the expenditure path, the subordinate transaction expenditure nodes generate fraudulent transactions together, and all nodes on the expenditure path record a second transaction failure report; that is, once the submitted transaction fails, the system considers the transaction as a fraudulent transaction, and needs to respond specific information of the failed transaction to a related mechanism, and searches for a system vulnerability which causes the fraudulent transaction to be established, and the system vulnerability is used as a backup, so that the later updating of the system is facilitated;
meanwhile, the first supervision node sends a second transaction failure report to a second supervision node (an organization node of a government supervision level), and the second supervision node gives corresponding penalties to users under subordinate transaction expenditure nodes or subordinate transaction expenditure nodes according to the type, amount and other information 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 payment UTXO is valid, and if the signature is invalid, the first supervising node sends a third transaction failure report to the subordinate transaction payment node;
after receiving a third transaction failure report, the subordinate transaction expenditure node firstly detects the validity of the expenditure UTXO, starts a self-checking program in the system after confirming invalidation, detects the related information of the invalidated UTXO, such as the user account number, the account deposit time and the like, and informs related business personnel to contact customers; and backing up the first transaction data; meanwhile, generating a failed transaction report and sending the failed transaction report to each node on the expenditure path, wherein the failed transaction report is used for notifying all nodes on the expenditure path, the subordinate transaction expenditure nodes generate fraudulent transactions together, and all nodes on the expenditure path record a third transaction failure report; that is, once the submitted transaction fails, the system considers the transaction as a fraudulent transaction, and needs to respond specific information of the failed transaction to a related mechanism, and searches for a system vulnerability which causes the fraudulent transaction to be established, and the system vulnerability is used as a backup, so that the later updating of the system is facilitated;
meanwhile, the first supervision node sends the third transaction failure report to the second supervision node (the agency node of the government supervision level), and the second supervision node gives corresponding penalties to the subordinate transaction expenditure node or the user under the subordinate transaction expenditure node according to the information such as the type, the amount and the like of the transaction in the third transaction failure report.
Example 2
Based on embodiment 1, after the first supervision node uploads the first encrypted transaction data to the blockchain network, the second supervision node (the second supervision node is a node for monitoring whether the first transaction data meets the supervision rule, as shown in fig. 4, an exemplary intermediate debt-log node may be a second supervision node) will automatically perform the following steps:
s51, acquiring a supervision rule, wherein the supervision rule is a word 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 blockchain network, wherein the first intelligent contract is used for triggering the blockchain network to detect whether the first transaction data accords with the supervision rule, and if the first transaction data meets the supervision rule, executing consensus voting operation;
s54, obtaining second encrypted transaction data on a blockchain network, wherein the second encrypted transaction data is first encrypted transaction data which is agreed and executed on the blockchain network;
s55, decrypting the second encrypted transaction data to obtain second transaction data;
and S56, saving the second transaction data, wherein the second transaction data reflects the completed transaction data.
Because the second supervision node directly acquires each transaction data from the blockchain network, the transactions among different levels can be supervised by the second supervision node, so that the penetration 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 blockchain transaction supervision device based on UTXO, which is applied to any first supervision node in a blockchain network, where the first supervision node is a parent node common to both parties of a transaction, and includes:
a first receiving module 71 for receiving first encrypted transaction data submitted by a subordinate transaction payout node;
a first calculation module 72, configured to decrypt the first encrypted transaction data to obtain first transaction data, where the first transaction data reflects a balance of a transaction;
a second calculation module 73 for detecting a balance of the first transaction data and validity of a signature in the first transaction data;
a third calculation module 74, configured to upload the first encrypted transaction data onto a blockchain network if both the balance and the signature of the first transaction data are normal.
Example 4
As shown in fig. 2-2, the present embodiment provides a blockchain transaction supervision device based on UTXO, which is applied to any second supervision node in a blockchain network, where the second supervision node is used to monitor whether the first transaction data meets the supervision rule, and includes:
a first obtaining module 75, configured to obtain a supervision rule, where the supervision rule is a text specifying a transaction manner;
a fourth calculation module 76 for generating a first smart contract according to the supervision rules;
a fifth calculation module 77, configured to upload the first intelligent contract to the blockchain network, where the first intelligent contract is configured 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, execute a consensus voting operation;
a sixth calculation module 78 for obtaining second encrypted transaction data on the blockchain network, the second encrypted transaction data being first encrypted transaction data that has been agreed and executed on the blockchain network;
a seventh calculation module 79, configured to decrypt the second encrypted transaction data to obtain second transaction data;
a first storage module 710, configured to store the second transaction data, where the second transaction data reflects completed transaction data.
Example 5
Corresponding to the above method embodiments, the present disclosure further provides a UTXO-based blockchain transaction monitoring device, where a UTXO-based blockchain transaction monitoring device described below and a UTXO-based blockchain transaction monitoring method described above may be referred to correspondingly with each other.
Fig. 3 is a block diagram illustrating a UTXO-based blockchain transaction supervision device 800 in accordance with an exemplary 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 communication component 805.
The processor 801 is configured to control overall operation of the electronic device 800 to perform all or part of the steps of the UTXO-based blockchain transaction supervision method described above. The memory 402 is used to store various types of data to support operation on the electronic device 800, which may include, for example, instructions for any application or method operating on the electronic device 800, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 803 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or transmitted through the communication component 805. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, which may be 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 (Near FieldCommunication, NFC for short), 2G, 3G or 4G, or a combination of one or more thereof, the respective communication component 805 may thus comprise: 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 (Application Specific Integrated Circuit, abbreviated ASIC), digital signal processor (DigitalSignal Processor, abbreviated DSP), digital signal processing device (Digital Signal Processing Device, abbreviated DSPD), programmable logic device (Programmable Logic Device, abbreviated PLD), field programmable gate array (Field Programmable Gate Array, abbreviated FPGA), controller, microcontroller, microprocessor, or other electronic components for performing the UTXO-based blockchain transaction supervision method described above.
In another exemplary embodiment, a computer readable storage medium is also provided that includes program instructions that when executed by a processor implement the steps of the UTXO-based blockchain transaction supervision method described above. For example, the computer readable storage medium may be the memory 802 described above including program instructions executable by the processor 801 of the electronic device 800 to perform the UTXO-based blockchain transaction supervision method described above.
Example 4
Corresponding to the above method embodiments, the present disclosure further provides a readable storage medium, where a readable storage medium described below and a blockchain transaction supervision method based on UTXO described above may be referred to correspondingly.
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 supervision method of the method embodiments described above.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, and the like.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (6)

1. The blockchain transaction supervision method based on the UTXO is characterized by being applied to any first supervision node in a blockchain network, wherein the first supervision node is a father node common to both transaction parties, and comprises the following steps:
receiving first encrypted transaction data submitted by a subordinate transaction payout node;
decrypting the first encrypted transaction data to obtain first transaction data, wherein the first transaction data reflects the balance detail of the transaction;
detecting balance of the first transaction data and validity of a signature in the first transaction data;
if the balance and signature of the first transaction data are normal, uploading the first encrypted transaction data to a blockchain network;
wherein generating the first encrypted transaction data comprises:
extracting one expenditure UTXO in the account of the subordinate transaction expenditure node, and editing the information of the payee to obtain a plurality of pieces of income party data;
encrypting each piece of income party data by using an HIBE layered identity-based encryption mode, wherein each piece of income party data after encryption can only be decrypted by a corresponding node on a collection path;
encrypting the expenditure UTXO by using an HIBE (encryption method for dividing the expenditure into identity bases), wherein the encrypted expenditure UIXO can only be decrypted by corresponding nodes on a expenditure path;
wherein the first encrypted data includes the encrypted payout UTXO and the encrypted income party data.
2. The UTXO-based blockchain transaction supervision method of claim 1, wherein detecting validity of balance of the first transaction data comprises:
invoking the first transaction data, the first transaction data comprising a payout UTXO and two pieces of revenue party data, the revenue party data reflecting receipt information of a payee;
and checking the validity of the expenditure UTXO, and if the expenditure UTXO is valid, detecting the balance of the income data.
3. The UTXO-based blockchain transaction supervision method of claim 2, wherein detecting a balance of revenue data if the payout UTXO is valid comprises:
detecting the denomination of the expenditure UTXO to obtain the expenditure denomination;
invoking the two pieces of revenue party data, the revenue party data including a revenue account and a denomination to be received;
sequentially checking the validity of each income account, and if the two income accounts are valid accounts, counting the sum of the two denominations to be collected to obtain income denominations;
comparing whether the revenue denomination and the payout denomination are the same;
and if the income denomination is the same as the expenditure denomination, determining that the balance of the first transaction data is in an equilibrium state.
4. The UTXO-based blockchain transaction supervision method of claim 1, wherein detecting validity of the signature in the first transaction data comprises:
invoking the first transaction data, the first transaction data comprising a payout UTXO;
and checking whether the signature of the expenditure UTXO is valid, and if the signature of the UTXO is a valid signature, judging that the signature of the transaction data is a valid signature.
5. The utility model provides a blockchain transaction supervision device based on UTXO which is characterized in that is applied to arbitrary first supervision node in blockchain network, first supervision node is the father node that trade both sides are common, includes:
the first receiving module is used for receiving first encrypted transaction data submitted by the subordinate transaction expenditure node;
the first calculation module is used for decrypting the first encrypted transaction data to obtain first transaction data, and the first transaction data reflects the balance detail of the transaction;
a second computing module for detecting a balance of the first transaction data and validity of a signature in the first transaction data;
the third calculation module is used for uploading the first encrypted transaction data to a blockchain network if the balance and the signature of the first transaction data are normal;
wherein generating the first encrypted transaction data comprises:
extracting one expenditure UTXO in the account of the subordinate transaction expenditure node, and editing the information of the payee to obtain a plurality of pieces of income party data;
encrypting each piece of income party data by using an HIBE layered identity-based encryption mode, wherein each piece of income party data after encryption can only be decrypted by a corresponding node on a collection path;
encrypting the expenditure UTXO by using an HIBE (encryption method for dividing the expenditure into identity bases), wherein the encrypted expenditure UIXO can only be decrypted by corresponding nodes on a expenditure path;
wherein the first encrypted data includes the encrypted payout UTXO and the encrypted income party data.
6. A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the UTXO-based blockchain transaction supervision method of any of claims 1 to 4.
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 CN113570370A (en) 2021-10-29
CN113570370B true 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 UTXO model-based IBE key update method and device
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 UTXO model-based IBE key update method and device
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和区块链的资金穿透记账系统;张若雪;全骐;;上海金融(第04期);第42-47页 *
基于聚合签名与加密交易的全匿名区块链;王子钰;刘建伟;张宗洋;喻辉;;计算机研究与发展(第10期);第2185-2198页 *

Also Published As

Publication number Publication date
CN113570370A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
Zheng et al. Xblock-eth: Extracting and exploring blockchain data from ethereum
US11783433B2 (en) Systems and methods of access control and system integration
CN110263585B (en) Test supervision method, device, equipment and storage medium
Zhang et al. Toward effective big data analysis in continuous auditing
US10972475B1 (en) Account access security using a distributed ledger and/or a distributed file system
CN110457957B (en) Information processing method and device of electronic bill, electronic equipment and medium
US20190089711A1 (en) Anonymized persona identifier
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
CN113595724B (en) Block chain-based accounting method, device, equipment and readable storage medium
US11822435B2 (en) Consolidated data restoration framework
CN113761064A (en) Block chain based daily cutting account checking method, device, equipment and readable storage medium
CN113849563A (en) Information sharing method, device and system
CN113570370B (en) UTXO-based blockchain transaction supervision method and device and readable storage medium
CN113570369B (en) Block chain privacy transaction method, device, equipment and readable storage medium
CN114936249B (en) A file parsing and conversion method, device, equipment and readable storage medium
US20210056620A1 (en) Multi-lender credit history record blockchain
CN110910091A (en) Data processing method, device and medium
CN115689571A (en) Abnormal user behavior monitoring method, device, equipment and medium
CN113592650B (en) Transaction method, device and equipment based on blockchain intelligent contract
Amrulloh et al. Implementation of AES-256 algorithm in android-based e-voting data security
CN113570368B (en) Block chain mixed signature verification method and system
Lövhall Analysis of a Bitcoin debit card: Design of a novel Bitcoin payment system
CN114596155B (en) Financial business charging method, device, equipment and medium based on block chain

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