WO2018070783A2 - Method for issuing, redeeming, refunding, settling and revoking electronic voucher on basis of utxo and by using merkle tree structure, and server employing same - Google Patents

Method for issuing, redeeming, refunding, settling and revoking electronic voucher on basis of utxo and by using merkle tree structure, and server employing same Download PDF

Info

Publication number
WO2018070783A2
WO2018070783A2 PCT/KR2017/011208 KR2017011208W WO2018070783A2 WO 2018070783 A2 WO2018070783 A2 WO 2018070783A2 KR 2017011208 W KR2017011208 W KR 2017011208W WO 2018070783 A2 WO2018070783 A2 WO 2018070783A2
Authority
WO
WIPO (PCT)
Prior art keywords
hash value
electronic voucher
value
specific
issuer
Prior art date
Application number
PCT/KR2017/011208
Other languages
French (fr)
Korean (ko)
Other versions
WO2018070783A3 (en
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 WO2018070783A2 publication Critical patent/WO2018070783A2/en
Publication of WO2018070783A3 publication Critical patent/WO2018070783A3/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • 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
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Definitions

  • the present invention relates to a method for issuing, using, refunding, settlement and destroying an electronic voucher using the Merkle Tree structure based on UTXO, and more specifically, to (a) for issuing the electronic voucher from a specific issuer.
  • the signature value of the particular issuer is obtained by signing (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the hash value of the electronic voucher data, or a value including the same, with the private key of the particular issuer.
  • a voucher that includes coupons, gift certificates, etc. is a voucher (ticket) that describes the amount or quantity for using a product or service, and is produced for the purpose of facilitating the sale of the product or service or for advertisement purposes. If a person purchases a certain product at a restaurant or a department store, the next time the user purchases the product again, a discount voucher is applied to the product for a predetermined amount or a price is paid in exchange for the purchase of the product over the predetermined amount.
  • the prize exchange ticket etc. which let you do it are called collectively.
  • the present invention aims to solve all the above-mentioned problems.
  • Another object of the present invention is to provide a method and a server for registering an electronic voucher on a blockchain of virtual currency so that copying or forgery is impossible.
  • Another object of the present invention is to provide a method and a server for securing information using a hash function and encryption technology such as the use of an electronic voucher, and forgery and forgery.
  • another object of the present invention is to provide a method and a server capable of preventing a problem such as an electronic voucher being repeatedly issued by registering an electronic voucher in a blockchain of a virtual currency.
  • a method for issuing an electronic voucher comprising: (a) electronic voucher data for issuing the electronic voucher from a specific issuer, (ii) the public key of the specific issuer and ( iii) if a signature value of the particular issuer is obtained which has signed the hash value of the electronic voucher data or a value including the same with the private key of the particular issuer, the server may (i) the electronic voucher data, (ii) the particular issuer. (I) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the particular issuer, if the public key of the (i) signature and the signature value of the particular issuer are valid.
  • a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature of the particular issuer.
  • a method of using an electronic voucher comprising: (a) an electronic comprising a PrivTxid for at least some of the previously unused electronic voucher for use of the electronic voucher from a particular user; If the voucher data, (ii) the public key of the specific user and (iii) the hash value of the electronic voucher data or a value including the same, is signed with the private key of the specific user, then the server, (i) the electronic voucher data, (ii) the public key of the specific user and (iii) the signature value of the specific user is validated and valid, (i) the electronic voucher data, (ii) the specific user (Iii) register or register an electronic voucher usage transaction containing the public key of the user and the signature value of the specific user in a private blockchain database It said, method comprising: supporting PrivTxid indicating location information on the private block the private block of the electronic voucher using transaction registered in the database chain chain database to provide or offer the particular issuer; And (b)
  • a method comprising a.
  • a method for refunding an electronic voucher comprising: (a) a PrivTxid for the electronic voucher at least partially unused and expired prior to (i) for a refund of the electronic voucher from a particular user;
  • the electronic voucher data (ii) a public key of the specific user and (iii) a hash value of the electronic voucher data or a signature value of the specific user that has signed the private key of the specific user with a value including the same; (I) if the electronic voucher data, (ii) the public key of the specific user and (iii) the signature value of the specific user is valid and valid, (i) the electronic voucher data, (ii) the Register an electronic voucher refund transaction including the public key of a specific user and (iii) the signature value of the specific user in a private blockchain database, or the like
  • support PrivTxid indicating location information on the private block the private block of the electronic voucher refund transaction registered in the database chain chain database for
  • a method comprising a.
  • a method for calculating an electronic voucher in a method for calculating an electronic voucher, (a) for the settlement of the electronic voucher from a particular merchant (i) the number of PrivTxids for the electronic voucher used and at each usage time point Electronic voucher data including at least a PrivTxid for at least some of the unused electronic vouchers, (ii) the public key of the particular merchant and (iii) the hash value of the electronic voucher data or a value including the same as the private key of the particular merchant. If the signature value of the specific seller who signed is obtained, the server checks whether (i) the electronic voucher data, (ii) the public key of the specific seller, and (iii) the signature value of the specific seller is valid.
  • electronic voucher settlement trans including (i) the electronic voucher data, (ii) the public key of the particular merchant and (iii) the signature value of the specific merchant It supports to register or register an action in a private blockchain database, and to provide or provide PrivTxid indicating location information on the private blockchain database of the electronic voucher settlement transaction registered in the private blockchain database to the specific seller. step; And (b) if a predetermined condition is satisfied, the server determines that a specific hash value-the specific hash value is (i) the electronic voucher data, (ii) the public key of the specific merchant, and (iii) the signature of the specific merchant.
  • a method comprising a.
  • Electronic voucher data comprising a; (ii) a public key of the specific issuer; and (iii) a signature value of the specific issuer that has signed the hash value of the electronic voucher data or a value including the same with the private key of the specific issuer.
  • the server validates (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature value of the particular issuer, and (i) the electronic voucher data, (ii) ) Register an electronic voucher destruction transaction including the public key of the specific issuer and (iii) the signature value of the specific issuer in a private blockchain database; or Supporting registration or providing or providing PrivTxid to the specific issuer indicating location information on the private blockchain database of the electronic voucher destruction transaction registered in the private blockchain database; And (b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature of the particular issuer.
  • a method comprising a.
  • a server for performing the above methods is provided.
  • a computer readable recording medium for recording a computer program for executing the method of the present invention is further provided.
  • the present invention can improve the reliability and security of the electronic voucher by registering the electronic voucher in the blockchain of the virtual currency so that copying or forgery / modulation is impossible.
  • the present invention can improve the reliability and security of the electronic voucher by ensuring that the information, such as the use of the electronic voucher is secured by using a hash function and encryption technology, and forgery / modulation is impossible.
  • the present invention can prevent the problem such as duplicated electronic voucher is issued by registering the electronic voucher in the blockchain of the virtual currency, it is possible to improve the reliability and security of the electronic voucher.
  • FIG. 1 schematically illustrates a server for issuing an electronic voucher according to an embodiment of the present invention
  • 3 and 4 schematically illustrate a process of registering an electronic voucher issuing transaction in a public blockchain database according to an embodiment of the present invention.
  • FIG. 5 schematically illustrates a method of registering an electronic voucher issuer for issuing an electronic voucher in a method for issuing an electronic voucher according to an embodiment of the present invention.
  • FIG. 8 schematically illustrates a method for calculating an electronic voucher according to an embodiment of the present invention.
  • FIG. 9 schematically illustrates a method of discarding an electronic voucher according to an embodiment of the present invention.
  • the server 100 may include a communication unit 101 and a processor 102.
  • the same reference numerals are used for the convenience of description and are not intended to mean that these individual devices are the same.
  • the server may be configured differently to perform the method, or the method may be performed through the same server 100.
  • server 100 is typically a computing device (eg, a device that may include components of a computer processor, memory, storage, input and output devices, other conventional computing devices; electronic communications such as routers, switches, etc.). Desired system performance using a combination of a device; an electronic information storage system such as network attached storage (NAS) and a storage area network (SAN) and computer software (ie, instructions that cause a computing device to function in a particular manner). It may be to achieve.
  • NAS network attached storage
  • SAN storage area network
  • the communication unit 101 of the computing device may transmit and receive a request and a response with another computing device to which the computing device is linked.
  • the request and response may be made by the same TCP session, but are not limited thereto.
  • it may be transmitted and received as a UDP datagram.
  • the processor 102 of the computing device may include a hardware configuration such as a micro processing unit (MPU) or a central processing unit (CPU), a cache memory, a data bus, and the like.
  • the operating system may further include a software configuration of an application performing a specific purpose.
  • the electronic voucher according to the present invention has tangible and intangible value information such as at least a portion of an amount, a number of times of use / use, and a commodity that can be exchanged, such as a coupon, a gift certificate, an exchange ticket, a use right, and the like. It can contain any type of electronic file you record.
  • the server 100 receives it through the communication unit 101. (S100).
  • the electronic voucher data at least one of the type information of the electronic voucher, the public key of the specific user to purchase the electronic voucher, the value information of the electronic voucher, the unique ID information of the specific issuer and the expiration date of the electronic voucher.
  • the type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the issuance of the electronic voucher.
  • the public key of a specific user purchasing an electronic voucher may specify a user who purchased the electronic voucher by designating a specific user. Alternatively, by not specifying a user, the public key may be used similarly to general currency such as a bearer voucher. You may.
  • the value information of the electronic voucher may be information on tangible and intangible values, including the amount of use, the number of times of use, and information on exchangeable goods.
  • the unique ID of a specific issuer may be information for identifying a specific issuer.
  • the unique ID of a specific issuer may be a hash value or a value including the public key of a specific issuer.
  • information on a specific issuer or a specific user may be registered in advance in the server 100 or may be registered in the server 100 at a corresponding point in time if necessary, and the registration information may be a publisher having a private key and a public key. Alternatively, the user has registered his or her public key on the server 100, which will be described in another operation.
  • the expiration date information of the electronic voucher may be date information specifying the expiration date for using the electronic voucher.
  • transaction (TrxA) for issuing an electronic voucher is 1. type (issued), 2. PrivTxid or Txid for the previous transaction (in this embodiment, there is no previous PrivTxid or Txid because it is an issue of an electronic voucher), 3
  • the public key (PubA) of the user purchasing the electronic voucher as the recipient 4. the value of the issue of the electronic voucher, 5. the electronic voucher issuer ID, 6. the expiration date of the electronic voucher, 7. the public key to verify the subject of this action. Is the public key (MpubA) of the particular issuer.
  • the signature values 1, 2, 3, 4, 5, 6, and 7 (SigMPrivA (1: 2: 3: 4 :) 5: 6: 7)).
  • the processor 102 of the server 100 checks whether the (i) electronic voucher data, (ii) the public key of a specific issuer, and (iii) the signature value of a specific issuer obtained through the communication unit 101 are valid. (S101). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
  • the processor 101 of the server 100 obtains the hash value generated by applying the hash function to the (i) electronic voucher data and (iii) the signature value of the specific issuer using the public key of the specific issuer. One value can be compared and analyzed to confirm the validity of the electronic voucher data.
  • the server 100 obtains a hash value by applying a hash function to the electronic voucher data obtained using the registered specific issuer's public key, and obtains the signature value of the specific issuer verified using the registered specific issuer's public key. This match can be checked to ensure that the electronic voucher data is valid and signed by the particular issuer.
  • the electronic voucher issuing transaction includes (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the specific issuer. ), Or provide a response to the specific issuer indicating that the registration including the PrivTxid indicating location information on the private blockchain database of the electronic voucher issuing transaction registered in the private blockchain database was successful. Or may provide support (S111). However, if the confirmation result (S110) is not valid, the server 100 may provide or support a specific issuer 110 to provide or provide a response indicating a failure including an error message (S112).
  • the electronic voucher data (i) process a representative hash value or a representative hash value by computing a public key of a specific issuer and (iii) a hash value for a signature value of a specific issuer and at least one neighboring hash value matching the hash value.
  • the operation of a specific hash value and at least one neighboring hash value can be performed by various hash functions, and the hash function can be performed by MD4 function, MD5 function, SHA-0 function, SHA-1 function, SHA-224 function, It will be appreciated by those skilled in the art that the present invention may include, but is not limited to, an SHA-256 function, an SHA-384 function, an SHA-512 function, and an HAS-160 function. For example, Triple SHA256 would be possible.
  • the server 100 may store and manage a specific hash value and at least one neighbor hash value in a predetermined data structure.
  • the data structure may vary, for example, may be a merkle tree structure.
  • the calculation of a specific hash value and at least one neighboring hash value may be performed through a merkle tree.
  • the server 100 may support to generate or generate a merkle tree in which a specific hash value is assigned to a specific leaf node, and if a predetermined condition is satisfied, at least one other leaf matching the specific hash value.
  • a representative hash value generated by calculating a hash value assigned to a node or a processed value of the representative hash value may be registered or registered in the public blockchain database 120.
  • the server 100 supports (i) calculating or calculating the hash value assigned to the sibling node of the node to which (i) the specific hash value and (ii) the specific hash value is assigned, and the computed value You can support assigning or assigning a hash value for a node's parent node.
  • the parent node is the root node of the Merkle tree, the hash value assigned to the parent node becomes the representative hash value.
  • the server 100 repeatedly performs (x1) to (x3) by using the hash value assigned to the parent node as a specific hash value.
  • the server 100 supports registering or registering the hash value finally assigned to the root node of the Merkle tree as the representative hash value in the public blockchain database 120. At this time, a value obtained by processing the representative hash value may be registered. For example, the result of performing the hex operation may be registered in the representative hash value.
  • the server 100 stores a specific hash value and at least one neighboring hash value in a predetermined first data structure, and then stores and manages a second data structure having the same form as the first data structure,
  • the data structure and the second data structure may be connected in a chain form.
  • first data structure and the second data structure are Merkle trees as in the above-described example
  • a root value of the first data structure or a hash value of the root value may be allocated to the first leaf node of the second data structure.
  • data integrity may be more guaranteed by verifying the first data structure.
  • the verification of the second data structure will be described later.
  • the first leaf node of the first Merkle tree may be assigned a hash value or a processed value of predetermined message data consisting of text, numbers, or symbols. have.
  • a hash value of an input message initially given by the server 100 may be assigned when generating the merkle tree.
  • 3 and 4 illustrate an example of a merkle tree generated according to an embodiment of the present invention.
  • ha256digest coinplug_unique_message
  • the server 100 may support to calculate or calculate (i) a specific hash value assigned to the h2 node and (ii) a hash value assigned to the h3 node that is a sibling node of the h2 node.
  • the hash value for the operation value is assigned to the parent node (h23 node) of the h2 node and the h3 node.
  • the server 100 may repeat the above process by using the hash value assigned to the h23 node as a specific hash value. That is, the hash value assigned to the h23 node can be used as a specific hash value, and the hash value assigned to the h23 node and the hash value assigned to the h01 node can be calculated and assigned to the parent node (h0123 node) of the h23 node and the h01 node. have.
  • the server 100 registers or registers a value (hex (h ⁇ node_index ⁇ )) of the hash value assigned to the h0123 node in the public blockchain database 120.
  • the predetermined conditions described above are (i) a condition in which an electronic voucher issuing transaction or a "related transaction" relating to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a blockchain, For example, it may include at least one of a condition in which a block is generated in a private blockchain, and (iv) a condition for a service characteristic.
  • the “related transaction” related to the electronic voucher may include the use of the electronic voucher, the refund of the electronic voucher, the settlement of the electronic voucher, the destruction of the electronic voucher, etc., in addition to the issuance of the electronic voucher.
  • the "related transaction” associated with the electronic voucher is not limited thereto, and may include any state that may occur with respect to the electronic voucher, such as the transfer, sale, etc. of the electronic voucher.
  • the Merkle tree may be generated, and the root value of the Merkle tree may be supported or registered in the public blockchain database 120.
  • the server 100 may generate the root value of the aforementioned Merkle tree on a predetermined time unit (condition (ii) above). In this case, when a predetermined time elapses, the server 100 may generate a Merkle tree using the input values up to that time and register or register the root value of the Merkle tree in the public blockchain database 120.
  • a value may not be assigned to a sibling node of a node to which a specific hash value of the Merkle tree is assigned even after a predetermined time has elapsed.
  • the server 100 supports to assign or allocate the predetermined hash value to the sibling node. This allows the root value of the Merkle tree to be calculated. For example, server 100 may support assigning or assigning a particular hash value to a sibling node.
  • the service characteristics include cost information provided by a specific issuer who has requested an electronic voucher issuance, time zone information at which the electronic voucher issuing transaction registration is made, regional information on which the electronic voucher issuing transaction registration service is performed, and a company that has requested the electronic voucher issuing transaction registration. It may be at least part of the type information. However, the present invention is not limited to the above description and includes various condition information in which a generally accepted differential service can be provided.
  • the server 120 when a new Merkle tree generation starts and a predetermined condition is satisfied in the absence of an electronic voucher issuing transaction, the server 120 generates a Merkle tree in which predetermined message data is assigned to the first leaf node and the second leaf node. Or to create or register the root value of the Merkle tree or the processed value thereof in the public blockchain database 120. In this case, a two leaf node Merkle tree may be created.
  • the server 100 stores a specific hash value and at least one neighboring hash value in a predetermined first data structure, and then stores and manages a second data structure having the same form as the first data structure.
  • the first data structure and the second data structure may be connected in a chain form.
  • a root value of the first data structure or a hash value of the root value may be assigned to the first leaf node of the second data structure.
  • FIG. 4 illustrates a Merkle tree generated as a second data structure according to an embodiment of the present invention.
  • the present invention has an advantage of improving data integrity by easily tracking even when data is tampered with by connecting a plurality of data structures generated when a transaction occurs.
  • the public blockchain database stores the first representative hash value (the above-mentioned representative hash value is referred to herein as the first representative hash value for convenience of explanation) or the first representative hash value generated by calculating a neighbor hash value of the public blockchain database.
  • the server 100 obtains a verification request related to an electronic voucher issuing transaction, and generates a second representative hash value or the second representative hash value generated using input data included in the verification request.
  • the server 100 Assume or assist in determining that verification has been made regarding the lock data.
  • the first specific hash value is one of (i) a hash value of the electronic voucher issuing transaction signed with the private key of the server, (ii) a hash value of the electronic voucher issuing transaction signed with the specific issuer private key and the server's private key. It can be either.
  • the second representative hash value may be generated by calculating a second specific hash value and at least one neighboring hash value matching the second specific hash value.
  • the second specific hash value may be a hash value of verification request data included in input data signed with a private key of a server or signed with a specific issuer's private key and a server's private key.
  • the input data included in the verification request may include any one of (i) verification request data, (ii) message digest for verification request data, or (iii) an ID issued at the time of registration of the electronic voucher issuing transaction. have.
  • the message digest for the verification request data may be generated in the above-described manner, and a second specific hash value may be calculated based on the message digest.
  • the second representative hash value may be generated by calculating at least one neighboring hash value matching the second specific hash value.
  • a value assigned to the leaf node corresponding to the ID in the previously generated Merkle tree may be set as the second specific hash value.
  • the description of the first specific hash value described above may be equally applied to the second specific hash value. That is, the operation of the second specific hash value and the at least one neighbor hash value may be performed by various hash functions. Since it has been described above, the description is omitted.
  • the operation of the second specific hash value and the at least one neighbor hash value may be performed through a merkle tree.
  • the server 100 may identify merkle tree information and leaf node information related to the input data.
  • the second representative hash value is assigned to at least one other leaf node whose second specific hash value matches the second specific hash value and the second specific hash value in a merkle tree assigned to the specific leaf node. Can be generated by calculating the hash value.
  • the server 100 may refer to the electronic voucher issuing transaction ID and support to obtain or obtain an OP message from the public blockchain database 120 using the transaction ID. Can be.
  • a value obtained by processing the second representative hash value or the second representative hash value generated by using the input data included in the verification request is the value of the first representative hash value or the first representative hash value included in the OP message. If the corresponding to the voucher transaction, and can be determined that the verification associated with the electronic voucher issuance transaction has been made.
  • the predetermined transaction ID may be provided included in the input data. That is, a particular issuer may specify a transaction ID along with any of the (i) verification request data described above, (ii) message digest for verification request data, or (iii) an ID issued at the time of registration of an electronic voucher issuing transaction upon verification request. It may be delivered to the server 100.
  • the server 100 may support to generate or generate a new merkle tree.
  • the merkle tree generated during the database registration process of the above-described record data may be used.
  • the new Merkle tree may be generated by assigning the second specific hash value or a processed value to a specific leaf node of the generated Merkle tree, and the specific leaf node is a leaf node of the generated Merkle tree. Among them, a leaf node to which a value substituted by the second specific hash value is assigned.
  • the server 100 supports or computes (y1) (i) a second specific hash value and (ii) a hash value assigned to the sibling node of the specific leaf node of the new Merkle tree, and this operation value
  • a hash value for may be assigned or supported to be assigned to the parent node of the specific leaf node and its sibling node in the new Merkle tree.
  • (y2) if the parent node is the root node of the new Merkle tree, supports to compare or compare the hash value assigned to the parent node with the value included in the OP message as the second representative hash value, and (y3) the parent node. If is not the root node of the new Merkle tree, (y1) to (y3) may be repeated by using a hash value assigned to the parent node as a second specific hash value.
  • the server 100 When the server 100 finally matches the root value of the new Merkle tree or the processed value thereof with the first representative hash value included in the OP message or the processed value, the server 100 verifies that the electronic voucher issuing transaction has been performed. You can or will help you judge.
  • the server 100 may identify at least one of merkle tree information and leaf node information related to the input data with reference to time information related to the input data.
  • the server 120 identifies the previously generated Merkle tree and leaf node information with reference to the input data information, and identifies the identified Merkle tree information (tree_id).
  • the server 100 may support to generate or generate a new Merkle tree using the input 2.
  • the server 100 assigns the hash value assigned to the h2 node and the hash assigned to the h3 node that is the sibling node of the h2 node in the generated Merkle tree. Can support or compute a value.
  • the hash value for the operation value is assigned to node h23, which is the parent node of node h2 and node h3. Since the h23 node is not the root node of the new Merkle tree, the server 100 may repeat the process by using the hash value assigned to the h23 node as the second specific hash value.
  • the hash value assigned to the h23 node is used as the second specific hash value, and the hash value assigned to the h23 node and the hash value assigned to the h01 node in the existing Merkle tree are calculated to be the parent of the h23 node and the h01 node. It can be assigned to node h0123.
  • the server 100 compares or compares the hash value assigned to the h0123 node (hex (h ⁇ node_index ⁇ )) with a value included in the OP message.
  • the server 100 checks whether the specific issuer 110 is valid (S210) and the specific issuer 110 is valid. In this case, the random nonce (RN) may be supported or delivered to the specific issuer 110 (S211). In addition, when the specific issuer 110 is not valid, for example, a person who steals the name of another person, the server 100 may provide or support the specific issuer 110 to provide or provide a response indicating that the issuer has failed. (S213).
  • a specific issuer when a specific issuer generates a private key (MPrivA) and a public key (MPubA) in a terminal, and transmits the public key to the server 100 to register as an issuer for issuing an electronic voucher, the server 100 ) Checks whether the specific issuer 110 of the obtained public key is valid.
  • the validity of the specific issuer 100 may use a PKI-based certificate or identification information of a specific issuer, but is not limited thereto.
  • a specific issuer may be identified through a PKI-based certificate, an OPSign certificate, or a specific issuer through identification information such as a social security number or a passport.
  • the server 100 determines whether the random nonce signature value is normally signed by the public key of the specific issuer. Verify using (S220). That is, the server 100 checks a random nonce of RN from SjgMPrivA (RN), which is a signature value obtained using the public key of a specific issuer, and confirms whether the confirmed random nonce matches the random nonce delivered to a specific issuer. If so, verify that it is a valid signature.
  • SjgMPrivA a signature value obtained using the public key of a specific issuer
  • the server 100 issues a publisher registration transaction (RN, SigMPrivA (RN), MPubA, including a random nonce, a random nonce signature value, and a specific issuer's public key).
  • RN publisher registration transaction
  • MPubA including a random nonce, a random nonce signature value, and a specific issuer's public key.
  • S221 To register or register the private blockchain database (S221), and issue a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the publisher registration transaction registered in the private blockchain database was successful. It may provide to or support to provide (S222).
  • the server 100 may provide or provide a response indicating that the signature value verification failed to the specific issuer 110 (S223).
  • the server 100 when the issuer and the signature value are valid, the server 100, when a predetermined condition is satisfied (S230), the hash 100 and the specific hash value that is a hash value of the random nonce, the random nonce signature value, and the public key of the specific issuer; Register or register a representative hash value or a processed value of the representative hash value generated by calculating at least one matching neighbor hash value in the public blockchain database (S231), and registered in the public blockchain database 120.
  • a representative hash value or a Txid which is a transaction ID indicating position information on the public blockchain database 120 of the processed value of the representative hash value, may be obtained.
  • the registration of the specific issuer registration transaction to the public blockchain database 120 may cause the root hash value generated by the Merkle tree by the method as shown in FIG. 2 to be registered.
  • electronic voucher data including (i) PrivTxid for at least some unused electronic voucher for use of the electronic voucher from the specific user 111 who purchased the electronic voucher, (ii) the specific user (V)
  • An electronic voucher use request (use TrxA) is requested from a terminal of a particular user based on the public key of the user and (iii) the signature value of the specific user who signed the hash value of the electronic voucher data or the value including the same with the private key of the specific user.
  • the server 100 receives it through the communication unit 101 (S300).
  • the electronic voucher data may include the type information of the electronic voucher, the public key of the specific seller receiving the electronic voucher, the usage value information for use at this time among the value information of the electronic voucher, the unique ID of the specific issuer who issued the electronic voucher, and the electronic voucher. It may further include at least one of the expiration date of the information, the deduction value information to be returned after using the use value information in the electronic voucher, and the public key of the specific user for identifying the deduction value information.
  • the type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the use of the electronic voucher.
  • the public key of a particular merchant receiving an electronic voucher may specify a merchant that receives the electronic voucher, that is, receives an electronic voucher used by a particular user, by designating the specific merchant, otherwise the merchant is not specified. In other words, it may be used similarly to general currency, such as a bearer voucher.
  • the use value information for use at this time may be information on tangible and intangible values including use amount, use count, and exchangeable product information.
  • the unique ID of the specific issuer who issued the electronic voucher may be information for identifying a specific issuer. For example, the unique ID may be a hash value or a value including the public key of the specific issuer.
  • the expiration date information of the electronic voucher may be date information specifying the expiration date for using the electronic voucher.
  • the deduction value information to be returned after using the use value information in the electronic voucher may be information on the balance after the use of the electronic voucher, the public key of a specific user for checking the deduction value information is the balance after use of the electronic voucher Information for verifying ownership of the. In this case, when there is no deduction value in the electronic voucher, there may be no public key of a specific user for checking the deduction value information and the deduction value information.
  • transaction (TrxA) for using the electronic voucher is 1. type (use), 2. PrivTxid or Txid for the previous transaction, 3. public key of the particular merchant receiving the electronic voucher as the receiver, 4. electronic Usage value information of the voucher, 5. Issuer ID of the electronic voucher. 6. The expiration date of the electronic voucher, 7. The deduction value information of the electronic voucher, 8. The specific user's public key to verify ownership of the deduction value of the electronic voucher, 9. The specific user's public key to verify the subject of this action. public key (PubA), 10. Signature values of 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 (SigPrivA (1: 2: 3: 4: 5: 6: 7: 8: 9: 10)).
  • the server 100 checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user (S301). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
  • the electronic voucher using transaction includes (i) electronic voucher data, (ii) a public key of a specific user, and (iii) a signature value of a specific user. TrxA) to register or register a private blockchain database, and a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the transaction using the electronic voucher registered in the private blockchain database is successful, 111 may be provided or supported to provide (S311). However, if the confirmation result (S110) is not valid, the server 100 may provide or support a specific user 111 to provide or provide a response indicating a failure including an error message (S312).
  • the server 100 hashes the (i) electronic voucher data, (ii) the public key of a specific user, and (iii) the signature value of a specific user, in response to a valid condition.
  • a specific hash value which is a value and at least one neighboring hash value matching the specific hash value
  • a representative hash value or a processed value of the representative hash value is generated (S321), and registered or registered in the public blockchain database 120.
  • a representative hash value registered in the public blockchain database 120 or a Txid representing position information on the public blockchain database 120 of the processed value of the representative hash value may be obtained or acquired.
  • the representative hash value or a value obtained by processing the representative hash value may be generated by the Merkle tree as described in FIG. 2.
  • the process of registering the specific user by the server 100 is as follows.
  • the registration of a specific user is also performed by the same method as the registration of a specific publisher in FIG. 5, and thus similar parts are omitted in the description of FIG. 5.
  • the server 100 checks whether the specific user 111 is valid and, if the specific user 111 is valid, generates a random nonce for the specific user 111. Can be delivered to or supported). In addition, when a specific user 111 is not valid, the server 100 may provide or support a response indicating a user confirmation failure to the specific user 111.
  • the server 100 verifies whether the random nonce signature value is normally signed by using the specific user's public key.
  • the server 100 registers or registers a user registration transaction including a random nonce, a random nonce signature value, and a specific user's public key in a private blockchain database. And may provide or provide PrivTxid indicating location information on a private blockchain database of a user registration transaction registered in a private blockchain database to a specific user 111.
  • the server 100 may provide or support a response indicating the signature value verification failure to the specific user 111.
  • the server 100 may determine that at least one of a random hash, a random nonce signature value, a hash value of a specific user's public key and a specific hash value match at least if a predetermined condition is satisfied. It supports to register or register the representative hash value or the processed value of the representative hash value generated by calculating one neighbor hash value in the public blockchain database, and the representative hash value or the representative hash value registered in the public blockchain database is processed.
  • a Txid which is a transaction ID representing location information on a public blockchain database of one value, may be obtained or acquired.
  • electronic voucher data including PrivTxid for at least some previously unused and expired electronic voucher for the refund of the electronic voucher from the specific user 111 who purchased the electronic voucher, (ii) An electronic voucher refund request (refund TrxA) based on the signature value of a particular user who signed the public key of a specific user and (iii) the hash value of the electronic voucher data or a value including the same with the specific key of the specific user is executed.
  • the server 100 receives it through the communication unit (S400).
  • the electronic voucher data may further include at least one or more of the type information of the electronic voucher, the public key of the specific issuer who issued the electronic voucher, the refund value information of the electronic voucher, the unique ID of the specific issuer, and the expiration date information corresponding to the electronic voucher. It may include.
  • the type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating an electronic voucher refund.
  • the public key of the specific issuer who issued the electronic voucher is the public key of the specific issuer who issued the electronic voucher as the receipt of the refund voucher.
  • the refund value information of the electronic voucher is value information that can be refunded through the electronic voucher, and the unique ID of the specific issuer is the ID of the specific issuer who issued the electronic voucher.
  • the expiration date information corresponding to the electronic voucher may be date information specifying the expiration date for using the electronic voucher.
  • transaction (TrxA) for electronic voucher refund is 1, type (refund), 2. PrivTxid or Txid for the previous transaction, 3. public key of the particular issuer receiving the electronic voucher to be refunded to the recipient, 4 Refund Value Information for Electronic Vouchers, 5. Issuer ID of Electronic Vouchers. 6. The expiration date of the electronic voucher, 7. The public key (PubA) of a specific user, which is the public key for identifying the subject of this action, 8. The signature value 1, 2, 3, 4, 5 signed by the specific user with the private key. , 6, 7 signature values (SigPrivA (1: 2: 3: 4: 5: 6: 7)).
  • the server 100 checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user (S401).
  • the electronic voucher refund transaction (TrxA) includes (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. ) Is registered in the private blockchain database, and a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the electronic voucher refund transaction registered in the private blockchain database is successful is performed. Can be provided or supported to provide (S411). However, if the confirmation result (S410) is not valid, the server 100 may provide or support a specific user 111 to provide or provide a response indicating a failure including an error message (S412).
  • the server 100 hashes the (i) electronic voucher data, (ii) the public key of a specific user, and (iii) the signature value of a specific user, in response to a valid verification result.
  • a specific hash value which is a value and at least one neighboring hash value matching the specific hash value
  • a representative hash value or a value obtained by processing the representative hash value is generated (S421), and the generated representative hash value or the representative hash value is processed. It supports to register or register a value in the public blockchain database (S422), and the transaction ID indicating the location information on the public blockchain database of the representative hash value or the processed value of the representative hash value registered in the public blockchain database. It may support to acquire or obtain a Txid (S423).
  • FIG. 8 a method for calculating an electronic voucher according to an embodiment of the present invention will be described.
  • portions similar to those in the method for issuing an electronic voucher in the embodiment of the present invention of FIG. 2 are understood from the description of FIG. 2 and thus the detailed description is omitted.
  • the electronic voucher data may further include at least one or more of the type information of the electronic voucher, the public key of the specific issuer that issued the electronic voucher, the settlement value information of the electronic voucher, and the unique ID of the specific issuer.
  • the type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the electronic voucher settlement.
  • the settlement value information of the electronic voucher may be information on the value received by the particular seller in the counter-benefits of goods, services, and the like.
  • transaction (TrxA) for the electronic voucher settlement is 1. type (settlement), 2. PrivTxid or Txid of the electronic voucher used in this transaction, 3. at least some unused electronic voucher at each point of use PrivTxid for the user, 4.
  • the public key of the particular issuer receiving the settlement of the electronic voucher as the recipient 5.
  • Information on the settlement value of the electronic voucher 6.
  • the issuer ID of the electronic voucher 7.
  • the public key (PubA) of a specific seller which is the public key to verify the subject of this operation.
  • the server checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific merchant and (iii) the signature value of the specific merchant (S501). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
  • the server 100 determines that the check result is valid (S510)
  • the electronic voucher settlement transaction including (i) the electronic voucher data, (ii) the public key of the specific seller, and (iii) the signature value of the specific seller is performed.
  • TrxA can be registered or registered in the private blockchain database, and to provide or provide PrivTxid to specific merchants 112 indicating location information on the private blockchain database of the electronic voucher settlement transaction registered in the private blockchain database.
  • the server 100 may provide or support a specific seller 112 to provide or provide a response indicating a failure including an error message (S512).
  • the server 100 hashes the (i) electronic voucher data, (ii) the public key of a specific user, and (iii) the signature value of a specific user, in response to a valid condition.
  • a specific hash value which is a value and at least one neighboring hash value matching the specific hash value
  • a representative hash value or a value obtained by processing the representative hash value is generated (S521), and the generated representative hash value or the representative hash value is processed.
  • the server 100 describes a process of registering a specific seller as follows.
  • the registration of a specific seller is also performed by the same method as the registration of a specific publisher in FIG. 5, and thus similar parts are omitted in the description of FIG. 5.
  • the server 100 checks whether the specific seller 112 is valid and, if the specific seller 112 is valid, generates a random nonce 112. Can be delivered to or supported). If the specific seller 112 is not valid, the server 100 may provide or support the specific seller 112 to provide a response indicating a user confirmation failure.
  • the server 100 verifies whether the random nonce signature value is normally signed using the specific seller's public key. do.
  • the server 100 registers or registers a seller registration transaction including a random nonce, a random nonce signature value, and a specific seller's public key in a private blockchain database. And may provide or support PrivTxid, which indicates location information on a private blockchain database of a seller registration transaction registered in a private blockchain database, to a specific seller 112.
  • the server 100 may provide or support the specific seller 112 to provide a response indicating that the signature value verification failed.
  • the server 100 is a hash value of (i) the electronic voucher data, (ii) the public key of a specific merchant, and (iii) the signature value of a specific merchant, if a predetermined condition is satisfied.
  • the electronic voucher data including (i) at least partially unused and expired electronic voucher for the destruction of the electronic voucher from the particular issuer 110, (ii) (v)
  • An electronic voucher destruction request (revocate TrxA) is sent from a terminal of a specific issuer by a signature value of a specific issuer that has signed the public key and (iii) the hash value of the electronic voucher data or a value including the same with the private key of the specific issuer. If the server 100 receives it through the communication unit (S600).
  • the electronic voucher data may further include at least one or more of the type information of the electronic voucher, the public key of the specific issuer, value information to be discarded by the electronic voucher, and the unique ID of the specific issuer.
  • the type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the electronic voucher settlement.
  • transaction (TrxA) for electronic voucher settlement is 1. type (settlement), 2. PrivTxid or Txid for the electronic voucher that has not been used at least partially and has expired, 3. the electronic voucher as the recipient
  • the public key of the specific issuer receiving 4. Destruction value information of the electronic voucher, 5.
  • the issuer ID of the electronic voucher. 6.
  • the public key of a specific issuer which is the public key to verify the subject of this operation, 7.
  • the signature value of 1, 2, 3, 4, 5, 6 signed by a specific issuer as a private key (SigPrivA (1: 2: 3: 4: 5: 6)).
  • the server 100 checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the specific issuer (S601). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
  • the electronic voucher destruction transaction (TrxA) includes (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the specific issuer. ) Is registered in the private blockchain database, and a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the electronic voucher destruction transaction registered in the private blockchain database is successful is issued to a specific issuer (110). It may be provided to or provided to support (S611). However, if the confirmation result (S610) is not valid, the server 100 may provide or support a specific issuer 110 to provide or provide a response indicating a failure including an error message (S612).
  • the server 100 corresponds to a valid confirmation result, and the specific hash value (the specific hash value is (i) the electronic voucher data, (ii) the public key of the specific issuer and (iii).
  • a representative hash value or a processed value of the representative hash value by calculating the hash value of the signature value of the specific issuer) and at least one neighboring hash value matching the specific hash value (S621), and generating the generated representative hash value or Support to register or register a value processed the representative hash value in the public blockchain database (S622), the public blockchain database of the representative hash value or the value processed the representative hash value registered in the public blockchain database
  • a Txid indicating location information may be obtained or acquired.
  • the computer-readable recording medium may include program instructions, data files, data structures, etc. alone or in combination.
  • Program instructions recorded on the computer-readable recording medium may be those specially designed and configured for the present invention, or may be known and available to those skilled in the computer software arts.
  • Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tape, optical recording media such as CD-ROMs, DVDs, and magneto-optical media such as floptical disks. media), and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like.
  • Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like.
  • the hardware device may be configured to operate as one or more software modules to perform the process according to the invention, and vice versa.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a method comprising: (a) a step in which a server registers or supports the registration of (i) electronic voucher data, (ii) a public key of a specific issuer and (iii) an electronic voucher issuance transaction in a private blockchain database, and provides or supports the provision of PrivTxid indicating information on the location of the electronic voucher issuance transaction, registered in the private blockchain database, within the private blockchain database to the specific issuer; and (b) a step in which, if a predetermined condition is met, the server registers, in a public blockchain database, a representative hash value, generated by computing a specific hash value and at least one neighboring hash value matching the specific hash value, or a value generated by processing the representative hash value.

