WO2021134898A1 - 区块链交易数据证明监管方法、系统及相关设备 - Google Patents

区块链交易数据证明监管方法、系统及相关设备 Download PDF

Info

Publication number
WO2021134898A1
WO2021134898A1 PCT/CN2020/077625 CN2020077625W WO2021134898A1 WO 2021134898 A1 WO2021134898 A1 WO 2021134898A1 CN 2020077625 W CN2020077625 W CN 2020077625W WO 2021134898 A1 WO2021134898 A1 WO 2021134898A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
transaction data
certification
node device
signature
Prior art date
Application number
PCT/CN2020/077625
Other languages
English (en)
French (fr)
Inventor
辛佳骏
张骁
李武璐
来鑫
Original Assignee
深圳市网心科技有限公司
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 深圳市网心科技有限公司 filed Critical 深圳市网心科技有限公司
Publication of WO2021134898A1 publication Critical patent/WO2021134898A1/zh

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Definitions

  • the present invention relates to the technical field of block chains, and in particular to a method, system, block chain node equipment and storage medium for the supervision of block chain transaction data.
  • transaction data In blockchain technology, in order to ensure that transaction data cannot be tampered with, transaction data is usually uploaded and added to the blockchain, but this will cause any node in the blockchain network to obtain the transaction data, making the transaction The data has lost its confidentiality.
  • the main purpose of the present invention is to provide a blockchain transaction data proof supervision method and method, which aims to solve the technical problem that blockchain confidential transactions cannot be supervised.
  • the first aspect of the present invention provides a blockchain transaction data certification supervision method, which is applied to a node device of a transaction data sender, and the method includes:
  • the first certification parameter wherein, h, g, and h are all system parameters, ⁇ is the second random number, a L is the first calculation number, and a R is the second calculation number.
  • the calculation of the first calculation number and the second calculation number based on the transaction data includes:
  • the difference between the first calculation number and the unit array is calculated to obtain the second calculation number.
  • the second certification parameter Where ⁇ is the first signature parameter, s L is the second signature parameter, and s R is the third signature parameter.
  • calculating the target proof parameter based on the first calculation number and the second signature parameter includes:
  • the target proof parameter P a L -z ⁇ 1 n +s L ⁇ x is calculated, where z Is the first public parameter, and x is the second public parameter.
  • the second aspect of the present invention provides a blockchain transaction data certification supervision method, which is applied to a transaction data supervisor node device, and the method further includes:
  • Bulletproof range proof is used to calculate proof parameters based on the first signature parameter, the second signature parameter, and the third signature parameter;
  • the confidential transaction is verified and the transaction data is supervised.
  • the method further includes:
  • the second public parameter is returned.
  • the verifying the confidential transaction based on the first certification parameter, the second certification parameter, and the target certification parameter and supervising the transaction data includes:
  • the target random number is an n-dimensional array composed of 0 or 1
  • the product of each number in the n-dimensional array and 2n corresponds to the data at the same position in the transaction data.
  • the third aspect of the present invention provides a blockchain transaction data certification supervision system, the system includes:
  • Transaction data sender node equipment and transaction data supervisor node equipment wherein the transaction data sender node equipment and transaction data supervisor node equipment are used to implement the blockchain transaction data proof supervision method.
  • the fourth aspect of the present invention provides a blockchain node device, the blockchain node device includes a memory and a processor, and a block that can run on the processor is stored in the memory.
  • a download program of the method for proving and supervising blockchain transaction data The download program of the method for proving and supervising blockchain transaction data realizes the method for proving and supervising blockchain transaction data when executed by the processor.
  • the fifth aspect of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a download program of the blockchain transaction data certification supervision method, and the blockchain transaction data certification
  • the download program of the supervision method can be executed by one or more processors to realize the blockchain transaction data certification supervision method.
  • multiple signature parameters are selected by the transaction data supervisor node device and the certification parameters are calculated, and the calculated certification parameters After signing, the signed multiple signature parameters can be sent to the transaction data sender node device, so that the transaction data sender node device calculates the proof parameter according to the multiple signature parameters. Since the transaction data supervisor node device and the transaction data sender node device use the same multiple signature parameters to calculate the same proof parameters, the transaction data supervisor node device can be used to reverse confidential transactions on the blockchain network. Supervise the certification parameters of the node device of the transaction data sender, thereby realizing the supervision of confidential transactions.
  • Fig. 1 is a flowchart of a blockchain transaction data certification supervision method according to the first embodiment of the present invention
  • FIG. 2 is a flowchart of a method for proving and supervising blockchain transaction data according to the second embodiment of the present invention
  • FIG. 3 is a schematic diagram of functional modules of a blockchain transaction data certification monitoring device according to a third embodiment of the present invention.
  • FIG. 4 is a schematic diagram of functional modules of a blockchain transaction data certification monitoring device according to a fourth embodiment of the present invention.
  • Fig. 5 is a schematic structural diagram of a blockchain node device according to an embodiment of the present invention.
  • the blockchain transaction data certification supervision method in this embodiment can be applied to a blockchain transaction data certification supervision system.
  • the blockchain transaction data certification supervision system can include, but is not limited to: transaction data sender node equipment and Transaction data supervisor node equipment.
  • FIG. 1 it is a flowchart of a blockchain transaction data certification supervision method according to the first embodiment of the present invention.
  • the blockchain transaction data certification and supervision method is applied to the node device of the transaction data sender, and the blockchain transaction data certification and supervision method specifically includes the following steps. According to different needs, the order of the steps in the flowchart can be changed: Some steps can be omitted.
  • is the first signature parameter
  • s L is the second signature parameter
  • s R is the third signature parameter
  • the transaction data sender can apply for signature parameters to the transaction data supervisor node device through the transaction data sender node device before proceeding with the transaction data range certification.
  • the signed signature parameters refer to the parameters that are selected by the transaction data supervisor node device and calculated based on the multiple parameters for signing.
  • S12 Determine transaction data, calculate the first calculation number and the second calculation number based on the transaction data, and generate the first random number and the second random number.
  • the node device of the transaction data sender may use a random number generation algorithm to generate multiple random numbers in advance. For example, a first random number r and a second random number ⁇ are generated.
  • the second random number ⁇ is a number within Z p.
  • the calculation of the first calculation number and the second calculation number based on the transaction data includes:
  • the difference between the first calculation number and the unit array is calculated to obtain the second calculation number.
  • the first calculated number a L is an n-dimensional array composed of binary numbers 0 or 1, and the product of each number in the n-dimensional array and 2 n is The data at the same position in the transaction data corresponds.
  • the second calculated number 1 n is an n-dimensional array composed of binary numbers 1.
  • a L ⁇ 0,1,1,...0,1,0 ⁇
  • a R ⁇ -1,0,0,...-1,0,-1 ⁇ .
  • the node device of the transaction data sender can later select the value of the decryption promise. Once the promise is issued, the node device of the transaction data sender cannot find another value that still has the same promise calculation result.
  • the first system parameter g and the second system parameter h are the basis of discrete logarithms, and are a system parameter that is published worldwide.
  • Bulletproof is the most efficient range proof algorithm currently used to prove that the value of a promise is between [0, 2 n -1].
  • the first certification parameter wherein, g and h are all public system parameters, ⁇ is the second random number, a L is the first calculation number, and a R is the second calculation number.
  • system parameters g and h in this embodiment are different from the first system parameter g and the second system parameter h.
  • the second certification parameter Where ⁇ is the first signature parameter, s L is the second signature parameter, and s R is the third signature parameter.
  • S16 Calculate a target certification parameter based on the first calculation number and the second signature parameter.
  • calculating the target proof parameter based on the first calculation number and the second signature parameter includes:
  • the target proof parameter P a L -z ⁇ 1 n +s L ⁇ x is calculated, where z Is the first public parameter, and x is the second public parameter.
  • the transaction data sender node device sends the first proof parameter to the transaction data supervisor node device
  • the second proof parameter The transaction data supervisor node device selects a random number y as the first public number and publicly replies to the transaction data sender node device, where the random number
  • the transaction data sender node device generates a fifth random number ⁇ 1 and a sixth random number ⁇ 2 , and the fifth random number ⁇ 1 and the sixth random number ⁇ 2 are both numbers within Z p .
  • the transaction data sender node device can use the Pedersen promise to calculate the first promise based on the fifth random number, the first system parameter g, and the second system parameter h Use the Pedersen promise to calculate the second promise based on the sixth random number, the first system parameter g, and the second system parameter h
  • the transaction data sender node device sends the first promise and the second promise to the transaction data supervisor node device.
  • the transaction data supervisor node device selects a random number x as the second public number and publicly replies to the transaction data sender node device, where the random number
  • the transaction data sender node device sends the confidential transaction, the first certification parameter, the second certification parameter, and the target certification parameter to the transaction data supervisor node device and other data together to the transaction data supervisor node device, so that The transaction data supervisor node device verifies the confidential transaction and determines the transaction data, thereby achieving the purpose of supervision.
  • the blockchain transaction data proof supervisory system may also include transaction data verifier node devices, transaction data
  • transaction data The relevant content of the verifier node device is consistent with the Bulletproof range proof algorithm in the prior art, and will not be repeated here.
  • the transaction data verifier node device In addition to verifying the correctness of the certificate itself, the transaction data verifier node device also needs to verify the correctness of the signature of the transaction data supervisor node device.
  • FIG. 2 it is a flowchart of the blockchain transaction data certification supervision method according to the second embodiment of the present invention.
  • the block chain transaction data certification supervision method is applied to the transaction data supervisor node device, and the block chain transaction data certification supervision method specifically includes the following steps. According to different needs, the order of the steps in the flowchart can be changed: Some steps can be omitted.
  • S21 Select the first signature parameter, the second signature parameter, and the third signature parameter.
  • the transaction data supervisor node device randomly selects multiple parameters, and uses the multiple parameters to calculate the proof parameter.
  • the multiple parameters are all numbers in the range of Z p.
  • the first signature parameter ⁇ , the second signature parameter s L , and the third signature parameter s R are selected .
  • the transaction data supervisor node device uses digital signature technology to sign the certification parameters.
  • Digital signature technology is based on asymmetric encryption algorithm and message digest algorithm to achieve the authentication of the source and integrity of the message, and at the same time, it is a guarantee that the signer cannot deny.
  • There are two roles in a digital signature system one is the signer of the message and the other is the authenticator of the message.
  • the signer of the message can sign the information digest of a message according to his private key, and the authenticator of the message verifies the information digest of a message according to his public key. If the verification is passed, it can be proved that the source of the message is the signer of the message, the information digest of the message is the same and the signer cannot deny it.
  • S24 When receiving the signature parameter request of the transaction data sender node device, send the first signature parameter, the second signature parameter, and the third signature parameter to the transaction data sender node device.
  • the transaction data sender node device Before the transaction data sender proves the transaction data range, the transaction data sender node device applies to the transaction data supervisor node device for signature parameters, and the transaction data supervisor node device sends the signed certification parameters to the first signature parameter and the corresponding value. The second signature parameter and the third signature parameter are sent to the transaction data supervisor node device.
  • the method further includes:
  • the first public parameter is returned.
  • the transaction data sender node device sends the first proof parameter to the transaction data supervisor node device And the second proof parameter
  • the transaction data supervisor node device selects a random number y as the first public number and publicly replies to the transaction data sender node device, where the random number
  • the method further includes:
  • the second public parameter is returned.
  • the transaction data sender node device sends the first promise and the second promise to the transaction data supervisor node device.
  • the transaction data supervisor node device selects a random number x as the second public number and publicly replies to the transaction data sender node device, where the random number
  • the verifying the confidential transaction based on the first certification parameter, the second certification parameter, and the target certification parameter and supervising the transaction data include:
  • the target random number is an n-dimensional array composed of 0 or 1
  • the product of each number in the n-dimensional array and 2n corresponds to the data at the same position in the transaction data.
  • the transaction data supervisor node device can calculate the transaction data v in the certificate according to the signature in the certificate and the parameter P in the certificate. Since a L is the binary form of transaction data v, and P, x, and z are all public values, the transaction data supervisor node device can calculate the value of a L according to the value of the random number s L possessed, and then calculate the transaction Data v.
  • the transaction data supervisor node device selects multiple signature parameters and calculates the certification parameters. After signing the calculated certification parameters, the signed multiple signature parameters can be sent to the transaction data sender node device. This allows the node device of the transaction data sender to calculate the certification parameters based on multiple signature parameters. Since the transaction data supervisor node device and the transaction data sender node device both use the same multiple signature parameters to calculate the same proof parameters, the transaction data supervisor node device can be used to reverse confidential transactions on the blockchain network. Supervise the certification parameters of the node device of the transaction data sender, thereby realizing the supervision of confidential transactions.
  • FIG. 3 is a schematic diagram of the functional modules of the blockchain transaction data certification monitoring device disclosed in the third embodiment of the present invention.
  • the blockchain transaction data proof monitoring device 30 runs in the node device of the transaction data sender.
  • the block chain transaction data certification and supervision device 30 may include multiple functional modules composed of download programs.
  • the program code of each download program in the block chain transaction data proof monitoring device 30 can be stored in the memory of the dispatch server and executed by at least one processor to execute (see Figure 1 for details) block chain transactions Data proof supervision.
  • the block chain transaction data proof monitoring device 30 can be divided into multiple functional modules according to the functions it performs.
  • the functional modules may include: a parameter application module 301, a random number generation module 302, a transaction encryption module 303, a first certification module 304, a second certification module 305, a target certification module 306, and a data sending module 307.
  • the module referred to in the present invention refers to a series of download programs that can be executed by at least one processor and can complete fixed functions, and are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
  • the parameter application module 301 is configured to apply for the first signature parameter, the second signature parameter, and the third signature parameter from the transaction data supervisor node device in advance.
  • is the first signature parameter
  • s L is the second signature parameter
  • s R is the third signature parameter
  • the transaction data sender can apply for signature parameters to the transaction data supervisor node device through the transaction data sender node device before proceeding with the transaction data range certification.
  • the signed signature parameters refer to the parameters that are selected by the transaction data supervisor node device and calculated based on the multiple parameters for signing.
  • the random number generation module 302 is configured to determine transaction data, calculate the first calculation number and the second calculation number based on the transaction data, and generate the first random number and the second random number.
  • the node device of the transaction data sender may use a random number generation algorithm to generate multiple random numbers in advance. For example, generate a first random number r, a second random number ⁇ , a first calculation number a L , and a second calculation number a R.
  • the second random number ⁇ is a number within Z p.
  • the random number generation module 302 calculates the first calculation number and the second calculation number based on the transaction data includes:
  • the difference between the first calculation number and the unit array is calculated to obtain the second calculation number.
  • the first calculated number a L is an n-dimensional array composed of binary numbers 0 or 1, and the product of each number in the n-dimensional array and 2 n is The data at the same position in the transaction data corresponds.
  • the second calculated number 1 n is an n-dimensional array composed of binary numbers 1.
  • a L ⁇ 0,1,1,...0,1,0 ⁇
  • a R ⁇ -1,0,0,...-1,0,-1 ⁇ .
  • the transaction encryption module 303 is configured to use Pedersen to promise to obtain a confidential transaction based on the transaction data and the first random number encryption.
  • the node device of the transaction data sender can later select the value of the decryption promise. Once the promise is issued, the node device of the transaction data sender cannot find another value that still has the same promise calculation result.
  • the first system parameter g and the second system parameter h are the basis of discrete logarithms, and are a system parameter that is published worldwide.
  • the first proof module 304 is configured to use Bulletproof range proof to calculate a first proof parameter based on the first calculation number, the second calculation number, and the second random number.
  • Bulletproof is the most efficient range proof algorithm currently used to prove that the value of a promise is between [0, 2 n -1].
  • the first certification parameter wherein, g and h are all public system parameters, ⁇ is the second random number, a L is the first calculation number, and a R is the second calculation number.
  • system parameters g and h in this embodiment are different from the first system parameter g and the second system parameter h.
  • the second proof module 305 is configured to use the Bulletproof range proof to calculate a second proof parameter based on the first signature parameter, the second signature parameter, and the third signature parameter.
  • the second certification parameter Where ⁇ is the first signature parameter, s L is the second signature parameter, and s R is the third signature parameter.
  • the target certification module 306 is configured to calculate target certification parameters based on the first calculation number and the second signature parameter.
  • the target certification module 306 calculating target certification parameters based on the first calculation number and the second signature parameter includes:
  • the target proof parameter P a L -z ⁇ 1 n +s L ⁇ x is calculated, where z Is the first public parameter, and x is the second public parameter.
  • the transaction data sender node device sends the first proof parameter to the transaction data supervisor node device
  • the second proof parameter The transaction data supervisor node device selects a random number y as the first public number and publicly replies to the transaction data sender node device, where the random number
  • the transaction data sender node device generates a fifth random number ⁇ 1 and a sixth random number ⁇ 2 , and the fifth random number ⁇ 1 and the sixth random number ⁇ 2 are both numbers within Z p .
  • the transaction data sender node device can use the Pedersen promise to calculate the first promise based on the fifth random number, the first system parameter g, and the second system parameter h Use the Pedersen promise to calculate the second promise based on the sixth random number, the first system parameter g, and the second system parameter h
  • the transaction data sender node device sends the first promise and the second promise to the transaction data supervisor node device.
  • the transaction data supervisor node device selects a random number x as the second public number and publicly replies to the transaction data sender node device, where the random number
  • the data sending module 307 is configured to send the confidential transaction, the first certification parameter, the second certification parameter, and the target certification parameter to the transaction data supervisor node device, so that the transaction data is supervised
  • the party node device verifies the confidential transaction and supervises the transaction data based on the first certification parameter, the second certification parameter, and the target certification parameter.
  • the transaction data sender node device sends the confidential transaction, the first certification parameter, the second certification parameter, and the target certification parameter to the transaction data supervisor node device and other data together to the transaction data supervisor node device, so that The transaction data supervisor node device verifies the confidential transaction, thereby achieving the purpose of supervision.
  • FIG. 4 is a schematic diagram of the functional modules of the blockchain transaction data certification monitoring device disclosed in the fourth embodiment of the present invention.
  • the blockchain transaction data proof monitoring device 40 runs in the node device of the transaction data sender.
  • the block chain transaction data certification and supervision device 40 may include a plurality of functional modules composed of downloading programs.
  • the program code of each download program in the block chain transaction data proof monitoring device 40 can be stored in the memory of the dispatch server and executed by at least one processor to execute (see Figure 2 for details) block chain transactions Data proof supervision.
  • the blockchain transaction data proof monitoring device 40 can be divided into multiple functional modules according to the functions it performs.
  • the functional modules may include: a parameter selection module 401, a parameter certification module 402, a signature storage module 403, a parameter sending module 404, a transaction supervision module 405, and a parameter reply module 406.
  • the module referred to in the present invention refers to a series of download programs that can be executed by at least one processor and can complete fixed functions, and are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
  • the parameter selection module 401 is used to select the first signature parameter, the second signature parameter, and the third signature parameter.
  • the transaction data supervisor node device randomly selects multiple parameters, and uses the multiple parameters to calculate the proof parameter.
  • the multiple parameters are all numbers in the range of Z p.
  • the first signature parameter ⁇ , the second signature parameter s L , and the third signature parameter s R are selected .
  • the parameter proof module 402 is configured to use Bulletproof range proof to calculate proof parameters based on the first signature parameter, the second signature parameter, and the third signature parameter.
  • the signature saving module 403 is configured to use a private key to sign the certification parameter and save the signature and the corresponding first signature parameter, the second signature parameter, and the third signature parameter.
  • the transaction data supervisor node device uses digital signature technology to sign the certification parameters.
  • Digital signature technology is based on asymmetric encryption algorithm and message digest algorithm to achieve the authentication of the source and integrity of the message, and at the same time, it is a guarantee that the signer cannot deny.
  • There are two roles in a digital signature system one is the signer of the message and the other is the authenticator of the message.
  • the signer of the message can sign the information digest of a message according to his private key, and the authenticator of the message verifies the information digest of a message according to his public key. If the verification is passed, it can be proved that the source of the message is the signer of the message, the information digest of the message is the same and the signer cannot deny it.
  • the parameter sending module 404 is configured to send the first signature parameter, the second signature parameter, and the transaction data sender node device to the transaction data sender node device when a signature parameter request from the transaction data sender node device is received.
  • the third signature parameter is configured to send the first signature parameter, the second signature parameter, and the transaction data sender node device to the transaction data sender node device when a signature parameter request from the transaction data sender node device is received.
  • the transaction data sender node device Before the transaction data sender proves the transaction data range, the transaction data sender node device applies to the transaction data supervisor node device for signature parameters, and the transaction data supervisor node device sends the signed certification parameters to the first signature parameter and the corresponding value. The second signature parameter and the third signature parameter are sent to the transaction data supervisor node device.
  • the transaction supervision module 405 is used to obtain the confidential transaction, the first certification parameter, the second certification parameter, and the target certification parameter of the node device of the transaction data sender, and based on the first certification parameter and the second certification
  • the parameter and the target proof parameter verify the confidential transaction and supervise the transaction data.
  • the parameter reply module 406 is configured to reply to the first public parameter when the first certification parameter and the second certification parameter sent by the transaction data sender node device are received.
  • the transaction data sender node device sends the first proof parameter to the transaction data supervisor node device And the second proof parameter
  • the transaction data supervisor node device selects a random number y as the first public number and publicly replies to the transaction data sender node device, where the random number
  • the parameter reply module 406 is further configured to reply to the second public parameter when the first commitment parameter and the second commitment parameter sent by the transaction data sender node device are received.
  • the transaction data sender node device sends the first promise and the second promise to the transaction data supervisor node device.
  • the transaction data supervisor node device selects a random number x as the second public number and publicly replies to the transaction data sender node device, where the random number
  • the transaction supervision module 405 verifies the confidential transaction and supervises the transaction data based on the first certification parameter, the second certification parameter, and the target certification parameter include:
  • the target random number is an n-dimensional array composed of 0 or 1
  • the product of each number in the n-dimensional array and 2n corresponds to the data at the same position in the transaction data.
  • the transaction data supervisor node device can calculate the transaction data v in the certificate according to the signature in the certificate and the parameter P in the certificate. Since a L is the binary form of transaction data v, and P, x, and z are all public values, the transaction data supervisor node device can calculate the value of a L according to the value of the random number s L possessed, and then calculate the transaction Data v.
  • the transaction data supervisor node device selects multiple signature parameters and calculates the certification parameters. After signing the calculated certification parameters, the signed multiple signature parameters can be sent to the transaction data sender node device. This allows the node device of the transaction data sender to calculate the certification parameters based on multiple signature parameters. Since the transaction data supervisor node device and the transaction data sender node device use the same multiple signature parameters to calculate the same proof parameters, the transaction data supervisor node device can be used to reverse confidential transactions on the blockchain network. Supervise the certification parameters of the node device of the transaction data sender, thereby realizing the supervision of confidential transactions.
  • FIG. 5 is a schematic diagram of the internal structure of a blockchain node device disclosed in an embodiment of the present invention.
  • the blockchain node device 5 may include a memory 51, a processor 52, a bus 53 and a transceiver 54.
  • the blockchain node device 5 may be a node device of the transaction data sender, and executes all or part of the steps in the blockchain transaction data certification supervision method described in the first embodiment.
  • the blockchain node device 5 may be a transaction data supervisor node device, which performs all or part of the steps in the blockchain transaction data proof supervision method described in the second embodiment.
  • the memory 51 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, and the like.
  • the memory 51 may be an internal storage unit of the blockchain node device 5 in some embodiments, such as a hard disk of the blockchain node device 5.
  • the memory 51 may also be an external storage device of the blockchain node device 5, such as a plug-in hard disk equipped on the blockchain node device 5, a smart memory card (Smart Media Card, SMC). ), Secure Digital (SD) card, Flash Card, etc.
  • the memory 51 may also include not only the internal storage unit of the blockchain node device 5, but also an external storage device.
  • the memory 51 can be used not only to store application programs and various data installed in the blockchain node device 5, for example, the blockchain transaction data certification and supervision device 30 and its various functional modules, or blockchain transaction data certification and supervision
  • the device 40 and its various functional modules can also be used to temporarily store data that has been output or will be output.
  • the processor 52 may be a central processing unit (CPU), a controller, a microcontroller, or a microprocessor, and is used to run a download program or process data stored in the memory 51.
  • CPU central processing unit
  • controller a controller
  • microcontroller a microcontroller
  • microprocessor a microprocessor
  • the bus 53 may be a peripheral component interconnect standard (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • PCI peripheral component interconnect standard
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used to represent in FIG. 5, but it does not mean that there is only one bus or one type of bus.
  • the blockchain node device 5 may also include a network interface, and the network interface may optionally include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the block
  • the link node device 5 establishes a communication connection with other dispatch servers.
  • the blockchain node device 5 may also include a user interface
  • the user interface may include a display (Display), an input unit, such as a keyboard (Keyboard), optionally, the user interface may also include a standard wired interface, wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (OLED) touch device, and the like.
  • the display may also be called a display screen or a display unit, which is used to display the messages processed in the dispatch server and to display a visualized user interface.
  • FIG. 5 only shows the blockchain node device 5 with components 51-54.
  • the structure shown in FIG. 5 does not constitute a limitation on the blockchain node device 5. It may be a bus-type structure or a star-shaped structure.
  • the blockchain node device 5 may also include fewer or more components than shown in the figure, or a combination of certain components, or a different component arrangement.
  • Other existing or future electronic products that can be adapted to the present invention should also be included in the protection scope of the present invention, and are included here by reference.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (for example, coaxial cable, optical fiber, digital subscriber line) or wireless (for example, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or application program functional unit.
  • the integrated unit is implemented in the form of an application function unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • a computer readable storage medium includes several instructions to enable a dispatch server (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk or optical disk and other media that can store download programs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Storage Device Security (AREA)

Abstract

一种区块链交易数据证明监管方法,包括:预先向交易数据监管方节点设备申请三个签名参数(S11);基于交易数据计算得到两个计算数,并生成两个随机数(S12);利用Pedersen承诺基于交易数据及第一随机数加密得到机密交易(S13);利用Bulletproof范围证明基于第一、第二及第三计算第一证明参数(S14);利用Bulletproof范围证明基于第一、第二及第三签名参数计算第二证明参数(S15);基于第一计算数和第二签名参数计算目标证明参数(S16);发送机密交易、第一证明参数、第二证明参数及目标证明参数至交易数据监管方节点设备,使得交易数据监管方节点设备对机密交易进行监管(S17)。还提供了另一种区块链交易数据证明监管方法、系统、区块链节点设备及存储介质,能够对区块链交易数据进行加密和监管。

Description

区块链交易数据证明监管方法、系统及相关设备 技术领域
本发明涉及区块链技术领域,尤其涉及一种区块链交易数据证明监管方法、系统、区块链节点设备及存储介质。
背景技术
在区块链技术中,为了保证交易数据的不可篡改,通常会将交易数据上传添加至区块链,但是这样就会导致区块链网络中的任意节点均可以获取到该交易数据,使交易数据失去了保密性。
现有技术中利用Pederson承诺对交易数据进行加密并使用Bulletproof进行范围证明。然而,这种方案机密交易的交易数据,只有交易双方可以看到,对于需要存在监管方的区块链交易系统来说,监管方无法对机密交易进行监管。
因此,有必要提供一种区块链交易数据证明监管方案。
发明内容
本发明的主要目的在于提供一种区块链交易数据证明监管方法及方法,旨在解决区块链机密交易无法监管的技术问题。
为实现上述目的,本发明的第一方面提供一种区块链交易数据证明监管方法,应用于交易数据发送方节点设备中,所述方法包括:
预先向交易数据监管方节点设备申请第一签名参数、第二签名参数及第三签名参数;
确定交易数据,基于所述交易数据计算得到第一计算数及第二计算数,并生成第一随机数及第二随机数;
利用Pedersen承诺基于所述交易数据及所述第一随机数加密得到机密交易;
利用Bulletproof范围证明基于所述第一计算数、所述第二计算数及所述第二随机数计算第一证明参数;
利用所述Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算第二证明参数;
基于所述第一计算数及所述第二签名参数计算目标证明参数;
发送所述机密交易、所述第一证明参数、所述第二证明参数及所述目标证明参数至所述交易数据监管方节点设备,使得所述交易数据监管方节点设备基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
根据本发明的一个可选实施例,所述第一证明参数
Figure PCTCN2020077625-appb-000001
其中,h、g、h均为系统参数,α为所述第二随机数,a L为所述第一计算数,a R为所述第二计算数。
根据本发明的一个可选实施例,所述基于所述交易数据计算得到第一计算数及第二计算数包括:
对所述交易数据进行二进制展开;
计算展开后的交易数据中的每一个二进制数与2 n的商值得到所述第一计算数;
计算所述第一计算数与单位数组的差值得到所述第二计算数。
根据本发明的一个可选实施例,所述第二证明参数
Figure PCTCN2020077625-appb-000002
其中,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
根据本发明的一个可选实施例,基于所述第一计算数及所述第二签名参数计算目标证明参数包括:
向所述交易数据监管方节点设备发送所述第一证明参数和所述第二证明参数并接收所述交易数据监管方节点设备回复的第一公开参数;
利用Pedersen承诺随机计算第一承诺参数和第二承诺参数;
向所述交易数据监管方节点设备发送所述第一承诺参数和所述第二承诺参数并接收所述交易数据监管方节点设备回复的第二公开参数;
基于所述第一计算数、所述第二签名参数、所述第一公开参数和所述第二公开参数计算目标证明参数P=a L-z·1 n+s L·x,其中,z为所述第一公开参数,x为所述第二公开参数。
为实现上述目的,本发明的第二方面提供一种区块链交易数据证明监管方法,应用于交易数据监管方节点设备中,所述方法还包括:
选取第一签名参数、第二签名参数及第三签名参数;
利用Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算证明参数;
使用私钥对所述证明参数进行签名并保存所述签名及对应的所述第一签名参数、所述第二签名参数及所述第三签名参数;
当接收到交易数据发送方节点设备的签名参数请求时,向所述交易数据发送方节点设备发送所述第一签名参数、所述第二签名参数及所述第三签名参数;
获取所述交易数据发送方节点设备的机密交易、第一证明参数、第二证明参数及目标证明参数,并基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
根据本发明的一个可选实施例,所述方法还包括:
当接收到所述交易数据发送方节点设备发送的所述第一证明参数和所述第二证明参数时,回复第一公开参数;
当接收到所述交易数据发送方节点设备发送的第一承诺参数和第二承诺参数时,回复第二公开参数。
根据本发明的一个可选实施例,所述基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据包括:
将所述第一公开参数、所述第二公开参数及所述第二签名参数带入所述目标证明参数中,计算得到目标随机数;
根据所述目标随机数计算出所述机密交易中的交易数据;
其中,所述目标随机数为由0或者1组成的n维数组,且所述n维数组中的每一个数与2 n的乘积与所述交易数据中相同位置处的数据对应。
为实现上述目的,本发明的第三方面提供一种区块链交易数据证明监管系统,所述系统包括:
交易数据发送方节点设备及交易数据监管方节点设备,其中,所述交易数据发送方节点设备及交易数据监管方节点设备用于实现所述的区块链交易数据证明监管方法。
为实现上述目的,本发明的第四方面提供一种区块链节点设备,所述区块链节点设备包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的区块链交易数据证明监管方法的下载程序,所述区块链交易数据证明监管方法的下载程序被所述处理器执行时实现所述的区块链交易数据证明监管方法。
为实现上述目的,本发明的第五方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有区块链交易数据证明监管方法的下载程序,所述区块链交易数据证明监管方法的下载程序可被一个或者多个处理器执行以实现所述的区块链交易数据证明监管方法。
本发明实施例提供的区块链交易数据证明监管方法、系统、区块链节点设备及存储 介质,通过交易数据监管方节点设备选取多个签名参数并计算出证明参数,对计算得到的证明参数进行签名后即可将签名后的多个签名参数发给交易数据发送方节点设备,使得交易数据发送方节点设备根据多个签名参数计算证明参数。由于交易数据监管方节点设备与交易数据发送方节点设备均使用相同的多个签名参数计算得到相同的证明参数,因而在区块链网络上进行机密交易扭转时,交易数据监管方节点设备便能够监管到交易数据发送方节点设备的证明参数,从而实现了机密交易的监管。
附图说明
图1为本发明第一实施例的区块链交易数据证明监管方法的流程图;
图2为本发明第二实施例的区块链交易数据证明监管方法的流程图;
图3为本发明第三实施例的区块链交易数据证明监管装置的功能模块示意图;
图4为本发明第四实施例的区块链交易数据证明监管装置的功能模块示意图;
图5为本发明实施例的区块链节点设备的结构示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。
本实施例中的区块链交易数据证明监管方法可以应用于区块链交易数据证明监管 系统中,所述区块链交易数据证明监管系统可以包括,但不限于:交易数据发送方节点设备和交易数据监管方节点设备。
实施例一
如图1所示,为本发明实施例一的区块链交易数据证明监管方法的流程图。
所述区块链交易数据证明监管方法应用于交易数据发送方节点设备中,所述区块链交易数据证明监管方法具体包括以下步骤,根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。
S11,预先向交易数据监管方节点设备申请第一签名参数、第二签名参数及第三签名参数。
其中,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
交易数据发送方在进行交易数据范围证明之前,可以通过交易数据发送方节点设备向交易数据监管方节点设备申请签名参数。
由于签名参数与交易数据证明值无关,所以可以提前申请多个签名后的签名参数并保存在本地,最后离线使用这些签名参数并生成证明参数。
签名后的签名参数是指通过交易数据监管方节点设备选取多个参数,并基于多个参数进行计算后进行签名的参数。
S12,确定交易数据,基于所述交易数据计算得到第一计算数及第二计算数,并生成第一随机数及第二随机数。
交易数据发送方节点设备可以预先使用随机数生成算法生成多个随机数。例如,生成第一随机数r,第二随机数α。
其中,所述第二随机数α为在Z p内的一个数。
在一个可选的实施例中,所述基于所述交易数据计算得到第一计算数及第二计算数包括:
对所述交易数据进行二进制展开;
计算展开后的交易数据中的每一个二进制数与2 n的商值得到所述第一计算数;
计算所述第一计算数与单位数组的差值得到所述第二计算数。
在本发明的一个可选实施例中,所述第一计算数a L为由二进制数0或者1组成的一个n维数组,且所述n维数组中的每一个数与2 n的乘积与所述交易数据中相同位置处的数据对应。
示例性的,假设n维数组a L={0,1,1,…0,1,0},那么{0*2 0,1*2 1,1*2 2,…,0* 2 n-2,1*2 n-1}=v,v为交易数据。
在本发明的一个可选实施例中,所述第二计算数
Figure PCTCN2020077625-appb-000003
1 n为由二进制数1组成的n维数组。
示例性的,假设n维数组a L={0,1,1,…0,1,0},那么a R={-1,0,0,…-1,0,-1}。
S13,利用Pedersen承诺基于所述交易数据及所述第一随机数加密得到机密交易。
Pedersen承诺将一个交易数据隐藏进一个加密后的密文中。交易数据发送方节点设备可以之后选择解密承诺的数值。承诺一旦发出,则交易数据发送方节点设备无法找到另外一个数值依然具有相同的承诺计算结果。
机密交易是指使用Pedersen承诺隐藏交易数据,使得只有交易双方可以看到交易数据,而其他人看不到交易数据,同时双方无法伪造交易数据。
在具体实施时,利用Pedersen承诺基于所述交易数据及所述第一随机数加密得到的机密交易中的UTXO=g vh r,其中,v为所述交易数据,v∈[0,2 n-1],r为所述第一随机数。
第一系统参数g和第二系统参数h是离散对数的基,是一个全世界范围内公开的系统参数。
S14,利用Bulletproof范围证明基于所述第一计算数、所述第二计算数及所述第二随机数计算第一证明参数。
Bulletproof是当前最高效的范围证明算法,用于证明一个承诺的值处于[0,2 n-1]之间。
在本发明的一个可选实施例中,所述第一证明参数
Figure PCTCN2020077625-appb-000004
其中,g、h均为公开的系统参数,α为所述第二随机数,a L为所述第一计算数,a R为所述第二计算数。
需要注意的是,本实施例中系统参数g、h与第一系统参数g和第二系统参数h不同。
S15,利用所述Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算第二证明参数。
在本发明的一个可选实施例中,所述第二证明参数
Figure PCTCN2020077625-appb-000005
其中,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
S16,基于所述第一计算数及所述第二签名参数计算目标证明参数。
在本发明的一个可选实施例中,基于所述第一计算数及所述第二签名参数计算目标证明参数包括:
向所述交易数据监管方节点设备发送所述第一证明参数A和所述第二证明参数S 并接收所述交易数据监管方节点设备回复的第一公开参数z;
利用Pedersen承诺随机计算第一承诺参数
Figure PCTCN2020077625-appb-000006
和第二承诺参数
Figure PCTCN2020077625-appb-000007
向所述交易数据监管方节点设备发送所述第一承诺参数和所述第二承诺参数并接收所述交易数据监管方节点设备回复的第二公开参数x;
基于所述第一计算数、所述第二签名参数、所述第一公开参数和所述第二公开参数计算目标证明参数P=a L-z·1 n+s L·x,其中,z为所述第一公开参数,x为所述第二公开参数。
在该可选的实施例中,交易数据发送方节点设备向交易数据监管方节点设备发送所述第一证明参数
Figure PCTCN2020077625-appb-000008
所述第二证明参数
Figure PCTCN2020077625-appb-000009
所述交易数据监管方节点设备选择一个随机数y作为第一公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000010
交易数据发送方节点设备生成第五随机数τ 1和第六随机数τ 2,第五随机数τ 1和第六随机数τ 2均为在Z p内的一个数。
交易数据发送方节点设备可以利用Pedersen承诺基于所述第五随机数、第一系统参数g和第二系统参数h计算第一承诺
Figure PCTCN2020077625-appb-000011
利用Pedersen承诺基于所述第六随机数、第一系统参数g和第二系统参数h计算第二承诺
Figure PCTCN2020077625-appb-000012
交易数据发送方节点设备将第一承诺和第二承诺发送给交易数据监管方节点设备。所述交易数据监管方节点设备选择一个随机数x作为第二公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000013
S17,发送所述机密交易、所述第一证明参数、所述第二证明参数及所述目标证明参数至所述交易数据监管方节点设备,使得所述交易数据监管方节点设备基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
交易数据发送方节点设备将机密交易、第一证明参数、所述第二证明参数及所述目标证明参数至所述交易数据监管方节点设备等其他数据一起发送给交易数据监管方节点设备,使得交易数据监管方节点设备对所述机密交易进行验证并确定交易数据,从而实现监管的目的。
需要说明的是,本实施例中仅描述交易数据监管方节点设备和交易数据发送方节点设备的交互过程,但区块链交易数据证明监管系统中还可以包括交易数据验证方节点设 备,交易数据验证方节点设备的相关内容与现有技术中的Bulletproof范围证明算法一致,在此不再赘述。所述交易数据验证方节点设备除了验证证明本身的正确性,还需要验证交易数据监管方节点设备的签名的正确性。
实施例二
如图2所示,为本发明实施例二的区块链交易数据证明监管方法的流程图。
所述区块链交易数据证明监管方法应用于交易数据监管方节点设备中,所述区块链交易数据证明监管方法具体包括以下步骤,根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。
S21,选取第一签名参数、第二签名参数及第三签名参数。
交易数据监管方节点设备随机选取多个参数,使用所述多个参数计算证明参数。其中,所述多个参数均为Z p范围内的数。
示例性的,选取所述第一签名参数ρ,所述第二签名参数s L,所述第三签名参数s R
S22,利用Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算证明参数。
在本发明的一个可选实施例中,所述第二证明参数
Figure PCTCN2020077625-appb-000014
其中,h是离散对数的基,是一个全世界范围内公开的系统参数,g、h均为公开的系统参数,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
S23,使用私钥对所述证明参数进行签名并保存所述签名及对应的所述第一签名参数、所述第二签名参数及所述第三签名参数。
交易数据监管方节点设备使用数字签名技术对证明参数进行签名。数字签名技术是基于非对称加密算法和信息摘要算法实现的对于消息来源及完整性的认证,同时是签名者不可抵赖的保证。在一个数字签名系统中有两个角色,一个是消息的签名者,一个是消息的认证者。消息的签名者根据自己的私钥可以对一条消息的信息摘要进行签名,消息的认证者根据自己的公钥对一条消息的信息摘要进行验证。如果验证通过则可证明该消息的来源是消息的签名者,消息的信息摘要相同且签名者不可抵赖。
S24,当接收到交易数据发送方节点设备的签名参数请求时,向所述交易数据发送方节点设备发送所述第一签名参数、所述第二签名参数及所述第三签名参数。
交易数据发送方在进行交易数据范围证明之前,通过交易数据发送方节点设备向交易数据监管方节点设备申请签名参数,交易数据监管方节点设备将签名过的证明参数对应的第一签名参数、所述第二签名参数及所述第三签名参数发送给交易数据监管方节点 设备。
S25,获取所述交易数据发送方节点设备的机密交易、第一证明参数、第二证明参数及目标证明参数,并基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
在本发明的一个可选实施例中,所述方法还包括:
当接收到所述交易数据发送方节点设备发送的所述第一证明参数和所述第二证明参数时,回复第一公开参数。
在该可选的实施例中,交易数据发送方节点设备向交易数据监管方节点设备发送第一证明参数
Figure PCTCN2020077625-appb-000015
和第二证明参数
Figure PCTCN2020077625-appb-000016
所述交易数据监管方节点设备选择一个随机数y作为第一公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000017
在本发明的一个可选实施例中,所述方法还包括:
当接收到所述交易数据发送方节点设备发送的第一承诺参数和第二承诺参数时,回复第二公开参数。
在该可选的实施例中,交易数据发送方节点设备将第一承诺和第二承诺发送给交易数据监管方节点设备。所述交易数据监管方节点设备选择一个随机数x作为第二公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000018
在本发明的一个可选实施例中,所述基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据包括:
将所述第一公开参数、所述第二公开参数及所述第二签名参数带入所述目标证明参数中,计算得到目标随机数;
根据所述目标随机数计算出所述机密交易中的交易数据;
其中,所述目标随机数为由0或者1组成的n维数组,且所述n维数组中的每一个数与2 n的乘积与所述交易数据中相同位置处的数据对应。
在该可选的实施例中,交易数据监管方节点设备根据证明中的签名及证明中的参数P即可推算出证明中的交易数据v。由于a L是交易数据v的二进制形式,P,x,z均为公开值,因而交易数据监管方节点设备可以根据所拥有的随机数s L的值计算出a L的值,进而推算出交易数据v。
本实施例,通过交易数据监管方节点设备选取多个签名参数并计算出证明参数,对 计算得到的证明参数进行签名后即可将签名后的多个签名参数发给交易数据发送方节点设备,使得交易数据发送方节点设备根据多个签名参数计算证明参数。由于交易数据监管方节点设备与交易数据发送方节点设备均使用相同的多个签名参数计算得到相同的证明参数,因而在区块链网络上进行机密交易扭转时,交易数据监管方节点设备便能够监管到交易数据发送方节点设备的证明参数,从而实现了机密交易的监管。
实施例三
参阅图3所示,为本发明实施例三揭露的区块链交易数据证明监管装置的功能模块示意图。
在一些实施例中,所述区块链交易数据证明监管装置30运行于交易数据发送方节点设备中。所述区块链交易数据证明监管装置30可以包括多个由下载程序所组成的功能模块。所述区块链交易数据证明监管装置30中的各个下载程序的程序代码可以存储于调度服务器的存储器中,并由至少一个处理器所执行,以执行(详见图1描述)区块链交易数据的证明监管。
本实施例中,所述区块链交易数据证明监管装置30根据其所执行的功能,可以被划分为多个功能模块。所述功能模块可以包括:参数申请模块301、随机数生成模块302、交易加密模块303、第一证明模块304、第二证明模块305、目标证明模块306及数据发送模块307。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列下载程序,其存储在存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。
所述参数申请模块301,用于预先向交易数据监管方节点设备申请第一签名参数、第二签名参数及第三签名参数。
其中,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
交易数据发送方在进行交易数据范围证明之前,可以通过交易数据发送方节点设备向交易数据监管方节点设备申请签名参数。
由于签名参数与交易数据证明值无关,所以可以提前申请多个签名后的签名参数并保存在本地,最后离线使用这些签名参数并生成证明参数。
签名后的签名参数是指通过交易数据监管方节点设备选取多个参数,并基于多个参数进行计算后进行签名的参数。
所述随机数生成模块302,用于确定交易数据,基于所述交易数据计算得到第一计算数及第二计算数,并生成第一随机数及第二随机数。
交易数据发送方节点设备可以预先使用随机数生成算法生成多个随机数。例如,生成第一随机数r,第二随机数α,第一计算数a L,第二计算数a R
其中,所述第二随机数α为在Z p内的一个数。
在一个可选的实施例中,所述随机数生成模块302基于所述交易数据计算得到第一计算数及第二计算数包括:
对所述交易数据进行二进制展开;
计算展开后的交易数据中的每一个二进制数与2 n的商值得到所述第一计算数;
计算所述第一计算数与单位数组的差值得到所述第二计算数。
在本发明的一个可选实施例中,所述第一计算数a L为由二进制数0或者1组成的一个n维数组,且所述n维数组中的每一个数与2 n的乘积与所述交易数据中相同位置处的数据对应。
示例性的,假设n维数组a L={0,1,1,…0,1,0},那么{0*2 0,1*2 1,1*2 2,…,0*2 n-2,1*2 n-1}=v,v为交易数据。
在本发明的一个可选实施例中,所述第二计算数
Figure PCTCN2020077625-appb-000019
1 n为由二进制数1组成的n维数组。
示例性的,假设n维数组a L={0,1,1,…0,1,0},那么a R={-1,0,0,…-1,0,-1}。
所述交易加密模块303,用于利用Pedersen承诺基于所述交易数据及所述第一随机数加密得到机密交易。
Pedersen承诺将一个交易数据隐藏进一个加密后的密文中。交易数据发送方节点设备可以之后选择解密承诺的数值。承诺一旦发出,则交易数据发送方节点设备无法找到另外一个数值依然具有相同的承诺计算结果。
机密交易是指使用Pedersen承诺隐藏交易数据,使得只有交易双方可以看到交易数据,而其他人看不到交易数据,同时双方无法伪造交易数据。
在具体实施时,利用Pedersen承诺基于所述交易数据及所述第一随机数加密得到的机密交易中的UTXO=g vh r,其中,v为所述交易数据,v∈[0,2 n-1],r为所述第一随机数。
第一系统参数g和第二系统参数h是离散对数的基,是一个全世界范围内公开的系统参数。
所述第一证明模块304,用于利用Bulletproof范围证明基于所述第一计算数、所述第二计算数及所述第二随机数计算第一证明参数。
Bulletproof是当前最高效的范围证明算法,用于证明一个承诺的值处于[0,2 n-1]之间。
在本发明的一个可选实施例中,所述第一证明参数
Figure PCTCN2020077625-appb-000020
其中,g、h均为公开的系统参数,α为所述第二随机数,a L为所述第一计算数,a R为所述第二计算数。
需要注意的是,本实施例中系统参数g、h与第一系统参数g和第二系统参数h不同。
所述第二证明模块305,用于利用所述Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算第二证明参数。
在本发明的一个可选实施例中,所述第二证明参数
Figure PCTCN2020077625-appb-000021
其中,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
所述目标证明模块306,用于基于所述第一计算数及所述第二签名参数计算目标证明参数。
在本发明的一个可选实施例中,所述目标证明模块306基于所述第一计算数及所述第二签名参数计算目标证明参数包括:
向所述交易数据监管方节点设备发送所述第一证明参数和所述第二证明参数并接收所述交易数据监管方节点设备回复的第一公开参数;
利用Pedersen承诺随机计算第一承诺参数和第二承诺参数;
向所述交易数据监管方节点设备发送所述第一承诺参数和所述第二承诺参数并接收所述交易数据监管方节点设备回复的第二公开参数;
基于所述第一计算数、所述第二签名参数、所述第一公开参数和所述第二公开参数计算目标证明参数P=a L-z·1 n+s L·x,其中,z为所述第一公开参数,x为所述第二公开参数。
在该可选的实施例中,交易数据发送方节点设备向交易数据监管方节点设备发送所述第一证明参数
Figure PCTCN2020077625-appb-000022
所述第二证明参数
Figure PCTCN2020077625-appb-000023
所述交易数据监管方节点设备选择一个随机数y作为第一公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000024
交易数据发送方节点设备生成第五随机数τ 1和第六随机数τ 2,第五随机数τ 1和第六随机数τ 2均为在Z p内的一个数。
交易数据发送方节点设备可以利用Pedersen承诺基于所述第五随机数、第一系统参数g和第二系统参数h计算第一承诺
Figure PCTCN2020077625-appb-000025
利用Pedersen承诺基于所述第六随机数、第一系统参数g和第二系统参数h计算第二承诺
Figure PCTCN2020077625-appb-000026
交易数据发送方节点设备将第一承诺和第二承诺发送给交易数据监管方节点设备。所述交易数据监管方节点设备选择一个随机数x作为第二公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000027
所述数据发送模块307,用于发送所述机密交易、所述第一证明参数、所述第二证明参数及所述目标证明参数至所述交易数据监管方节点设备,使得所述交易数据监管方节点设备基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
交易数据发送方节点设备将机密交易、第一证明参数、所述第二证明参数及所述目标证明参数至所述交易数据监管方节点设备等其他数据一起发送给交易数据监管方节点设备,使得交易数据监管方节点设备对所述机密交易进行验证,从而实现监管的目的。
实施例四
参阅图4所示,为本发明实施例四揭露的区块链交易数据证明监管装置的功能模块示意图。
在一些实施例中,所述区块链交易数据证明监管装置40运行于交易数据发送方节点设备中。所述区块链交易数据证明监管装置40可以包括多个由下载程序所组成的功能模块。所述区块链交易数据证明监管装置40中的各个下载程序的程序代码可以存储于调度服务器的存储器中,并由至少一个处理器所执行,以执行(详见图2描述)区块链交易数据的证明监管。
本实施例中,所述区块链交易数据证明监管装置40根据其所执行的功能,可以被划分为多个功能模块。所述功能模块可以包括:参数选取模块401、参数证明模块402、签名保存模块403、参数发送模块404、交易监管模块405及参数回复模块406。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列下载程序,其存储在存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。
所述参数选取模块401,用于选取第一签名参数、第二签名参数及第三签名参数。
交易数据监管方节点设备随机选取多个参数,使用所述多个参数计算证明参数。其中,所述多个参数均为Z p范围内的数。
示例性的,选取所述第一签名参数ρ,所述第二签名参数s L,所述第三签名参数s R
所述参数证明模块402,用于利用Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算证明参数。
在本发明的一个可选实施例中,所述第二证明参数
Figure PCTCN2020077625-appb-000028
其中,h是离散对数的基,是一个全世界范围内公开的系统参数,g、h均为公开的系统参数,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
所述签名保存模块403,用于使用私钥对所述证明参数进行签名并保存所述签名及对应的所述第一签名参数、所述第二签名参数及所述第三签名参数。
交易数据监管方节点设备使用数字签名技术对证明参数进行签名。数字签名技术是基于非对称加密算法和信息摘要算法实现的对于消息来源及完整性的认证,同时是签名者不可抵赖的保证。在一个数字签名系统中有两个角色,一个是消息的签名者,一个是消息的认证者。消息的签名者根据自己的私钥可以对一条消息的信息摘要进行签名,消息的认证者根据自己的公钥对一条消息的信息摘要进行验证。如果验证通过则可证明该消息的来源是消息的签名者,消息的信息摘要相同且签名者不可抵赖。
所述参数发送模块404,用于当接收到交易数据发送方节点设备的签名参数请求时,向所述交易数据发送方节点设备发送所述第一签名参数、所述第二签名参数及所述第三签名参数。
交易数据发送方在进行交易数据范围证明之前,通过交易数据发送方节点设备向交易数据监管方节点设备申请签名参数,交易数据监管方节点设备将签名过的证明参数对应的第一签名参数、所述第二签名参数及所述第三签名参数发送给交易数据监管方节点设备。
所述交易监管模块405,用于获取所述交易数据发送方节点设备的机密交易、第一证明参数、第二证明参数及目标证明参数,并基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
所述参数回复模块406,用于当接收到所述交易数据发送方节点设备发送的所述第一证明参数和所述第二证明参数时,回复第一公开参数。
在该可选的实施例中,交易数据发送方节点设备向交易数据监管方节点设备发送第一证明参数
Figure PCTCN2020077625-appb-000029
和第二证明参数
Figure PCTCN2020077625-appb-000030
所述交易数据监管方节点设备选择一个随机数y作为第一公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000031
所述参数回复模块406,还用于当接收到所述交易数据发送方节点设备发送的第一承诺参数和第二承诺参数时,回复第二公开参数。
在该可选的实施例中,交易数据发送方节点设备将第一承诺和第二承诺发送给交易 数据监管方节点设备。所述交易数据监管方节点设备选择一个随机数x作为第二公开数并公开回复给交易数据发送方节点设备,其中随机数
Figure PCTCN2020077625-appb-000032
在本发明的一个可选实施例中,所述交易监管模块405基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据包括:
将所述第一公开参数、所述第二公开参数及所述第二签名参数带入所述目标证明参数中,计算得到目标随机数;
根据所述目标随机数计算出所述机密交易中的交易数据;
其中,所述目标随机数为由0或者1组成的n维数组,且所述n维数组中的每一个数与2 n的乘积与所述交易数据中相同位置处的数据对应。
在该可选的实施例中,交易数据监管方节点设备根据证明中的签名及证明中的参数P即可推算出证明中的交易数据v。由于a L是交易数据v的二进制形式,P,x,z均为公开值,因而交易数据监管方节点设备可以根据所拥有的随机数s L的值计算出a L的值,进而推算出交易数据v。
本实施例,通过交易数据监管方节点设备选取多个签名参数并计算出证明参数,对计算得到的证明参数进行签名后即可将签名后的多个签名参数发给交易数据发送方节点设备,使得交易数据发送方节点设备根据多个签名参数计算证明参数。由于交易数据监管方节点设备与交易数据发送方节点设备均使用相同的多个签名参数计算得到相同的证明参数,因而在区块链网络上进行机密交易扭转时,交易数据监管方节点设备便能够监管到交易数据发送方节点设备的证明参数,从而实现了机密交易的监管。
实施例五
图5为本发明实施例揭露的区块链节点设备的内部结构示意图。
在本实施例中,所述区块链节点设备5可以包括存储器51、处理器52和总线53及收发器54。
所述区块链节点设备5可以是交易数据发送方节点设备,执行实施例一所述的区块链交易数据证明监管方法中的全部或者部分步骤。所述区块链节点设备5可以是交易数据监管方节点设备,执行实施例二所述的区块链交易数据证明监管方法中的全部或者部分步骤。
其中,存储器51至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘 等。存储器51在一些实施例中可以是所述区块链节点设备5的内部存储单元,例如所述区块链节点设备5的硬盘。存储器51在另一些实施例中也可以是所述区块链节点设备5的外部存储设备,例如所述区块链节点设备5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器51还可以既包括所述区块链节点设备5的内部存储单元,也包括外部存储设备。存储器51不仅可以用于存储安装于所述区块链节点设备5的应用程序及各类数据,例如,区块链交易数据证明监管装置30及其各个功能模块,或者区块链交易数据证明监管装置40及其各个功能模块,还可以用于暂时地存储已经输出或者将要输出的数据。
处理器52在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器,用于运行存储器51中存储的下载程序或处理数据。
该总线53可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
进一步地,所述区块链节点设备5还可以包括网络接口,网络接口可选的可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该区块链节点设备5与其他调度服务器之间建立通信连接。
可选地,该区块链节点设备5还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元,比如键盘(Keyboard),可选的,用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及有机发光二极管(Organic Light-Emitting Diode,OLED)触摸器等。其中,显示器也可以称为显示屏或显示单元,用于显示在所述调度服务器中处理的消息以及用于显示可视化的用户界面。
图5仅示出了具有组件51-54的所述区块链节点设备5,本领域技术人员可以理解的是,图5示出的结构并不构成对所述区块链节点设备5的限定,既可以是总线型结构,也可以是星形结构,所述区块链节点设备5还可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。其他现有的或今后可能出现的电子产品如可适应于本发明,也应包含在本发明的保护范围以内,并以引用方式包含于此。
在上述实施例中,可以全部或部分地通过应用程序、硬件、固件或者其任意组合来 实现。当使用应用程序实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如,同轴电缆、光纤、数字用户线)或无线(例如,红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD),或者半导体介质(例如,固态硬盘(Solid State Disk,SSD))等。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例中的方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用应用程序功能单元的形式实现。
所述集成的单元如果以应用程序功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以应用程 序产品的形式体现出来,该计算机应用程序产品存储在一个存储介质中,包括若干指令用以使得一台调度服务器(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、硬盘、只读存储器(Read-Only Memory,ROM)、磁碟或者光盘等各种可以存储下载程序的介质。
需要说明的是,上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (11)

  1. 一种区块链交易数据证明监管方法,应用于交易数据发送方节点设备中,其特征在于,所述方法包括:
    预先向交易数据监管方节点设备申请第一签名参数、第二签名参数及第三签名参数;
    确定交易数据,基于所述交易数据计算得到第一计算数及第二计算数,并生成第一随机数及第二随机数;
    利用Pedersen承诺基于所述交易数据及所述第一随机数加密得到机密交易;
    利用Bulletproof范围证明基于所述第一计算数、所述第二计算数及所述第二随机数计算第一证明参数;
    利用所述Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算第二证明参数;
    基于所述第一计算数及所述第二签名参数计算目标证明参数;
    发送所述机密交易、所述第一证明参数、所述第二证明参数及所述目标证明参数至所述交易数据监管方节点设备,使得所述交易数据监管方节点设备基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
  2. 如权利要求1所述的区块链交易数据证明监管方法,其特征在于,所述第一证明参数
    Figure PCTCN2020077625-appb-100001
    其中,h、g、h均为系统参数,α为所述第二随机数,a L为所述第一计算数,a R为所述第二计算数。
  3. 如权利要求2所述的区块链交易数据证明监管方法,其特征在于,所述基于所述交易数据计算得到第一计算数及第二计算数包括:
    对所述交易数据进行二进制展开;
    计算展开后的交易数据中的每一个二进制数与2 n的商值得到所述第一计算数;
    计算所述第一计算数与单位数组的差值得到所述第二计算数。
  4. 如权利要求3所述的区块链交易数据证明监管方法,其特征在于,所述第二证明参数
    Figure PCTCN2020077625-appb-100002
    其中,ρ为所述第一签名参数,s L为所述第二签名参数,s R为所述第三签名参数。
  5. 如权利要求4所述的区块链交易数据证明监管方法,其特征在于,基于所述第一计算数及所述第二签名参数计算目标证明参数包括:
    向所述交易数据监管方节点设备发送所述第一证明参数和所述第二证明参数并接 收所述交易数据监管方节点设备回复的第一公开参数;
    利用Pedersen承诺随机计算第一承诺参数和第二承诺参数;
    向所述交易数据监管方节点设备发送所述第一承诺参数和所述第二承诺参数并接收所述交易数据监管方节点设备回复的第二公开参数;
    基于所述第一计算数、所述第二签名参数、所述第一公开参数和所述第二公开参数计算目标证明参数P=a L-z·1 n+s L·x,其中,z为所述第一公开参数,x为所述第二公开参数。
  6. 一种区块链交易数据证明监管方法,应用于交易数据监管方节点设备中,其特征在于,所述方法还包括:
    选取第一签名参数、第二签名参数及第三签名参数;
    利用Bulletproof范围证明基于所述第一签名参数、所述第二签名参数及所述第三签名参数计算证明参数;
    使用私钥对所述证明参数进行签名并保存所述签名及对应的所述第一签名参数、所述第二签名参数及所述第三签名参数;
    当接收到交易数据发送方节点设备的签名参数请求时,向所述交易数据发送方节点设备发送所述第一签名参数、所述第二签名参数及所述第三签名参数;
    获取所述交易数据发送方节点设备的机密交易、第一证明参数、第二证明参数及目标证明参数,并基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据。
  7. 如权利要求6所述的区块链交易数据证明监管方法,其特征在于,所述方法还包括:
    当接收到所述交易数据发送方节点设备发送的所述第一证明参数和所述第二证明参数时,回复第一公开参数;
    当接收到所述交易数据发送方节点设备发送的第一承诺参数和第二承诺参数时,回复第二公开参数。
  8. 如权利要求7所述的区块链交易数据证明监管方法,其特征在于,所述基于所述第一证明参数、所述第二证明参数及所述目标证明参数对所述机密交易进行验证并监管所述交易数据包括:
    将所述第一公开参数、所述第二公开参数及所述第二签名参数带入所述目标证明参数中,计算得到目标随机数;
    根据所述目标随机数计算出所述机密交易中的交易数据;
    其中,所述目标随机数为由0或者1组成的n维数组,且所述n维数组中的每一个数与2 n的乘积与所述交易数据中相同位置处的数据对应。
  9. 一种区块链交易数据证明监管系统,其特征在于,所述系统包括:
    交易数据发送方节点设备,用于实现如权利要求1至5中任意一项所述的方法;
    交易数据监管方节点设备,用于实现如权利要求6至8中任意一项所述的方法。
  10. 一种区块链节点设备,其特征在于,所述区块链节点设备包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的区块链交易数据证明监管方法的下载程序,所述区块链交易数据证明监管方法的下载程序被所述处理器执行时实现如权利要求1至8中任意一项所述的区块链交易数据证明监管方法。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有区块链交易数据证明监管方法的下载程序,所述区块链交易数据证明监管方法的下载程序可被一个或者多个处理器执行以实现如权利要求1至8中任意一项所述的区块链交易数据证明监管方法。
PCT/CN2020/077625 2019-12-31 2020-03-03 区块链交易数据证明监管方法、系统及相关设备 WO2021134898A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911416633.X 2019-12-31
CN201911416633.XA CN111161075B (zh) 2019-12-31 2019-12-31 区块链交易数据证明监管方法、系统及相关设备

Publications (1)

Publication Number Publication Date
WO2021134898A1 true WO2021134898A1 (zh) 2021-07-08

Family

ID=70560267

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/077625 WO2021134898A1 (zh) 2019-12-31 2020-03-03 区块链交易数据证明监管方法、系统及相关设备

Country Status (2)

Country Link
CN (1) CN111161075B (zh)
WO (1) WO2021134898A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112435120B (zh) * 2020-11-05 2023-01-31 德州职业技术学院(德州市技师学院) 一种区块链数据监管方法和系统
CN113343296B (zh) * 2021-06-17 2023-01-17 上海万向区块链股份公司 基于隐私计算的物联网数据采集系统、方法、介质及设备
CN116389164B (zh) * 2023-05-26 2023-09-12 建信金融科技有限责任公司 数据的检测方法及装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110383311A (zh) * 2018-11-07 2019-10-25 阿里巴巴集团控股有限公司 监管区块链机密交易
CN110545279A (zh) * 2019-09-05 2019-12-06 国网区块链科技(北京)有限公司 兼具隐私和监管功能的区块链交易方法、装置及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111989891B (zh) * 2018-04-26 2024-07-05 华为国际有限公司 数据处理方法、相关装置及区块链系统
CN111833057A (zh) * 2018-09-30 2020-10-27 创新先进技术有限公司 基于区块链的交易方法、装置和节点设备
CA3041156A1 (en) * 2018-11-07 2019-04-18 Alibaba Group Holding Limited Recovering encrypted transaction information in blockchain confidential transactions
CN109858283B (zh) * 2019-02-26 2022-11-01 陕西科技大学 一种基于Chaum-Pedersen的云存储安全数据共享方法
CN110517147B (zh) * 2019-08-30 2023-04-14 深圳市迅雷网络技术有限公司 交易数据处理方法、装置、系统及计算机可读存储介质

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110383311A (zh) * 2018-11-07 2019-10-25 阿里巴巴集团控股有限公司 监管区块链机密交易
CN110545279A (zh) * 2019-09-05 2019-12-06 国网区块链科技(北京)有限公司 兼具隐私和监管功能的区块链交易方法、装置及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
EDUARDO MORAIS; TOMMY KOENS; CEES VAN WIJK; ALEKSEI KOREN: "A Survey on Zero Knowledge Range Proofs and Applications", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 15 July 2019 (2019-07-15), 201 Olin Library Cornell University Ithaca, NY 14853, XP081442007 *

Also Published As

Publication number Publication date
CN111161075A (zh) 2020-05-15
CN111161075B (zh) 2024-04-05

Similar Documents

Publication Publication Date Title
CN109862041B (zh) 一种数字身份认证方法、设备、装置、系统及存储介质
CN109951489B (zh) 一种数字身份认证方法、设备、装置、系统及存储介质
CN111989891B (zh) 数据处理方法、相关装置及区块链系统
CN110290108B (zh) 一种区块链网络中的数据处理方法、系统及相关设备
CN109034796B (zh) 基于联盟链的交易监管方法、电子装置及可读存储介质
WO2021134898A1 (zh) 区块链交易数据证明监管方法、系统及相关设备
CN110517147B (zh) 交易数据处理方法、装置、系统及计算机可读存储介质
US11223486B2 (en) Digital signature method, device, and system
US10178079B2 (en) Group management of authenticated entities
CN112560091B (zh) 数字签名方法、签名信息的验证方法、相关装置及电子设备
WO2019110018A1 (zh) 通信网络系统的消息验证方法、通信方法和通信网络系统
CN110597836B (zh) 基于区块链网络的信息查询请求响应方法及装置
WO2020253108A1 (zh) 信息隐匿方法、装置、设备及存储介质
US20210241270A1 (en) System and method of blockchain transaction verification
CN112769548B (zh) 一种区块链数值信息传输方法、系统、装置及计算机介质
US20230237437A1 (en) Apparatuses and methods for determining and processing dormant user data in a job resume immutable sequential listing
EP3020159A1 (en) Electronic signature system
US11379572B2 (en) Apparatus, method, and program product for proof of work based authentication
CN109510711B (zh) 一种网络通信方法、服务器、客户端及系统
WO2021134876A1 (zh) 基于区块链的交易数据混淆方法及相关设备
CN112352399A (zh) 用于使用物理上不可克隆函数在板上生成密码密钥的方法
CN111552950A (zh) 一种软件授权方法、装置及计算机可读存储介质
CN112837064A (zh) 联盟链的签名方法、签名验证方法及装置
CN114826613B (zh) 基于区块链的身份信息查询方法、装置、设备及存储介质
CN114124396B (zh) 信息传输方法、系统和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20909414

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20909414

Country of ref document: EP

Kind code of ref document: A1