Method for providing oracle service of blockchain network using zero-knowledge proof and aggregator terminal using the same
Zero-knowledge proofs are used to encrypt and verify off-chain data in blockchain networks, ensuring reliable on-chain data generation while maintaining data privacy, addressing reliability and security issues in existing oracle services.
Patent Information
- Application Number
- JP2022178905
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-10-12
- Filing Date
- 2022-11-08
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-11-08
AI Technical Summary
Existing oracle services for blockchain networks lack reliability as they cannot guarantee that on-chain data is generated from actual off-chain data without exposing the off-chain data, making them susceptible to front-running attacks.
Utilizing zero-knowledge proofs, an aggregator terminal encrypts off-chain data with public keys, generates commitments and proof values, and registers these in the blockchain network, ensuring that on-chain data is derived from trusted off-chain data through a trusted third party's key generation and verification processes.
This method protects off-chain data integrity and ensures the reliability of on-chain data generation, allowing users to trust that on-chain data is derived from off-chain data without exposing sensitive information.
Smart Images

Figure 0007539170000001 
Figure 0007539170000004 
Figure 0007539170000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a method for providing an oracle service of a blockchain network using zero-knowledge proof and an aggregator terminal using the same, and more particularly to a method for providing an oracle service of a blockchain network using zero-knowledge proof, which makes it possible to prove that on-chain data was generated from off-chain data without disclosing the off-chain data, thereby improving the reliability of the on-chain data, and an aggregator terminal using the same. [Background technology]
[0002] In the field of blockchain networks, an oracle refers to bringing data outside the blockchain network into the blockchain network or sending data inside the blockchain network to the outside, and plays a role in connecting the isolated blockchain ecosystem with the outside. In this case, data outside the blockchain network is called off-chain data, and off-chain data that enters the blockchain network is called on-chain data.
[0003] A blockchain network is a distributed ledger technology that makes it almost impossible to forge or tamper with data by linking blocks containing data together in a chain to create a blockchain, but data can only be managed as a blockchain if it enters the blockchain network. If data does not enter the blockchain network or is forged or tampered with during the process of entering the blockchain network, it is difficult to trust the data even if it is managed as a blockchain.
[0004] The process of data in the real world entering a blockchain network is not as easy as it seems. For off-chain data to turn into on-chain data, an intermediary is needed to put the off-chain data into the blockchain network. The problem with oracles is how to trust such an intermediary.
[0005] Various methods have been introduced to solve this oracle problem, including deciding through voting by cryptocurrency owners, selecting the median of various data, or placing a middleware that provides reliable data between the real world and the blockchain.
[0006] Currently, examples of intermediaries offering oracle services include Oraclize, Chainlink, and iCash.
[0007] As an example, Chainlink provides an oracle service by storing token prices from centralized exchanges in a smart contract on a blockchain network, allowing other blockchain network services to use the token prices. Many DeFi service providers are now able to provide various services using the registered token prices. In this way, companies that provide oracle services are providing reliability for on-chain data by storing off-chain data in a smart contract on a blockchain network and providing it as on-chain data.
[0008] However, in such conventional oracle services, reliability is provided by receiving off-chain data from a data feeder designated by the oracle service provider and publishing the corresponding on-chain data. However, it is not possible to guarantee the reliability of whether the published on-chain data is the actual data provided by the data feeder, or whether the final processed on-chain data uses the actual off-chain data received from the data feeder.
[0009] In order to guarantee the reliability of whether the final processed on-chain data uses the actual off-chain data received from the data feeder, the off-chain data itself received from the data feeder can be made public. However, if the off-chain data is made public, a front-running attack using the off-chain data in advance is possible, which creates a problem in that the reliability of the oracle service itself cannot be guaranteed.
[0010] Therefore, the present applicant proposes a method to protect off-chain data provided by feeders while trusting that on-chain data providing oracle services was generated using off-chain data. Summary of the Invention [Problem to be solved by the invention]
[0011] An object of the present invention is to solve all of the above problems.
[0012] Another object of the present invention is to protect off-chain data provided by a feeder and ensure the reliability of the off-chain data.
[0013] Another object of the present invention is to ensure the reliability of on-chain data generated using off-chain data.
[0014] Another object of the present invention is to protect off-chain data and enable trust that on-chain data was generated from off-chain data. [Means for solving the problem]
[0015] According to an embodiment of the present invention, a method for providing an oracle service of a blockchain network using zero-knowledge proof includes: (a) registering, in the blockchain network, each of a plurality of feeder terminals each of data feeder transactions, the data feeder transactions including each commitment generated by using a commitment key and each off-chain data, each encrypted data obtained by encrypting each of the off-chain data using a public key, and each data proof value proving that each of the off-chain data corresponding to the commitment and each encrypted data is identical by using each feeder zero-knowledge proof key, an aggregator terminal acquires, during a specific period according to a preset period, the first data feeder transaction through the kth (where k is an integer equal to or greater than 1) data feeder transaction registered in the blockchain network; and (b) the aggregator terminal (i) verifying the ith data proof value using the ith (where i is an integer greater than or equal to 1 and less than or equal to k) feeder zero-knowledge proof key in each of the first data feeder transaction to the kth data feeder transaction, and obtaining the first decrypted data to the kth decrypted data by generating the ith decrypted data by using a private key corresponding to the public key, (ii) generating on-chain data by computing the first decrypted data to the kth decrypted data through a preset computing unit, and generating a computation proof value that proves that the on-chain data was generated by computing the first decrypted data to the kth decrypted data by the preset computing unit using an aggregator zero-knowledge proof key, and (iii) registering the on-chain data and the computation proof value in the blockchain network.
[0016] The method further includes: (a0) the aggregator terminal registering the commitment key, the public key, and the aggregator zero-knowledge proof key issued by a trusted third party in the blockchain network;
[0017] In step (a), a specific feeder terminal, which is any one of the plurality of feeder terminals, generates a specific commitment for specific off-chain data and specific encrypted data by acquiring the commitment key and the public key from the blockchain network, generates a specific data proof value using a specific feeder zero-knowledge proof key issued by the trusted third party, and registers a specific data feeder transaction including the specific commitment, the specific encrypted data, and the specific data proof value in the blockchain network.
[0018] The specific feeder zero-knowledge proof key is generated by the trusted third party using the commitment key and the public key by the specific feeder terminal requesting issuance from the trusted third party using the public key acquired from the blockchain network.
[0019] The aggregator terminal, by requesting the trusted third party to issue a key for the preset arithmetic unit, inputs a first security parameter to a first key generation module to generate the commitment key, inputs a second security parameter to a second key generation module to generate the private key and the public key, inputs the commitment key and the preset arithmetic unit to a third key generation module to generate the aggregator zero-knowledge proof key, and then transmits the commitment key, the private key, the public key, and the public key to the trusted third party. Aggregator A zero-knowledge proof key is transmitted to the aggregator terminal.
[0020] In step (b), the aggregator terminal verifies the i-th data proof value by obtaining the i-th feeder zero-knowledge proof key registered in the blockchain network by the i-th feeder terminal that registered the i-th data feeder transaction from the blockchain network.
[0021] According to another embodiment of the present invention, an aggregator terminal for providing an oracle service of a blockchain network using zero-knowledge proof includes a memory storing instructions for providing an oracle service of a blockchain network using zero-knowledge proof; and a processor performing an operation for providing an oracle service of a blockchain network using zero-knowledge proof according to the instructions stored in the memory, wherein the processor performs the following steps: (I) When each of a plurality of feeder terminals registers in the blockchain network each data feeder transaction including each commitment generated by using a commitment key and each off-chain data, each encrypted data obtained by encrypting each of the off-chain data using a public key, and each data proof value that proves that each of the off-chain data corresponding to the commitment and each encrypted data is identical by using each feeder zero-knowledge proof key, the processor performs the following steps: an aggregator terminal that performs a process of acquiring a first data feeder transaction through a k-th data feeder transaction (wherein the k is an integer greater than or equal to 1) registered in a blockchain network; and (II) (i) for each of the first data feeder transaction through the k-th data feeder transaction, verifying an ith data proof value using an ith (wherein the i is an integer greater than or equal to 1 and less than or equal to k) feeder zero-knowledge proof key, and acquiring first decrypted data through a k-th decrypted data by generating the ith decrypted data by decrypting the ith encrypted data using a private key corresponding to the public key, (ii) generating on-chain data by computing the first decrypted data through the k-th decrypted data through a preset computing unit, and generating a computation proof value that proves that the on-chain data was generated by computing the first decrypted data through the k-th decrypted data through the preset computing unit using an aggregator zero-knowledge proof key, and (iii) registering the on-chain data and the computation proof value in the blockchain network.
[0022] The processor is an aggregator that performs a process of registering the commitment key, the public key, and the aggregator zero-knowledge proof key issued by a trusted third party in the blockchain network prior to the (I) process.
[0023] The processor, in the process (I), causes a specific feeder terminal, which is any one of the plurality of feeder terminals, to generate a specific commitment and specific encrypted data for specific off-chain data by acquiring the commitment key and the public key from the blockchain network, generate a specific data proof value using a specific feeder zero-knowledge proof key issued by the trusted third party, and register a specific data feeder transaction including the specific commitment, the specific encrypted data, and the specific data proof value in the blockchain network.
[0024] The specific feeder zero-knowledge proof key is generated by the trusted third party using the commitment key and the public key by the specific feeder terminal requesting issuance from the trusted third party using the public key acquired from the blockchain network.
[0025] The processor, by requesting the trusted third party to issue a key for the preset calculator, has the trusted third party input a first security parameter to a first key generation module to generate the commitment key, input a second security parameter to a second key generation module to generate the private key and the public key, and input the commitment key and the preset calculator to a third key generation module to generate the aggregator zero-knowledge proof key, and then transmits the commitment key, the private key, the public key, and the public key to the third key generation module. Aggregator A zero-knowledge proof key is transmitted to the aggregator terminal.
[0026] In the process (II), the processor verifies the i-th data proof value by obtaining from the blockchain network the i-th feeder zero-knowledge proof key registered in the blockchain network by the i-th feeder terminal that registered the i-th data feeder transaction. Effect of the Invention
[0027] The present invention has the following advantages.
[0028] The present invention makes it possible to protect off-chain data provided by a feeder and ensure the reliability of the off-chain data.
[0029] Furthermore, the present invention makes it possible to ensure the reliability of on-chain data generated using off-chain data.
[0030] The present invention also protects off-chain data, allowing one to trust that on-chain data was generated from off-chain data. [Brief description of the drawings]
[0031] [Figure 1] FIG. 1 is a simplified diagram of a system for providing an oracle service for a blockchain network using zero-knowledge proof in one embodiment of the present invention. [Diagram 2] 1 is a diagram illustrating a process of generating and registering a key in a method for providing an oracle service of a blockchain network using zero-knowledge proof in one embodiment of the present invention. [Diagram 3] 1 is a diagram illustrating a process in which a feeder terminal registers off-chain data in a blockchain network in a method for providing an oracle service of a blockchain network using zero-knowledge proof in one embodiment of the present invention. [Figure 4]1 is a diagram illustrating a process in which an aggregator terminal provides off-chain data provided by a feeder terminal as on-chain data in a method for providing an oracle service in a blockchain network using zero-knowledge proof in one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0032] The following detailed description of the present invention refers to the accompanying drawings, which show by way of example specific embodiments in which the present invention may be practiced. These embodiments are described in sufficient detail to enable one skilled in the art to practice the present invention. It should be understood that the various embodiments of the present invention are different from one another, but are not necessarily mutually exclusive. For example, a specific shape, structure, and characteristic described herein may be embodied in other embodiments without departing from the spirit and scope of the present invention. It should also be understood that the location or arrangement of individual components within each disclosed embodiment may be modified without departing from the spirit and scope of the present invention. Therefore, the following detailed description is not intended to be taken in a limiting sense, and the scope of the present invention is limited only by the appended claims, with the full scope of equivalents to which such claims are entitled, if properly interpreted. In the drawings, like reference numerals refer to the same or similar features throughout the various aspects.
[0033] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings in order to enable those skilled in the art to easily practice the present invention.
[0034] FIG. 1 is a simplified diagram of a system for providing an oracle service of a blockchain network using zero-knowledge proof in one embodiment of the present invention. Referring to FIG. 1, the system 1000 may include a plurality of feeder terminals 100_1, 100_2, ..., 100_n, an aggregator terminal 200, a trusted third party 300, and a blockchain network 400.
[0035] First, each of the multiple feeder terminals 100_1, 100_2, ..., 100_n is an entity that generates a commitment and encrypted data for off-chain data, generates a data proof value for zero-knowledge proof, and registers the commitment, encrypted data, and data proof value in the blockchain network 400, and may include all devices that provide various information generated in the real world or analysis / statistical data using the same, such as IoT devices, databases, PCs, mobile computers, PDAs / EDAs, mobile phones, smartphones, tablets, information providing servers, data collection bots, and artificial intelligence. In this case, the off-chain data may include all information generated in the real world or generated using the same, such as analysis information, statistical information, and sensing information obtained by analyzing various information such as voting information, price information, payment information, logistics information, and news. In addition, each of the multiple feeder terminals 100_1, 100_2, ..., 100_n may include a memory storing instructions for providing an oracle service of a blockchain network using zero-knowledge proof, and a processor that performs operations for providing an oracle service of a blockchain network using zero-knowledge proof according to the instructions stored in the memory.
[0036] Specifically, each of the plurality of feeder terminals 100_1, 100_2, ..., 100_n may typically utilize a combination of computing devices (e.g., devices which may include computer processors, memory, storage, input and output devices, and other components of existing computing devices; electronic communication devices such as routers, switches, etc.; electronic information storage systems such as network attached storage (NAS) and storage area networks (SAN)) and computer software (i.e., instructions that cause a computing device to function in a particular manner) to achieve the desired system performance.
[0037] The communication unit of such a computing device may send and receive requests and responses to other linked computing devices, and by way of example, such requests and responses may be made via the same TCP session, but are not limited to this, and may also be sent and received as, for example, UDP datagrams.
[0038] The processor of the computing device may include hardware components such as a micro processing unit (MPU) or central processing unit (CPU), cache memory, data bus, etc. The computing device may further include software components such as an operating system and applications that perform specific purposes.
[0039] Next, the aggregator terminal 200 is an entity that provides an oracle service by generating on-chain data by decrypting and computing encrypted data registered by a plurality of feeder terminals 100_1, 100_2, ..., 100_n, and registering the on-chain data and a computation proof value for zero-knowledge proof in the blockchain network 400, and may include, but is not limited to, a server, a PC, a mobile computer, a PDA / EDA, a mobile phone, a smartphone, a tablet, etc., and may include all devices that perform computer computations. In addition, the aggregator terminal 200 may include a memory in which instructions for providing an oracle service of a blockchain network using zero-knowledge proof are stored, and a processor that performs an operation for providing an oracle service of a blockchain network using zero-knowledge proof according to the instructions stored in the memory.
[0040] Specifically, the aggregator terminal 200 may typically utilize a combination of computing devices (e.g., devices that may include computer processors, memory, storage, input and output devices, and other components of existing computing devices; electronic communication devices such as routers, switches, and the like; electronic information storage systems such as network attached storage (NAS) and storage area networks (SAN)) and computer software (i.e., instructions that cause a computing device to function in a particular manner) to achieve the desired system performance.
[0041] The communication unit of such a computing device may send and receive requests and responses to other linked computing devices, and by way of example, such requests and responses may be made via the same TCP session, but are not limited to this, and may also be sent and received as, for example, UDP datagrams.
[0042] The processor of the computing device may include hardware components such as a micro processing unit (MPU) or central processing unit (CPU), cache memory, data bus, etc. The computing device may further include software components such as an operating system and applications that perform specific purposes.
[0043] Next, the trusted third party 300 is an entity that generates a key used in the oracle service of the blockchain network using zero-knowledge proof, and may include, but is not limited to, a PC, a mobile computer, a PDA / EDA, a mobile phone, a smartphone, a tablet, a server, etc., and may include all computing devices that perform computer operations. Meanwhile, the trusted third party 300 may be embodied as a smart contract that operates in a virtual machine of the blockchain network 400, or may be embodied as a computing device linked to the aggregator terminal 200.
[0044] Next, the blockchain network 400 is embodied by a plurality of blockchain nodes and can be an entity that performs data distribution processing by recording a blockchain in which blocks of data are linked in a chain in a distributed ledger.
[0045] In one embodiment of the present invention configured as above, a method for providing an oracle service for a blockchain network using zero-knowledge proof through a system for providing an oracle service for a blockchain network using zero-knowledge proof will be described as follows.
[0046] First, referring to FIG. 2, in one embodiment of the present invention, a process of generating a key to be used for zero-knowledge proof in a method for providing an oracle service of a blockchain network using zero-knowledge proof will be described as follows.
[0047] In order to obtain a key for providing an oracle service of a blockchain network using zero-knowledge proof, the aggregator terminal 200 may request the trusted third party 300 to issue a key for a pre-configured computing unit (S11).
[0048] In this case, the pre-set calculator is a calculator for processing off-chain data to generate on-chain data, and may include an arithmetic module or arithmetic logic for converting the off-chain data into on-chain data.
[0049] For example, the calculator may be a function that calculates the average, median, mode, range, quartile range, variance, standard deviation, etc. of the off-chain data by calculating a representative value that numerically represents the characteristics of the off-chain data. The calculator may also be a function that uses sales information of products by region to generate statistics on inventory information of products by region. The calculator may also be a function that generates forecast information that predicts a specific result using information from news, Internet sites, etc. However, in the present invention, the calculator is not limited to such functions, and may include various functions that process real-world information to generate specific types of information.
[0050] Then, the trusted third party 300 may generate a commitment key by inputting the first security parameter to the first key generation module, generate a private key and a public key by inputting the second security parameter to the second key generation module, and generate an aggregator zero-knowledge proof key by inputting the commitment key and a preset calculator to the third key generation module S12. In this case, the first security parameter and the second security parameter may be security parameters generated for generating a key for the preset calculator, and the first security parameter and the second security parameter may be different security parameters or the same security parameter.
[0051] As an example, the first key generation module may be a Pedersen Vector Commitment (PVC) key generation algorithm, and a commitment key CK may be output by inputting a security parameter (λ) into the following PVC key generation algorithm.
[0052] PVC.Keygen(λ) → (CK)
[0053] However, the first key generation module in the present invention is not limited to PVC, and key generation modules in various commitment schemes for zero-knowledge proof can be used.
[0054] The second key generation module may be a key generation algorithm for Elgamal encryption, and a public key PK and a private key SK may be output by inputting a security parameter (λ) into the following Elgamal key generation algorithm.
[0055] Elgamal.Keygen(λ) → (PK,SK)
[0056] However, the second key generation module in the present invention is not limited to Elgamal encryption, and key generation modules in various encryption algorithms that encrypt and decrypt data using an asymmetric key consisting of a public key and a private key can be used.
[0057] In addition, the third key generation module may be a key generation algorithm for CP-SNARK (simulation-extractable commit and prove succinct non-interactive argument of knowledge), and the commitment key CK and a calculator (R) may be input to the following CP-SNARK key generation algorithm to output the aggregator zero-knowledge proof key CRSa.
[0058] CP-SNARK.Keygen(CK,R) → CRSa
[0059] However, the third key generation module in the present invention is not limited to CP-SNARK, and key generation modules in various zero-knowledge proof algorithms that generate and verify proof values for zero-knowledge proofs can be used.
[0060] The trusted third party 300 then transmits the generated commitment key, private key, public key, and Aggregator A zero-knowledge proof key can be issued to the aggregator terminal 200 (S13).
[0061] Thereafter, the aggregator terminal 200 can register the commitment key, public key, and aggregator zero-knowledge proof key issued by the trusted third party 300 in the blockchain network 400 (S14).
[0062] At this time, the aggregator terminal 200 can broadcast a transaction including the commitment key, the public key, and the aggregator zero-knowledge proof key to the blockchain network 400, or can broadcast a transaction including each of the commitment key, the public key, and the aggregator zero-knowledge proof key to the blockchain network 400. Accordingly, a block is generated by a distributed consensus of the blockchain nodes that constitute the blockchain network 400, and the generated block is added to the blockchain of the distributed ledger, thereby registering the commitment key, the public key, and the aggregator zero-knowledge proof key in the blockchain network 400.
[0063] Meanwhile, a specific feeder terminal 100_1, which is any one of the multiple feeder terminals 100_1, 100_2, ..., 100_n, can acquire a public key from the blockchain network 400 (S15) and use the acquired public key to request a trusted third party 300 to issue a key (S16).
[0064] In this case, the specific feeder terminal 100_1 may be an authorized person who has been negotiated to provide off-chain data. Also, the specific feeder terminal 100_1 may obtain a public key directly from the aggregator terminal 200, unlike the case where the specific feeder terminal 100_1 obtains a public key from the blockchain network 400.
[0065] The trusted third party 300 can then use the commitment key and the public key to generate a feeder zero-knowledge proof key S17 and issue it to the specific feeder terminal 100_1 S18.
[0066] At this time, the trusted third party 300 can generate a specific feeder zero-knowledge proof key by inputting the commitment key and the public key received from the specific feeder terminal 100_1 to the third key generation module.
[0067] Thereafter, the specific feeder terminal 100_1 can register the specific feeder zero-knowledge proof key issued by the trusted third party 300 in the blockchain network 400 S19.
[0068] At this time, a specific feeder terminal 100_1 can broadcast a transaction including a specific feeder zero-knowledge proof key to the blockchain network 400, and accordingly, a block is generated by distributed consensus of the blockchain nodes that make up the blockchain network 400, and the specific feeder zero-knowledge proof key can be registered in the blockchain network 400 by adding the generated block to the blockchain of the distributed ledger.
[0069] Through this, in one embodiment of the present invention, the commitment key, public key, aggregator zero-knowledge proof key, and each feeder zero-knowledge proof key for each of the multiple feeder terminals required to provide a blockchain network oracle service using zero-knowledge proof may be registered in the blockchain network 400.
[0070] Next, with reference to FIG. 3, in one embodiment of the present invention, a process in which a feeder terminal registers off-chain data in a blockchain network in a method for providing an oracle service of a blockchain network using zero-knowledge proof will be described as follows.
[0071] According to the explanation with reference to FIG. 2, when the commitment key, the public key, the aggregator zero-knowledge proof key, and the feeder zero-knowledge proof key are registered, each of the multiple feeder terminals 100_1, 100_2, ..., 100_n can register in the blockchain network 400 each data feeder transaction including each commitment generated using the commitment key and each off-chain data, each encrypted data obtained by encrypting each off-chain data using the public key, and each data proof value that proves that the commitment and each off-chain data corresponding to each encrypted data are identical using each feeder zero-knowledge proof key.
[0072] This will be described below with reference to a specific feeder terminal 100_1 which is one of the plurality of feeder terminals 100_1, 100_2, . . . , 100_n.
[0073] A particular feeder terminal 100_1 that wishes to provide off-chain data as an aggregator terminal can obtain a commitment key and a public key from the blockchain network 400 (S21).
[0074] Then, the specific feeder terminal 100_1 can generate S22 a specific commitment and specific encrypted data for specific off-chain data using the commitment key and the public key, respectively.
[0075] Specifically, a specific feeder terminal 100_1 can generate a specific commitment by inputting a commitment key and specific off-chain data into a commitment generation module, and can generate specific encrypted data by inputting a public key and specific open-chain data into an encryption module.
[0076] As an example, the commitment generation module may be a PVC commitment generation algorithm, where a commitment key CK and specific off-chain data M may be input to the PVC commitment generation algorithm as follows to output a specific commitment CM:
[0077] PVC.Commit(CK,M) → (CM,O), where O is the commitment open value.
[0078] However, the commitment generation module in the present invention is not limited to PVC, and the commitment generation module can be used in various commitment schemes for zero-knowledge proof.
[0079] The encryption module may be an Elgamal encryption encryption algorithm, where a public key PK and specific off-chain data M may be input into the following Elgamal encryption algorithm to output specific encrypted data CT.
[0080] Elgamal.Enc(PK,{M,O})→(CT,r), where r is the random value used for the ciphertext.
[0081] However, the encryption module in the present invention is not limited to Elgamal encryption, and encryption modules in various encryption algorithms that encrypt and decrypt data using an asymmetric key consisting of a public key and a private key can be used.
[0082] Thereafter, the specific feeder terminal 100_1 can generate a specific data proof value S23 using a specific feeder zero-knowledge proof key. That is, the specific feeder terminal 100_1 can generate a specific data proof value that proves that a specific commitment and specific off-chain data corresponding to specific encrypted data are identical.
[0083] At this time, a specific feeder terminal 100_1 can generate a specific data proof value by inputting a specific feeder zero-knowledge proof key, a specific commitment, specific off-chain data, and specific encrypted data to the zero-knowledge proof module.
[0084] As an example, the zero-knowledge proof module may be a CP-SNARK zero-knowledge proof module, where a specific feeder zero-knowledge proof key CRSf, a specific commitment CM, specific off-chain data M, and specific encrypted data CT may be input into the CP-SNARK zero-knowledge proof module as follows to output a specific data proof value π1.
[0085] CP-SNARK.Prove(CRSf,{CM,M,O},{CT,M,r})→π1
[0086] However, the zero-knowledge proof module in the present invention is not limited to CP-SNARK, and the zero-knowledge proof module can be used in various zero-knowledge proof algorithms that generate and verify proof values for zero-knowledge proofs.
[0087] Then, the specific feeder terminal 100_1 can register S24 a specific data feeder transaction in the blockchain network 400, the specific data feeder transaction including the specific commitment, the specific encrypted data, and the specific data certification value.
[0088] At this time, a specific feeder terminal 100_1 can broadcast a transaction including a specific commitment, specific encrypted data, and a specific data certification value to the blockchain network 400, and accordingly, a block is generated by distributed consensus of the blockchain nodes that make up the blockchain network 400, and the specific commitment, specific encrypted data, and specific data certification value can be registered in the blockchain network 400 by adding the generated block to the blockchain of the distributed ledger.
[0089] Through this, each of the feeder terminals 100_1, 100_2, ..., 100_n can trust that each of the encrypted data was generated from the respective off-chain data without disclosing the respective off-chain data.
[0090] Next, referring to FIG. 4, in one embodiment of the present invention, a process in which an aggregator terminal registers off-chain data registered by a feeder terminal as on-chain data in a blockchain network in a method for providing an oracle service in a blockchain network using zero-knowledge proof will be described as follows.
[0091] 3, in a state where each of the plurality of feeder terminals 100_1, 100_2, ..., 100_n registers in the blockchain network 400 each data feeder transaction including each commitment generated using a commitment key and each off-chain data, each encrypted data obtained by encrypting each off-chain data using a public key, and each data proof value that proves that the commitment and each off-chain data corresponding to each encrypted data are identical using each feeder zero-knowledge proof key, the aggregator terminal 200 can acquire the first data feeder transaction to the k-th data feeder transaction registered in the blockchain network 400 for a specific period according to a preset period, where k can be an integer of 1 or more.
[0092] Then, the aggregator terminal 200 may acquire S31 the i-th commitment, the i-th encrypted data, and the i-th data proof value for each of the first to k-th data feeder transactions, i.e., the i-th data feeder transaction, where i may be an integer greater than or equal to 1 and less than or equal to k.
[0093] Thereafter, the aggregator terminal 200 performs a process of verifying the ith data proof value using the ith feeder zero-knowledge proof key and generating the ith decrypted data by decrypting the ith encrypted data using a private key corresponding to the public key, for i, which is an integer between 1 and k, to obtain the first decrypted data to the kth decrypted data (S32). However, although only "i" is mentioned in FIG. 4 for the convenience of explanation, it should be understood that this is a description for each of 1 to k.
[0094] That is, when the first feeder zero knowledge proof key to the kth feeder zero knowledge proof key corresponding to the first data feeder transaction to the kth data feeder transaction, respectively, are referred to as the i-th feeder zero knowledge proof key, the aggregator terminal 200 obtains the i-th feeder zero knowledge proof key from the blockchain network 400, and inputs the i-th feeder zero knowledge proof key, the i-th encrypted data, the i-th commitment, and the i-th data proof value into the zero knowledge verification module to verify the i-th data proof value.
[0095] As an example, the zero-knowledge verification module may be a CP-SNARK zero-knowledge verification module, and the i-th feeder zero-knowledge proof key CRSf_i, the i-th encrypted data CT_i, the i-th commitment CM_i, and the i-th data proof value π1_i may be input to the following CP-SNARK zero-knowledge verification module to output a data verification value (0 / 1). In this case, if the data verification value is 1, it can be determined that the data proof value is true, and if the data verification value is 0, it can be determined that the data proof value is false.
[0096] CP-SNARK.Verify(CRSf_i,CT_i,CM_i,π1_i)→0 / 1
[0097] However, the zero-knowledge verification module in the present invention is not limited to CP-SNARK, and the zero-knowledge verification module can be used in various zero-knowledge proof algorithms that generate and verify proof values for zero-knowledge proofs.
[0098] The aggregator terminal 200 can then input the i-th encrypted data corresponding to the data certification value that has been verified to be true to the decryption module, thereby generating the i-th decrypted data.
[0099] As an example, the decryption module may be a decryption algorithm for Elgamal encryption, and the i-th decrypted data M_i can be output by inputting the secret key SK and the i-th encrypted data CT_i to the following Elgamal decryption algorithm:
[0100] Elgamal.Dec(SK,CT_i)→(М_i,O_i)
[0101] However, the decryption module in the present invention is not limited to Elgamal encryption, and decryption modules in various encryption algorithms that encrypt and decrypt data using an asymmetric key consisting of a public key and a private key can be used.
[0102] Thereafter, the aggregator terminal 200 can generate on-chain data by computing the i-th decoded data, i.e., the first to k-th decoded data, through a preset computing unit (S33).
[0103] In this case, the aggregator terminal 200 can input the i-th decoded data M_i to a preset calculator, and output on-chain data OUT that has performed a preset calculation using the i-th decoded data M_i according to the following calculation algorithm R.
[0104] R({M_i}) → OUT,W, where W is the secret value (witness) used in the operation.
[0105] Then, the aggregator terminal 200 can generate (S34) a computation proof value that proves that the on-chain data was generated by computing the first decrypted data to the k-th decrypted data by a preset computing unit using the aggregator zero-knowledge proof key.
[0106] At this time, the aggregator terminal 200 can generate a computation proof value by inputting the aggregator zero-knowledge proof key, the i-th commitment, the i-th decryption data, and the on-chain data to the zero-knowledge proof module.
[0107] As an example, the zero-knowledge proof module may be a CP-SNARK zero-knowledge proof module, in which the aggregator zero-knowledge proof key CRSa, the i-th commitment CM_i, the i-th decrypted data M_i, and the on-chain data OUT can be input to the CP-SNARK zero-knowledge proof module as follows to output a computation proof value π2.
[0108] CP-SNARK.Prove(CRSa,{CM_i,M_i,O_i}, OUT:W)→π2
[0109] However, the zero-knowledge proof module in the present invention is not limited to CP-SNARK, and the zero-knowledge proof module can be used in various zero-knowledge proof algorithms that generate and verify proof values for zero-knowledge proofs.
[0110] Then, the aggregator terminal 200 can register the on-chain data and the proof of computation value in the blockchain network 400 (S35).
[0111] At this time, the aggregator terminal 200 can broadcast a transaction including the on-chain data and the computation proof value to the blockchain network 400, and accordingly, a block is generated by a distributed consensus of the blockchain nodes that make up the blockchain network 400, and the on-chain data and the computation proof value can be registered in the blockchain network 400 by adding the generated block to the blockchain of the distributed ledger.
[0112] Through this, the aggregator terminal 200 can trust that the on-chain data was generated from the off-chain data without disclosing the off-chain data.
[0113] In this manner, on-chain data registered in the blockchain network 400 can be used reliably by users, and if necessary, the proof of computation value can be verified to confirm that the on-chain data was generated from off-chain data, and the data proof value can be verified to confirm whether the encrypted data used to generate the on-chain data corresponds to the off-chain data.
[0114] At this time, the user can obtain the aggregator zero-knowledge proof key CRSa, the i-th feeder zero-knowledge proof key CRSf_i, the i-th encrypted data CT_i, the i-th commitment CM_i, the i-th data proof value π1_i, the on-chain data OUT, and the operation proof value π2 from the blockchain network 400 to verify the data proof value and the data proof value.
[0115] Then, the user can input the ith feeder zero-knowledge proof key CRSf_i, the ith encrypted data CT_i, the ith commitment CM_i, and the ith data proof value π1_i to the zero-knowledge verification module to verify the ith data proof value.
[0116] As an example, the zero-knowledge verification module may be a CP-SNARK zero-knowledge verification module, and the i-th feeder zero-knowledge proof key CRSf_i, the i-th encrypted data CT_i, the i-th commitment CM_i, and the i-th data proof value π1_i may be input to the following CP-SNARK zero-knowledge verification module to output a data verification value (0 / 1). In this case, if the data verification value is 1, it can be determined that the data proof value is true, and if the data verification value is 0, it can be determined that the data proof value is false.
[0117] CP-SNARK.Verify(CRSf_i,CT_i,CM_i,π1_i)→0 / 1
[0118] However, the zero-knowledge verification module in the present invention is not limited to CP-SNARK, and the zero-knowledge verification module can be used in various zero-knowledge proof algorithms that generate and verify proof values for zero-knowledge proofs.
[0119] In addition, a user can input the aggregator zero-knowledge proof key, on-chain data, the i-th commitment, and the computation proof value into the zero-knowledge verification module to verify the computation proof value.
[0120] As an example, the zero-knowledge verification module may be a CP-SNARK zero-knowledge verification module, and the aggregator zero-knowledge proof key CRSa, on-chain data OUT, the i-th commitment CM_i, and the computation proof value π2 may be input to the CP-SNARK zero-knowledge verification module as follows to output a data verification value (0 / 1). In this case, if the data verification value is 1, it can be determined that the data verification value is true, and if the data verification value is 0, it can be determined that the data verification value is false.
[0121] CP-SNARK.Verify(CRSa,OUT,{CM_i},π2)→0 / 1
[0122] However, the zero-knowledge verification module in the present invention is not limited to CP-SNARK, and the zero-knowledge verification module can be used in various zero-knowledge proof algorithms that generate and verify proof values for zero-knowledge proofs.
[0123] In addition, the above-described embodiments of the present invention may be embodied in the form of program instructions that can be executed by various computer components and stored in a computer-readable recording medium. The computer-readable recording medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions stored in the computer-readable recording medium may be those specially designed and constructed for the present invention, or may be those known and available to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specially configured to store and execute program instructions, such as ROMs, RAMs, flash memories, and the like. Examples of program instructions include not only machine code, such as that produced by a compiler, but also high-level language code executed by a computer using an interpreter, and the like. The hardware devices may be configured to operate as one or more software modules to execute the processes of the present invention, and vice versa.
[0124] Although the present invention has been described above using specific details such as specific components and limited examples and drawings, this is provided merely to aid in a more general understanding of the present invention, and the present invention is not limited to the above examples. Various modifications and variations may be made from such descriptions by those having ordinary knowledge in the technical field to which the present invention pertains.
[0125] Therefore, the concept of the present invention should not be limited to the embodiments described above, and all modifications equivalent to or equivalent to the scope of the claims, as well as the scope of the claims described below, are within the concept of the present invention. [Explanation of symbols]
[0126] 100_n: Feeder terminal, 200: aggregator terminal, 300: Trusted Third Party, 400: Blockchain Network
Claims
1. A method for providing an oracle service for a blockchain network using zero-knowledge proofs, (a) when each of a plurality of feeder terminals registers in the blockchain network each data feeder transaction including each commitment generated by using a commitment key and each off-chain data, each encrypted data obtained by encrypting each of the off-chain data by using a public key, and each data proof value that proves that each of the off-chain data corresponding to the commitment and each encrypted data is identical by using each feeder zero-knowledge proof key, an aggregator terminal acquires the first data feeder transaction to the kth data feeder transaction (where k is an integer equal to or greater than 1) registered in the blockchain network for a specific period according to a preset period; and (b) the aggregator terminal (i) verifies the ith data proof value using the ith (wherein i is an integer greater than or equal to 1 and less than or equal to k) feeder zero-knowledge proof key in each of the first data feeder transaction to the kth data feeder transaction, and obtains the first decrypted data to the kth decrypted data by generating the ith decrypted data by using a private key corresponding to the public key, (ii) generates on-chain data by computing the first decrypted data to the kth decrypted data through a preset computing unit, and generates a computation proof value that proves that the on-chain data was generated by computing the first decrypted data to the kth decrypted data through the preset computing unit using an aggregator zero-knowledge proof key, and (iii) registers the on-chain data and the computation proof value in the blockchain network; The method includes:
2. (a0) the aggregator terminal registering the commitment key, the public key, and the aggregator zero-knowledge proof key issued by a trusted third party in the blockchain network; The method of claim 1 further comprising:
3. 3. The method of claim 2, wherein in step (a), a specific feeder terminal among the plurality of feeder terminals generates a specific commitment and specific encrypted data for specific off-chain data by acquiring the commitment key and the public key from the blockchain network, generates a specific data proof value using a specific feeder zero-knowledge proof key issued by the trusted third party, and registers a specific data feeder transaction including the specific commitment, the specific encrypted data, and the specific data proof value in the blockchain network.
4. The method according to claim 3, wherein the specific feeder zero-knowledge proof key is generated by the trusted third party using the commitment key and the public key by the specific feeder terminal requesting issuance from the trusted third party using the public key acquired from the blockchain network.
5. 3. The method of claim 2, wherein the aggregator terminal requests the trusted third party to issue a key for the preset calculator, thereby causing the trusted third party to generate the commitment key by inputting a first security parameter to a first key generation module, generate the private key and the public key by inputting a second security parameter to a second key generation module, generate the aggregator zero-knowledge proof key by inputting the commitment key and the preset calculator to a third key generation module, and then transmit the commitment key, the private key, the public key, and the aggregator zero-knowledge proof key to the aggregator terminal.
6. In the step (b), The method of claim 1, wherein the aggregator terminal verifies the i-th data proof value by obtaining an i-th feeder zero-knowledge proof key registered in the blockchain network by an i-th feeder terminal that registered the i-th data feeder transaction from the blockchain network.
7. In an aggregator terminal that provides oracle services for a blockchain network using zero-knowledge proofs, A memory containing instructions for providing oracle services for a blockchain network using zero-knowledge proofs; and a processor that performs an operation for providing an oracle service of a blockchain network using zero-knowledge proofs according to the instructions stored in the memory; Including, The processor includes: (I) a process of acquiring a first data feeder transaction through a k-th (k is an integer equal to or greater than 1) data feeder transaction registered in the blockchain network for a specific period according to a preset period when each of a plurality of feeder terminals registers, in the blockchain network, each of the data feeder transactions including each commitment generated by each of the feeder terminals using a commitment key and each off-chain data, each encrypted data obtained by encrypting each of the off-chain data using a public key, and each data proof value that proves that each of the off-chain data corresponding to the commitment and each encrypted data is identical using each feeder zero-knowledge proof key; and (II) (i) a process of acquiring the first data feeder transaction through a k-th (k is an integer equal to or greater than 1) data feeder transaction registered in the blockchain network for a specific period according to a preset period. an aggregator terminal that performs a process of verifying the ith data proof value using an ith (i is an integer greater than or equal to 1 and less than or equal to k) feeder zero-knowledge proof key in each of the kth data feeder transactions, obtaining first decrypted data to kth decrypted data by generating the ith decrypted data by decrypting the ith encrypted data using a private key corresponding to the public key, (ii) generating on-chain data by computing the first decrypted data to the kth decrypted data through a preset computing unit, and generating a computation proof value that proves that the on-chain data was generated by computing the first decrypted data to the kth decrypted data by the preset computing unit using an aggregator zero-knowledge proof key, and (iii) registering the on-chain data and the computation proof value in the blockchain network.
8. The terminal of claim 7, wherein the processor is an aggregator that performs a process of registering the commitment key, the public key, and the aggregator zero-knowledge proof key issued by a trusted third party in the blockchain network prior to the process (I).
9. 9. The aggregator terminal of claim 8, wherein in the process (I), a specific feeder terminal that is any one of the plurality of feeder terminals generates a specific commitment and specific encrypted data for specific off-chain data by acquiring the commitment key and the public key from the blockchain network, generates a specific data proof value using a specific feeder zero-knowledge proof key issued by the trusted third party, and registers a specific data feeder transaction including the specific commitment, the specific encrypted data, and the specific data proof value in the blockchain network.
10. The specific feeder zero-knowledge proof key is generated by the trusted third party using the commitment key and the public key by the specific feeder terminal requesting issuance from the trusted third party using the public key acquired from the blockchain network. The aggregator terminal of claim 9.
11. 9. The aggregator terminal of claim 8, wherein the processor requests the trusted third party to issue a key for the preset calculator, causes the trusted third party to generate the commitment key by inputting a first security parameter to a first key generation module, generates the private key and the public key by inputting a second security parameter to a second key generation module, generates the aggregator zero-knowledge proof key by inputting the commitment key and the preset calculator to a third key generation module, and then transmits the commitment key, the private key, the public key, and the aggregator zero-knowledge proof key to the aggregator terminal.
12. The aggregator terminal according to claim 7, wherein in the process (II), the processor verifies the i-th data proof value by acquiring, from the blockchain network, an i-th feeder zero-knowledge proof key registered in the blockchain network by an i-th feeder terminal that registered the i-th data feeder transaction.
Citation Information
Patent Citations
Secure Blockchain-Based Consensus
JP2020517169A
Ensuring information fairness and input privacy using a blockchain in a competitive scenario governed by a smart contract
US20200082399A1