Description

UTXO 기반으로 머클트리 구조를 사용하여 전자 바우처를 발행, 사용, 환불, 정산 및 파기하는 방법과 이를 이용한 서버How to issue, use, refund, settle and destroy electronic vouchers using the Merkle Tree structure based on UTXO and server using them
UTXO 기반으로 머클트리 구조를 사용하여 전자 바우처를 발행, 사용, 환불, 정산 및 파기하는 방법과 이를 이용한 서버에 관한 것으로, 보다 상세하게는, (a) 특정 발행자로부터의 상기 전자 바우처의 발행을 위한 (i) 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 발행자의 private key로 서명한 상기 특정 발행자의 서명값이 획득되면, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 유효 여부를 확인하고, 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값을 포함하는 전자 바우처 발행 transaction을 프라이빗 블록체인 데이터베이스에 등록하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 발행 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하고; 및 (b) 소정의 조건이 만족되면, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값에 대한 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하는 방법과 이를 이용하는 서버에 관한 것이며, 더 나아가 특정 사용자가 전자 바우처를 사용하는 방법, 그리고, 특정 사용자가 전자 바우처를 환불하는 방법, 특정 판매자가 전자 바우처를 정산하는 방법, 특정 발행자가 전자 바우처를 파기하는 방법 및 이를 이용하는 서버에 관한 것이다.The present invention relates to a method for issuing, using, refunding, settlement and destroying an electronic voucher using the Merkle Tree structure based on UTXO, and more specifically, to (a) for issuing the electronic voucher from a specific issuer. the signature value of the particular issuer is obtained by signing (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the hash value of the electronic voucher data, or a value including the same, with the private key of the particular issuer. (i) verifying the validity of the electronic voucher data, (ii) the public key of the particular issuer and (iii) the signature value of the particular issuer, and if valid, (i) the electronic voucher data, (ii) the Register an electronic voucher issuing transaction including a public key of a specific issuer and (iii) a signature value of the specific issuer in a private blockchain database, wherein the private block Providing the specific issuer with a PrivTxid indicating location information on the private blockchain database of the electronic voucher issuing transaction registered in the chain database; And (b) if a predetermined condition is met, the particular hash value-the particular hash value is a hash of (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature value of the particular issuer. Is a value-and registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database, and is registered in the public blockchain database. A method of obtaining a Txid representing location information on the public blockchain database of the representative hash value or the processed value of the representative hash value, and a server using the same; furthermore, a method of using an electronic voucher by a specific user, and , How a particular user refunds an electronic voucher, how a particular merchant settles an electronic voucher, How to destroy the e-voucher issuer and to the server using the same.
일반적으로 쿠폰, 상품권 등을 포함하는 바우처(voucher)는 상품이나 서비스 등을 이용하기 위한 금액이나 수량 등이 기재된 증표(이용권)로, 상품이나 서비스의 판매를 촉진시키거나 광고 등의 목적을 위해 제작되며, 음식점과 백화점 등에서 소정의 상품을 구매한 사람에게 다음에 재차 구매할 경우 그 상품에 대하여 소정의 금액만큼 할인이 적용되도록 하는 할인권 또는 소정 금액 이상의 상품을 구매한 대가로 지급되어 소정의 경품과 교환할 수 있도록 하는 경품 교환권 등을 통칭한다.In general, a voucher that includes coupons, gift certificates, etc. is a voucher (ticket) that describes the amount or quantity for using a product or service, and is produced for the purpose of facilitating the sale of the product or service or for advertisement purposes. If a person purchases a certain product at a restaurant or a department store, the next time the user purchases the product again, a discount voucher is applied to the product for a predetermined amount or a price is paid in exchange for the purchase of the product over the predetermined amount. The prize exchange ticket etc. which let you do it are called collectively.
근래에 들어서는 음식점과 백화점 등에서의 물품 구입뿐 아니라 연극, 영화, 도서 구입에도 활용할 수 있는 다양한 바우처가 제작되고 있으며, 또한 인터넷의 보편화에 따른 전자 바우처도 등장하는 등 사회 전반에 걸쳐 새로운 문화로써 정착되고 있고 있다.In recent years, various vouchers have been produced that can be used not only for the purchase of goods in restaurants and department stores, but also for theatrical, movie and book purchases. Also, electronic vouchers have emerged due to the generalization of the Internet. It is.
그러나, 전자 바우처로 일반적으로 많이 사용되고 있는 모바일 쿠폰, 기프트 쿠폰, 할인 쿠폰이나 상품권 등은 대부분 바코드나 등록번호를 등록할 수 있는 체계로 제작되어 있으며, 이러한 전자 바우처는 대부분 이미지라는 단순 데이터가 문자 형식으로 전송되는 방식이기 때문에 복사 또는 위변조될 위험성이 높은 문제점이 있다. 또한, 시스템 상의 오류로 인하여 중복 발행되는 등의 문제점이 발생할 가능성이 높다.However, most mobile coupons, gift coupons, discount coupons or gift certificates, etc., which are generally used as electronic vouchers, are made of a system that can register a bar code or registration number. There is a high risk of copying or forgery because it is transmitted to. In addition, a problem such as duplication due to an error on the system is likely to occur.
본 발명은 상술한 문제점들을 모두 해결하는 것을 그 목적으로 한다. The present invention aims to solve all the above-mentioned problems.
또한, 본 발명은 가상 화폐의 블록체인에 전자 바우처를 등록하여 복사 또는 위/변조가 불가능하도록 하는 방법 및 서버를 제공하는 것을 다른 목적으로 한다. Another object of the present invention is to provide a method and a server for registering an electronic voucher on a blockchain of virtual currency so that copying or forgery is impossible.
또한, 본 발명은 전자 바우처의 사용 등의 정보를 해쉬함수와 암호화 기술을 이용하여 보안이 보장되고 위/변조가 불가능하도록 하는 방법 및 서버를 제공하는 것을 또 다른 목적으로 한다.In addition, another object of the present invention is to provide a method and a server for securing information using a hash function and encryption technology such as the use of an electronic voucher, and forgery and forgery.
또한, 본 발명은 가상 화폐의 블록체인에 전자 바우처를 등록함으로써 전자 바우처가 중복 발행되는 등의 문제점을 미연에 방지할 수 있도록 하는 방법 및 서버를 제공하는 것을 또 다른 목적으로 한다.In addition, another object of the present invention is to provide a method and a server capable of preventing a problem such as an electronic voucher being repeatedly issued by registering an electronic voucher in a blockchain of a virtual currency.
상기 목적을 달성하기 위한 본 발명의 대표적인 구성은 다음과 같다.Representative configuration of the present invention for achieving the above object is as follows.
본 발명의 일 실시예에 따르면, 전자 바우처를 발행하는 방법에 있어서, (a) 특정 발행자로부터의 상기 전자 바우처의 발행을 위한 (i) 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 발행자의 private key로 서명한 상기 특정 발행자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값을 포함하는 전자 바우처 발행 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 발행 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 단계; 및 (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값에 대한 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계; 를 포함하는 것을 특징으로 하는 방법이 제공된다.According to an embodiment of the present invention, there is provided a method for issuing an electronic voucher, comprising: (a) electronic voucher data for issuing the electronic voucher from a specific issuer, (ii) the public key of the specific issuer and ( iii) if a signature value of the particular issuer is obtained which has signed the hash value of the electronic voucher data or a value including the same with the private key of the particular issuer, the server may (i) the electronic voucher data, (ii) the particular issuer. (I) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the particular issuer, if the public key of the (i) signature and the signature value of the particular issuer are valid. Support for registering or registering an electronic voucher issuing transaction in a private blockchain database, wherein the electronic voucher registered in the private blockchain database Supporting or providing a PrivTxid to the specific issuer indicating location information on the private blockchain database of an issuing transaction; And (b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature of the particular issuer. Is a hash value for a value-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value or the processed value of the representative hash value registered in the public blockchain database; There is provided a method comprising a.
본 발명의 실 실시예에 따르면, 전자 바우처를 사용하는 방법에 있어서, (a) 특정 사용자로부터 상기 전자 바우처의 사용을 위한 (i) 이전에 적어도 일부 미사용된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 사용자의 private key로 서명한 상기 특정 사용자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값을 포함하는 전자 바우처 사용 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 사용 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 단계; 및 (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계; 를 포함하는 것을 특징으로 하는 방법이 제공된다.According to an embodiment of the present invention, there is provided a method of using an electronic voucher comprising: (a) an electronic comprising a PrivTxid for at least some of the previously unused electronic voucher for use of the electronic voucher from a particular user; If the voucher data, (ii) the public key of the specific user and (iii) the hash value of the electronic voucher data or a value including the same, is signed with the private key of the specific user, then the server, (i) the electronic voucher data, (ii) the public key of the specific user and (iii) the signature value of the specific user is validated and valid, (i) the electronic voucher data, (ii) the specific user (Iii) register or register an electronic voucher usage transaction containing the public key of the user and the signature value of the specific user in a private blockchain database It said, method comprising: supporting PrivTxid indicating location information on the private block the private block of the electronic voucher using transaction registered in the database chain chain database to provide or offer the particular issuer; And (b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular user and (iii) the signature of the particular user. Is a hash value of the value-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value registered in the public blockchain database or a value obtained by processing the representative hash value; There is provided a method comprising a.
본 발명의 일 실시예에 따르면, 전자 바우처를 환불하는 방법에 있어서, (a) 특정 사용자로부터 상기 전자 바우처의 환불을 위한 (i) 이전에 적어도 일부 미사용되었으며 만료된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 사용자의 private key로 서명한 상기 특정 사용자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값을 포함하는 전자 바우처 환불 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 환불 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 사용자에게 제공하거나 제공하도록 지원하는 단계; 및 (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계; 를 포함하는 것을 특징으로 하는 방법이 제공된다.According to one embodiment of the invention, there is provided a method for refunding an electronic voucher, comprising: (a) a PrivTxid for the electronic voucher at least partially unused and expired prior to (i) for a refund of the electronic voucher from a particular user; The electronic voucher data, (ii) a public key of the specific user and (iii) a hash value of the electronic voucher data or a signature value of the specific user that has signed the private key of the specific user with a value including the same; (I) if the electronic voucher data, (ii) the public key of the specific user and (iii) the signature value of the specific user is valid and valid, (i) the electronic voucher data, (ii) the Register an electronic voucher refund transaction including the public key of a specific user and (iii) the signature value of the specific user in a private blockchain database, or the like To support and, further comprising: support PrivTxid indicating location information on the private block the private block of the electronic voucher refund transaction registered in the database chain chain database for the particular user to provide or offer; And (b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular user and (iii) the signature of the particular user. Is a hash value of the value-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value registered in the public blockchain database or a value obtained by processing the representative hash value; There is provided a method comprising a.
본 발명의 일 실시예에 따르면, 전자 바우처를 정산하는 방법에 있어서, (a) 특정 판매자로부터 상기 전자 바우처의 정산을 위한 (i) 사용된 상기 전자 바우처에 대한 PrivTxid의 개수 및 각각의 사용 시점에서 적어도 일부 미사용된 상기 전자 바우처에 대한 PrivTxid를 적어도 포함하는 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 판매자의 private key로 서명한 상기 특정 판매자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값을 포함하는 전자 바우처 정산 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 정산 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 판매자에게 제공하거나 제공하도록 지원하는 단계; 및 (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계; 를 포함하는 것을 특징으로 하는 방법이 제공된다.According to an embodiment of the present invention, in a method for calculating an electronic voucher, (a) for the settlement of the electronic voucher from a particular merchant (i) the number of PrivTxids for the electronic voucher used and at each usage time point Electronic voucher data including at least a PrivTxid for at least some of the unused electronic vouchers, (ii) the public key of the particular merchant and (iii) the hash value of the electronic voucher data or a value including the same as the private key of the particular merchant. If the signature value of the specific seller who signed is obtained, the server checks whether (i) the electronic voucher data, (ii) the public key of the specific seller, and (iii) the signature value of the specific seller is valid. electronic voucher settlement trans, including (i) the electronic voucher data, (ii) the public key of the particular merchant and (iii) the signature value of the specific merchant It supports to register or register an action in a private blockchain database, and to provide or provide PrivTxid indicating location information on the private blockchain database of the electronic voucher settlement transaction registered in the private blockchain database to the specific seller. step; And (b) if a predetermined condition is satisfied, the server determines that a specific hash value-the specific hash value is (i) the electronic voucher data, (ii) the public key of the specific merchant, and (iii) the signature of the specific merchant. Is a hash value of the value-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid indicating a location on the public blockchain database of the representative hash value or the processed value of the representative hash value registered in a public blockchain database; There is provided a method comprising a.
본 발명의 일 실시예에 따르면, 전자 바우처를 파기하는 방법에 있어서, (a) 특정 발행자로부터 상기 전자 바우처의 파기를 위한 (i) 이전에 적어도 일부 사용되지 않았으며 만료된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 발행자의 private key로 서명한 상기 특정 발행자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값을 포함하는 전자 바우처 파기 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 파기 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 단계; 및 (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계; 를 포함하는 것을 특징으로 하는 방법이 제공된다.According to an embodiment of the present invention, in a method of destroying an electronic voucher, (a) PrivTxid for the electronic voucher expired at least in part before (i) for the destruction of the electronic voucher from a particular issuer Electronic voucher data comprising a; (ii) a public key of the specific issuer; and (iii) a signature value of the specific issuer that has signed the hash value of the electronic voucher data or a value including the same with the private key of the specific issuer. The server validates (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature value of the particular issuer, and (i) the electronic voucher data, (ii) ) Register an electronic voucher destruction transaction including the public key of the specific issuer and (iii) the signature value of the specific issuer in a private blockchain database; or Supporting registration or providing or providing PrivTxid to the specific issuer indicating location information on the private blockchain database of the electronic voucher destruction transaction registered in the private blockchain database; And (b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature of the particular issuer. Is a hash value of the value-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value registered in the public blockchain database or a value obtained by processing the representative hash value; There is provided a method comprising a.
또한, 본 발명의 일 실시예에 따르면, 상기의 방법들을 수행하기 위한 서버가 제공된다.In addition, according to an embodiment of the present invention, a server for performing the above methods is provided.
이 외에도, 본 발명의 방법을 실행하기 위한 컴퓨터 프로그램을 기록하기 위한 컴퓨터 판독 가능한 기록 매체가 더 제공된다.In addition to this, a computer readable recording medium for recording a computer program for executing the method of the present invention is further provided.
본 발명에 의하면, 다음과 같은 효과가 있다.According to the present invention, the following effects are obtained.
본 발명은 가상 화폐의 블록체인에 전자 바우처를 등록하여 복사 또는 위/변조가 불가능하도록 하여 전자 바우처의 신뢰성 및 보안성을 향상시킬 수 있다. The present invention can improve the reliability and security of the electronic voucher by registering the electronic voucher in the blockchain of the virtual currency so that copying or forgery / modulation is impossible.
또한, 본 발명은 전자 바우처의 사용 등의 정보를 해쉬함수와 암호화 기술을 이용하여 보안이 보장되고 위/변조가 불가능하도록 하여 전자 바우처의 신뢰성 및 보안성을 향상시킬 수 있다.In addition, the present invention can improve the reliability and security of the electronic voucher by ensuring that the information, such as the use of the electronic voucher is secured by using a hash function and encryption technology, and forgery / modulation is impossible.
또한, 본 발명은 가상 화폐의 블록체인에 전자 바우처를 등록함으로써 전자 바우처가 중복 발행되는 등의 문제점을 미연에 방지할 수 있어 전자 바우처의 신뢰성 및 보안성을 향상시킬 수 있다.In addition, the present invention can prevent the problem such as duplicated electronic voucher is issued by registering the electronic voucher in the blockchain of the virtual currency, it is possible to improve the reliability and security of the electronic voucher.
도 1은 본 발명의 일 실시예에 따라 전자 바우처를 발행하는 서버를 개략적으로 도시한 것이고,1 schematically illustrates a server for issuing an electronic voucher according to an embodiment of the present invention,
도 2는 본 발명의 일 실시예에 따라 전자 바우처를 발행하는 방법을 개략적으로 도시한 것이고,2 schematically illustrates a method of issuing an electronic voucher according to an embodiment of the present invention,
도 3과 도 4는 본 발명이 일 실시예에 따른 전자 바우처 발행 transaction을 퍼블릭 블록체인 데이터베이스에 등록하는 과정을 개략적으로 도시한 것이고,3 and 4 schematically illustrate a process of registering an electronic voucher issuing transaction in a public blockchain database according to an embodiment of the present invention.
도 5는 본 발명의 일 실시예에 따른 전자 바우처를 발행하는 방법에서 전자 바우처를 발행하는 전자 바우처 발행자를 등록하는 방법을 개략적으로 도시한 것이고,5 schematically illustrates a method of registering an electronic voucher issuer for issuing an electronic voucher in a method for issuing an electronic voucher according to an embodiment of the present invention.
도 6은 본 발명의 일 실시예에 따라 전자 바우처를 사용하는 방법을 개략적으로 도시한 것이고,6 schematically illustrates a method of using an electronic voucher according to an embodiment of the present invention,
도 7은 본 발명의 일 실시예에 따라 전자 바우처를 환불하는 방법을 개략적으로 도시한 것이고,7 schematically illustrates a method for refunding an electronic voucher according to an embodiment of the present invention,
도 8은 본 발명의 일 실시예에 따라 전자 바우처를 정산하는 방법을 개략적으로 도시한 것이고,8 schematically illustrates a method for calculating an electronic voucher according to an embodiment of the present invention.
도 9는 본 발명의 일 실시예에 따라 전자 바우처를 파기하는 방법을 개략적으로 도시한 것이다.9 schematically illustrates a method of discarding an electronic voucher according to an embodiment of the present invention.
후술하는 본 발명에 대한 상세한 설명은, 본 발명이 실시될 수 있는 특정 실시예를 예시로서 도시하는 첨부 도면을 참조한다. 이들 실시예는 당업자가 본 발명을 실시할 수 있기에 충분하도록 상세히 설명된다. 본 발명의 다양한 실시예는 서로 다르지만 상호 배타적일 필요는 없음이 이해되어야 한다. 예를 들어, 여기에 기재되어 있는 특정 형상, 구조 및 특성은 일 실시예에 관련하여 본 발명의 정신 및 범위를 벗어나지 않으면서 다른 실시예로 구현될 수 있다. 또한, 각각의 개시된 실시예 내의 개별 구성요소의 위치 또는 배치는 본 발명의 정신 및 범위를 벗어나지 않으면서 변경될 수 있음이 이해되어야 한다. 따라서, 후술하는 상세한 설명은 한정적인 의미로서 취하려는 것이 아니며, 본 발명의 범위는, 적절하게 설명된다면, 그 청구항들이 주장하는 것과 균등한 모든 범위와 더불어 첨부된 청구항에 의해서만 한정된다. 도면에서 유사한 참조부호는 여러 측면에 걸쳐서 동일하거나 유사한 기능을 지칭한다.DETAILED DESCRIPTION The following detailed description of the invention refers to the accompanying drawings that show, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It should be understood that the various embodiments of the present invention are different but need not be mutually exclusive. For example, certain shapes, structures, and characteristics described herein may be embodied in other embodiments without departing from the spirit and scope of the invention with respect to one embodiment. In addition, it is to be understood that the location or arrangement of individual components within each disclosed embodiment may be changed without departing from the spirit and scope of the invention. The following detailed description, therefore, is not to be taken in a limiting sense, and the scope of the present invention, if properly described, is defined only by the appended claims, along with the full range of equivalents to which such claims are entitled. Like reference numerals in the drawings refer to the same or similar functions throughout the several aspects.
이하, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명을 용이하게 실시할 수 있도록 하기 위하여, 본 발명의 바람직한 실시예들에 관하여 첨부된 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention.
도 1은 본 발명의 일 실시예에 따라 전자 바우처를 발행하는 서버를 개략적으로 도시한 것이고, 서버(100)는 통신부(101)와 프로세서(102)를 포함할 수 있다. 동일한 참조 부호를 이용하여 나타낸 것은 설명의 편의를 위한 것일 뿐, 이들 개별 장치들이 동일하다는 의미로 의도된 것은 아니다. 그리고, 본 발명의 다른 실시예에서의 방법은 서버를 상이하게 구성하여 해당 방법을 수행하거나 동일한 서버(100)를 통해 해당 방법을 수행할 수도 있다.1 schematically illustrates a server for issuing an electronic voucher according to an embodiment of the present invention, the server 100 may include a communication unit 101 and a processor 102. The same reference numerals are used for the convenience of description and are not intended to mean that these individual devices are the same. In another embodiment of the present invention, the server may be configured differently to perform the method, or the method may be performed through the same server 100.
구체적으로, 서버(100)는 전형적으로 컴퓨팅 장치(예컨대, 컴퓨터 프로세서, 메모리, 스토리지, 입력 장치 및 출력 장치, 기타 기존의 컴퓨팅 장치의 구성요소들을 포함할 수 있는 장치; 라우터, 스위치 등과 같은 전자 통신 장치; 네트워크 부착 스토리지(NAS) 및 스토리지 영역 네트워크(SAN)와 같은 전자 정보 스토리지 시스템)와 컴퓨터 소프트웨어(즉, 컴퓨팅 장치로 하여금 특정의 방식으로 기능하게 하는 인스트럭션들)의 조합을 이용하여 원하는 시스템 성능을 달성하는 것일 수 있다.Specifically, server 100 is typically a computing device (eg, a device that may include components of a computer processor, memory, storage, input and output devices, other conventional computing devices; electronic communications such as routers, switches, etc.). Desired system performance using a combination of a device; an electronic information storage system such as network attached storage (NAS) and a storage area network (SAN) and computer software (ie, instructions that cause a computing device to function in a particular manner). It may be to achieve.
이와 같은 컴퓨팅 장치의 통신부(101)는 연동되는 타 컴퓨팅 장치와 요청과 응답을 송수신할 수 있는바, 일 예시로서 그러한 요청과 응답은 동일한 TCP 세션에 의하여 이루어질 수 있지만, 이에 한정되지는 않는바, 예컨대 UDP 데이터그램으로서 송수신될 수도 있을 것이다.The communication unit 101 of the computing device may transmit and receive a request and a response with another computing device to which the computing device is linked. For example, the request and response may be made by the same TCP session, but are not limited thereto. For example, it may be transmitted and received as a UDP datagram.
또한, 컴퓨팅 장치의 프로세서(102)는 MPU(Micro Processing Unit) 또는 CPU(Central Processing Unit), 캐쉬 메모리(Cache Memory), 데이터 버스(Data Bus) 등의 하드웨어 구성을 포함할 수 있다. 또한, 운영체제, 특정 목적을 수행하는 애플리케이션의 소프트웨어 구성을 더 포함할 수도 있다.In addition, the processor 102 of the computing device may include a hardware configuration such as a micro processing unit (MPU) or a central processing unit (CPU), a cache memory, a data bus, and the like. In addition, the operating system may further include a software configuration of an application performing a specific purpose.
그리고, 본 발명에서의 전자 바우처는 쿠폰, 상품권, 교환권, 사용권 등에서와 같이 금액이나 사용/이용 회수, 교환할 수 있는 상품 등 중 적어도 일부와 같은 유무형의 가치 정보를 가지는 것으로, 유무형의 가치 정보를 기록한 모든 유형의 전자 파일을 포함할 수 있다.The electronic voucher according to the present invention has tangible and intangible value information such as at least a portion of an amount, a number of times of use / use, and a commodity that can be exchanged, such as a coupon, a gift certificate, an exchange ticket, a use right, and the like. It can contain any type of electronic file you record.
먼저, 도 2를 참조하여 본 발명의 일 실시예에 따른 전자 바우처를 발행하는 방법을 도 1의 서버를 통해 설명하면 다음과 같다.First, a method of issuing an electronic voucher according to an embodiment of the present invention will be described with reference to FIG. 2 through the server of FIG. 1.
전자 바우처를 발행하기 위하여, 전자 바우처 발행자인 특정 발행자(110)로부터 전자 바우처의 발행을 위한 (i) 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 특정 발행자의 private key로 서명한 특정 발행자의 서명값에 의한 전자 바우처 발행 요청(request(issue TrxA))이 특정 발행자의 단말로부터 송신되면 서버(100)는 이를 통신부(101)를 통해 수신한다(S100).In order to issue an electronic voucher, (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the hash value of the electronic voucher data for issuing the electronic voucher from the specific issuer 110 that is the electronic voucher issuer, or the same. When a request for issuing an electronic voucher (issue TrxA) based on the signature value of a specific issuer that has signed an included value with a private key of a specific issuer is transmitted from a specific issuer's terminal, the server 100 receives it through the communication unit 101. (S100).
이때, 전자 바우처 데이터는, 전자 바우처의 타입 정보, 상기 전자 바우처를 구매하는 특정 사용자의 public key, 상기 전자 바우처의 가치 정보, 상기 특정 발행자의 고유 ID 정보 및 상기 전자 바우처의 사용 기한 정보 중 적어도 하나 이상을 포함할 수 있다. 그리고, 전자 바우처의 타입 정보는 현재 수행하는 동작을 정의하기 위한 것으로 전자 바우처 발행을 표시하는 정보일 수 있다. 또한, 전자 바우처를 구매하는 특정 사용자의 public key는 특정 사용자를 지정함으로써 해당 전자 바우처를 구매한 사용자를 특정할 수도 있으며, 이와는 달리 사용자를 특정하지 않음으로써 무기명 상품권과 같이 일반 화폐와 유사하게 사용되게 할 수도 있다. 그리고, 전자 바우처의 가치 정보는 사용 금액, 사용 회수, 교환 가능한 상품 정보 등을 포함하는 유무형의 가치에 대한 정보일 수 있다. 또한, 특정 발행자의 고유 ID는 특정 발행자를 식별하기 위한 정보일 수 있으며, 일 예로 특정 발행자의 public key의 해쉬값 또는 이를 포함한 값일 수 있다. 그리고, 특정 발행자 또는 특정 사용자에 대한 정보는 사전에 서버(100)에 등록된 것이거나, 필요에 따라 해당 시점에 서버(100)에 등록할 수도 있으며, 등록 정보는 private key와 public key를 가진 발행자 또는 사용자가 자신의 public key를 서버(100)에 등록한 것으로, 이에 대한 설명은 다른 동작에서 설명한다. 또한, 전자 바우처의 사용 기한 정보는 전자 바우처를 사용할 수 있는 기한을 지정한 날짜 정보일 수 있다.At this time, the electronic voucher data, at least one of the type information of the electronic voucher, the public key of the specific user to purchase the electronic voucher, the value information of the electronic voucher, the unique ID information of the specific issuer and the expiration date of the electronic voucher. It may contain the above. The type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the issuance of the electronic voucher. In addition, the public key of a specific user purchasing an electronic voucher may specify a user who purchased the electronic voucher by designating a specific user. Alternatively, by not specifying a user, the public key may be used similarly to general currency such as a bearer voucher. You may. The value information of the electronic voucher may be information on tangible and intangible values, including the amount of use, the number of times of use, and information on exchangeable goods. In addition, the unique ID of a specific issuer may be information for identifying a specific issuer. For example, the unique ID of a specific issuer may be a hash value or a value including the public key of a specific issuer. In addition, information on a specific issuer or a specific user may be registered in advance in the server 100 or may be registered in the server 100 at a corresponding point in time if necessary, and the registration information may be a publisher having a private key and a public key. Alternatively, the user has registered his or her public key on the server 100, which will be described in another operation. In addition, the expiration date information of the electronic voucher may be date information specifying the expiration date for using the electronic voucher.
그리고, 일 예로, 전자 바우처 발행을 위한 transaction(TrxA)은 1. 타입(발행), 2. 이전 transaction에 대한 PrivTxid 또는 Txid(본 실시예에서는 전자 바우처의 발행이므로 이전 PrivTxid 또는 Txid가 없음), 3. 수신자로 전자 바우처를 구매하는 사용자의 public key(PubA), 4. 전자 바우처의 발행 가치 정보, 5. 전자 바우처 발행인 ID, 6. 전자 바우처의 만료일, 7. 이번 동작의 주체 확인을 위한 public key인 특정 발행자의 public key(MpubA), 8. 서명값으로 특정 발행자가 private key로 서명한 1, 2, 3, 4, 5, 6, 7의 서명값(SigMPrivA(1:2:3:4:5:6:7))을 포함할 수 있다.And, for example, transaction (TrxA) for issuing an electronic voucher is 1. type (issued), 2. PrivTxid or Txid for the previous transaction (in this embodiment, there is no previous PrivTxid or Txid because it is an issue of an electronic voucher), 3 The public key (PubA) of the user purchasing the electronic voucher as the recipient, 4. the value of the issue of the electronic voucher, 5. the electronic voucher issuer ID, 6. the expiration date of the electronic voucher, 7. the public key to verify the subject of this action. Is the public key (MpubA) of the particular issuer. 8. The signature values 1, 2, 3, 4, 5, 6, and 7 (SigMPrivA (1: 2: 3: 4 :) 5: 6: 7)).
그러면, 서버(100)의 프로세서(102)는 통신부(101)를 통해 획득된 (i) 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 특정 발행자의 서명값의 유효 여부를 확인한다(S101). 또한, 서버(100)는 전자 바우처 데이터에 대한 포맷 형식의 유효 여부를 확인할 수도 있다.Then, the processor 102 of the server 100 checks whether the (i) electronic voucher data, (ii) the public key of a specific issuer, and (iii) the signature value of a specific issuer obtained through the communication unit 101 are valid. (S101). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
이때, 서버(100)의 프로세서(101)는 상기 (i) 전자 바우처 데이터에 해쉬 함수를 적용하여 생성한 해쉬값과 상기 (iii) 특정 발행자의 서명값에 대해 특정 발행자의 public key 를 사용하여 획득한 값을 비교 분석하여 전자 바우처 데이터의 유효 여부를 확인할 수 있다.At this time, the processor 101 of the server 100 obtains the hash value generated by applying the hash function to the (i) electronic voucher data and (iii) the signature value of the specific issuer using the public key of the specific issuer. One value can be compared and analyzed to confirm the validity of the electronic voucher data.
일 예로, 상기 특정 발행자에 의해 등록된 public key를 이용하여 상기 특정 발행자의 서명값에 대한 유효 여부를 확인할 수 있다. For example, it is possible to check whether the signature value of the specific issuer is valid using a public key registered by the specific issuer.
즉, 서버(100)는 등록된 특정 발행자의 public key를 사용하여 획득된 전자 바우처 데이터에 해쉬 함수를 적용하여 해쉬값을 획득하며, 등록된 특정 발행자의 public key를 사용하여 확인한 특정 발행자의 서명값이 일치하는지를 확인하여 전자 바우처 데이터가 유효하며 정상적인 특정 발행자에 의해 서명된 것인지를 확인할 수 있다.That is, the server 100 obtains a hash value by applying a hash function to the electronic voucher data obtained using the registered specific issuer's public key, and obtains the signature value of the specific issuer verified using the registered specific issuer's public key. This match can be checked to ensure that the electronic voucher data is valid and signed by the particular issuer.
그리고, 서버(100)는 확인 결과(S110) 유효한 것으로 판단하면, (i) 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 특정 발행자의 서명값을 포함하는 전자 바우처 발행 transaction(TrxA)을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 프라이빗 블록체인 데이터베이스에 등록된 전자 바우처 발행 transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 포함하는 등록이 성공했음을 나타내는 응답을 특정 발행자에게 제공하거나 제공하도록 지원할 수 있다(S111). 하지만, 서버(100)는 확인 결과(S110) 유효가 아니면, 특정 발행자(110)에게 에러 메시지를 포함하는 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다(S112).If the server 100 determines that the verification result (S110) is valid, the electronic voucher issuing transaction (TrxA) includes (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the specific issuer. ), Or provide a response to the specific issuer indicating that the registration including the PrivTxid indicating location information on the private blockchain database of the electronic voucher issuing transaction registered in the private blockchain database was successful. Or may provide support (S111). However, if the confirmation result (S110) is not valid, the server 100 may provide or support a specific issuer 110 to provide or provide a response indicating a failure including an error message (S112).
또한, 서버(100)는 유효한 확인 결과에 대응하여, 소정의 조건, 일 예로 퍼블릭 블록체인 데이터베이스에 소정의 해쉬값을 등록하기 위한 트리거링 조건이 만족되면(S120), (i) 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 특정 발행자의 서명값에 대한 해쉬값인 특정 해쉬값 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 생성하고(S121), 생성된 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원하며(S122), 퍼블릭 블록체인 데이터베이스(120)에 등록된 대표 해쉬값 또는 대표 해쉬값을 가공한 값의 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 transaction ID 인 Txid를 획득하거나 획득하도록 지원할 수 있다(S123).In addition, if the triggering condition for registering a predetermined hash value in the public blockchain database is satisfied (S120), (i) the electronic voucher data, ( ii) process a representative hash value or a representative hash value by computing a public key of a specific issuer and (iii) a hash value for a signature value of a specific issuer and at least one neighboring hash value matching the hash value. It generates a value (S121), and supports to register or register the generated representative hash value or the processed value of the representative hash value in the public blockchain database 120 (S122), registered in the public blockchain database 120 Txid, which is a transaction ID representing location information on a public blockchain database of a representative hash value or a processed value of the representative hash value, can be obtained or acquired. (S123).
그리고, 특정 해쉬값과 적어도 하나의 이웃 해쉬값과의 연산은 다양한 해쉬 함수에 의해 수행 될 수 있으며, 해쉬함수는 MD4 함수, MD5 함수, SHA-0 함수, SHA-1 함수, SHA-224 함수, SHA-256 함수, SHA-384 함수, SHA-512 함수 및 HAS-160 함수를 포함할 수 있으나, 이에 한정되지 않음은 통상의 기술자가 알 수 있을 것이다. 예를 들어 Triple SHA256도 가능할 것이다.And, the operation of a specific hash value and at least one neighboring hash value can be performed by various hash functions, and the hash function can be performed by MD4 function, MD5 function, SHA-0 function, SHA-1 function, SHA-224 function, It will be appreciated by those skilled in the art that the present invention may include, but is not limited to, an SHA-256 function, an SHA-384 function, an SHA-512 function, and an HAS-160 function. For example, Triple SHA256 would be possible.
이때, 서버(100)는 특정 해쉬값과 적어도 하나의 이웃 해쉬값을 소정의 데이터 구조로 저장하여 관리할 수 있다. 여기서, 데이터 구조는 다양할 수 있는데, 일 예로 머클 트리(merkle tree) 구조가 될 수도 있다. 이 경우, 특정 해쉬값과 적어도 하나의 이웃 해쉬값의 연산은 머클 트리(merkle tree)를 통해 이루어질 수 있다.In this case, the server 100 may store and manage a specific hash value and at least one neighbor hash value in a predetermined data structure. Here, the data structure may vary, for example, may be a merkle tree structure. In this case, the calculation of a specific hash value and at least one neighboring hash value may be performed through a merkle tree.
즉, 서버(100)는 특정 해쉬값이 특정 리프 노드에 할당된 머클 트리(merkle tree)를 생성하거나 생성하도록 지원할 수 있고, 소정의 조건이 만족되면, 특정 해쉬값과 매칭되는 적어도 하나의 다른 리프 노드에 할당된 해쉬값을 연산하여 생성되는 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원할 수 있다.That is, the server 100 may support to generate or generate a merkle tree in which a specific hash value is assigned to a specific leaf node, and if a predetermined condition is satisfied, at least one other leaf matching the specific hash value. A representative hash value generated by calculating a hash value assigned to a node or a processed value of the representative hash value may be registered or registered in the public blockchain database 120.
좀더 구체적으로 설명하면, (x1) 서버(100)는, (i) 특정 해쉬값과 (ii) 특정 해쉬값이 할당된 노드의 형제 노드에 할당된 해쉬값을 연산하거나 연산하도록 지원하고, 연산값에 대한 해쉬값을 노드의 부모 노드에 할당하거나 할당하도록 지원할 수 있다. (x2) 만일, 부모 노드가 머클 트리의 루트 노드이면, 부모 노드에 할당된 해쉬값이 대표 해쉬값이 된다. (x3) 반면, 부모 노드가 머클 트리의 루트 노드가 아니면, 서버(100)는, 부모 노드에 할당된 해쉬값을 특정 해쉬값으로 하여 (x1) 내지 (x3)를 반복하여 수행한다.More specifically, (x1) the server 100 supports (i) calculating or calculating the hash value assigned to the sibling node of the node to which (i) the specific hash value and (ii) the specific hash value is assigned, and the computed value You can support assigning or assigning a hash value for a node's parent node. (x2) If the parent node is the root node of the Merkle tree, the hash value assigned to the parent node becomes the representative hash value. (x3) On the other hand, if the parent node is not the root node of the Merkle tree, the server 100 repeatedly performs (x1) to (x3) by using the hash value assigned to the parent node as a specific hash value.
그리고, 서버(100)는 최종적으로 머클 트리의 루트 노드에 할당된 해쉬값을 대표 해쉬값으로서 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원한다. 이때, 대표 해쉬값을 가공한 값이 등록될 수도 있다. 예를 들어, 대표 해쉬값에 hex 연산이 수행된 결과값이 등록될 수도 있다. The server 100 supports registering or registering the hash value finally assigned to the root node of the Merkle tree as the representative hash value in the public blockchain database 120. At this time, a value obtained by processing the representative hash value may be registered. For example, the result of performing the hex operation may be registered in the representative hash value.
한편, 서버(100)가 특정 해쉬값과 적어도 하나의 이웃 해쉬값을 소정의 제1 데이터 구조로 저장하고, 이후 제1 데이터 구조와 동일한 형태의 제2 데이터 구조를 저장하여 관리하는 경우, 제1 데이터 구조와 제2 데이터 구조는 체인 형태로 연결될 수 있다.Meanwhile, when the server 100 stores a specific hash value and at least one neighboring hash value in a predetermined first data structure, and then stores and manages a second data structure having the same form as the first data structure, The data structure and the second data structure may be connected in a chain form.
특히, 상술한 예에서와 같이 제1 데이터 구조 및 제2 데이터 구조가 머클 트리인 경우, 제1 데이터 구조의 루트값 또는 루트값의 해쉬값이 제2 데이터 구조의 첫번째 리프 노드에 할당될 수 있다.In particular, when the first data structure and the second data structure are Merkle trees as in the above-described example, a root value of the first data structure or a hash value of the root value may be allocated to the first leaf node of the second data structure. .
또한, 제2 데이터 구조를 생성할 때는 제1 데이터 구조에 대한 검증이 이루어짐으로써 데이터 integrity가 좀더 보장될 수 있다. 제2 데이터 구조의 검증에 대해서는 후술하기로 한다. In addition, when the second data structure is generated, data integrity may be more guaranteed by verifying the first data structure. The verification of the second data structure will be described later.
또한, 체인 형태로 연결된 적어도 하나의 머클 트리 중 첫번째 머클 트리의 경우, 첫번째 머클 트리의 첫번째 리프 노드에는 텍스트, 숫자, 또는 기호로 이루어진 소정의 메시지 데이터의 해쉬값 또는 이를 가공한 값이 할당될 수 있다. 예를 들어, 머클 트리 생성시 서버(100)에 의해 최초로 부여된 입력 메시지의 해쉬값이 할당될 수 있다. In addition, in the case of the first Merkle tree of at least one Merkle tree connected in a chain form, the first leaf node of the first Merkle tree may be assigned a hash value or a processed value of predetermined message data consisting of text, numbers, or symbols. have. For example, a hash value of an input message initially given by the server 100 may be assigned when generating the merkle tree.
도 3 및 도 4는 본 발명의 일 실시예에 따라 생성된 머클 트리의 예를 도시한 도면이다.3 and 4 illustrate an example of a merkle tree generated according to an embodiment of the present invention.
도 3에서는 리프 노드의 개수가 4개인 머클 트리가 도시된다. 도시된 머클 트리는 첫번째 머클 트리이기 때문에(tree_id=0), 첫번째 리프 노드인 h0 노드에는 소정의 메시지 데이터의 해쉬값 (sha256digest(coinplug_unique_message))이 할당되었음을 알 수 있다. 기록 데이터에 대한 등록 요청(즉, 메신저 서비스 송수신 데이터에 관한 기록 요청)이 있는 경우, 서버(100)는 현재 구성 중인 머클 트리의 가장 마지막 리프 노드의 다음 리프 노드를 생성하여 특정 해쉬값 또는 특정 해쉬값을 가공한 값을 할당하거나 할당하도록 지원한다. 예를 들어, 도 3의 머클 트리에서 두번째 리프 노드인 h1 노드까지 값 할당이 완료된 상태에서 새로운 리프 노드를 생성하여야 하는 경우, 다음 리프 노드인 h2 노드를 생성하여 특정 해쉬값 또는 특정 해쉬값을 가공한 값(sha256digest(input2))을 할당할 수 있다. 또한, 서버(100)는 (i) h2 노드에 할당된 특정 해쉬값과 (ii) h2 노드의 형제 노드인 h3 노드에 할당된 해쉬값을 연산하거나 연산하도록 지원할 수 있다. 상기 연산값에 대한 해쉬값은 h2 노드와 h3 노드의 부모 노드(h23 노드)에 할당된다. 부모 노드(h23 노드)가 머클 트리의 루트 노드가 아니므로 서버(100)는 h23 노드에 할당된 해쉬값을 특정 해쉬값으로 하여 상기 과정을 반복하여 수행할 수 있다. 즉, h23 노드에 할당된 해쉬값을 특정 해쉬값으로 하고, h23 노드에 할당된 해쉬값과 h01 노드에 할당된 해쉬값을 연산하여 h23 노드와 h01 노드의 부모 노드(h0123 노드)에 할당할 수 있다. 이때, h0123 노드가 머클 트리의 루트 노드이므로 서버(100)는, h0123 노드에 할당된 해쉬값을 가공한 값(hex(h{node_index}))을 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원할 수 있다.3 shows a Merkle tree with four leaf nodes. Since the illustrated Merkle tree is the first Merkle tree (tree_id = 0), it can be seen that a hash value (sha256digest (coinplug_unique_message)) of predetermined message data is assigned to the h0 node which is the first leaf node. If there is a registration request for the recording data (that is, a recording request for the messenger service transmission / reception data), the server 100 generates a next hash node of the last leaf node of the Merkle tree that is currently configured to generate a specific hash value or a specific hash. Supports assigning or assigning a processed value. For example, when a new leaf node needs to be created while the value allocation is completed from the merkle tree of FIG. 3 to the second leaf node h1, the next leaf node h2 is created to process a specific hash value or a specific hash value. You can assign one value (sha256digest (input2)). In addition, the server 100 may support to calculate or calculate (i) a specific hash value assigned to the h2 node and (ii) a hash value assigned to the h3 node that is a sibling node of the h2 node. The hash value for the operation value is assigned to the parent node (h23 node) of the h2 node and the h3 node. Since the parent node (h23 node) is not the root node of the Merkle tree, the server 100 may repeat the above process by using the hash value assigned to the h23 node as a specific hash value. That is, the hash value assigned to the h23 node can be used as a specific hash value, and the hash value assigned to the h23 node and the hash value assigned to the h01 node can be calculated and assigned to the parent node (h0123 node) of the h23 node and the h01 node. have. At this time, since the h0123 node is the root node of the Merkle tree, the server 100 registers or registers a value (hex (h {node_index})) of the hash value assigned to the h0123 node in the public blockchain database 120. Can support
한편, 전술한 소정의 조건이란, (i) 소정의 개수만큼 전자 바우처 발행 transaction 또는 전자 바우처와 관련한 "관련 transaction"이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인, 일 예로 프라이빗 블록체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함할 수 있다. 이때, 전자 바우처와 관련한 "관련 transaction"은 전자 바우처의 발행에 더하여, 후술할 전자 바우처의 사용, 전자 바우처의 환불, 전자 바우처의 정산, 전자 바우처의 파기 등을 포함할 수 있다. 그러나, 전자 바우처와 관련한 "관련 transaction"은 이에 한정되지 않으며, 전자 바우처의 양도, 매매 등과 같이 전자 바우처와 관련하여 발생할 수 있는 모든 상태를 포함할 수 있다.On the other hand, the predetermined conditions described above are (i) a condition in which an electronic voucher issuing transaction or a "related transaction" relating to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a blockchain, For example, it may include at least one of a condition in which a block is generated in a private blockchain, and (iv) a condition for a service characteristic. In this case, the “related transaction” related to the electronic voucher may include the use of the electronic voucher, the refund of the electronic voucher, the settlement of the electronic voucher, the destruction of the electronic voucher, etc., in addition to the issuance of the electronic voucher. However, the "related transaction" associated with the electronic voucher is not limited thereto, and may include any state that may occur with respect to the electronic voucher, such as the transfer, sale, etc. of the electronic voucher.
한편, 예를 들어, 복수의 전자 바우처 발행 transaction이 머클 트리의 리프 노드 수만큼 획득되면 머클 트리를 생성하고, 머클 트리의 루트값을 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원할 수 있다.On the other hand, for example, when a plurality of electronic voucher issuance transactions are obtained by the number of leaf nodes of the Merkle tree, the Merkle tree may be generated, and the root value of the Merkle tree may be supported or registered in the public blockchain database 120.
또한, 서버(100)는 소정 시간 단위로 전술한 머클 트리의 루트값을 생성할 수 있다(상기 (ii) 조건). 이 경우 서버(100)는 소정의 시간이 경과되면 그때까지의 입력값을 이용하여 머클 트리를 생성하고 머클 트리의 루트값을 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원할 수 있다. In addition, the server 100 may generate the root value of the aforementioned Merkle tree on a predetermined time unit (condition (ii) above). In this case, when a predetermined time elapses, the server 100 may generate a Merkle tree using the input values up to that time and register or register the root value of the Merkle tree in the public blockchain database 120.
그런데, 이 경우에는 소정 시간이 경과하였음에도 머클 트리의 특정 해쉬값이 할당된 노드의 형제 노드에 값이 할당되지 않을 수 있다. 이처럼 소정의 조건이 만족되었음에도 특정 해쉬값이 할당된 노드의 형제 노드에 해쉬값이 할당되어 있지 않은 경우, 서버(100)는, 형제 노드에 소정의 해쉬값을 할당하거나 할당하도록 지원하여 전술한 방식으로 머클 트리의 루트값이 산출되도록 할 수 있다. 예를 들어, 서버(100)는 특정 해쉬값을 복제하여 형제 노드에 할당하거나 할당하도록 지원할 수 있다.In this case, however, a value may not be assigned to a sibling node of a node to which a specific hash value of the Merkle tree is assigned even after a predetermined time has elapsed. When the hash value is not assigned to the sibling node of the node to which the specific hash value is assigned even though the predetermined condition is satisfied as described above, the server 100 supports to assign or allocate the predetermined hash value to the sibling node. This allows the root value of the Merkle tree to be calculated. For example, server 100 may support assigning or assigning a particular hash value to a sibling node.
그리고, 서비스 특성이란, 전자 바우처 발행 요청을 한 특정 발행자가 제공한 비용 정보, 전자 바우처 발행 transaction 등록이 이루어지는 시간대 정보, 전자 바우처 발행 transaction 등록 서비스가 이루어지는 지역 정보, 전자 바우처 발행 transaction 등록 요청을 한 회사 타입 정보 중 적어도 일부가 될 수 있다. 다만, 여기서 기재한 것에 한정할 것은 아니고, 통상적으로 인정되는 차등적 서비스가 제공될 수 있는 다양한 조건 정보를 포함한다. The service characteristics include cost information provided by a specific issuer who has requested an electronic voucher issuance, time zone information at which the electronic voucher issuing transaction registration is made, regional information on which the electronic voucher issuing transaction registration service is performed, and a company that has requested the electronic voucher issuing transaction registration. It may be at least part of the type information. However, the present invention is not limited to the above description and includes various condition information in which a generally accepted differential service can be provided.
한편, 새로운 머클 트리 생성이 시작되고, 전자 바우처 발행 transaction이 없는 상태에서 소정의 조건이 만족되면, 서버(120)는, 소정의 메시지 데이터가 첫번째 리프 노드와 두번째 리프 노드에 할당된 머클 트리를 생성하거나 생성하도록 지원하고, 머클 트리의 루트값 또는 이를 가공한 값을 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원할 수 있다. 이 경우에는 리프 노드 2개짜리 머클 트리가 생성될 수도 있는 것이다.On the other hand, when a new Merkle tree generation starts and a predetermined condition is satisfied in the absence of an electronic voucher issuing transaction, the server 120 generates a Merkle tree in which predetermined message data is assigned to the first leaf node and the second leaf node. Or to create or register the root value of the Merkle tree or the processed value thereof in the public blockchain database 120. In this case, a two leaf node Merkle tree may be created.
한편, 전술한 것처럼 서버(100)가 특정 해쉬값과 적어도 하나의 이웃 해쉬값을 소정의 제1 데이터 구조로 저장하고, 이후 제1 데이터 구조와 동일한 형태의 제2 데이터 구조를 저장하여 관리하는 경우, 제1 데이터 구조와 제2 데이터 구조는 체인 형태로 연결될 수 있다. 특히, 제1 데이터 구조 및 제2 데이터 구조가 머클 트리인 경우, 제1 데이터 구조의 루트값 또는 루트값의 해쉬값이 제2 데이터 구조의 첫번째 리프 노드에 할당될 수 있다.Meanwhile, as described above, when the server 100 stores a specific hash value and at least one neighboring hash value in a predetermined first data structure, and then stores and manages a second data structure having the same form as the first data structure. The first data structure and the second data structure may be connected in a chain form. In particular, when the first data structure and the second data structure are Merkle trees, a root value of the first data structure or a hash value of the root value may be assigned to the first leaf node of the second data structure.
도 4는 본 발명의 일 실시예에 따라 제2 데이터 구조로서 생성된 머클 트리를 도시한 도면이다.4 illustrates a Merkle tree generated as a second data structure according to an embodiment of the present invention.
도 4를 참조하면, 도 3의 머클 트리(tree_id=0)의 루트값(hex(h0123))이 새로운 머클 트리의 첫번째 리프 노드(h4 노드)에 할당되었음을 알 수 있다(sha256digest(input4)). 본 발명은 이와 같이 트랜잭션 발생시 생성되는 복수의 데이터 구조를 연결함으로써 중간에 데이터가 변조가 발생되는 경우라도 쉽게 트래킹이 가능하여 데이터 integrity를 향상시키는 장점을 가진다.Referring to FIG. 4, it can be seen that the root value hex (h0123) of the merkle tree (tree_id = 0) of FIG. 3 is allocated to the first leaf node (h4 node) of the new merkle tree (sha256digest (input4)). The present invention has an advantage of improving data integrity by easily tracking even when data is tampered with by connecting a plurality of data structures generated when a transaction occurs.
다음으로, 전술한 데이터 구조를 이용하여 등록된 전자 바우처 발행 transaction에 대해 검증을 수행하는 과정을 설명한다.Next, a process of performing verification on a registered electronic voucher issuing transaction using the aforementioned data structure will be described.
기존에 서버(100)가 전자 바우처 발행 transaction을 획득하여, 제1 특정 해쉬값(설명의 편의를 위하여 전술한 특정 해쉬값을 여기서는 제1 특정 해쉬값이라 지칭함)과 소정의 조건 하에서 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 제1 대표 해쉬값(설명의 편의를 위하여 전술한 대표 해쉬값을 여기서는 제1 대표 해쉬값이라 지칭함) 또는 제1 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스(120)에 등록하고 있는 상태에서, 서버(100)가 전자 바우처 발행 transaction과 관련된 검증 요청을 획득하고, 검증 요청에 포함된 입력 데이터를 사용하여 생성된 제2 대표 해쉬값 또는 상기 제2 대표 해쉬값을 가공한 값이 퍼블릭 블록체인 데이터베이스(120)에 등록된 제1 대표 해쉬값 또는 제1 대표 해쉬값을 가공한 값과 대응되면, 서버(100)가 기록 데이터와 관련된 검증이 이루어진 것으로 판단하거나 판단하도록 지원할 수 있다. 여기서, 제1 특정 해쉬값은, (i) 서버의 private key로 서명된 전자 바우처 발행 transaction의 해쉬값, (ii) 특정 발행인 private key 및 서버의 private key로 서명된 전자 바우처 발행 transaction의 해쉬값 중 어느 하나일 수 있다.At least one in which the server 100 obtains an electronic voucher issuing transaction and matches the first specific hash value (the above-described specific hash value is referred to herein as the first specific hash value for convenience of description) under a predetermined condition. The public blockchain database stores the first representative hash value (the above-mentioned representative hash value is referred to herein as the first representative hash value for convenience of explanation) or the first representative hash value generated by calculating a neighbor hash value of the public blockchain database. In the state of registering with the server 120, the server 100 obtains a verification request related to an electronic voucher issuing transaction, and generates a second representative hash value or the second representative hash value generated using input data included in the verification request. If the processed value corresponds to the processed value of the first representative hash value or the first representative hash value registered in the public blockchain database 120, the server 100 Assume or assist in determining that verification has been made regarding the lock data. Here, the first specific hash value is one of (i) a hash value of the electronic voucher issuing transaction signed with the private key of the server, (ii) a hash value of the electronic voucher issuing transaction signed with the specific issuer private key and the server's private key. It can be either.
또한, 제2 대표 해쉬값은, 제2 특정 해쉬값 및 제2 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성될 수 있다. 여기서, 제2 특정 해쉬값은, 서버의 private key로 서명되거나 특정 발행인의 private key 및 서버의 private key로 서명된 입력 데이터에 포함된 검증 요청 데이터의 해쉬값일 수 있다.In addition, the second representative hash value may be generated by calculating a second specific hash value and at least one neighboring hash value matching the second specific hash value. Here, the second specific hash value may be a hash value of verification request data included in input data signed with a private key of a server or signed with a specific issuer's private key and a server's private key.
이때, 검증 요청에 포함된 입력 데이터는, (i) 검증 요청 데이터, (ii) 검증 요청 데이터에 대한 message digest, 또는 (iii) 전자 바우처 발행 transaction의 등록 당시 발급된 ID 중 어느 하나를 포함할 수 있다.In this case, the input data included in the verification request may include any one of (i) verification request data, (ii) message digest for verification request data, or (iii) an ID issued at the time of registration of the electronic voucher issuing transaction. have.
입력 데이터에 검증 요청 데이터가 포함되는 경우, 전술한 방법으로 검증 요청 데이터에 대한 message digest가 생성되고 이를 기초로 하여 제2 특정 해쉬값이 산출될 수 있다. 그리고, 제2 대표 해쉬값은 제2 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산하여 생성될 수 있다.When the verification data is included in the input data, the message digest for the verification request data may be generated in the above-described manner, and a second specific hash value may be calculated based on the message digest. The second representative hash value may be generated by calculating at least one neighboring hash value matching the second specific hash value.
입력 데이터에 기록 데이터 등록 당시 발급된 ID가 포함되는 경우 기존에 생성된 머클 트리에서 ID에 대응되는 리프 노드에 할당된 값이 제2 특정 해쉬값으로 설정될 수 있다. When the input data includes an ID issued at the time of registering the record data, a value assigned to the leaf node corresponding to the ID in the previously generated Merkle tree may be set as the second specific hash value.
제2 특정 해쉬값에 대해서는 전술한 제1 특정 해쉬값에 대한 설명이 동일하게 적용될 수 있다. 즉, 제2 특정 해쉬값과 적어도 하나의 이웃 해쉬값의 연산은 다양한 해쉬 함수에 의해 수행될 수 있다. 이에 대해서는 전술하였으므로 설명을 생략한다.The description of the first specific hash value described above may be equally applied to the second specific hash value. That is, the operation of the second specific hash value and the at least one neighbor hash value may be performed by various hash functions. Since it has been described above, the description is omitted.
또한, 제2 특정 해쉬값과 적어도 하나의 이웃 해쉬값의 연산은 머클 트리(merkle tree)를 통해 이루어질 수 있다. 전자 바우처 발행 transaction과 관련된 검증 요청이 획득되면, 서버(100)는, 입력 데이터와 관련된 머클 트리 정보 및 리프 노드 정보를 식별할 수 있다.In addition, the operation of the second specific hash value and the at least one neighbor hash value may be performed through a merkle tree. When the verification request related to the electronic voucher issuing transaction is obtained, the server 100 may identify merkle tree information and leaf node information related to the input data.
그리고, 제2 대표 해쉬값은, 제2 특정 해쉬값이 특정 리프 노드에 할당된 머클 트리(merkle tree)에서 제2 특정 해쉬값 및 제2 특정 해쉬값과 매칭되는 적어도 하나의 다른 리프 노드에 할당된 해쉬값을 연산하여 생성될 수 있다.The second representative hash value is assigned to at least one other leaf node whose second specific hash value matches the second specific hash value and the second specific hash value in a merkle tree assigned to the specific leaf node. Can be generated by calculating the hash value.
또한, 서버(100)는, 전자 바우처 발행 transaction과 관련한 검증 요청이 획득되면, 전자 바우처 발행 transaction ID를 참조하고, transaction ID를 사용하여 퍼블릭 블록체인 데이터베이스(120)로부터 OP 메시지를 획득하거나 획득하도록 지원할 수 있다. 또한, 검증 요청에 포함된 입력 데이터를 사용하여 생성된 제2 대표 해쉬값 또는 제2 대표 해쉬값을 가공한 값이 OP 메시지에 포함된 제1 대표 해쉬값 또는 제1 대표 해쉬값을 가공한 값과 대응되면, 전자 바우처 발행 transaction과 관련된 검증이 이루어진 것으로 판단하거나 판단하도록 지원할 수 있다.In addition, when the verification request related to the electronic voucher issuing transaction is obtained, the server 100 may refer to the electronic voucher issuing transaction ID and support to obtain or obtain an OP message from the public blockchain database 120 using the transaction ID. Can be. In addition, a value obtained by processing the second representative hash value or the second representative hash value generated by using the input data included in the verification request is the value of the first representative hash value or the first representative hash value included in the OP message. If the corresponding to the voucher transaction, and can be determined that the verification associated with the electronic voucher issuance transaction has been made.
한편, 소정의 transaction ID는 입력 데이터에 포함되어 제공될 수도 있다. 즉, 특정 발행자는 검증 요청시 전술한 (i) 검증 요청 데이터, (ii) 검증 요청 데이터에 대한 message digest, 또는 (iii) 전자 바우처 발행 transaction 의 등록 당시 발급된 ID 중 어느 하나와 함께 transaction ID를 서버(100)에 전달할 수도 있다.On the other hand, the predetermined transaction ID may be provided included in the input data. That is, a particular issuer may specify a transaction ID along with any of the (i) verification request data described above, (ii) message digest for verification request data, or (iii) an ID issued at the time of registration of an electronic voucher issuing transaction upon verification request. It may be delivered to the server 100.
검증 연산 과정에서 서버(100)는 새로운 머클 트리를 생성하거나 생성하도록 지원할 수 있는데, 여기에는 전술한 기록 데이터의 데이터베이스 등록 과정에서 생성된 머클 트리가 이용될 수 있다. 이때 상기 새로운 머클 트리는, 기생성된 머클 트리의 특정 리프 노드에 상기 제2 특정 해쉬값 또는 이를 가공한 값을 할당함으로써 생성될 수 있으며, 상기 특정 리프 노드는, 상기 기생성된 머클 트리의 리프 노드들 중 상기 제2 특정 해쉬값에 의해 치환되는 값이 할당되어있던 리프 노드이다. 즉, 서버(100)는 (y1) (i) 제2 특정 해쉬값과 (ii) 상기 새로운 머클 트리의 상기 특정 리프 노드의 형제 노드에 할당된 해쉬값을 연산하거나 연산하도록 지원하고, 이 연산값에 대한 해쉬값을 상기 새로운 머클 트리에서 상기 특정 리프 노드와 그 형제 노드의 부모 노드에 할당하거나 할당하도록 지원할 수 있다. 또한, (y2) 부모 노드가 상기 새로운 머클 트리의 루트 노드이면, 부모 노드에 할당된 해쉬값을 제2 대표 해쉬값으로서 OP 메시지에 포함된 값과 비교하거나 비교하도록 지원하고, (y3) 부모 노드가 상기 새로운 머클 트리의 루트 노드가 아니면, 상기 부모 노드에 할당된 해쉬값을 제2 특정 해쉬값으로 하여 (y1) 내지 (y3)를 반복하여 수행할 수 있다.During the verification operation, the server 100 may support to generate or generate a new merkle tree. The merkle tree generated during the database registration process of the above-described record data may be used. In this case, the new Merkle tree may be generated by assigning the second specific hash value or a processed value to a specific leaf node of the generated Merkle tree, and the specific leaf node is a leaf node of the generated Merkle tree. Among them, a leaf node to which a value substituted by the second specific hash value is assigned. That is, the server 100 supports or computes (y1) (i) a second specific hash value and (ii) a hash value assigned to the sibling node of the specific leaf node of the new Merkle tree, and this operation value A hash value for may be assigned or supported to be assigned to the parent node of the specific leaf node and its sibling node in the new Merkle tree. In addition, (y2) if the parent node is the root node of the new Merkle tree, supports to compare or compare the hash value assigned to the parent node with the value included in the OP message as the second representative hash value, and (y3) the parent node. If is not the root node of the new Merkle tree, (y1) to (y3) may be repeated by using a hash value assigned to the parent node as a second specific hash value.
서버(100)는, 최종적으로 상기 새로운 머클 트리의 루트값 또는 이를 가공한 값이 OP 메시지에 포함된 제1 대표 해쉬값 또는 이를 가공한 값과 대응되면, 전자 바우처 발행 transaction과 관련된 검증이 이루어진 것으로 판단하거나 판단하도록 지원할 수 있다.When the server 100 finally matches the root value of the new Merkle tree or the processed value thereof with the first representative hash value included in the OP message or the processed value, the server 100 verifies that the electronic voucher issuing transaction has been performed. You can or will help you judge.
이처럼 본 발명은 전자 바우처 발행 transaction의 등록 단계에서 nm(=N)개의 리프 노드를 가지는 머클 트리가 생성이 되면, 머클 트리의 높이(lognN=m)만큼의 연산만을 수행함으로써 파일에 대한 검증을 수행할 수 있어 빠르게 transaction의 integrity 확인이 가능하게 된다.As described above, when the Merkle tree having nm (= N) leaf nodes is generated in the registration step of the electronic voucher issuing transaction, the verification of the file is performed by performing only the operation of the height of the Merkle tree (lognN = m). You can quickly check the integrity of a transaction.
한편, 서버(100)는 입력 데이터를 획득하는 경우, 입력 데이터와 관련된 시간 정보를 참조로 하여 입력 데이터와 관련된 머클 트리 정보 및 리프 노드 정보 중 적어도 하나를 식별할 수도 있다.Meanwhile, when obtaining the input data, the server 100 may identify at least one of merkle tree information and leaf node information related to the input data with reference to time information related to the input data.
이하에서는 도 3에 도시된 구체적인 예를 들어 검증 과정을 설명한다.Hereinafter, a verification process will be described using the specific example illustrated in FIG. 3.
다시 도 3을 참조하면, input 2에 대한 검증 요청이 있는 경우, 서버(120)는 입력 데이터 정보를 참조로 하여 기존에 생성된 머클 트리와 리프 노드 정보를 식별하고, 식별된 머클 트리 정보(tree_id = 0)에 대응되는 소정의 transaction ID를 퍼블릭 블록체인 데이터베이스(120)에 전송하여 퍼블릭 블록체인 데이터베이스(120)로부터 OP 메시지를 획득한다. 그리고, 서버(100)는 input 2를 이용하여 새로운 머클 트리를 생성하거나 생성하도록 지원할 수 있다. input 2의 해쉬값(sha256digest(input2))이 h2 노드에 할당되어 있으므로 서버(100)는 h2 노드에 할당된 해쉬값과 기존에 생성된 머클 트리에서 h2 노드의 형제 노드인 h3 노드에 할당된 해쉬값을 연산하거나 연산하도록 지원할 수 있다. 연산값에 대한 해쉬값은 h2 노드와 h3 노드의 부모 노드인 h23 노드에 할당된다. h23 노드가 상기 새로운 머클 트리의 루트 노드가 아니므로 서버(100)는 h23 노드에 할당된 해쉬값을 제2 특정 해쉬값으로 하여 상기 과정을 반복하여 수행할 수 있다. 즉, h23 노드에 할당된 해쉬값을 제2 특정 해쉬값으로 하고, h23 노드에 할당된 해쉬값과 기존에 생성된 머클 트리에서 h01 노드에 할당된 해쉬값을 연산하여 h23 노드와 h01 노드의 부모 노드인 h0123 노드에 할당할 수 있다. 이때, h0123 노드가 머클 트리의 루트 노드이므로 서버(100)는, h0123 노드에 할당된 해쉬값을 가공한 값(hex(h{node_index}))을 상기 OP 메시지에 포함된 값과 비교하거나 비교하도록 지원할 수 있다.Referring back to FIG. 3, when there is a verification request for input 2, the server 120 identifies the previously generated Merkle tree and leaf node information with reference to the input data information, and identifies the identified Merkle tree information (tree_id). A predetermined transaction ID corresponding to = 0) is transmitted to the public blockchain database 120 to obtain an OP message from the public blockchain database 120. In addition, the server 100 may support to generate or generate a new Merkle tree using the input 2. Since the hash value of input 2 (sha256digest (input2)) is assigned to the h2 node, the server 100 assigns the hash value assigned to the h2 node and the hash assigned to the h3 node that is the sibling node of the h2 node in the generated Merkle tree. Can support or compute a value. The hash value for the operation value is assigned to node h23, which is the parent node of node h2 and node h3. Since the h23 node is not the root node of the new Merkle tree, the server 100 may repeat the process by using the hash value assigned to the h23 node as the second specific hash value. That is, the hash value assigned to the h23 node is used as the second specific hash value, and the hash value assigned to the h23 node and the hash value assigned to the h01 node in the existing Merkle tree are calculated to be the parent of the h23 node and the h01 node. It can be assigned to node h0123. At this time, since the h0123 node is the root node of the Merkle tree, the server 100 compares or compares the hash value assigned to the h0123 node (hex (h {node_index})) with a value included in the OP message. Can support
다음으로, 도 5를 참조하여 특정 발행자(110)를 등록하는 과정을 설명하면 다음과 같다.Next, a process of registering a specific issuer 110 will be described with reference to FIG. 5.
특정 발행자(100)의 public key(MPubA)에 의한 발행자 등록 요청이 획득되면(S200), 서버(100)는, 특정 발행자(110)의 유효 여부를 확인하여(S210) 특정 발행자(110)가 유효할 경우 random nonce(RN)를 특정 발행자(110)에게 전달하거나 전달하도록 지원할 수 있다(S211). 그리고, 특정 발행자(110)가 유효하지 않을 경우, 일 예로 타인의 명의를 도용한 사람일 경우, 서버(100)는 특정 발행자(110)에게 발행자 확인 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다(S213).When the issuer registration request by the public key (MPubA) of the specific issuer 100 is obtained (S200), the server 100 checks whether the specific issuer 110 is valid (S210) and the specific issuer 110 is valid. In this case, the random nonce (RN) may be supported or delivered to the specific issuer 110 (S211). In addition, when the specific issuer 110 is not valid, for example, a person who steals the name of another person, the server 100 may provide or support the specific issuer 110 to provide or provide a response indicating that the issuer has failed. (S213).
구체적으로, 특정 발행자가 단말에서 private key(MPrivA)와 public key(MPubA)를 생성한 상태에서, 전자 바우처를 발행하기 위한 발행자로 등록하기 위하여 public key를 서버(100)로 전송하면, 서버(100)는 획득되는 public key의 특정 발행자(110)가 유효한지를 확인한다. 이때, 특정 발행자(100)의 유효 여부는 PKI 기반 인증서를 이용하거나 특정 발행자의 신분 증명 정보를 이용할 수 있으나, 이에 한정되는 것은 아니다. 일예로, PKI 기반 인증서인 공인인증서, OPSign 인증서 등을 통해 특정 발행자를 확인하거나, 주민 번호, 여권 등과 같이 개인 신분을 증명할 수 있는 신분 증명 정보를 통해 특정 발행자를 확인할 수 있다.Specifically, when a specific issuer generates a private key (MPrivA) and a public key (MPubA) in a terminal, and transmits the public key to the server 100 to register as an issuer for issuing an electronic voucher, the server 100 ) Checks whether the specific issuer 110 of the obtained public key is valid. In this case, the validity of the specific issuer 100 may use a PKI-based certificate or identification information of a specific issuer, but is not limited thereto. For example, a specific issuer may be identified through a PKI-based certificate, an OPSign certificate, or a specific issuer through identification information such as a social security number or a passport.
이후, random nonce를 특정 발행자의 private key로 서명한 random nonce 서명값(SigMPrivA(RN))이 획득되면(S212), 서버(100)는, random nonce 서명값이 정상적으로 서명되었는지를 특정 발행자의 public key를 사용하여 검증한다(S220). 즉, 서버(100)는 특정 발행자의 public key를 사용하여 획득한 서명값인 SjgMPrivA(RN)으로부터 RN인 random nonce를 확인하고, 확인된 random nonce가 특정 발행자에게 전달한 random nonce와 일치하는지를 확인하여 일치할 경우 유효한 서명인 것으로 검증한다.Subsequently, when a random nonce signature value (SigMPrivA (RN)) having signed a random nonce with a private key of a specific issuer is obtained (S212), the server 100 determines whether the random nonce signature value is normally signed by the public key of the specific issuer. Verify using (S220). That is, the server 100 checks a random nonce of RN from SjgMPrivA (RN), which is a signature value obtained using the public key of a specific issuer, and confirms whether the confirmed random nonce matches the random nonce delivered to a specific issuer. If so, verify that it is a valid signature.
그리고, 서버(100)는 특정 발행자(110)로부터 획득된 서명값이 유효한 것일 경우, random nonce, random nonce 서명값 및 특정 발행자의 public key를 포함하는 발행자 등록 transaction(RN, SigMPrivA(RN), MPubA)을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며(S221), 프라이빗 블록체인 데이터베이스에 등록된 발행자 등록 transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid을 포함하는 등록이 성공했음을 나타내는 응답을 특정 발행자에게 제공하거나 제공하도록 지원할 수 있다(S222).When the signature value obtained from the specific issuer 110 is valid, the server 100 issues a publisher registration transaction (RN, SigMPrivA (RN), MPubA, including a random nonce, a random nonce signature value, and a specific issuer's public key). ) To register or register the private blockchain database (S221), and issue a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the publisher registration transaction registered in the private blockchain database was successful. It may provide to or support to provide (S222).
그러나, 서버(100)는 특정 발행자(110)로부터 획득된 서명값이 유효하지 않을 경우, 특정 발행자(110)에게 서명값 확인 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다(S223).However, if the signature value obtained from the specific issuer 110 is not valid, the server 100 may provide or provide a response indicating that the signature value verification failed to the specific issuer 110 (S223).
또한, 서버(100)는 발행자와 서명값이 유효한 경우, 소정의 조건이 만족되면(S230), random nonce, random nonce 서명값 및 특정 발행자의 public key의 해쉬값인 특정 해쉬값 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며(S231), 퍼블릭 블록체인 데이터베이스(120)에 등록된 대표 해쉬값 또는 대표 해쉬값을 가공한 값의 퍼블릭 블록체인 데이터베이스(120) 상의 위치 정보를 나타내는 transaction ID인 Txid를 획득하거나 획득하도록 지원할 수 있다(S233). 이때, 특정 발행자 등록 transaction의 퍼블릭 블록체인 데이터베이스(120)로의 등록은 도 2에서와 같은 방법에 의한 머클 트리에 의해 생성된 루트 해쉬값이 등록되도록 할 수 있다.In addition, when the issuer and the signature value are valid, the server 100, when a predetermined condition is satisfied (S230), the hash 100 and the specific hash value that is a hash value of the random nonce, the random nonce signature value, and the public key of the specific issuer; Register or register a representative hash value or a processed value of the representative hash value generated by calculating at least one matching neighbor hash value in the public blockchain database (S231), and registered in the public blockchain database 120. In operation S233, a representative hash value or a Txid, which is a transaction ID indicating position information on the public blockchain database 120 of the processed value of the representative hash value, may be obtained. At this time, the registration of the specific issuer registration transaction to the public blockchain database 120 may cause the root hash value generated by the Merkle tree by the method as shown in FIG. 2 to be registered.
다음으로, 도 6을 참조하여 본 발명의 일 실시예에 따른 전자 바우처를 사용하는 방법을 설명하면 다음과 같다. 다음의 설명에서 도 2의 본 발명의 실시예에서 전자 바우처를 발행하는 방법에서와 유사한 부분은 도 2의 설명으로부터 이해 가능하므로 상세한 설명을 생략한다.Next, a method of using the electronic voucher according to an embodiment of the present invention will be described with reference to FIG. 6. In the following description, portions similar to those in the method for issuing an electronic voucher in the embodiment of the present invention of FIG. 2 are understood from the description of FIG. 2 and thus the detailed description is omitted.
전자 바우처를 사용하기 위하여, 전자 바우처를 구매한 특정 사용자(111)로부터 전자 바우처의 사용을 위한 (i) 이전에 적어도 일부 미사용된 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 특정 사용자의 private key로 서명한 특정 사용자의 서명값에 의한 전자 바우처 사용 요청(request(use TrxA))이 특정 사용자의 단말로부터 송신되면 서버(100)는 이를 통신부(101)를 통해 수신한다(S300).In order to use an electronic voucher, electronic voucher data including (i) PrivTxid for at least some unused electronic voucher for use of the electronic voucher from the specific user 111 who purchased the electronic voucher, (ii) the specific user (V) An electronic voucher use request (use TrxA) is requested from a terminal of a particular user based on the public key of the user and (iii) the signature value of the specific user who signed the hash value of the electronic voucher data or the value including the same with the private key of the specific user. When transmitted, the server 100 receives it through the communication unit 101 (S300).
이때, 전자 바우처 데이터는 전자 바우처의 타입 정보, 전자 바우처를 수신하는 특정 판매자의 public key, 전자 바우처의 가치 정보 중에서 이번에 사용하기 위한 사용 가치 정보, 전자 바우처를 발행한 특정 발행자의 고유 ID, 전자 바우처의 사용 기한 정보, 전자 바우처에서 사용 가치 정보를 사용한 이후 돌려받아야 할 차감 가치 정보 및 차감 가치 정보의 확인을 위한 특정 사용자의 public key 중 적어도 하나 이상을 더 포함할 수 있다. 그리고, 전자 바우처의 타입 정보는 현재 수행하는 동작을 정의하기 위한 것으로 전자 바우처 사용을 표시하는 정보일 수 있다. 또한, 전자 바우처를 수신하는 특정 판매자의 public key는 특정 판매자를 지정함으로써 해당 전자 바우처를 수신한, 즉 특정 사용자에 의해 사용되는 전자 바우처를 수령하는 판매자를 특정할 수도 있으며, 이와는 달리 판매자를 특정하지 않음으로써 무기명 상품권과 같이 일반 화폐와 유사하게 사용되게 할 수도 있다. 그리고, 전자 바우처의 가치 정보 중에서 이번에 사용하기 위한 사용 가치 정보는 사용 금액, 사용 회수, 교환 가능한 상품 정보 등을 포함하는 유무형의 가치에 대한 정보일 수 있다. 또한, 전자 바우처를 발행한 특정 발행자의 고유 ID는 특정 발행자를 식별하기 위한 정보일 수 있으며, 일 예로 특정 발행자의 public key의 해쉬값 또는 이를 포함한 값일 수 있다. 그리고, 전자 바우처의 사용 기한 정보는 전자 바우처를 사용할 수 있는 기한을 지정한 날짜 정보일 수 있다. 또한, 전자 바우처에서 사용 가치 정보를 사용한 이후 돌려받아야 할 차감 가치 정보는 전자 바우처의 사용 이후 잔액에 대한 정보일 수 있으며, 차감 가치 정보의 확인을 위한 특정 사용자의 public key는 전자 바우처의 사용 이후 잔액에 대한 소유권 확인을 위한 정보일 수 있다. 이때, 전자 바우처에서 차감 가치가 없을 경우, 차감 가치 정보와 차감 가치 정보의 확인을 위한 특정 사용자의 public key는 없을 수도 있다.In this case, the electronic voucher data may include the type information of the electronic voucher, the public key of the specific seller receiving the electronic voucher, the usage value information for use at this time among the value information of the electronic voucher, the unique ID of the specific issuer who issued the electronic voucher, and the electronic voucher. It may further include at least one of the expiration date of the information, the deduction value information to be returned after using the use value information in the electronic voucher, and the public key of the specific user for identifying the deduction value information. The type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the use of the electronic voucher. In addition, the public key of a particular merchant receiving an electronic voucher may specify a merchant that receives the electronic voucher, that is, receives an electronic voucher used by a particular user, by designating the specific merchant, otherwise the merchant is not specified. In other words, it may be used similarly to general currency, such as a bearer voucher. In addition, among the value information of the electronic voucher, the use value information for use at this time may be information on tangible and intangible values including use amount, use count, and exchangeable product information. In addition, the unique ID of the specific issuer who issued the electronic voucher may be information for identifying a specific issuer. For example, the unique ID may be a hash value or a value including the public key of the specific issuer. In addition, the expiration date information of the electronic voucher may be date information specifying the expiration date for using the electronic voucher. In addition, the deduction value information to be returned after using the use value information in the electronic voucher may be information on the balance after the use of the electronic voucher, the public key of a specific user for checking the deduction value information is the balance after use of the electronic voucher Information for verifying ownership of the. In this case, when there is no deduction value in the electronic voucher, there may be no public key of a specific user for checking the deduction value information and the deduction value information.
그리고, 일 예로, 전자 바우처 사용을 위한 transaction(TrxA)은 1. 타입(사용), 2. 이전 transaction에 대한 PrivTxid 또는 Txid, 3. 수신자로 전자 바우처를 수령하는 특정 판매자의 public key, 4. 전자 바우처의 사용 가치 정보, 5. 전자 바우처의 발행인 ID. 6. 전자 바우처의 만료일, 7. 전자 바우처의 차감 가치 정보, 8. 전자 바우처의 차감 가치에 대한 소유권 확인을 위한 특정 사용자의 Public key, 9. 이번 동작의 주체 확인을 위한 public key인 특정 사용자의 public key(PubA), 10. 서명값으로 특정 발행자가 private key로 서명한 1, 2, 3, 4, 5, 6, 7, 8, 9, 10의 서명값(SigPrivA(1:2:3:4:5:6:7:8:9:10))을 포함할 수 있다.And, for example, transaction (TrxA) for using the electronic voucher is 1. type (use), 2. PrivTxid or Txid for the previous transaction, 3. public key of the particular merchant receiving the electronic voucher as the receiver, 4. electronic Usage value information of the voucher, 5. Issuer ID of the electronic voucher. 6. The expiration date of the electronic voucher, 7. The deduction value information of the electronic voucher, 8. The specific user's public key to verify ownership of the deduction value of the electronic voucher, 9. The specific user's public key to verify the subject of this action. public key (PubA), 10. Signature values of 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 (SigPrivA (1: 2: 3: 4: 5: 6: 7: 8: 9: 10)).
그러면, 서버(100)는 획득된 (i) 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 특정 사용자의 서명값의 유효 여부를 확인한다(S301). 또한, 서버(100)는 전자 바우처 데이터에 대한 포맷 형식의 유효 여부를 확인할 수도 있다.Then, the server 100 checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user (S301). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
그리고, 서버(100)는 확인 결과(S310) 유효인 것으로 판단하면, (i) 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 특정 사용자의 서명값을 포함하는 전자 바우처 사용 transaction(TrxA)을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 프라이빗 블록체인 데이터베이스에 등록된 전자 바우처 사용 transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 포함하는 등록이 성공했음을 나타내는 응답을 특정 사용자(111)에게 제공하거나 제공하도록 지원할 수 있다(S311). 하지만, 서버(100)는 확인 결과(S110) 유효가 아니면, 특정 사용자(111)에게 에러 메시지를 포함하는 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다(S312).If the server 100 determines that the verification result (S310) is valid, the electronic voucher using transaction (i) includes (i) electronic voucher data, (ii) a public key of a specific user, and (iii) a signature value of a specific user. TrxA) to register or register a private blockchain database, and a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the transaction using the electronic voucher registered in the private blockchain database is successful, 111 may be provided or supported to provide (S311). However, if the confirmation result (S110) is not valid, the server 100 may provide or support a specific user 111 to provide or provide a response indicating a failure including an error message (S312).
또한, 서버(100)는 유효한 확인 결과에 대응하여, 소정의 조건이 만족되면(S320), (i) 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 특정 사용자의 서명값의 해쉬값인 특정 해쉬값 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 생성하고(S321), 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원하며(S322), 퍼블릭 블록체인 데이터베이스(120)에 등록된 대표 해쉬값 또는 대표 해쉬값을 가공한 값의 퍼블릭 블록체인 데이터베이스(120) 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원할 수 있다(S323). 이때, 대표 해쉬값 또는 대표 해쉬값을 가공한 값은 도 2에서의 설명에서와 같이 머클 트리에 의해 생성될 수 있다.In addition, when the predetermined condition is satisfied (S320), the server 100 hashes the (i) electronic voucher data, (ii) the public key of a specific user, and (iii) the signature value of a specific user, in response to a valid condition. By calculating a specific hash value which is a value and at least one neighboring hash value matching the specific hash value, a representative hash value or a processed value of the representative hash value is generated (S321), and registered or registered in the public blockchain database 120. In operation S322, a representative hash value registered in the public blockchain database 120 or a Txid representing position information on the public blockchain database 120 of the processed value of the representative hash value may be obtained or acquired. (S323). In this case, the representative hash value or a value obtained by processing the representative hash value may be generated by the Merkle tree as described in FIG. 2.
그리고, 서버(100)가 특정 사용자를 등록하는 과정을 설명하면 다음과 같다. 특정 사용자의 등록 또한 도 5에서의 특정 발행자의 등록과 같은 방법을 수행하는 것으로 유사한 부분은 도 5에서의 설명으로 이해 가능하므로 생략한다.In addition, the process of registering the specific user by the server 100 is as follows. The registration of a specific user is also performed by the same method as the registration of a specific publisher in FIG. 5, and thus similar parts are omitted in the description of FIG. 5.
특정 사용자(111)의 public key에 의한 사용자 등록 요청이 획득되면, 서버(100)는, 특정 사용자(111)의 유효 여부를 확인하여 특정 사용자(111)가 유효할 경우 random nonce를 특정 사용자(111)에게 전달하거나 전달하도록 지원할 수 있다. 그리고, 특정 사용자(111)가 유효하지 않을 경우, 서버(100)는 특정 사용자(111)에게 사용자 확인 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다.When a user registration request is obtained by the public key of the specific user 111, the server 100 checks whether the specific user 111 is valid and, if the specific user 111 is valid, generates a random nonce for the specific user 111. Can be delivered to or supported). In addition, when a specific user 111 is not valid, the server 100 may provide or support a response indicating a user confirmation failure to the specific user 111.
유효한 사용자일 경우, random nonce를 특정 사용자의 private key로 서명한 random nonce 서명값이 획득되면, 서버(100)는, random nonce 서명값이 정상적으로 서명되었는지를 특정 사용자의 public key를 사용하여 검증한다.In the case of a valid user, when a random nonce signature value obtained by signing the random nonce with the private key of the specific user is obtained, the server 100 verifies whether the random nonce signature value is normally signed by using the specific user's public key.
그리고, 서버(100)는 특정 사용자(111)로부터 획득된 서명값이 유효한 것일 경우, random nonce, random nonce 서명값 및 특정 사용자의 public key을 포함하는 사용자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 프라이빗 블록체인 데이터베이스에 등록된 사용자 등록 transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 특정 사용자(111)에게 제공하거나 제공하도록 지원할 수 있다.When the signature value obtained from the specific user 111 is valid, the server 100 registers or registers a user registration transaction including a random nonce, a random nonce signature value, and a specific user's public key in a private blockchain database. And may provide or provide PrivTxid indicating location information on a private blockchain database of a user registration transaction registered in a private blockchain database to a specific user 111.
그러나, 서버(100)는 특정 사용자(111)로부터 획득된 서명값이 유효하지 않을 경우, 특정 사용자(111)에게 서명값 확인 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다.However, if the signature value obtained from the specific user 111 is not valid, the server 100 may provide or support a response indicating the signature value verification failure to the specific user 111.
또한, 서버(100)는 발행자와 서명값이 유효한 경우, 소정이 조건이 만족되면, random nonce, random nonce 서명값 및 특정 사용자의 public key의 해쉬값인 특정 해쉬값 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 퍼블릭 블록체인 데이터베이스에 등록된 대표 해쉬값 또는 대표 해쉬값을 가공한 값의 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 transaction ID인 Txid를 획득하거나 획득하도록 지원할 수 있다.In addition, when the issuer and the signature value are valid, the server 100 may determine that at least one of a random hash, a random nonce signature value, a hash value of a specific user's public key and a specific hash value match at least if a predetermined condition is satisfied. It supports to register or register the representative hash value or the processed value of the representative hash value generated by calculating one neighbor hash value in the public blockchain database, and the representative hash value or the representative hash value registered in the public blockchain database is processed. A Txid, which is a transaction ID representing location information on a public blockchain database of one value, may be obtained or acquired.
다음으로, 도 7을 참조하여 본 발명의 일 실시예에 따른 전자 바우처를 환불하는 방법을 설명하면 다음과 같다. 다음의 설명에서 도 2의 본 발명의 실시예에서 전자 바우처를 발행하는 방법에서와 유사한 부분은 도 2의 설명으로부터 이해 가능하므로 상세한 설명을 생략한다.Next, a method of refunding an electronic voucher according to an embodiment of the present invention will be described with reference to FIG. 7. In the following description, portions similar to those in the method for issuing an electronic voucher in the embodiment of the present invention of FIG. 2 are understood from the description of FIG. 2 and thus the detailed description is omitted.
전자 바우처를 환불하기 위하여, 전자 바우처를 구매한 특정 사용자(111)로부터 전자 바우처의 환불을 위한 (i) 이전에 적어도 일부 미사용되었으며 만료된 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 특정 사용자의 private key로 서명한 특정 사용자의 서명값에 의한 전자 바우처 환불 요청(request(refund TrxA))이 특정 사용자(111)의 단말로부터 송신되면 서버(100)는 이를 통신부를 통해 수신한다(S400).In order to refund an electronic voucher, electronic voucher data including PrivTxid for at least some previously unused and expired electronic voucher for the refund of the electronic voucher from the specific user 111 who purchased the electronic voucher, (ii) An electronic voucher refund request (refund TrxA) based on the signature value of a particular user who signed the public key of a specific user and (iii) the hash value of the electronic voucher data or a value including the same with the specific key of the specific user is executed. When transmitted from the terminal of 111, the server 100 receives it through the communication unit (S400).
이때, 전자 바우처 데이터는 전자 바우처의 타입 정보, 전자 바우처를 발행한 특정 발행자의 public key, 전자 바우처의 환불 가치 정보, 특정 발행자의 고유 ID 및 전자 바우처에 대응되는 사용 기한 정보 중 적어도 하나 이상을 더 포함할 수 있다. 그리고, 전자 바우처의 타입 정보는 현재 수행하는 동작을 정의하기 위한 것으로 전자 바우처 환불을 표시하는 정보일 수 있다. 또한, 전자 바우처를 발행한 특정 발행자의 public key는 환불 바우처의 수신으로서 전자 바우처를 발행한 특정 발행자의 public key이다. 그리고, 전자 바우처의 환불 가치 정보는 전자 바우처를 통해 환불할 수 있는 가치 정보이며, 특정 발행자의 고유 ID는 전자 바우처를 발행한 특정 발행자의 ID이다. 또한, 전자 바우처에 대응되는 사용 기한 정보는 전자 바우처를 사용할 수 있는 기한을 지정한 날짜 정보일 수 있다.In this case, the electronic voucher data may further include at least one or more of the type information of the electronic voucher, the public key of the specific issuer who issued the electronic voucher, the refund value information of the electronic voucher, the unique ID of the specific issuer, and the expiration date information corresponding to the electronic voucher. It may include. The type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating an electronic voucher refund. Further, the public key of the specific issuer who issued the electronic voucher is the public key of the specific issuer who issued the electronic voucher as the receipt of the refund voucher. The refund value information of the electronic voucher is value information that can be refunded through the electronic voucher, and the unique ID of the specific issuer is the ID of the specific issuer who issued the electronic voucher. In addition, the expiration date information corresponding to the electronic voucher may be date information specifying the expiration date for using the electronic voucher.
그리고, 일 예로, 전자 바우처 환불을 위한 transaction(TrxA)은 1, 타입(환불), 2. 이전 transaction에 대한 PrivTxid 또는 Txid, 3. 수신자로 환불할 전자 바우처를 수령하는 특정 발행자의 public key, 4. 전자 바우처의 환불 가치 정보, 5. 전자 바우처의 발행인 ID. 6. 전자 바우처의 만료일, 7. 이번 동작의 주체 확인을 위한 public key인 특정 사용자의 public key(PubA), 8. 서명값으로 특정 사용자가 private key로 서명한 1, 2, 3, 4, 5, 6, 7의 서명값(SigPrivA(1:2:3:4:5:6:7))을 포함할 수 있다.And, for example, transaction (TrxA) for electronic voucher refund is 1, type (refund), 2. PrivTxid or Txid for the previous transaction, 3. public key of the particular issuer receiving the electronic voucher to be refunded to the recipient, 4 Refund Value Information for Electronic Vouchers, 5. Issuer ID of Electronic Vouchers. 6. The expiration date of the electronic voucher, 7. The public key (PubA) of a specific user, which is the public key for identifying the subject of this action, 8. The signature value 1, 2, 3, 4, 5 signed by the specific user with the private key. , 6, 7 signature values (SigPrivA (1: 2: 3: 4: 5: 6: 7)).
그러면, 서버(100)는 획득된 (i) 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 특정 사용자의 서명값의 유효 여부를 확인한다(S401).Then, the server 100 checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user (S401).
그리고, 서버(100)는 확인 결과(S410) 유효한 것으로 판단하면, (i) 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 특정 사용자의 서명값을 포함하는 전자 바우처 환불 transaction(TrxA)을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 프라이빗 블록체인 데이터베이스에 등록된 전자 바우처 환불 transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 포함하는 등록이 성공했음을 나타내는 응답을 특정 사용자(111)에게 제공하거나 제공하도록 지원할 수 있다(S411). 하지만, 서버(100)는 확인 결과(S410) 유효가 아니면, 특정 사용자(111)에게 에러 메시지를 포함하는 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다(S412).If the server 100 determines that the verification result (S410) is valid, the electronic voucher refund transaction (TrxA) includes (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. ) Is registered in the private blockchain database, and a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the electronic voucher refund transaction registered in the private blockchain database is successful is performed. Can be provided or supported to provide (S411). However, if the confirmation result (S410) is not valid, the server 100 may provide or support a specific user 111 to provide or provide a response indicating a failure including an error message (S412).
또한, 서버(100)는 유효한 확인 결과에 대응하여, 소정의 조건이 만족되면(S420), (i) 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 특정 사용자의 서명값의 해쉬값인 특정 해쉬값 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 생성하고(S421), 생성된 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며(S422), 퍼블릭 블록체인 데이터베이스에 등록된 대표 해쉬값 또는 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 transaction ID인 Txid를 획득하거나 획득하도록 지원할 수 있다(S423).In addition, when the predetermined condition is satisfied (S420), the server 100 hashes the (i) electronic voucher data, (ii) the public key of a specific user, and (iii) the signature value of a specific user, in response to a valid verification result. By calculating a specific hash value which is a value and at least one neighboring hash value matching the specific hash value, a representative hash value or a value obtained by processing the representative hash value is generated (S421), and the generated representative hash value or the representative hash value is processed. It supports to register or register a value in the public blockchain database (S422), and the transaction ID indicating the location information on the public blockchain database of the representative hash value or the processed value of the representative hash value registered in the public blockchain database. It may support to acquire or obtain a Txid (S423).
다음으로, 도 8을 참조하여 본 발명의 일 실시예에 따른 전자 바우처를 정산하는 방법을 설명하면 다음과 같다. 다음의 설명에서 도 2의 본 발명의 실시예에서 전자 바우처를 발행하는 방법에서와 유사한 부분은 도 2의 설명으로부터 이해 가능하므로 상세한 설명을 생략한다.Next, referring to FIG. 8, a method for calculating an electronic voucher according to an embodiment of the present invention will be described. In the following description, portions similar to those in the method for issuing an electronic voucher in the embodiment of the present invention of FIG. 2 are understood from the description of FIG. 2 and thus the detailed description is omitted.
전자 바우처를 정산하기 위하여, 상품이나 서비스 등의 반대 급부로 전자 바우처를 수령한 특정 판매자(112)로부터 전자 바우처의 정산을 위한 (i) 이번 transaction에서 사용된 전자 바우처에 대한 PrivTxid의 개수 및 각각의 사용 시점에서 적어도 일부 미사용된 전자 바우처에 대한 PrivTxid를 적어도 포함하는 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 판매자의 private key로 서명한 상기 특정 판매자의 서명값에 의한 전자 바우처 정산 요청(request(seller TrxA)이 특정 판매자의 단말로부터 송신되면 서버(100)를 통신부를 통해 이를 수신한다(S500).(I) the number of PrivTxids for each electronic voucher used in this transaction for the settlement of the electronic voucher from a particular seller 112 who has received the electronic voucher in return for payment of goods or services, etc. in order to settle the electronic voucher; Electronic voucher data including at least a PrivTxid for at least some unused electronic vouchers at the time of use, (ii) the public key of the particular merchant and (iii) a hash value of the electronic voucher data or a value including the private voucher of the particular merchant. When the electronic voucher settlement request (seller TrxA) based on the signature value of the specific seller signed by the key is transmitted from the terminal of the specific seller, the server 100 receives the request through the communication unit (S500).
이때, 전자 바우처 데이터는 전자 바우처의 타입 정보, 전자 바우처를 발행한 특정 발행자의 public key, 전자 바우처의 정산 가치 정보 및 특정 발행자의 고유 ID 중 적어도 하나 이상을 더 포함할 수 있다. 그리고, 전자 바우처의 타입 정보는 현재 수행하는 동작을 정의하기 위한 것으로 전자 바우처 정산을 표시하는 정보일 수 있다. 또한, 전자 바우처의 정산 가치 정보는 특정 판매자가 상품, 서비스 등의 반대 급부로 수령한 가치에 대한 정보일 수 있다.In this case, the electronic voucher data may further include at least one or more of the type information of the electronic voucher, the public key of the specific issuer that issued the electronic voucher, the settlement value information of the electronic voucher, and the unique ID of the specific issuer. The type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the electronic voucher settlement. In addition, the settlement value information of the electronic voucher may be information on the value received by the particular seller in the counter-benefits of goods, services, and the like.
그리고, 일 예로, 전자 바우처 정산을 위한 transaction(TrxA)은 1. 타입(정산), 2. 이번 transaction에서 사용된 전자 바우처의 PrivTxid 또는 Txid, 3. 각각의 사용 시점에서 적어도 일부 미사용된 전자 바우처에 대한 PrivTxid, 4. 수신자로 전자 바우처를 정산하기 위하여 수령하는 특정 발행자의 public key, 5. 전자 바우처의 정산 가치 정보, 6. 전자 바우처의 발행인 ID. 7. 이번 동작의 주체 확인을 위한 public key인 특정 판매자의 public key(PubA), 8. 서명값으로 특정 판매자가 private key로 서명한 1, 2, 3, 4, 5, 6, 7의 서명값(SigPrivA(1:2:3:4:5:6:7)을 포함할 수 있다.And, for example, transaction (TrxA) for the electronic voucher settlement is 1. type (settlement), 2. PrivTxid or Txid of the electronic voucher used in this transaction, 3. at least some unused electronic voucher at each point of use PrivTxid for the user, 4. The public key of the particular issuer receiving the settlement of the electronic voucher as the recipient, 5. Information on the settlement value of the electronic voucher, 6. The issuer ID of the electronic voucher. 7. The public key (PubA) of a specific seller, which is the public key to verify the subject of this operation. 8. The signature value of 1, 2, 3, 4, 5, 6, and 7 signed by the specific seller as the private key. (SigPrivA (1: 2: 3: 4: 5: 6: 7).
그러면, 서버는 획득된 (i) 전자 바우처 데이터, (ii) 특정 판매자의 public key 및 (iii) 특정 판매자의 서명값의 유효 여부를 확인한다(S501). 또한, 서버(100)는 전자 바우처 데이터에 대한 포맷 형식의 유효 여부를 확인할 수도 있다.Then, the server checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific merchant and (iii) the signature value of the specific merchant (S501). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
그리고, 서버(100)는 확인 결과(S510) 유효한 것으로 판단하면, (i) 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 특정 판매자의 서명값을 포함하는 전자 바우처 정산 transaction(TrxA)을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 프라이빗 블록체인 데이터베이스에 등록된 전자 바우처 정산 Transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 특정 판매자(112)에게 제공하거나 제공하도록 지원할 수 있다(S511). 하지만, 서버(100)는 확인 결과(S510) 유효가 아니면, 특정 판매자(112)에게 에러 메시지를 포함하는 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다(S512).If the server 100 determines that the check result is valid (S510), the electronic voucher settlement transaction including (i) the electronic voucher data, (ii) the public key of the specific seller, and (iii) the signature value of the specific seller is performed. TrxA) can be registered or registered in the private blockchain database, and to provide or provide PrivTxid to specific merchants 112 indicating location information on the private blockchain database of the electronic voucher settlement transaction registered in the private blockchain database. There is (S511). However, if the check result (S510) is not valid, the server 100 may provide or support a specific seller 112 to provide or provide a response indicating a failure including an error message (S512).
또한, 서버(100)는 유효한 확인 결과에 대응하여, 소정의 조건이 만족되면(S520), (i) 전자 바우처 데이터, (ii) 특정 사용자의 public key 및 (iii) 특정 사용자의 서명값의 해쉬값인 특정 해쉬값 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 생성하고(S521), 생성된 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스(120)에 등록하거나 등록하도록 지원하며(S522), 퍼블릭 블록체인 데이터베이스(120)에 등록된 대표 해쉬값 또는 대표 해쉬값을 가공한 값의 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 transaction ID인 Txid를 획득하거나 획득하도록 지원할 수 있다(S523).In addition, when the predetermined condition is satisfied (S520), the server 100 hashes the (i) electronic voucher data, (ii) the public key of a specific user, and (iii) the signature value of a specific user, in response to a valid condition. By calculating a specific hash value which is a value and at least one neighboring hash value matching the specific hash value, a representative hash value or a value obtained by processing the representative hash value is generated (S521), and the generated representative hash value or the representative hash value is processed. Supports to register or register a value in the public blockchain database 120 (S522), location information on the public blockchain database of the representative hash value or the representative hash value registered in the public blockchain database 120 It may support to obtain or obtain a Txid, which is a transaction ID indicating S (S523).
그리고, 서버(100)가 특정 판매자를 등록하는 과정을 설명하면 다음과 같다. 특정 판매자의 등록 또한 도 5에서의 특정 발행자의 등록과 같은 방법을 수행하는 것으로 유사한 부분은 도 5에서의 설명으로 이해 가능하므로 생략한다.In addition, the server 100 describes a process of registering a specific seller as follows. The registration of a specific seller is also performed by the same method as the registration of a specific publisher in FIG. 5, and thus similar parts are omitted in the description of FIG. 5.
특정 판매자(112)의 public key에 의한 사용자 등록 요청이 획득되면, 서버(100)는, 특정 판매자(112)의 유효 여부를 확인하여 특정 판매자(112)가 유효할 경우 random nonce를 특정 판매자(112)에게 전달하거나 전달하도록 지원할 수 있다. 그리고, 특정 판매자(112)가 유효하지 않을 경우, 서버(100)는 특정 판매자(112)에게 사용자 확인 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다.When the user registration request is obtained by the public key of the specific seller 112, the server 100 checks whether the specific seller 112 is valid and, if the specific seller 112 is valid, generates a random nonce 112. Can be delivered to or supported). If the specific seller 112 is not valid, the server 100 may provide or support the specific seller 112 to provide a response indicating a user confirmation failure.
이후, 유효한 판매자일 경우, random nonce를 특정 판매자의 private key로 서명한 random nonce 서명값이 획득되면, 서버(100)는, random nonce 서명값이 정상적으로 서명되었는지를 특정 판매자의 public key를 사용하여 검증한다.Then, if a valid seller, if a random nonce signature value obtained by signing a random nonce with the private key of the particular seller is obtained, the server 100 verifies whether the random nonce signature value is normally signed using the specific seller's public key. do.
그리고, 서버(100)는 특정 판매자(112)로부터 획득된 서명값이 유효한 것일 경우, random nonce, random nonce 서명값 및 특정 판매자의 public key을 포함하는 판매자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 프라이빗 블록체인 데이터베이스에 등록된 판매자 등록 transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 특정 판매자(112)에게 제공하거나 제공하도록 지원할 수 있다.When the signature value obtained from the specific seller 112 is valid, the server 100 registers or registers a seller registration transaction including a random nonce, a random nonce signature value, and a specific seller's public key in a private blockchain database. And may provide or support PrivTxid, which indicates location information on a private blockchain database of a seller registration transaction registered in a private blockchain database, to a specific seller 112.
그러나, 서버(100)는 특정 판매자(112)로부터 획득된 서명값이 유효하지 않을 경우, 특정 판매자(112)에게 서명값 확인 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다.However, if the signature value obtained from the specific seller 112 is not valid, the server 100 may provide or support the specific seller 112 to provide a response indicating that the signature value verification failed.
또한, 서버(100)는 판매자와 서명값이 유효한 경우, 소정의 조건이 만족되면, (i) 전자 바우처 데이터, (ii) 특정 판매자의 public key 및 (iii) 특정 판매자의 서명값의 해쉬값인 특정 해쉬값 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 퍼블릭 블록체인 데이터베이스에 등록된 대표 해쉬값 또는 대표 해쉬값을 가공한 값의 퍼블릭 블록체인 데이터베이스 상의 위치를 나타내는 Txid를 획득하거나 획득하도록 지원할 수 있다.In addition, if the seller and the signature value are valid, the server 100 is a hash value of (i) the electronic voucher data, (ii) the public key of a specific merchant, and (iii) the signature value of a specific merchant, if a predetermined condition is satisfied. Register or register a representative hash value or a processed value of a representative hash value generated by calculating a specific hash value and at least one neighboring hash value matching the specific hash value, and registers or registers in the public blockchain database. It may be supported to acquire or obtain a Txid indicating a location on the public blockchain database of the registered representative hash value or the processed representative hash value.
다음으로, 도 9를 참조하여 본 발명의 일 실시예에 따른 전자 바우처를 파기하는 방법을 설명하면 다음과 같다. 다음의 설명에서 도 2의 본 발명의 실시예에서 전자 바우처를 발행하는 방법에서와 유사한 부분은 도 2의 설명으로부터 이해 가능하므로 상세한 설명을 생략한다.Next, a method of discarding an electronic voucher according to an embodiment of the present invention will be described with reference to FIG. 9. In the following description, portions similar to those in the method for issuing an electronic voucher in the embodiment of the present invention of FIG. 2 are understood from the description of FIG. 2 and thus the detailed description is omitted.
전자 바우처를 파기하기 위하여, 특정 발행자(110)로부터 전자 바우처의 파기를 위한 (i) 이전에 적어도 일부 사용되지 않았으며 만료된 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 특정 발행자의 private key로 서명한 특정 발행자의 서명값에 의한 전자 바우처 파기 요청(request(revocate TrxA))이 특정 발행자의 단말로부터 송신되면 서버(100)는 이를 통신부를 통해 수신한다(S600).In order to destroy an electronic voucher, the electronic voucher data, including (i) at least partially unused and expired electronic voucher for the destruction of the electronic voucher from the particular issuer 110, (ii) (v) An electronic voucher destruction request (revocate TrxA) is sent from a terminal of a specific issuer by a signature value of a specific issuer that has signed the public key and (iii) the hash value of the electronic voucher data or a value including the same with the private key of the specific issuer. If the server 100 receives it through the communication unit (S600).
이때, 전자 바우처 데이터는 전자 바우처의 타입 정보, 특정 발행자의 public key, 전자 바우처에서 파기할 가치 정보 및 특정 발행자의 고유 ID 중 적어도 어느 하나 이상을 더 포함할 수 있다. 그리고, 전자 바우처의 타입 정보는 현재 수행하는 동작을 정의하기 위한 것으로 전자 바우처 정산을 표시하는 정보일 수 있다.In this case, the electronic voucher data may further include at least one or more of the type information of the electronic voucher, the public key of the specific issuer, value information to be discarded by the electronic voucher, and the unique ID of the specific issuer. The type information of the electronic voucher is for defining an operation to be performed at present and may be information indicating the electronic voucher settlement.
그리고, 일 예로, 전자 바우처 정산을 위한 transaction(TrxA)은 1. 타입(정산), 2. 이전에 적어도 일부 사용되지 않았으며 만료된 상기 전자 바우처에 대한 PrivTxid 또는 Txid, 3. 수신자로 전자 바우처를 수령하는 특정 발행자의 public key, 4. 전자 바우처의 파기 가치 정보, 5. 전자 바우처의 발행인 ID. 6. 이번 동작의 주체 확인을 위한 public key인 특정 발행자의 public key, 7. 서명값으로 특정 발행자가 private key로 서명한 1, 2, 3, 4, 5, 6의 서명값(SigPrivA(1:2:3:4:5:6))을 포함할 수 있다.And, as an example, transaction (TrxA) for electronic voucher settlement is 1. type (settlement), 2. PrivTxid or Txid for the electronic voucher that has not been used at least partially and has expired, 3. the electronic voucher as the recipient The public key of the specific issuer receiving, 4. Destruction value information of the electronic voucher, 5. The issuer ID of the electronic voucher. 6. The public key of a specific issuer, which is the public key to verify the subject of this operation, 7. The signature value of 1, 2, 3, 4, 5, 6 signed by a specific issuer as a private key (SigPrivA (1: 2: 3: 4: 5: 6)).
그러면, 서버(100)는 획득된 (i) 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 특정 발행자의 서명값의 유효 여부를 확인한다(S601). 또한, 서버(100)는 전자 바우처 데이터에 대한 포맷 형식의 유효 여부를 확인할 수도 있다.Then, the server 100 checks whether the obtained (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the specific issuer (S601). In addition, the server 100 may check whether the format format for the electronic voucher data is valid.
그리고, 서버(100)는 확인 결과(S610) 유효한 것으로 판단하면, (i) 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 특정 발행자의 서명값을 포함하는 전자 바우처 파기 transaction(TrxA)을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 프라이빗 블록체인 데이터베이스에 등록된 전자 바우처 파기 transaction의 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 포함하는 등록이 성공했음을 나타내는 응답을 특정 발행자(110)에게 제공하거나 제공하도록 지원할 수 있다(S611). 하지만, 서버(100)는 확인 결과(S610) 유효가 아니면, 특정 발행자(110)에게 에러 메시지를 포함하는 실패를 나타내는 응답을 제공하거나 제공하도록 지원할 수 있다(S612).If the server 100 determines that the verification result (S610) is valid, the electronic voucher destruction transaction (TrxA) includes (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the specific issuer. ) Is registered in the private blockchain database, and a response indicating that the registration including the PrivTxid indicating the location information on the private blockchain database of the electronic voucher destruction transaction registered in the private blockchain database is successful is issued to a specific issuer (110). It may be provided to or provided to support (S611). However, if the confirmation result (S610) is not valid, the server 100 may provide or support a specific issuer 110 to provide or provide a response indicating a failure including an error message (S612).
또한, 서버(100)는 유효한 확인 결과에 대응하여, 소정의 조건이 만족되면(S620), 특정 해쉬값(특정 해쉬값은 (i) 전자 바우처 데이터, (ii) 특정 발행자의 public key 및 (iii) 특정 발행자의 서명값의 해쉬값임) 및 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 생성하고(S621), 생성된 대표 해쉬값 또는 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며(S622), 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원할 수 있다(S623).In addition, when the predetermined condition is satisfied (S620), the server 100 corresponds to a valid confirmation result, and the specific hash value (the specific hash value is (i) the electronic voucher data, (ii) the public key of the specific issuer and (iii). A representative hash value or a processed value of the representative hash value by calculating the hash value of the signature value of the specific issuer) and at least one neighboring hash value matching the specific hash value (S621), and generating the generated representative hash value or Support to register or register a value processed the representative hash value in the public blockchain database (S622), the public blockchain database of the representative hash value or the value processed the representative hash value registered in the public blockchain database In operation S623, a Txid indicating location information may be obtained or acquired.
또한, 이상 설명된 본 발명에 따른 실시예들은 다양한 컴퓨터 구성요소를 통하여 수행될 수 있는 프로그램 명령어의 형태로 구현되어 컴퓨터 판독 가능한 In addition, the embodiments according to the present invention described above are embodied in the form of program instructions that can be executed by various computer components to be computer-readable
기록 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능한 기록 매체는 프로그램 명령어, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 컴퓨터 판독 가능한 기록 매체에 기록되는 프로그램 명령어는 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 분야의 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능한 기록 매체의 예에는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 ROM, RAM, 플래시 메모리 등과 같은 프로그램 명령어를 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령어의 예에는, 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드도 포함된다. 상기 하드웨어 장치는 본 발명에 따른 처리를 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.It can be recorded on the recording medium. The computer-readable recording medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the computer-readable recording medium may be those specially designed and configured for the present invention, or may be known and available to those skilled in the computer software arts. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tape, optical recording media such as CD-ROMs, DVDs, and magneto-optical media such as floptical disks. media), and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like. The hardware device may be configured to operate as one or more software modules to perform the process according to the invention, and vice versa.
이상에서 본 발명이 구체적인 구성요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나, 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명이 상기 실시예들에 한정되는 것은 아니며, 본 발명이 속하는 기술분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형을 꾀할 수 있다.Although the present invention has been described by specific embodiments such as specific components and the like, but the embodiments and the drawings are provided to assist in a more general understanding of the present invention, the present invention is not limited to the above embodiments. For those skilled in the art, various modifications and variations can be made from these descriptions.
따라서, 본 발명의 사상은 상기 설명된 실시예에 국한되어 정해져서는 아니 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등하게 또는 등가적으로 변형된 모든 것들은 본 발명의 사상의 범주에 속한다고 할 것이다.Accordingly, the spirit of the present invention should not be limited to the above-described embodiments, and all of the equivalents or equivalents of the claims, as well as the appended claims, fall within the scope of the spirit of the present invention. I will say.

Claims (48)

  1. 전자 바우처를 발행하는 방법에 있어서,In the method of issuing an electronic voucher,
    (a) 특정 발행자로부터의 상기 전자 바우처의 발행을 위한 (i) 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 발행자의 private key로 서명한 상기 특정 발행자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값을 포함하는 전자 바우처 발행 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 발행 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 단계; 및(a) electronic voucher data for issuing the electronic voucher from a specific issuer, (ii) the public key of the specific issuer, and (iii) a hash value of the electronic voucher data or a value including the value of the specific issuer. Once the signature value of the particular issuer signed with the private key is obtained, the server verifies whether (i) the electronic voucher data, (ii) the public key of the particular issuer and (iii) the signature value of the particular issuer are valid. And (i) the electronic voucher issuing transaction, including (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the specific issuer. Location information on the private blockchain database of the electronic voucher issuing transaction registered in the private blockchain database The step of indicating PrivTxid support so as to provide or deliver to the particular issuer; And
    (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값에 대한 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature value of the particular issuer. Is a hash value for-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value registered in the public blockchain database or a value obtained by processing the representative hash value;
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  2. 제1항에 있어서, The method of claim 1,
    상기 (b) 단계에서, In step (b),
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 발행 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.(i) a condition in which the electronic voucher issuing transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristic.
  3. 제1항에 있어서, The method of claim 1,
    상기 (b) 단계에서, In step (b),
    상기 서버는, 상기 특정 해쉬값이 리프 노드에 할당된 머클 트리(merkle tree)를 생성하거나 생성하도록 지원하고, The server supports generating or creating a merkle tree in which the particular hash value is assigned to a leaf node,
    상기 소정의 조건이 만족되면, 상기 특정 해쉬값과 매칭되는 적어도 하나의 다른 리프 노드에 할당된 해쉬값을 연산하여 생성되는 상기 대표 해쉬값 또는 상기 해쉬값을 가공한 값을 상기 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하는 것을 특징으로 하는 방법.When the predetermined condition is satisfied, the representative hash value or the processed hash value generated by calculating a hash value assigned to at least one other leaf node matching the specific hash value is stored in the public blockchain database. How to register or support registration.
  4. 제3항에 있어서, The method of claim 3,
    상기 머클 트리가 체인 형태로 연결된 적어도 하나의 머클 트리 중 첫번째 트리인 경우, 상기 머클 트리의 첫번째 리프 노드에는 텍스트, 숫자 또는 기호로 이루어진 소정의 메시지 데이터의 해쉬값 또는 이를 가공한 값이 할당되는 것을 특징으로 하는 방법.When the Merkle tree is a first tree of at least one Merkle tree connected in a chain form, the first leaf node of the Merkle tree is assigned a hash value or a processed value of predetermined message data composed of text, numbers, or symbols. How to feature.
  5. 제3항에 있어서, The method of claim 3,
    상기 소정의 조건이 만족되면, If the predetermined condition is satisfied,
    (x1) 상기 서버는, (i) 상기 특정 해쉬값과 (ii) 상기 특정 해쉬값이 할당된 노드의 형제 노드에 할당된 해쉬값을 연산하거나 연산하도록 지원하고, 상기 연산값에 대한 해쉬값을 상기 노드의 부모 노드에 할당하거나 할당하도록 지원하며, (x1) the server supports (i) calculating or calculating a hash value assigned to a sibling node of a node to which the specific hash value and (ii) the specific hash value is assigned, and calculating a hash value for the calculated value. Supports or assigns to the parent node of the node,
    (x2) 상기 부모 노드가 상기 머클 트리의 루트 노드이면, 상기 부모 노드에 할당된 해쉬값을 상기 대표 해쉬값으로서 상기 public 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고,(x2) if the parent node is a root node of the Merkle tree, supports to register or register a hash value assigned to the parent node as the representative hash value in the public blockchain database,
    (x3) 상기 부모 노드가 상기 머클 트리의 루트 노드가 아니면, 상기 부모 노드에 할당된 해쉬값을 상기 특정 해쉬값으로 하여 상기 (x1) 내지 (x3)을 반복하여 수행하는 것을 특징으로 하는 방법.(x3) if the parent node is not the root node of the Merkle tree, repeating the steps (x1) to (x3) by using the hash value assigned to the parent node as the specific hash value.
  6. 제5항에 있어서, The method of claim 5,
    상기 (x1)에서 In (x1) above
    상기 소정의 조건이 만족되었음에도 상기 특정 해쉬값이 할당된 노드의 형제 노드에 해쉬값이 할당되어 있지 않은 경우, 상기 서버는, 상기 형제 노드에 소정의 해쉬값을 할당하거나 할당하도록 지원하여 상기 (x1) 내지 (x3)를 수행하는 것을 특징으로 하는 방법.If a hash value is not assigned to a sibling node of a node to which the specific hash value is assigned even though the predetermined condition is satisfied, the server supports or allocates a predetermined hash value to the sibling node (x1). ) To (x3).
  7. 제1항에 있어서, The method of claim 1,
    상기 서버가 상기 특정 해쉬값과 상기 적어도 하나의 이웃 해쉬값을 소정의 제1 데이터 구조로 저장하고, 이후 상기 제1 데이터 구조와 동일한 형태의 제2 데이터 구조를 저장하여 관리하는 경우, 상기 제1 데이터 구조와 상기 제2 데이터 구조는 체인 형태로 연결되는 것을 특징으로 하는 방법.When the server stores the specific hash value and the at least one neighboring hash value in a predetermined first data structure, and then stores and manages a second data structure having the same form as the first data structure, the first hash value A data structure and the second data structure are connected in a chain form.
  8. 제7항에 있어서, The method of claim 7, wherein
    상기 제1 데이터 구조 및 상기 제2 데이터 구조가 머클 트리인 경우, 상기 제1 데이터 구조의 루트값 또는 상기 루트값의 해쉬값이 상기 제2 데이터 구조의 첫번째 리프 노드에 할당되는 것을 특징으로 하는 방법.If the first data structure and the second data structure are Merkle trees, a root value of the first data structure or a hash value of the root value is assigned to the first leaf node of the second data structure. .
  9. 제1항에 있어서,The method of claim 1,
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 구매하는 특정 사용자의 public key, 상기 전자 바우처의 가치 정보, 상기 특정 발행자의 고유 ID 정보 및 상기 전자 바우처의 사용 기한 정보 중 적어도 하나 이상을 포함하는 것을 특징으로 하는 방법.The electronic voucher data may include at least one of type information of the electronic voucher, a public key of a specific user who purchases the electronic voucher, value information of the electronic voucher, unique ID information of the specific issuer, and expiration date information of the electronic voucher. Method comprising the above.
  10. 제1항에 있어서,The method of claim 1,
    상기 (a) 단계 이전에,Before step (a) above,
    (a01) 상기 특정 발행자의 public key에 의한 발행자 등록 요청이 획득되면, 상기 서버는, 상기 특정 발행자의 유효 여부를 확인하여 상기 특정 발행자가 유효할 경우 random nonce를 상기 특정 발행자에게 전달하거나 전달하도록 지원하는 단계;(a01) When an issuer registration request based on the public key of the specific issuer is obtained, the server confirms whether or not the specific issuer is valid, and supports or transmits a random nonce to the specific issuer when the specific issuer is valid. Making;
    (a02) 상기 random nonce를 상기 특정 발행자의 private key로 서명한 random nonce 서명값이 획득되면, 상기 서버는, 상기 random nonce 서명값이 정상적으로 서명되었는지를 상기 특정 발행자의 public key를 사용하여 검증하고 검증이 완료되면 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 발행자의 public key를 포함하는 발행자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 발행자 등록 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공되도록 지원하는 단계; 및(a02) When a random nonce signature value is obtained which signs the random nonce with the private key of the specific issuer, the server verifies and verifies whether the random nonce signature value is normally signed using the specific issuer's public key. Upon completion, the publisher registration transaction including the random nonce signature value, the random nonce, and the public key of the specific issuer is supported to be registered or registered in a private blockchain database, and the issuer registration transaction registered in the private blockchain database is provided. Providing or supporting a PrivTxid representing a location on the private blockchain database of the specific issuer; And
    (a03) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 발행자의 public key의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(a03) If a predetermined condition is satisfied, the server matches a specific hash value, wherein the specific hash value is a hash value of the random nonce signature value, the random nonce, and the public key of the specific issuer. And register or register a representative hash value generated by calculating at least one neighboring hash value or a processed value of the representative hash value in a public blockchain database, wherein the representative hash value registered in the public blockchain database or Obtaining or obtaining a Txid representing location information on the public blockchain database of the processed representative hash value;
    를 더 포함하는 것을 특징으로 하는 방법.Method further comprising a.
  11. 전자 바우처를 사용하는 방법에 있어서,In the method of using an electronic voucher,
    (a) 특정 사용자로부터 상기 전자 바우처의 사용을 위한 (i) 이전에 적어도 일부 미사용된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 사용자의 private key로 서명한 상기 특정 사용자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값을 포함하는 전자 바우처 사용 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 사용 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 단계; 및(a) electronic voucher data comprising (i) PrivTxid for at least some previously unused electronic voucher for use of the electronic voucher from a specific user, (ii) the public key of the specific user and (iii) the electronic When a signature value of the specific user is obtained by signing a hash value of the voucher data or a value including the same with the private key of the specific user, the server may (i) the electronic voucher data, (ii) the public key of the specific user and (iii) if the signature value of the specific user is valid and valid, the electronic voucher includes (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. The electronic voucher registered to the private blockchain database, wherein the usage transaction is supported to be registered or registered in the private blockchain database. Providing or providing to the particular issuer a PrivTxid representing location information on the private blockchain database of a usage transaction; And
    (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. Is a hash value of-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value registered in the blockchain database or a value obtained by processing the representative hash value;
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  12. 제11항에 있어서, The method of claim 11,
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 사용 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.(i) a condition in which the electronic voucher using transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristic.
  13. 제11항에 있어서,The method of claim 11,
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 수신하는 특정 판매자의 public key, 상기 전자 바우처의 가치 정보 중에서 이번에 사용하기 위한 사용 가치 정보, 상기 전자 바우처를 발행한 특정 발행자의 고유 ID, 상기 전자 바우처의 사용 기한 정보, 상기 전자 바우처에서 상기 사용 가치 정보를 사용한 이후 돌려받아야 할 차감 가치 정보 및 상기 차감 가치 정보의 확인을 위한 상기 특정 사용자의 public key 중 적어도 하나 이상을 더 포함하는 것을 특징으로 하는 방법.The electronic voucher data is unique to the type information of the electronic voucher, the public key of the specific merchant receiving the electronic voucher, the usage value information for use at this time among the value information of the electronic voucher, and the specific issuer who issued the electronic voucher. And at least one of an ID, expiration date information of the electronic voucher, deduction value information to be returned after using the use value information in the electronic voucher, and a public key of the specific user for confirmation of the deduction value information. Characterized in that the method.
  14. 제11항에 있어서,The method of claim 11,
    상기 (a) 단계 이전에,Before step (a) above,
    (a01) 상기 특정 사용자의 public key에 의한 사용자 등록 요청이 획득되면, 상기 서버는, 상기 특정 사용자의 유효 여부를 확인하여 상기 특정 사용자가 유효할 경우 random nonce를 상기 특정 사용자에게 전달하거나 전달하도록 지원하는 단계;(a01) When a user registration request is obtained using the public key of the specific user, the server checks whether the specific user is valid and supports or transmits a random nonce to the specific user when the specific user is valid. Making;
    (a02) 상기 random nonce를 상기 특정 사용자의 private key로 서명한 random nonce 서명값이 획득되면, 상기 서버는, 상기 random nonce 서명값이 정상적으로 서명되었는지를 상기 특정 사용자의 public key를 사용하여 검증하고 검증이 완료되면 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 사용자의 public key를 포함하는 사용자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 사용자 등록 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 사용자에게 제공하거나 제공하도록 지원하는 단계; 및(a02) When a random nonce signature value is obtained which signs the random nonce with the private key of the specific user, the server verifies and verifies whether the random nonce signature value is normally signed using the specific user's public key. Upon completion, the user registration transaction including the random nonce signature value, the random nonce, and the public key of the specific user is supported or registered in a private blockchain database, and the user registration transaction registered in the private blockchain database. Supporting or providing a PrivTxid representing location information on the private blockchain database of the specific user; And
    (a03) 소정이 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 사용자의 public key의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(a03) If a predetermined condition is satisfied, the server matches a specific hash value, wherein the specific hash value is a hash value of the random nonce signature value, the random nonce, and the public key of the specific user, and matches the specific hash value. And register or register a representative hash value generated by calculating at least one neighboring hash value or a processed value of the representative hash value in a public blockchain database, wherein the representative hash value registered in the public blockchain database or Obtaining or obtaining a Txid representing location information on the public blockchain database of the processed representative hash value;
    를 더 포함하는 것을 특징으로 하는 방법.Method further comprising a.
  15. 전자 바우처를 환불하는 방법에 있어서,In the method of refunding an electronic voucher,
    (a) 특정 사용자로부터 상기 전자 바우처의 환불을 위한 (i) 이전에 적어도 일부 미사용되었으며 만료된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 사용자의 private key로 서명한 상기 특정 사용자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값을 포함하는 전자 바우처 환불 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 환불 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 사용자에게 제공하거나 제공하도록 지원하는 단계; 및(a) electronic voucher data, including (v) PrivTxid for the electronic voucher at least partially previously unused and expired for refund of the electronic voucher from a particular user, (ii) the public key of the particular user and (iii) When the signature value of the specific user is obtained by signing a hash value of the electronic voucher data or a value including the same with the private key of the specific user, the server may be configured to (i) the electronic voucher data, and (ii) the public of the specific user. key and (iii) if the signature value of the specific user is valid and valid, including (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. Support to register or register the electronic voucher refund transaction in the private blockchain database, and the registered status in the private blockchain database Step supporting PrivTxid indicating location information on the private block diagram of an electronic voucher refund transaction chain database to provide or offer the specific user; And
    (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. Is a hash value of-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value or the processed hash value of the representative hash value registered in the blockchain database;
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  16. 제15항에 있어서, The method of claim 15,
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 환불 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.(i) a condition in which the electronic voucher refund transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristic.
  17. 제15항에 있어서,The method of claim 15,
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 발행한 특정 발행자의 public key, 상기 전자 바우처의 환불 가치 정보, 상기 특정 발행자의 고유 ID 및 상기 전자 바우처에 대응되는 사용 기한 정보 중 적어도 하나 이상을 더 포함하는 것을 특징으로 하는 방법.The electronic voucher data is selected from among the type information of the electronic voucher, the public key of the specific issuer that issued the electronic voucher, refund value information of the electronic voucher, the unique ID of the specific issuer, and the expiration date information corresponding to the electronic voucher. Further comprising at least one.
  18. 전자 바우처를 정산하는 방법에 있어서,In the method of calculating the electronic voucher,
    (a) 특정 판매자로부터 상기 전자 바우처의 정산을 위한 (i) 이번 transaction에서 사용된 상기 전자 바우처에 대한 PrivTxid의 개수 및 각각의 사용 시점에서 적어도 일부 미사용된 상기 전자 바우처에 대한 PrivTxid를 적어도 포함하는 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 판매자의 private key로 서명한 상기 특정 판매자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값을 포함하는 전자 바우처 정산 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 정산 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 판매자에게 제공하거나 제공하도록 지원하는 단계; 및(i) at least a number of PrivTxids for the electronic voucher used in this transaction for the settlement of the electronic voucher from a particular merchant and at least a PrivTxid for the electronic voucher at least partially unused at each point of use If the voucher data, (ii) the public key of the specific merchant and (iii) the hash value of the electronic voucher data or a value including the same, is signed with the private key of the particular merchant, then the server, (i) the electronic voucher data, (ii) the public key of the particular merchant and (iii) the signature value of the particular merchant is valid and valid, (i) the electronic voucher data, (ii) the particular merchant Register in the private blockchain database an electronic voucher settlement transaction that includes the public key of and (iii) the signature value of the particular merchant; And supported so as to register, the method comprising: supporting PrivTxid indicating location information on the private block of the block diagram of the private electronic voucher settlement transaction registered in the chain database, the database chain to the specific merchant to offer or provide; And
    (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(b) if a predetermined condition is satisfied, the server determines that a specific hash value-the specific hash value is (i) the electronic voucher data, (ii) the public key of the specific merchant, and (iii) the signature value of the specific merchant. Is a hash value of-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing a location on the public blockchain database of the representative hash value or the processed value of the representative hash value registered in the blockchain database;
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  19. 제18항에 있어서, The method of claim 18,
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 정산 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.(i) a condition in which the electronic voucher settlement transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristic.
  20. 제18항에 있어서,The method of claim 18,
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 발행한 특정 발행자의 public key, 상기 전자 바우처의 정산 가치 정보 및 상기 특정 발행자의 고유 ID 중 적어도 하나 이상을 더 포함하는 것을 특징으로 하는 방법.The electronic voucher data may further include at least one of type information of the electronic voucher, a public key of a specific issuer that issued the electronic voucher, settlement value information of the electronic voucher, and a unique ID of the specific issuer. How to.
  21. 제18항에 있어서,The method of claim 18,
    상기 (a) 단계 이전에,Before step (a) above,
    (a01) 상기 특정 판매자의 public key에 의한 판매자 등록 요청이 획득되면, 상기 서버는, 상기 특정 판매자의 유효 여부를 확인하여 상기 특정 판매자가 유효할 경우 random nonce를 상기 특정 판매자에게 전달하거나 전달하도록 지원하는 단계;(a01) When a seller registration request based on the specific seller's public key is obtained, the server checks whether the specific seller is valid, and supports or transmits a random nonce to the specific seller when the specific seller is valid. Making;
    (a02) 상기 random nonce를 상기 특정 판매자의 private key로 서명한 random nonce 서명값이 획득되면, 상기 서버는, 상기 random nonce 서명값이 정상적으로 서명되었는지를 상기 특정 판매자의 public key를 사용하여 검증하고 검증이 완료되면 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 판매자의 public key를 포함하는 판매자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 판매자 등록 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 판매자에게 제공하거나 제공되도록 지원하는 단계; 및(a02) When a random nonce signature value is obtained which signs the random nonce with the private key of the particular seller, the server verifies and verifies whether the random nonce signature value is normally signed using the specific seller's public key. When the transaction is completed, the seller registration transaction including the random nonce signature value, the random nonce, and the public key of the specific seller is supported to be registered or registered in a private blockchain database, and the merchant registration transaction registered in the private blockchain database. Providing or supporting a PrivTxid representing location information on the private blockchain database of the specific merchant; And
    (a03) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 판매자의 public key의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(a03) If a predetermined condition is satisfied, the server matches a specific hash value, wherein the specific hash value is a hash value of the random nonce signature value, the random nonce, and the public key of the specific merchant, and matches the specific hash value. And register or register a representative hash value generated by calculating at least one neighboring hash value or a processed value of the representative hash value in a public blockchain database, wherein the representative hash value registered in the public blockchain database or Obtaining or assisting to obtain a Txid representing a location on the public blockchain database of the processed representative hash value;
    를 더 포함하는 것을 특징으로 하는 방법.Method further comprising a.
  22. 전자 바우처를 파기하는 방법에 있어서,In the method of destroying the electronic voucher,
    (a) 특정 발행자로부터 상기 전자 바우처의 파기를 위한 (i) 이전에 적어도 일부 사용되지 않았으며 만료된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 발행자의 private key로 서명한 상기 특정 발행자의 서명값이 획득되면, 서버는, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값을 포함하는 전자 바우처 파기 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 파기 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 단계; 및(a) electronic voucher data, including (v) PrivTxid for the electronic voucher, at least partially unused and expired for the destruction of the electronic voucher from a specific issuer, (ii) the public key of the particular issuer and ( iii) if a signature value of the particular issuer is obtained which has signed the hash value of the electronic voucher data or a value including the same with the private key of the particular issuer, the server may (i) the electronic voucher data, (ii) the particular issuer. (I) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the signature value of the particular issuer, if the public key of the (i) signature and the signature value of the particular issuer are valid. Support for registering or registering an electronic voucher destruction transaction including in a private blockchain database, and registered in the private blockchain database. Step that helps provide PrivTxid indicating location information on the group private block diagram of an electronic voucher destruction transaction chain database to the particular issuer or service; And
    (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 단계;(b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature value of the particular issuer. Is a hash value of-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. Obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value registered in the blockchain database or a value obtained by processing the representative hash value;
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  23. 제22항에 있어서, The method of claim 22,
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 파기 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.(i) a condition in which the electronic voucher destruction transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristic.
  24. 제22항에 있어서,The method of claim 22,
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 특정 발행자의 public key, 상기 전자 바우처에서 파기할 가치 정보 및 상기 특정 발행자의 고유 ID 중 적어도 어느 하나 이상을 더 포함하는 것을 특징으로 하는 방법.The electronic voucher data further includes at least one of type information of the electronic voucher, a public key of the specific issuer, value information to be discarded by the electronic voucher, and a unique ID of the specific issuer.
  25. 전자 바우처를 발행하는 서버에 있어서,In the server that issues an electronic voucher,
    특정 발행자로부터의 상기 전자 바우처의 발행을 위한 (i) 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 발행자의 private key로 서명한 상기 특정 발행자의 서명값을 획득하는 통신부; 및(I) electronic voucher data for issuing the electronic voucher from a specific issuer, (ii) the public key of the specific issuer and (iii) a hash value of the electronic voucher data or a value including the same as the private key of the specific issuer A communication unit for obtaining a signature value of the specific issuer who signed; And
    (a) 상기 획득된 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값을 포함하는 전자 바우처 발행 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 발행 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 프로세스와 (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값에 대한 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 프로세스를 수행하는 프로세서;(a) if the obtained (i) the electronic voucher data, (ii) the public key of the particular issuer and (iii) the signature value of the particular issuer is valid and valid, (i) the electronic voucher data, (ii) register or register an electronic voucher issuing transaction including the public key of the specific issuer and (iii) the signature value of the specific issuer in a private blockchain database, wherein the electronic voucher registered in the private blockchain database (B) a process for providing or providing a PrivTxid representing location information on the private blockchain database of an issuing transaction to the particular issuer; and (b) if a predetermined condition is met, the server determines that a particular hash value-the particular hash value (i) the electronic voucher data, (ii) the public key of the specific issuer, and (iii) the specific issuer Is a hash value for a signature value-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. And a processor configured to acquire or obtain a Txid representing location information on the public blockchain database of the representative hash value or the processed value of the representative hash value registered in the public blockchain database.
    를 포함하는 것을 특징으로 하는 서버.Server comprising a.
  26. 제25항에 있어서, The method of claim 25,
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 발행 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 서버.(i) a condition in which the electronic voucher issuing transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristics.
  27. 제25항에 있어서, The method of claim 25,
    상기 프로세서는,The processor,
    상기 (b)의 프로세스에서,In the process of (b) above,
    상기 특정 해쉬값이 리프 노드에 할당된 머클 트리(merkle tree)를 생성하거나 생성하도록 지원하고, The specific hash value supports generating or creating a merkle tree assigned to a leaf node,
    상기 소정의 조건이 만족되면, 상기 특정 해쉬값과 매칭되는 적어도 하나의 다른 리프 노드에 할당된 해쉬값을 연산하여 생성되는 상기 대표 해쉬값 또는 상기 해쉬값을 가공한 값을 상기 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하는 것을 특징으로 하는 서버.When the predetermined condition is satisfied, the representative hash value or the processed hash value generated by calculating a hash value assigned to at least one other leaf node matching the specific hash value is stored in the public blockchain database. A server characterized by registering or supporting registration.
  28. 제27항에 있어서, The method of claim 27,
    상기 머클 트리가 체인 형태로 연결된 적어도 하나의 머클 트리 중 첫번째 트리인 경우, 상기 머클 트리의 첫번째 리프 노드에는 텍스트, 숫자 또는 기호로 이루어진 소정의 메시지 데이터의 해쉬값 또는 이를 가공한 값이 할당되는 것을 특징으로 하는 서버.When the Merkle tree is a first tree of at least one Merkle tree connected in a chain form, the first leaf node of the Merkle tree is assigned a hash value or a processed value of predetermined message data composed of text, numbers, or symbols. Server features.
  29. 제27항에 있어서, The method of claim 27,
    상기 소정의 조건이 만족되면, 프로세서는,When the predetermined condition is satisfied, the processor
    (x1) (i) 상기 특정 해쉬값과 (ii) 상기 특정 해쉬값이 할당된 노드의 형제 노드에 할당된 해쉬값을 연산하거나 연산하도록 지원하고, 상기 연산값에 대한 해쉬값을 상기 노드의 부모 노드에 할당하거나 할당하도록 지원하며,(x1) (i) the specific hash value and (ii) the hash value assigned to the sibling node of the node to which the particular hash value is assigned to be computed or computed, and the hash value for the computed value is the parent of the node. Support or assign to nodes,
    (x2) 상기 부모 노드가 상기 머클 트리의 루트 노드이면, 상기 부모 노드에 할당된 해쉬값을 상기 대표 해쉬값으로서 상기 public 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고,(x2) if the parent node is a root node of the Merkle tree, supports to register or register a hash value assigned to the parent node as the representative hash value in the public blockchain database,
    (x3) 상기 부모 노드가 상기 머클 트리의 루트 노드가 아니면, 상기 부모 노드에 할당된 해쉬값을 상기 특정 해쉬값으로 하여 상기 (x1) 내지 (x3)을 반복하여 수행하는 것을 특징으로 하는 서버.and (x3) if the parent node is not the root node of the Merkle tree, repeating (x1) to (x3) by using the hash value assigned to the parent node as the specific hash value.
  30. 제29항에 있어서, The method of claim 29,
    상기 프로세서는,The processor,
    상기 (x1)에서,In (x1) above,
    상기 소정의 조건이 만족되었음에도 상기 특정 해쉬값이 할당된 노드의 형제 노드에 해쉬값이 할당되어 있지 않은 경우, 상기 형제 노드에 소정의 해쉬값을 할당하거나 할당하도록 지원하여 상기 (x1) 내지 (x3)를 수행하는 것을 특징으로 하는 서버.If the hash value is not assigned to the sibling node of the node to which the specific hash value is assigned even though the predetermined condition is satisfied, the sibling node is allocated or assigned to the sibling node to support the allocation of the hash value (x1) to (x3). Server).
  31. 제25항에 있어서, The method of claim 25,
    상기 프로세서는,The processor,
    상기 특정 해쉬값과 상기 적어도 하나의 이웃 해쉬값을 소정의 제1 데이터 구조로 저장하고, 이후 상기 제1 데이터 구조와 동일한 형태의 제2 데이터 구조를 저장하여 관리하는 경우, 상기 제1 데이터 구조와 상기 제2 데이터 구조는 체인 형태로 연결되는 것을 특징으로 하는 서버.If the particular hash value and the at least one neighboring hash value are stored as a predetermined first data structure, and then a second data structure having the same form as the first data structure is stored and managed, the first data structure and And the second data structure is connected in a chain form.
  32. 제31항에 있어서, The method of claim 31, wherein
    상기 제1 데이터 구조 및 상기 제2 데이터 구조가 머클 트리인 경우, 상기 제1 데이터 구조의 루트값 또는 상기 루트값의 해쉬값이 상기 제2 데이터 구조의 첫번째 리프 노드에 할당되는 것을 특징으로 하는 서버.If the first data structure and the second data structure are Merkle trees, a root value of the first data structure or a hash value of the root value is assigned to the first leaf node of the second data structure. .
  33. 제25항에 있어서,The method of claim 25,
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 구매하는 특정 사용자의 public key, 상기 전자 바우처의 가치 정보, 상기 특정 발행자의 고유 ID 정보 및 상기 전자 바우처의 사용 기한 정보 중 적어도 하나 이상을 포함하는 것을 특징으로 하는 서버.The electronic voucher data may include at least one of type information of the electronic voucher, a public key of a specific user who purchases the electronic voucher, value information of the electronic voucher, unique ID information of the specific issuer, and expiration date information of the electronic voucher. Server comprising the above.
  34. 제25항에 있어서,The method of claim 25,
    상기 프로세서는,The processor,
    상기 (a)의 이전에,Prior to (a) above,
    상기 특정 발행자의 public key에 의한 발행자 등록 요청이 통신부를 통해 획득되면, 상기 특정 발행자의 유효 여부를 확인하여 상기 특정 발행자가 유효할 경우 random nonce를 상기 특정 발행자에게 전달하거나 전달하도록 지원하며,When the issuer registration request using the public key of the specific issuer is obtained through the communication unit, the validity of the specific issuer is confirmed, and if the specific issuer is valid, a random nonce is transmitted or delivered to the specific issuer.
    상기 random nonce를 상기 특정 발행자의 private key로 서명한 random nonce 서명값이 상기 통신부를 통해 획득되면, 상기 random nonce 서명값이 정상적으로 서명되었는지를 상기 특정 발행자의 public key를 사용하여 검증하고 검증이 완료되면 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 발행자의 public key를 포함하는 발행자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 발행자 등록 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공되도록 지원하고,When a random nonce signature value is obtained through the communication unit, the signature of the random nonce with the private key of the specific issuer is verified. Support or register an issuer registration transaction including the random nonce signature value, the random nonce, and the public key of the particular issuer in a private blockchain database, and the private registration of the issuer registration transaction registered in the private blockchain database Provide or support a PrivTxid representing the location on the blockchain database to the particular issuer,
    소정의 조건이 만족되면, 특정 해쉬값 - 상기 특정 해쉬값은 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 발행자의 public key의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 것을 특징으로 하는 서버.If a predetermined condition is satisfied, the specific hash value, wherein the specific hash value is a hash value of the random nonce signature value, the random nonce, and the public key of the specific issuer; and at least one neighboring hash value matching the specific hash value. And register or register a representative hash value generated by calculating a or a processed value of the representative hash value in a public blockchain database, and processing the representative hash value or the representative hash value registered in the public blockchain database. And acquire or obtain a Txid representing location information on the public blockchain database of values.
  35. 전자 바우처를 사용하는 서버에 있어서,In a server using an electronic voucher,
    특정 사용자로부터 상기 전자 바우처의 사용을 위한 (i) 이전에 적어도 일부 미사용된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 사용자의 private key로 서명한 상기 특정 사용자의 서명값을 획득하는 통신부; 및Electronic voucher data comprising (i) PrivTxid for at least some previously unused electronic voucher for use of the electronic voucher from a specific user, (ii) the public key of the specific user and (iii) the electronic voucher data. A communication unit for obtaining a signature value of the specific user who signed a hash value or a value including the same with the private key of the specific user; And
    (a) 상기 획득된 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값을 포함하는 전자 바우처 사용 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 사용 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 프로세스와,(a) if the obtained (i) the electronic voucher data, (ii) the public key of the specific user and (iii) the signature value of the specific user is valid and valid, (i) the electronic voucher data, (ii) register or register an electronic voucher usage transaction including the public key of the specific user and (iii) the signature value of the specific user in a private blockchain database, wherein the electronic voucher registered in the private blockchain database A process of providing or providing PrivTxid to the particular issuer indicating location information on the private blockchain database of a usage transaction;
    (b) 소정의 조건이 만족되면, 상기 서버가, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 프로세스를 수행하는 프로세서;(b) if a predetermined condition is satisfied, the server determines that a particular hash value-the particular hash value is (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. Is a hash value of-and registers or registers a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database. A processor for obtaining or obtaining a Txid representing location information on the public blockchain database of the representative hash value registered in the blockchain database or a value obtained by processing the representative hash value;
    를 포함하는 것을 특징으로 하는 서버.Server comprising a.
  36. 제35항에 있어서, 36. The method of claim 35 wherein
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 사용 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 서버.(i) a condition in which the electronic voucher using transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristics.
  37. 제35항에 있어서,36. The method of claim 35 wherein
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 수신하는 특정 판매자의 public key, 상기 전자 바우처의 가치 정보 중에서 이번에 사용하기 위한 사용 가치 정보, 상기 전자 바우처를 발행한 특정 발행자의 고유 ID, 상기 전자 바우처의 사용 기한 정보, 상기 전자 바우처에서 상기 사용 가치 정보를 사용한 이후 돌려받아야 할 차감 가치 정보 및 상기 차감 가치 정보의 확인을 위한 상기 특정 사용자의 public key 중 적어도 하나 이상을 더 포함하는 것을 특징으로 하는 서버.The electronic voucher data is unique to the type information of the electronic voucher, the public key of the specific merchant receiving the electronic voucher, the usage value information for use at this time among the value information of the electronic voucher, and the specific issuer who issued the electronic voucher. And at least one of an ID, expiration date information of the electronic voucher, deduction value information to be returned after using the use value information in the electronic voucher, and a public key of the specific user for confirmation of the deduction value information. Server characterized in that.
  38. 제35항에 있어서,36. The method of claim 35 wherein
    상기 프로세서는,The processor,
    상기 (a)의 프로세스 이전에,Prior to the process of (a) above,
    상기 특정 사용자의 public key에 의한 사용자 등록 요청이 상기 통신부를 통해 획득되면, 상기 특정 사용자의 유효 여부를 확인하여 상기 특정 사용자가 유효할 경우 random nonce를 상기 특정 사용자에게 전달하거나 전달하도록 지원하며,When the user registration request by the public key of the specific user is obtained through the communication unit, and confirms the validity of the specific user to support or transmit a random nonce to the specific user when the specific user is valid,
    상기 random nonce를 상기 특정 사용자의 private key로 서명한 random nonce 서명값이 상기 통신부를 통해 획득되면, 상기 random nonce 서명값이 정상적으로 서명되었는지를 상기 특정 사용자의 public key를 사용하여 검증하고 검증이 완료되면 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 사용자의 public key를 포함하는 사용자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 사용자 등록 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 사용자에게 제공하거나 제공하도록 지원하며,When a random nonce signature value that signs the random nonce with the private key of the specific user is obtained through the communication unit, verifies whether the random nonce signature value is normally signed using the public key of the specific user, and when verification is completed. A user registration transaction including the random nonce signature value, the random nonce and the public key of the specific user is supported to be registered or registered in a private blockchain database, and the private registration of the user registration transaction registered in the private blockchain database. Provide or support PrivTxid representing location information on the blockchain database to the specific user,
    소정이 조건이 만족되면, 특정 해쉬값 - 상기 특정 해쉬값은 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 사용자의 public key의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 것을 특징으로 하는 서버.If a predetermined condition is satisfied, the specific hash value, wherein the specific hash value is a hash value of the random nonce signature value, the random nonce and the public key of the specific user, and at least one neighboring hash value matching the specific hash value. And register or register a representative hash value generated by calculating a or a processed value of the representative hash value in a public blockchain database, and processing the representative hash value or the representative hash value registered in the public blockchain database. And acquire or obtain a Txid representing location information on the public blockchain database of values.
  39. 전자 바우처를 환불하는 서버에 있어서,A server for refunding an electronic voucher,
    특정 사용자로부터 상기 전자 바우처의 환불을 위한 (i) 이전에 적어도 일부 미사용되었으며 만료된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 사용자의 private key로 서명한 상기 특정 사용자의 서명값을 획득하는 통신부; 및Electronic voucher data, including (i) a PrivTxid for the electronic voucher at least partially previously unused and expired for refund of the electronic voucher from a specific user, (ii) the public key of the specific user and (iii) the electronic voucher A communication unit for obtaining a signature value of the specific user who signed a hash value of data or a value including the same with a private key of the specific user; And
    (a) 상기 획득된 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값을 포함하는 전자 바우처 환불 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 환불 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 사용자에게 제공하거나 제공하도록 지원하는 프로세스와,(a) if the obtained (i) the electronic voucher data, (ii) the public key of the specific user and (iii) the signature value of the specific user is valid and valid, (i) the electronic voucher data, (ii) register or register an electronic voucher refund transaction including the public key of the specific user and (iii) the signature value of the specific user in a private blockchain database, wherein the electronic voucher registered in the private blockchain database Providing or providing a PrivTxid to the specific user, the PrivTxid representing location information on the private blockchain database of a refund transaction;
    (b) 소정의 조건이 만족되면, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 사용자의 public key 및 (iii) 상기 특정 사용자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 프로세스를 수행하는 프로세서;(b) a specific hash value if a predetermined condition is satisfied, wherein the specific hash value is a hash value of (i) the electronic voucher data, (ii) the public key of the specific user, and (iii) the signature value of the specific user. And register or register a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database, and in the public blockchain database. A processor for obtaining or obtaining a Txid representing location information on the public blockchain database of the registered representative hash value or the processed value of the representative hash value;
    를 포함하는 것을 특징으로 하는 서버.Server comprising a.
  40. 제39항에 있어서, The method of claim 39,
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 환불 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 서버.(i) a condition in which the electronic voucher refund transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristics.
  41. 제39항에 있어서,The method of claim 39,
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 발행한 특정 발행자의 public key, 상기 전자 바우처의 환불 가치 정보, 상기 특정 발행자의 고유 ID 및 상기 전자 바우처에 대응되는 사용 기한 정보 중 적어도 하나 이상을 더 포함하는 것을 특징으로 하는 서버.The electronic voucher data is selected from among the type information of the electronic voucher, the public key of the specific issuer that issued the electronic voucher, refund value information of the electronic voucher, the unique ID of the specific issuer, and the expiration date information corresponding to the electronic voucher. And at least one or more servers.
  42. 전자 바우처를 정산하는 서버에 있어서,In the server to settle the electronic voucher,
    특정 판매자로부터 상기 전자 바우처의 정산을 위한 (i) 이번 transaction에서 사용된 상기 전자 바우처에 대한 PrivTxid의 개수 및 각각의 사용 시점에서 적어도 일부 미사용된 상기 전자 바우처에 대한 PrivTxid를 적어도 포함하는 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 판매자의 private key로 서명한 상기 특정 판매자의 서명값을 획득하는 통신부; 및Electronic voucher data including (i) the number of PrivTxids for the electronic voucher used in this transaction and at least some PrivTxid for the electronic voucher at each point of use for the settlement of the electronic voucher from a particular merchant, (ii) a communication unit for obtaining the signature value of the specific seller, which signed the public key of the specific seller and (iii) the hash value of the electronic voucher data or a value including the same with the private key of the specific seller; And
    (a) 상기 획득된 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값을 포함하는 전자 바우처 정산 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 정산 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 판매자에게 제공하거나 제공하도록 지원하는 프로세스와,(a) if the obtained (i) the electronic voucher data, (ii) the public key of the particular merchant and (iii) the signature value of the particular merchant is valid and valid, (i) the electronic voucher data, (ii) register or register an electronic voucher settlement transaction including the public key of the particular seller and (iii) the signature value of the particular seller in a private blockchain database, wherein the electronic voucher registered in the private blockchain database A process of providing or providing to the particular merchant a PrivTxid representing location information on the private blockchain database of the settlement transaction;
    (b) 소정의 조건이 만족되면, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 판매자의 public key 및 (iii) 상기 특정 판매자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치를 나타내는 Txid를 획득하거나 획득하도록 지원하는 프로세스를 수행하는 프로세서;(b) if a predetermined condition is satisfied, the particular hash value is the hash value of (i) the electronic voucher data, (ii) the public key of the particular merchant, and (iii) the signature value of the particular merchant. And register or register a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database, and in the public blockchain database. A processor for performing a process of obtaining or obtaining a Txid representing a location on the public blockchain database of the registered representative hash value or the processed value of the representative hash value;
    를 포함하는 것을 특징으로 하는 서버.Server comprising a.
  43. 제42항에 있어서, The method of claim 42, wherein
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 정산 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 서버.(i) a condition in which the electronic voucher settlement transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristics.
  44. 제42항에 있어서,The method of claim 42, wherein
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 전자 바우처를 발행한 특정 발행자의 public key, 상기 전자 바우처의 정산 가치 정보 및 상기 특정 발행자의 고유 ID 중 적어도 하나 이상을 더 포함하는 것을 특징으로 하는 서버.The electronic voucher data may further include at least one of type information of the electronic voucher, a public key of a specific issuer that issued the electronic voucher, settlement value information of the electronic voucher, and a unique ID of the specific issuer. Server.
  45. 제42항에 있어서,The method of claim 42, wherein
    상기 프로세서는,The processor,
    상기 (a)의 프로세스 이전에,Prior to the process of (a) above,
    상기 특정 판매자의 public key에 의한 판매자 등록 요청이 상기 통신부를 통해 획득되면, 상기 특정 판매자의 유효 여부를 확인하여 상기 특정 판매자가 유효할 경우 random nonce를 상기 특정 판매자에게 전달하거나 전달하도록 지원하며,When the seller registration request by the public key of the specific seller is obtained through the communication unit, and confirms whether the specific seller is valid, if the specific seller is valid, to support or deliver a random nonce to the specific seller,
    상기 random nonce를 상기 특정 판매자의 private key로 서명한 random nonce 서명값이 상기 통신부를 통해 획득되면, 상기 random nonce 서명값이 정상적으로 서명되었는지를 상기 특정 판매자의 public key를 사용하여 검증하고 검증이 완료되면 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 판매자의 public key를 포함하는 판매자 등록 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 판매자 등록 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 판매자에게 제공하거나 제공되도록 지원하며,When a random nonce signature value is obtained through the communication unit which signs the random nonce with the private key of the specific seller, it is verified whether the random nonce signature value is normally signed using the public key of the specific seller, and when the verification is completed. Support to register or register a seller registration transaction including the random nonce signature value, the random nonce, and the public key of the particular seller in a private blockchain database, and the private of the merchant registration transaction registered in the private blockchain database Provide or support PrivTxid representing location information on the blockchain database to the particular merchant,
    소정의 조건이 만족되면, 특정 해쉬값 - 상기 특정 해쉬값은 상기 random nonce 서명값, 상기 random nonce 및 상기 특정 판매자의 public key의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치를 나타내는 Txid를 획득하거나 획득하도록 지원하는 것을 특징으로 하는 서버.If a predetermined condition is satisfied, the specific hash value, wherein the specific hash value is a hash value of the random nonce signature value, the random nonce, and the public key of the particular merchant; and at least one neighboring hash value matching the specific hash value. And register or register a representative hash value generated by calculating a or a processed value of the representative hash value in a public blockchain database, and processing the representative hash value or the representative hash value registered in the public blockchain database. And obtain or obtain a Txid representing a location in the public blockchain database of values.
  46. 전자 바우처를 파기하는 서버에 있어서,A server for destroying an electronic voucher,
    특정 발행자로부터 상기 전자 바우처의 파기를 위한 (i) 이전에 적어도 일부 사용되지 않았으며 만료된 상기 전자 바우처에 대한 PrivTxid를 포함하는 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 전자 바우처 데이터의 해쉬값 또는 이를 포함한 값을 상기 특정 발행자의 private key로 서명한 상기 특정 발행자의 서명값을 획득하는 통신부; 및Electronic voucher data including (i) a PrivTxid for the electronic voucher that has been at least partially unused and expired for the destruction of the electronic voucher from a particular issuer, (ii) the public key of the particular issuer and (iii) the A communication unit for acquiring a signature value of the specific issuer by signing a hash value of the electronic voucher data or a value including the same with a private key of the specific issuer; And
    (a) 상기 획득된 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 유효 여부를 확인하여 유효일 경우, (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값을 포함하는 전자 바우처 파기 transaction을 프라이빗 블록체인 데이터베이스에 등록하거나 등록하도록 지원하고, 상기 프라이빗 블록체인 데이터베이스에 등록된 상기 전자 바우처 파기 transaction의 상기 프라이빗 블록체인 데이터베이스 상의 위치 정보를 나타내는 PrivTxid를 상기 특정 발행자에게 제공하거나 제공하도록 지원하는 프로세스와,(a) if the obtained (i) the electronic voucher data, (ii) the public key of the particular issuer and (iii) the signature value of the particular issuer is valid and valid, (i) the electronic voucher data, (ii) assist in registering or registering an electronic voucher destruction transaction including the public key of the specific issuer and (iii) the signature value of the specific issuer in a private blockchain database, wherein the electronic voucher registered in the private blockchain database A process of providing or providing the PrivTxid to the particular issuer indicating location information on the private blockchain database of the discard transaction;
    (b) 소정의 조건이 만족되면, 특정 해쉬값 - 상기 특정 해쉬값은 (i) 상기 전자 바우처 데이터, (ii) 상기 특정 발행자의 public key 및 (iii) 상기 특정 발행자의 서명값의 해쉬값임 - 및 상기 특정 해쉬값과 매칭되는 적어도 하나의 이웃 해쉬값을 연산함으로써 생성되는 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값을 퍼블릭 블록체인 데이터베이스에 등록하거나 등록하도록 지원하며, 상기 퍼블릭 블록체인 데이터베이스에 등록된 상기 대표 해쉬값 또는 상기 대표 해쉬값을 가공한 값의 상기 퍼블릭 블록체인 데이터베이스 상의 위치 정보를 나타내는 Txid를 획득하거나 획득하도록 지원하는 프로세스를 수행하는 프로세서;(b) if a predetermined condition is satisfied, the particular hash value is the hash value of (i) the electronic voucher data, (ii) the public key of the particular issuer, and (iii) the signature value of the particular issuer. And register or register a representative hash value generated by calculating at least one neighboring hash value matching the specific hash value or a processed value of the representative hash value in a public blockchain database, and in the public blockchain database. A processor for obtaining or obtaining a Txid representing location information on the public blockchain database of the registered representative hash value or the processed value of the representative hash value;
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  47. 제46항에 있어서, 47. The method of claim 46 wherein
    상기 소정의 조건은, The predetermined condition is
    (i) 소정의 개수만큼 상기 전자 바우처 파기 transaction 또는 상기 전자 바우처와 관련한 관련 transaction이 생성되는 조건, (ii) 소정 시간이 경과하는 조건, (iii) 블록 체인에서 블록이 생성되는 조건, (iv) 서비스 특성에 대한 조건 중 적어도 하나를 포함하는 것을 특징으로 하는 서버.(i) a condition in which the electronic voucher destruction transaction or a related transaction related to the electronic voucher is generated by a predetermined number, (ii) a condition in which a predetermined time elapses, (iii) a condition in which a block is generated in the blockchain, and (iv) And at least one of the conditions for the service characteristics.
  48. 제46항에 있어서,47. The method of claim 46 wherein
    상기 전자 바우처 데이터는, 상기 전자 바우처의 타입 정보, 상기 특정 발행자의 public key, 상기 전자 바우처에서 파기할 가치 정보 및 상기 특정 발행자의 고유 ID 중 적어도 어느 하나 이상을 더 포함하는 것을 특징으로 하는 서버.The electronic voucher data further includes at least one of type information of the electronic voucher, a public key of the specific issuer, value information to be discarded by the electronic voucher, and a unique ID of the specific issuer.
PCT/KR2017/011208 2016-10-11 2017-10-11 Method for issuing, redeeming, refunding, settling and revoking electronic voucher on basis of utxo and by using merkle tree structure, and server employing same WO2018070783A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020160131085A KR101841563B1 (en) 2016-10-11 2016-10-11 Method for issuing, using, refunding, settling and revocating electric voucher in use of merkle tree structure on the basis of unspent transaction output, and server using the same
KR10-2016-0131085 2016-10-11

Publications (2)

Publication Number Publication Date
WO2018070783A2 true WO2018070783A2 (en) 2018-04-19
WO2018070783A3 WO2018070783A3 (en) 2018-07-19

Family

ID=61906199

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2017/011208 WO2018070783A2 (en) 2016-10-11 2017-10-11 Method for issuing, redeeming, refunding, settling and revoking electronic voucher on basis of utxo and by using merkle tree structure, and server employing same

Country Status (2)

Country Link
KR (1) KR101841563B1 (en)
WO (1) WO2018070783A2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985100A (en) * 2018-08-15 2018-12-11 百度在线网络技术(北京)有限公司 Element Security Proof method, apparatus, equipment and medium based on block chain
CN109087099A (en) * 2018-07-31 2018-12-25 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and storage medium
CN111984616A (en) * 2020-08-04 2020-11-24 中国人民银行数字货币研究所 Method, device and system for updating shared file
CN113935072A (en) * 2021-09-26 2022-01-14 网易(杭州)网络有限公司 Issuer registration method, issuer registration device, computer equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166220B (en) * 2019-05-06 2022-05-06 山东公链信息科技有限公司 Slicing method for slicing according to hash value of partition key
KR102601098B1 (en) * 2021-03-26 2023-11-10 비씨카드(주) Method and device for providing voucher approval information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101575030B1 (en) * 2014-07-11 2015-12-07 조선대학교산학협력단 Method of multi-signature generation for shared data in the cloud
KR101591244B1 (en) 2014-11-06 2016-02-05 주식회사 코인플러그 Apparatus for converting membership point and cybermoney into digital virtual currency with block chain
KR101637854B1 (en) * 2015-10-16 2016-07-08 주식회사 코인플러그 Certificate issuance system and method based on block chain, certificate authentication system and method based on block chain

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109087099A (en) * 2018-07-31 2018-12-25 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and storage medium
CN108985100A (en) * 2018-08-15 2018-12-11 百度在线网络技术(北京)有限公司 Element Security Proof method, apparatus, equipment and medium based on block chain
CN108985100B (en) * 2018-08-15 2022-02-25 百度在线网络技术(北京)有限公司 Block chain-based element security certification method, device, equipment and medium
CN111984616A (en) * 2020-08-04 2020-11-24 中国人民银行数字货币研究所 Method, device and system for updating shared file
CN111984616B (en) * 2020-08-04 2023-08-01 中国人民银行数字货币研究所 Method, device and system for updating shared file
CN113935072A (en) * 2021-09-26 2022-01-14 网易(杭州)网络有限公司 Issuer registration method, issuer registration device, computer equipment and storage medium
CN113935072B (en) * 2021-09-26 2024-04-30 网易(杭州)网络有限公司 Issuer registration method, issuer registration device, computer device, and storage medium

Also Published As

Publication number Publication date
WO2018070783A3 (en) 2018-07-19
KR101841563B1 (en) 2018-05-04

Similar Documents

Publication Publication Date Title
WO2018070784A2 (en) Method for issuing, redeeming, refunding, settling and revoking electronic voucher by managing balance database by blocks in blockchain, and server employing same
WO2018070783A2 (en) Method for issuing, redeeming, refunding, settling and revoking electronic voucher on basis of utxo and by using merkle tree structure, and server employing same
WO2018070781A2 (en) Method for issuing, redeeming, refunding, settling and revoking electronic voucher by using utxo-based protocol, and server employing same
WO2018080207A1 (en) Method for issuing currency and making payment by managing balance database for each block in blockchain and server using same
WO2018131886A1 (en) Method for providing payment gateway service using utxo-based protocol and server using same
US10931457B2 (en) Systems and methods for blockchain-based digital lottery ticket generation and distribution
WO2018070848A1 (en) Method for providing smart contract-based certificate service, and server employing same
WO2019233345A1 (en) Data processing method, system, blockchain platform, and readable storage medium
WO2018194379A1 (en) Method for approving use of card by using token id on basis of blockchain and merkle tree structure associated therewith, and server using same
WO2018194378A1 (en) Method for approving use of card by using blockchain-based token id and server using method
US20190244186A1 (en) Electronic bill management method, apparatus, and storage medium
WO2018151427A1 (en) Method for superseding log-in of user through pki-based authentication by using smart contact and blockchain database, and server employing same
WO2018080206A1 (en) Method for issuing currency and making payment using merkle tree structure in utxo-based protocol and server using same
TW202234320A (en) Blockchain Implemented Method and System
JPH1079006A (en) Using request considering method for virtual prepaid card capable of reusing continuous number
WO2019078623A1 (en) Blockchain-based payment method, and payment server using same
US11416930B2 (en) Method for providing united point service in use of unspent transaction output based protocol and server using the same
KR101841565B1 (en) Method for issuing, using, refunding, settling and revocating electric voucher in use of merkle tree structure on the basis of unspent transaction output, and server using the same
KR101841564B1 (en) Method for issuing, using, refunding, settling and revocating electric voucher in use of merkle tree structure on the basis of unspent transaction output, and server using the same
CN110503429B (en) Decentralized content interaction method and system
KR101841568B1 (en) Method for issuing, using, refunding, settling and revocating electric voucher using updated status of balance database by respective blocks in blockchain, and server using the same
KR101841561B1 (en) Method for issuing, using, refunding, settling and revocating electric voucher in use of unspent transaction output based protocol, and server using the same
WO2019078622A1 (en) Blockchain-based payment method, and payment server using same
WO2018080205A1 (en) Method for issuing currency and making payment using utxo-based protocol and sever using same
WO2018131885A1 (en) Method for providing payment gateway service using utxo-based protocol and server using same

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: 17860629

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/07/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17860629

Country of ref document: EP

Kind code of ref document: A2