KR102160004B1 - P2P coupon issue and gift method based on blockchain - Google Patents

P2P coupon issue and gift method based on blockchain Download PDF

Info

Publication number
KR102160004B1
KR102160004B1 KR1020180079712A KR20180079712A KR102160004B1 KR 102160004 B1 KR102160004 B1 KR 102160004B1 KR 1020180079712 A KR1020180079712 A KR 1020180079712A KR 20180079712 A KR20180079712 A KR 20180079712A KR 102160004 B1 KR102160004 B1 KR 102160004B1
Authority
KR
South Korea
Prior art keywords
coupon
smart contract
electronic
blockchain
contract
Prior art date
Application number
KR1020180079712A
Other languages
Korean (ko)
Other versions
KR20200006238A (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 서울대학교산학협력단
Priority to KR1020180079712A priority Critical patent/KR102160004B1/en
Publication of KR20200006238A publication Critical patent/KR20200006238A/en
Application granted granted Critical
Publication of KR102160004B1 publication Critical patent/KR102160004B1/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
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons

Landscapes

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

Abstract

본 발명은 블록체인 기반한 P2P 전자 쿠폰 발행 및 선물 방법에 관한 것이다. 본 발명에 따른 블록체인에 기반한 P2P 전자 쿠폰 발행 및 선물 방법은, 블록체인 시스템이 전자 쿠폰 발행자로부터 전자 쿠폰 컨트랙트 요청 신호가 수신되면, 상기 전자 쿠폰 컨트랙트 요청 신호에 포함된 쿠폰 정보를 기초로 특정 전자 쿠폰에 대응되는 스마트 컨트랙트 코드를 포함하는 쿠폰 스마트 컨트랙트를 자동 생성하는 단계와; 상기 블록체인 시스템이 상기 단계에서 자동 생성된 쿠폰 스마트 컨트랙트를 포함하는 블록을 생성하여 블록체인 네트워크에 전파하는 단계와; 상기 블록체인 시스템이 전자 쿠폰 이용자의 요청에 따라 상기 블록체인 네트워크에 전파된 쿠폰 스마트 컨트랙트를 실행시켜 전자 쿠폰에 대한 다운로드 및 선물을 처리하는 단계를 포함하는 것을 특징으로 한다.The present invention relates to a blockchain-based P2P electronic coupon issuance and gift method. Blockchain-based P2P electronic coupon issuance and gift method according to the present invention, when a block chain system receives an electronic coupon contract request signal from an electronic coupon issuer, a specific electronic coupon based on coupon information included in the electronic coupon contract request signal Automatically generating a coupon smart contract including a smart contract code corresponding to the coupon; Generating, by the blockchain system, a block including a coupon smart contract automatically generated in the step and propagating it to a blockchain network; And processing, by the blockchain system, downloading and presenting the electronic coupon by executing a coupon smart contract propagated to the blockchain network according to the request of the electronic coupon user.

Figure R1020180079712
Figure R1020180079712

Description

블록체인 기반한 P2P 전자 쿠폰 발행 및 선물 방법{P2P coupon issue and gift method based on blockchain}Blockchain-based P2P electronic coupon issuance and gift method {P2P coupon issue and gift method based on blockchain}

본 발명은 온라인 상에서 이용되는 전자 쿠폰의 발행 및 선물 방법에 관한 것으로, 보다 상세하게는 블록체인에 기반한 P2P 전자 쿠폰 발행 및 선물 방법에 관한 것이다.The present invention relates to a method of issuing and gifting electronic coupons used online, and more particularly, to a method of issuing and gifting P2P electronic coupons based on a block chain.

쿠폰은 오프라인상에 제공되는 종이 쿠폰과 온라인으로 제공되는 전자 쿠폰으로 나눌 수 있으며, 금액을 내고 상응하는 서비스 및 현물을 제공받는 쿠폰(유료 쿠폰)과 무료로 제공받는 할인 쿠폰 (무료 쿠폰) 등이 있다.Coupons can be divided into paper coupons provided offline and electronic coupons provided online, and coupons (paid coupons) and discount coupons (free coupons) provided free of charge and corresponding services and in-kind are provided. have.

또한, 상품권, 티켓 등은 유로 쿠폰으로 나눌 수 있으며 유로 쿠폰은 보안이 상당히 중요하여 이를 판매하는 업체들은 워터마킹을 삽입해 파일의 불법 유통과 위조를 막을 수 있는 기술을 이용하고 있다.In addition, gift certificates and tickets can be divided into euro coupons, and security is very important for euro coupons, so companies that sell them are using technology that can prevent illegal distribution and forgery of files by inserting watermarking.

워터마킹이란 디지털 콘텐츠에 암호나 기호 등의 데이터를 삽입하는 기술을 말하며, 워터마킹 기술을 적용할 경우 저작권자는 저작권이 있는 파일의 불법 사용과 유통을 막을 수 있고, 더 나아가 디지털 콘텐츠에 대한 정당한 대가를 보장받을 수 있는 기술이다.Watermarking refers to a technology that inserts data such as passwords or symbols into digital contents.If watermarking technology is applied, the copyright holder can prevent the illegal use and distribution of copyrighted files, and further, a fair price for digital contents. It is a technology that can be guaranteed.

그런데, 전자 쿠폰 발행기술들은 중앙 관리자에 의하여 쿠폰이 발행되고 사용되므로, 전자 쿠폰 발행 등을 위해서는 별도의 시스템을 구축해야 하고, 뿐만 아니라 전자 쿠폰 발행 기술에는 보안을 위한 각종 추가 기술의 도입이 필요하므로 많은 비용 발생이 필요하게 된다.However, since coupon issuance technologies are issued and used by a central administrator, a separate system must be established for issuing electronic coupons, and the electronic coupon issuance technology requires the introduction of various additional technologies for security. A lot of cost is required.

특히 보안 설정이 취약한 중앙서버로 쿠폰 관리가 이루어지게 되면 전자 쿠폰에 위변조 방지에 취약하게 될 뿐만 아니라 그 피해 규모도 상당히 커진다는 문제점이 있다.In particular, when coupon management is performed with a central server with a weak security setting, not only is it vulnerable to forgery or alteration of electronic coupons, but the scale of damage is significantly increased.

이처럼 무료 쿠폰 및 유료 쿠폰의 경우 쿠폰을 위변조하여 사용한다면, 그에 해당하는 손실은 쿠폰 이용자에게 바로 전가된다.In this way, in the case of free coupons and paid coupons, if the coupon is forged and used, the corresponding loss is immediately passed on to the coupon user.

전자 쿠폰을 발행하려는 소상공인들은 쿠폰을 발행하는 데 필요한 시스템을 구축하기 위한 구축 비용과 쿠폰의 위변조 위험성을 제거하기 위한 추가 비용을 지불할 능력이 없는 경우가 대부분이어서, 쿠폰 발행에 많은 제약이 따른다.Small business owners who want to issue electronic coupons are often incapable of paying additional costs to eliminate the risk of forgery and falsification of coupons and the cost of building a system required for issuing coupons, so there are many restrictions on coupon issuance.

한편, 블록체인 (Blockchain) 기술은 데이터 분산 처리 기술로서 네트워크에 참여하는 모든 사용자가 모든 거래 내역 등의 데이터를 분산, 저장하는 기술을 총칭하며, 이 기술의 주요 특징은 이전 블록의 해시값을 다음 블록의 헤더에 저장하여 연결하고 모든 데이터를 분산 저장하기 때문에 데이터 위변조가 불가능한 장점이 존재한다.On the other hand, Blockchain technology is a data distribution processing technology, which collectively refers to technology that distributes and stores data such as all transaction details by all users participating in the network.The main characteristic of this technology is the hash value of the previous block. Since it is connected by storing it in the header of the block and all data is distributedly stored, there is an advantage that data forgery cannot be altered.

이러한 블록체인의 장점을 이용함으로써 상술한 전자 쿠폰을 이러한 블록체인과 연계하여 기존의 문제점을 해결할 수 있는 기술의 제시가 요망되고 있지만, 지금까지 이러한 기술이 제시된 바 없다.It is desired to propose a technology that can solve the existing problems by linking the above-described electronic coupon with such a block chain by using the advantages of such a block chain, but such a technology has not been presented so far.

등록특허 제10-1157541호Registered Patent No. 10-1157541

본 발명은 상기한 종래의 요청에 부응하기 위해 안출된 것으로서, 전자 쿠폰의 발행과 이용에 있어서 보안성과 비용을 최소화하기 위한 블록체인과 연계된 방법 제공하는 것이다.The present invention has been devised to meet the above-described conventional request, and provides a method associated with a blockchain to minimize security and cost in issuing and using electronic coupons.

상기한 목적을 달성하기 위해 본 발명에 따른 블록체인에 기반한 P2P 전자 쿠폰 발행 및 선물 방법은, 블록체인 시스템이 전자 쿠폰 발행자로부터 전자 쿠폰 컨트랙트 요청 신호가 수신되면, 상기 전자 쿠폰 컨트랙트 요청 신호에 포함된 쿠폰 정보를 기초로 특정 전자 쿠폰에 대응되는 스마트 컨트랙트 코드를 포함하는 쿠폰 스마트 컨트랙트를 자동 생성하는 단계와; 상기 블록체인 시스템이 상기 단계에서 자동 생성된 쿠폰 스마트 컨트랙트를 포함하는 블록을 생성하여 블록체인 네트워크에 전파하는 단계와; 상기 블록체인 시스템이 전자 쿠폰 이용자의 요청에 따라 상기 블록체인 네트워크에 전파된 쿠폰 스마트 컨트랙트를 실행시켜 전자 쿠폰에 대한 다운로드 및 선물을 처리하는 단계를 포함하여 이루어진다.In order to achieve the above object, the P2P electronic coupon issuance and gift method based on the block chain according to the present invention is included in the electronic coupon contract request signal when the block chain system receives an electronic coupon contract request signal from the electronic coupon issuer. Automatically generating a coupon smart contract including a smart contract code corresponding to a specific electronic coupon based on the coupon information; Generating, by the blockchain system, a block including a coupon smart contract automatically generated in the step and propagating it to a blockchain network; And processing, by the blockchain system, downloading and presenting the electronic coupon by executing a coupon smart contract propagated to the blockchain network at the request of the electronic coupon user.

이상 설명한 바와 같이 본 발명에 따르면, 전자 쿠폰을 신뢰성 있는 블록체인을 통해 발행 및 사용할 수 있다.As described above, according to the present invention, an electronic coupon can be issued and used through a reliable blockchain.

특히, 전자 쿠폰을 스마트 컨트랙트를 이용하여 발행함에 있어서, 쿠폰 발행자는 스마트 컨트랙트를 위한 코드 작성을 직접 할 필요 없고, 쿠폰 발행을 위한 정보만을 입력하면 블록체인 시스템에서 그 코드 작성을 자동으로 처리하므로, 사용자 편의성이 증대된다.In particular, in issuing an electronic coupon using a smart contract, the coupon issuer does not need to write the code for the smart contract directly, and the blockchain system automatically processes the code writing by entering only the information for issuing the coupon. User convenience is increased.

또한, 쿠폰 발행, 다운로드, 선물, 사용 등과 관련한 각종 정보들이 해당 내용을 포함하는 블록이 생성 및 전파되기 전에라도 쿠폰 관리 서버에 미리 저장되게 됨으로써 쿠폰 관련한 처리에 있어서 시간 지연을 최소화할 수 있다.In addition, since various pieces of information related to coupon issuance, download, gift, use, etc. are stored in advance in the coupon management server even before the block including the corresponding content is generated and propagated, time delay in coupon-related processing can be minimized.

도 1은 본 발명의 일 실시예에 따른 전자 쿠폰 발행 및 사용 시스템을 포함하는 전체 시스템의 개략 구성도이고,
도 2는 전자 쿠폰 발행을 위한 도 1의 전자 쿠폰 발행 및 사용 시스템의 제어 및 신호 흐름도이고,
도 3은 전자 쿠폰 다운로드를 위한 도 1의 전자 쿠폰 발행 및 사용 시스템의 제어 및 신호 흐름도이고,
도 4는 전자 쿠폰 선물을 위한 도 1의 전자 쿠폰 발행 및 사용 시스템의 제어 및 신호 흐름도이고,
도 5는 전자 쿠폰 사용을 위한 도 1의 전자 쿠폰 발행 및 사용 시스템의 제어 및 신호 흐름도이다.
1 is a schematic configuration diagram of an entire system including an electronic coupon issuance and use system according to an embodiment of the present invention,
2 is a control and signal flow diagram of the electronic coupon issuing and using system of FIG. 1 for issuing an electronic coupon;
3 is a control and signal flow diagram of the electronic coupon issuance and use system of FIG. 1 for downloading an electronic coupon;
4 is a control and signal flow diagram of the electronic coupon issuance and use system of FIG. 1 for an electronic coupon gift;
5 is a control and signal flow diagram of the electronic coupon issuing and using system of FIG. 1 for using the electronic coupon.

이하에서는 첨부도면을 참조하여 본 발명에 대해 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

이하 본 발명에 따른 각 실시예는 본 발명의 이해를 돕기 위한 하나의 예에 불과하고, 본 발명이 이러한 실시예에 한정되는 것은 아니다. 특히 본 발명은 각 실시예에 포함되는 개별 구성, 개별 기능, 또는 개별 단계 중 적어도 어느 하나 이상의 조합으로 구성될 수 있다.Hereinafter, each embodiment according to the present invention is only one example for aiding understanding of the present invention, and the present invention is not limited to these embodiments. In particular, the present invention may be configured with a combination of at least one or more of individual configurations, individual functions, or individual steps included in each embodiment.

특히, 편의상 청구 범위의 일부 청구항에는 '(a)'와 같은 알파벳을 포함시켰으나, 이러한 알파벳이 각 단계의 순서를 규정하는 것은 아니다.In particular, for convenience, some claims in the claims include alphabets such as'(a)', but these alphabets do not prescribe the order of each step.

또한 이하 본 발명에 따른 각 실시예에서 언급하는 각 신호는 한 번의 연결 등에 의해 전송되는 하나의 신호를 의미할 수도 있지만, 후술하는 특정 기능 수행을 목적으로 전송되는 일련의 신호 그룹을 의미할 수도 있다. 즉, 각 실시예에서는 소정의 시간 간격을 두고 전송되거나 상대 장치로부터의 응답 신호를 수신한 이후에 전송되는 복수 개의 신호들이 편의상 하나의 신호명으로 표현될 수 있는 것이다.In addition, each signal mentioned in each embodiment according to the present invention may mean one signal transmitted by one connection or the like, but may also mean a series of signal groups transmitted for the purpose of performing a specific function to be described later. . That is, in each embodiment, a plurality of signals transmitted at a predetermined time interval or transmitted after receiving a response signal from a counterpart device may be expressed as one signal name for convenience.

본 발명의 일 실시예에 따른 전자 쿠폰 발행 및 사용 시스템(100)을 포함하는 전체 시스템(1)의 개략 구성은 도 1에 도시된 바와 같다.A schematic configuration of the entire system 1 including the electronic coupon issuing and using system 100 according to an embodiment of the present invention is as shown in FIG. 1.

동 도면에 도시된 바와 같이 전체 시스템(1)은 전자 쿠폰 발행 및 사용 시스템(100), 쿠폰 이용자 단말기(300), 쿠폰 발행자 단말기(200)를 포함하여 구성될 수 있다.As shown in the figure, the entire system 1 may include an electronic coupon issuance and use system 100, a coupon user terminal 300, and a coupon issuer terminal 200.

우선 쿠폰 발행자 단말기(200)는 전자 쿠폰을 발행하여 배포하고자 하는 사용자가 조작하는 것으로서, 도 1에는 컴퓨터와 같은 유선 통신 단말기인 것을 일 예로 하고 있으나, 이동통신 등이 가능한 무선 통신 단말기일 수도 있음은 물론이다.First, the coupon issuer terminal 200 is manipulated by a user who intends to issue and distribute an electronic coupon, and FIG. 1 is an example of a wired communication terminal such as a computer, but it may be a wireless communication terminal capable of mobile communication, etc. Of course.

즉, 쿠폰 발행자는 쿠폰 발행자 단말기(200)를 조작하여 후술하는 바와 같이 전자 쿠폰 발행 및 사용 시스템(100)에 자신이 원하는 전자 쿠폰을 등록하는 기능을 수행한다.That is, the coupon issuer operates the coupon issuer terminal 200 to register a desired electronic coupon in the electronic coupon issuing and using system 100 as described later.

이때 쿠폰 발행자는 전자 쿠폰을 스마트 컨트랙트 형태로 등록하는데, 여기서 스마트 컨트랙트는 블록체인 기반에서 운영되는 일종의 전자 계약서에 해당할 수 있는데, 스마트 컨트랙트를 지원하는 블록체인 상에서는 트랜잭션(전자 쿠폰 등록, 전자 쿠폰 다운로드, 전자 쿠폰 선물 등)의 내용에 따라 해당 스마트 컨트랙트를 실행하고 그 결과를 블록체인 상에 블록을 생성하여 반영하게 된다.At this time, the coupon issuer registers the electronic coupon in the form of a smart contract, where the smart contract can correspond to a kind of electronic contract operated on a blockchain basis.On a blockchain that supports smart contracts, transactions (electronic coupon registration, electronic coupon download) , Electronic coupon gift, etc.), the smart contract is executed, and the result is reflected by creating a block on the blockchain.

스마트 컨트랙트가 블록체인 상에서 실행되는 과정 그 자체는 공지된 기술에 해당하므로 보다 상세한 설명을 생략한다.The process of executing the smart contract on the blockchain itself corresponds to a known technology, so a more detailed description will be omitted.

다만, 종래에는 스마트 컨트랙트를 등록하는 자(본 실시예에서 쿠폰 발행자)가 직접 스마트 컨트랙트 코드를 작성해야만 하였으나, 본 실시예에서는 쿠폰 발행자는 발행하고자 하는 전자 쿠폰에 대한 정보만 입력하면 전자 쿠폰 발행 및 사용 시스템(100)에 스마트 컨트랙트 코드를 자동으로 생성하여 등록하도록 구성되어 있다.However, in the past, the person registering the smart contract (the coupon issuer in this embodiment) had to write the smart contract code directly, but in this embodiment, the coupon issuer only needs to input information on the electronic coupon to be issued, and It is configured to automatically generate and register a smart contract code in the use system 100.

예를 들어 이더리움의 예를 든다면, 스마트 컨트랙트를 등록하기 위해서는 계약 선언, 상태 변수 선언, 생성자 생성, 메서드 선언 등과 같은 코딩 과정이 이루어져야 하나, 본 실시예에서는 전자 쿠폰에 대응되는 스마트 컨트랙트 등록을 위해 필요한 정보만을 입력하면 상술한 코딩 과정은 전자 쿠폰 발행 및 사용 시스템(100)에서 자동으로 이루어지는 것이고, 더 나아가 본 실시예에서의 전자 쿠폰 발행 및 사용 시스템(100)에서는 이더리움에서의 소스 코드 컴파일, 컨트랙트 객체 생성, 트랜잭션 생성하여 블록에 추가/배포하는 과정에 대응되는 과정들이 수행될 수도 있다.For example, taking the example of Ethereum, in order to register a smart contract, a coding process such as contract declaration, state variable declaration, constructor creation, method declaration, etc. should be performed, but in this embodiment, registration of a smart contract corresponding to an electronic coupon is required. If only necessary information is entered, the above-described coding process is automatically performed in the electronic coupon issuance and use system 100, and furthermore, the electronic coupon issuance and use system 100 in this embodiment compiles the source code in Ethereum. , Creating a contract object, creating a transaction and adding/distributing it to a block may be performed.

스마트 컨트랙트 자체가 콘텐츠의 등록과 이용을 위해 제안된 것이므로, 본 발명에서는 이를 전자 쿠폰의 등록과 이용, 선물 등에 적용하는 것이다.Since the smart contract itself is proposed for the registration and use of content, in the present invention, it is applied to the registration and use of electronic coupons and gifts.

한편, 쿠폰 이용자 단말기(300)는 전자 쿠폰 발행자에 의해 발행된 전자 쿠폰을 이용하는 자가 조작하는 단말기로서 도 1에서는 이동통신용 단말기인 것을 일 예로 하였으나, 댁내에 구비된 컴퓨터와 같이 유선 통신 단말기일 수도 있음은 물론이다.On the other hand, the coupon user terminal 300 is a terminal operated by a person using an electronic coupon issued by an electronic coupon issuer, and in FIG. 1 it is an example of a mobile communication terminal, but may be a wired communication terminal such as a computer provided in the home. Of course.

쿠폰 이용자 단말기(300)는 전자 쿠폰 발행 및 사용 시스템(100)으로부터 전자 쿠폰을 조회 또는 다운로드하거나, 다운로드한 전자 쿠폰을 타인에게 선물하거나 직접 사용할 수도 있다.The coupon user terminal 300 may search or download an electronic coupon from the electronic coupon issuance and use system 100, or present or use the downloaded electronic coupon to another person.

한편, 전자 쿠폰 발행 및 사용 시스템(100)은 블록체인 시스템(110)과 쿠폰 관리 서버(120)를 포함하여 구성될 수 있다.On the other hand, the electronic coupon issuance and use system 100 may be configured to include a block chain system 110 and a coupon management server 120.

여기서 블록체인 시스템(110)은 각종 데이터 블록들이 존재하는 블록체인 네트워크 그 자체 또는 소정의 블록들을 생성하고 블록체인 네트워크에 전파하는 특정 노드에 해당할 수 있다.Here, the blockchain system 110 may correspond to the blockchain network itself in which various data blocks exist, or a specific node that generates predetermined blocks and propagates them to the blockchain network.

구체적으로 블록체인 시스템(110)은 전자 쿠폰 발행자로부터 전자 쿠폰 컨트랙트 요청 신호가 수신되면, 그 전자 쿠폰 컨트랙트 요청 신호에 포함된 쿠폰 정보를 기초로 특정 전자 쿠폰에 대응되는 스마트 컨트랙트 코드를 포함하는 쿠폰 스마트 컨트랙트를 자동 생성하는 기능을 수행한다.Specifically, when the electronic coupon contract request signal is received from the electronic coupon issuer, the blockchain system 110 provides a smart coupon including a smart contract code corresponding to a specific electronic coupon based on coupon information included in the electronic coupon contract request signal. It performs the function of automatically creating a contract.

이때 블록체인 시스템(110)은 쿠폰 발행자 단말기(200)에 전자 쿠폰 정보 입력을 위한 일종의 템플릿을 제공할 수 있고, 해당 템플릿을 통해 입력된 정보에 대응되는 스마트 컨트랙트 코드 즉, 쿠폰 스마트 컨트랙트를 자동으로 생성할 수 있는 것이다.At this time, the blockchain system 110 may provide a kind of template for inputting electronic coupon information to the coupon issuer terminal 200, and automatically generate a smart contract code corresponding to the information input through the template, that is, a coupon smart contract. It can be created.

또한 블록체인 시스템(110)은 이렇게 자동 생성된 쿠폰 스마트 컨트랙트를 포함하는 블록을 생성하여 블록체인 네트워크에 전파하는 기능도 수행한다.In addition, the blockchain system 110 generates a block including the automatically generated coupon smart contract and propagates it to the blockchain network.

스마트 컨트랙트 역시 블록에 포함되는 것이고, 블록을 생성하여 블록체인 네트워크에 전파하는 것은 블록체인에 연결된 각종 노드들에게 해당 블록을 공유하도록 하는 것으로서 블록이 블록체인 네트워크에 전파되는 것은 블록체인 기술 분야에서 공지된 기술에 해당하므로 보다 상세한 설명을 생략한다.Smart contracts are also included in blocks, and creating a block and propagating it to the blockchain network allows the various nodes connected to the blockchain to share the block, and the spread of the block to the blockchain network is known in the field of blockchain technology. Since it corresponds to the previously described technology, a more detailed description is omitted.

또한 블록체인 시스템(110)은 전자 쿠폰 이용자의 요청에 따라 블록체인 네트워크에 전파된 쿠폰 스마트 컨트랙트를 실행시켜 전자 쿠폰에 대한 다운로드 및 선물을 처리하는 기능도 수행한다.In addition, the blockchain system 110 executes a coupon smart contract propagated to the blockchain network at the request of an electronic coupon user to download and process a gift for an electronic coupon.

스마트 컨트랙트가 블록체인 시스템(110) 상에서 실행되는 것 그 자체는 공지된 기술에 해당하므로 보다 상세한 설명은 생략하고, 다만 본 실시예에서는 전자 쿠폰에 대응되는 스마트 컨트랙트가 실행되는 것이고, 이 경우 전자 쿠폰의 다운로드는 물론이고, 선물하기, 사용하기 등이 기능이 수행될 수 있다.Since the smart contract running on the blockchain system 110 itself corresponds to a known technology, a more detailed description will be omitted, but in this embodiment, the smart contract corresponding to the electronic coupon is executed. In this case, the electronic coupon As well as downloading, gifting, using, and the like can be performed.

여기서 전자 쿠폰에 대한 다운로드, 선물하기, 사용하기 등의 기능이 수행된다는 것은 해당 기능들에 대한 트랜잭션이 이루어지고 그에 대응되는 블록이 생성되고 블록체인 네트워크에 전파되는 것을 의미한다.Here, when functions such as downloading, gifting, and using an electronic coupon are performed, it means that a transaction for the corresponding functions is performed, a corresponding block is created, and is propagated to the blockchain network.

구체적으로 블록체인 시스템(110)은 블록체인 시스템(110)이 쿠폰 컨트랙트 정보를 확인한 전자 쿠폰 이용자로부터 쿠폰 다운로드 요청 신호를 수신하면 유효한 트랜잭션인지 여부를 판단하고, 판단 결과 유효한 트랜잭션인 경우 요청받은 전자 쿠폰에 대응되는 쿠폰 스마트 컨트랙트를 쿠폰 다운로드 기능으로 실행하고, 그 쿠폰 다운로드 기능에 대한 쿠폰 스마트 컨트랙트 실행 결과를 포함하는 블록을 생성하여 블록체인 네트워크에 전파할 수 있다.Specifically, when the blockchain system 110 receives a coupon download request signal from the electronic coupon user who has confirmed the coupon contract information, the blockchain system 110 determines whether the transaction is valid, and if the transaction is valid, the requested electronic coupon The coupon smart contract corresponding to is executed by the coupon download function, and a block including the coupon smart contract execution result for the coupon download function can be generated and propagated to the blockchain network.

또한, 전자 쿠폰 이용자로부터 쿠폰 선물 요청 신호를 수신하면 유효한 트랜잭션인지 여부를 판단하고, 판단 결과 유효한 트랜잭션인 경우 요청받은 전자 쿠폰에 대응되는 쿠폰 스마트 컨트랙트를 쿠폰 선물 기능으로 실행하고, 그 쿠폰 선물 기능에 대한 쿠폰 스마트 컨트랙트 실행 결과를 포함하는 블록을 생성하여 블록체인 네트워크에 전파할 수 있다.In addition, when receiving a coupon gift request signal from an electronic coupon user, it is determined whether it is a valid transaction, and if it is a valid transaction as a result of the determination, a coupon smart contract corresponding to the requested electronic coupon is executed as a coupon gift function, and the coupon gift function A block containing the execution result of the coupon smart contract can be generated and propagated to the blockchain network.

더 나아가, 블록체인 시스템(110)은 전자 쿠폰 이용자로부터 쿠폰 사용 요청 신호를 수신하면 유효한 트랜잭션인지 여부를 판단하고, 판단 결과 유효한 트랜잭션인 경우 요청받은 전자 쿠폰에 대응되는 쿠폰 스마트 컨트랙트를 쿠폰 사용 기능으로 실행하고, 그 쿠폰 사용 기능에 대한 쿠폰 스마트 컨트랙트 실행 결과를 포함하는 블록을 생성하여 블록체인 네트워크에 전파할 수 있다.Furthermore, the blockchain system 110 determines whether the transaction is valid when receiving a coupon request signal from the electronic coupon user, and if the transaction is valid as a result of the determination, the coupon smart contract corresponding to the requested electronic coupon is used as a coupon use function. It is executed, and a block containing the execution result of the coupon smart contract for the coupon use function can be generated and propagated to the blockchain network.

한편, 쿠폰 관리 서버(120)는 블록체인 시스템(110)과 통신하는 것으로서, 블록체인 시스템(110)의 동작 중에 발생하는 각종 데이터나 정보들을 저장할 수 있다.Meanwhile, the coupon management server 120 communicates with the block chain system 110 and may store various types of data or information generated during the operation of the block chain system 110.

예를 들어 블록체인 시스템(110)이 전자 쿠폰 발행자의 요청에 따라 특정 전자 쿠폰에 대응되는 스마트 컨트랙트 코드를 포함하는 쿠폰 스마트 컨트랙트를 자동 생성하는 경우 그 생성된 쿠폰 스마트 컨트랙트에 대응되는 쿠폰 컨트랙트 정보 및 쿠폰 정보를 동기화하여 저장하는 기능을 수행한다.For example, when the blockchain system 110 automatically generates a coupon smart contract including a smart contract code corresponding to a specific electronic coupon at the request of the electronic coupon issuer, coupon contract information corresponding to the generated coupon smart contract and It synchronizes and stores coupon information.

또한, 쿠폰 관리 서버(120)는 전자 쿠폰 이용자로부터 쿠폰 컨트랙트 정보 요청 신호가 수신되면, 앞서 동기화하여 저장한 쿠폰 컨트랙트 정보를 추출하여 전자 쿠폰 이용자에게 제공하는 기능도 수행한다.In addition, when the coupon contract information request signal is received from the electronic coupon user, the coupon management server 120 also performs a function of extracting the previously synchronized and stored coupon contract information and providing it to the electronic coupon user.

즉, 전자 쿠폰 이용자는 블록체인 시스템(110)에 직접 접속하지 않더라도 기 발행된 각종 전자 쿠폰에 대한 정보를 쿠폰 관리 서버(120)를 통해 확인할 수 있는 것이다.That is, even if the electronic coupon user does not directly access the block chain system 110, information on various electronic coupons previously issued can be checked through the coupon management server 120.

또한, 쿠폰 관리 서버(120)는 전자 쿠폰에 대한 전자 쿠폰 이용자의 요청이 유효한 트랜잭션이라고 판단한 경우 쿠폰 다운로드 처리 가상 실행 결과, 쿠폰 선물 처리 가상 실행 결과, 쿠폰 사용 처리 가상 실행 결과를 임시 저장하는 기능을 수행할 수 있다.In addition, when it is determined that the electronic coupon user's request for the electronic coupon is a valid transaction, the coupon management server 120 temporarily stores the coupon download processing virtual execution result, the coupon gift processing virtual execution result, and the coupon use processing virtual execution result. Can be done.

여기서 쿠폰 다운로드, 선물, 사용에 대한 가상 실행 결과를 임시 저장한다는 것은 블록체인 시스템(110)에서 실제 스마트 컨트랙트가 실행되기 전에 해당 결과를 미리 임시로 저장해 둠을 의미한다.Here, temporarily storing the virtual execution result for coupon download, gift, and use means that the result is temporarily stored in advance before the actual smart contract is executed in the blockchain system 110.

이는 블록체인 시스템(110)에서의 스마트 컨트랙트 실행시 지연 시간이 발행하는 경우 이를 보완하는 역할을 수행한다. 예를 들어 전자 쿠폰 다운로드와 관련된 요청이 있는 경우 해당 요청이 유효한 트랜잭션인지 여부가 쿠폰 소유주나 쿠폰 사용 여부 등을 고려하여 블록체인 시스템(110)에서 판단된 경우에는 쿠폰 관리 서버(120)는 미리 쿠폰 다운로드가 이루어졌다고 가정하고 해당 정보를 등록할 수 있는 것이다.This plays a role of supplementing when there is a delay time when executing a smart contract in the blockchain system 110. For example, when there is a request related to downloading an electronic coupon, if the request is determined by the blockchain system 110 in consideration of the coupon owner or the use of the coupon, whether the request is a valid transaction, the coupon management server 120 Assuming that the download has been made, you can register the information.

이 경우 전자 쿠폰에 대한 정보를 쿠폰 관리 서버(120)를 통해 조회하는 다른 전자 쿠폰 이용자는 해당 쿠폰이 이미 다른 사람에게 다운로드 되었다고 판단하여 더 이상 다운로드 요청을 하지 않을 수 있는 것이다.In this case, another electronic coupon user who inquires about the information on the electronic coupon through the coupon management server 120 may determine that the coupon has already been downloaded to another person and may not request further download.

이러한 임시 저장해 둔 데이터는 실제 스마트 컨트랙트가 실행된 이후 동기화될 수 있다.These temporarily stored data can be synchronized after the actual smart contract is executed.

예를 들어 쿠폰 스마트 컨트랙트가 쿠폰 다운로드 기능으로 실행이 이루어진 후에 쿠폰 관리 서버(120)는 해당 쿠폰 스마트 컨트랙트 실행 결과에 대응되는 쿠폰 다운로드 처리 결과를 동기화할 수 있고, 쿠폰 스마트 컨트랙트가 쿠폰 선물 기능으로 실행이 이루어진 후에 쿠폰 관리 서버(120)는 해당 쿠폰 스마트 컨트랙트 실행 결과에 대응되는 쿠폰 선물 처리 결과를 동기화할 수 있으며, 쿠폰 스마트 컨트랙트가 쿠폰 사용 기능으로 실행이 이루어진 후에 쿠폰 관리 서버(120)는 해당 쿠폰 스마트 컨트랙트 실행 결과에 대응되는 쿠폰 사용 처리 결과를 동기화할 수 있는 것이다.For example, after the coupon smart contract is executed by the coupon download function, the coupon management server 120 can synchronize the coupon download processing result corresponding to the coupon smart contract execution result, and the coupon smart contract is executed by the coupon gift function. After this, the coupon management server 120 can synchronize the coupon gift processing result corresponding to the coupon smart contract execution result, and after the coupon smart contract is executed with the coupon use function, the coupon management server 120 It is possible to synchronize the coupon use processing result corresponding to the smart contract execution result.

한편 쿠폰 관리 서버(120)는 전자 쿠폰 이용자로부터 쿠폰 다운로드 요청, 쿠폰 선물 요청, 쿠폰 사용 요청 신호 등을 수신하는 경우, 자체적으로 해당 쿠폰 다운로드, 선물, 사용 요청에 대한 트랜잭션을 처리한 후, 블록체인 시스템(110)에 그 처리된 트랜잭션에 대한 블록 생성 및 블록체인 네트워크로의 전파를 요청할 수도 있다.On the other hand, when the coupon management server 120 receives a coupon download request, a coupon gift request, a coupon use request signal, etc. from an electronic coupon user, after processing the transaction for the coupon download, gift, and use request by itself, the blockchain It is also possible to request the system 110 to generate a block for the processed transaction and to propagate it to the blockchain network.

즉, 이는 쿠폰 이용자가 쿠폰 다운로드 요청, 쿠폰 선물 요청, 쿠폰 사용 요청 등을 블록체인 시스템(110)에 직접하는 것이 아니라 쿠폰 관리 서버(120)에 요청할 때 처리되는 과정이고, 이러한 방식으로 처리되는 경우 실제 각 블록들이 블록체인 네트워크로 전파되는데 시간이 걸리더라도 쿠폰 이용자는 쿠폰 관리 서버(120)로부터 처리 결과를 즉시 수신하므로 사용자 편의성이 증대된다.That is, this is a process that is processed when a coupon user requests a coupon download request, a coupon gift request, a coupon use request, etc., not directly to the blockchain system 110 but to the coupon management server 120, and is processed in this way Even if it takes time for each block to actually propagate to the blockchain network, the coupon user immediately receives the processing result from the coupon management server 120, so user convenience is increased.

이하에서는 도 2 내지 도 5를 참조하여 본 발명의 일 실시예에 따른 전자 쿠폰 발행 및 사용 시스템(100)의 제어 및 신호 흐름을 설명한다.Hereinafter, the control and signal flow of the electronic coupon issuing and using system 100 according to an embodiment of the present invention will be described with reference to FIGS. 2 to 5.

우선 도 2를 참조하여 전자 쿠폰이 발행되는 과정을 설명한다.First, a process of issuing an electronic coupon will be described with reference to FIG. 2.

쿠폰 발행자 단말기(200)는 블록체인 시스템(110)에 쿠폰 발행을 위한 정보를 전송하면서 쿠폰 컨트랙트를 요청한다(단계 S1).The coupon issuer terminal 200 requests a coupon contract while transmitting information for issuing coupons to the blockchain system 110 (step S1).

한편, 블록체인 시스템(110)을 이용하기 위해서는 쿠폰 발행 및 쿠폰 사용에 필요한 계정이 미리 등록되어 있어야 하고, 이 경우 블록체인 시스템(110)은 각 계정마다 개인키와 공개키를 생성하고, 사용자로부터 입력받은 비밀번호로 키 암호화를 처리하면, 그 생성된 계정 정보를 사용자에게 반환하여 이용할 수 있도록 하는데, 이러한 계정 등록 과정은 기 공지된 기술에 해당하므로 보다 상세한 설명은 생략한다.Meanwhile, in order to use the blockchain system 110, an account required for issuing coupons and using coupons must be registered in advance. In this case, the blockchain system 110 generates a private key and a public key for each account, and When the key encryption is processed with the input password, the generated account information is returned to the user to be used. This account registration process corresponds to a known technology, so a more detailed description thereof will be omitted.

블록체인 시스템(110)은 이처럼 계정 생성에 따라 키스토어에 암호화되어 저장되어 있는 키를 쿠폰 발행자 단말기(200)의 요청에 포함된 정보를 기초로 복호화(잠금 해제) 처리하는데(단계 S3), 이때 쿠폰 컨트랙트 생성 요청한 계정이 잠금 해제가 되지 않는 경우에는(단계 S5) 쿠폰 컨트랙트 발행 실패를 처리하고(단계 S7), 잠금 해제가 이루어진 경우에는 유효한 쿠폰 컨트랙트인지를 판단한다(단계 S9).The blockchain system 110 decrypts (unlocks) the key encrypted and stored in the keystore according to the account creation, based on the information included in the request of the coupon issuer terminal 200 (step S3). If the account for which the coupon contract creation has been requested is not unlocked (step S5), the coupon contract issuance failure is processed (step S7), and when the unlocking is performed, it is determined whether the coupon contract is valid (step S9).

유효한 쿠폰 컨트랙트인지 여부는 쿠폰 발행자 단말기(200)로부터 수신된 정보가 쿠폰 컨트랙트 생성을 위한 유효한 정보인지 여부를 판단하는 것에 의해 이루어질 수도 있다.Whether the coupon contract is valid may be determined by determining whether the information received from the coupon issuer terminal 200 is valid information for creating a coupon contract.

판단 결과 유효한 쿠폰 컨트랙트 대상이 아닌 경우에는(단계 S9) 쿠폰 컨트랙트 발행 실패 처리를 수행하고(단계 S7), 유효한 경우에는 스마트 컨트랙트(코드를 포함함)를 생성하고(단계 S11), 그 쿠폰 컨트랙트 발행 내역 및 쿠폰 정보를 쿠폰 관리 서버(120)에 전송하여 동기화되도록 한다(단계 S13).If it is determined that the coupon contract is not valid (step S9), the coupon contract issuance failure processing is performed (step S7), and if valid, a smart contract (including a code) is generated (step S11), and the coupon contract is issued. The details and coupon information are transmitted to the coupon management server 120 to be synchronized (step S13).

이어서 블록체인 시스템(110)은 쿠폰 스마트 컨트랙트를 포함하는 블록을 블록체인 네트워크에 전파하는데(단계 S15), 블록이 채굴 등에 의한 방법으로 블록체인 네트워크에 전파되는 것은 공지된 기술에 해당하므로 보다 상세한 설명을 생략한다.Subsequently, the blockchain system 110 propagates the block containing the coupon smart contract to the blockchain network (step S15), and the spread of the block to the blockchain network by a method such as mining corresponds to a known technology, so a more detailed description Is omitted.

이러한 과정이 처리된 후, 블록체인 시스템(110)은 쿠폰 컨트랙트 주소를 반환하는데, 예를 들어 쿠폰 발행자 단말기(200)에 그 쿠폰 컨트랙트 주소를 전송할 수 있다(단계 S17).After this process is processed, the blockchain system 110 returns the coupon contract address, for example, the coupon contract address may be transmitted to the coupon issuer terminal 200 (step S17).

다음으로 도 3을 참조하여 발행된 쿠폰이 쿠폰 이용자에 의해 다운로드 되는 과정을 설명한다.Next, a process in which the issued coupon is downloaded by the coupon user will be described with reference to FIG. 3.

쿠폰 이용자 단말기(300)가 사용자의 조작에 따라 쿠폰 컨트랙트 정보 요청 신호를 쿠폰 관리 서버(120)에 전송하면(단계 S21), 앞서 도 2에서 블록체인 시스템(110)과 쿠폰 정보에 대해 동기화하여 저장하고 있던 쿠폰 관리 서버(120)는 기 발행된 쿠폰 관련 정보, 예를 들어 쿠폰 컨트랙트 정보를 쿠폰 이용자 단말기(300)에 전송한다(단계 S23).When the coupon user terminal 300 transmits the coupon contract information request signal to the coupon management server 120 according to the user's manipulation (step S21), the block chain system 110 and coupon information are synchronized and stored in FIG. The coupon management server 120 that has been running transmits previously issued coupon-related information, for example, coupon contract information, to the coupon user terminal 300 (step S23).

이에 쿠폰 이용자는 발행된 쿠폰들의 종류 등을 확인할 수 있게 되고, 그 중 어느 하나를 선택하면 쿠폰 이용자 단말기(300)는 쿠폰 다운로드 요청 신호를 블록체인 시스템(110)에 전송한다(단계 S25).Accordingly, the coupon user can check the types of coupons issued, and if one of them is selected, the coupon user terminal 300 transmits a coupon download request signal to the blockchain system 110 (step S25).

블록체인 시스템(110)은 해당 쿠폰 다운로드 요청 신호에 포함된 정보와 키 스토어에 저장되어 있는 암호화된 키를 이용하여 계정의 잠금 해제 처리를 수행하는데(단계 S27), 쿠폰 다운로드 요청한 계정의 잠금 해제가 이루어지지 않은 경우(단계 S29) 쿠폰 다운로드 실패 처리를 수행하고(단계 S31), 계정 잠금 해제가 이루어진 경우 유효한 트랜잭션인지 여부를 판단한다(단계 S33).The blockchain system 110 performs the account unlocking process using the information included in the coupon download request signal and the encrypted key stored in the key store (step S27). If not (step S29), the coupon download failure processing is performed (step S31), and if the account is unlocked, it is determined whether the transaction is valid (step S33).

판단 결과 유효한 트랜잭션 대상인 경우 블록체인 시스템(110)은 쿠폰 다운로드 임시 내역을 쿠폰 관리 서버(120)에 전송하여(단계 S35) 임시 저장되도록 하고(단계 S37), 이후 스마트 컨트랙트를 쿠폰 다운로드 기능으로 실행한다(단계 S39).If it is a valid transaction target as a result of the determination, the blockchain system 110 transmits the coupon download temporary details to the coupon management server 120 (step S35) to be temporarily stored (step S37), and then executes the smart contract as a coupon download function. (Step S39).

스마트 컨트랙트 실행이 이루어진 후, 블록체인 시스템(110)은 쿠폰 다운로드 내역을 쿠폰 관리 서버(120)에 전송하여(단계 S41) 동기화되도록 한다(단계 S43).After the execution of the smart contract is performed, the blockchain system 110 transmits the coupon download details to the coupon management server 120 (step S41) to be synchronized (step S43).

이후, 블록체인 시스템(110)은 쿠폰 스마트 컨트랙트 실행 내용을 담은 블록을 블록체인 네트워크에 전파한 후(단계 S45), 쿠폰 다운로드 성공 정보를 쿠폰 이용자 단말기(300)에 전송한다(단계 S47).Thereafter, the blockchain system 110 propagates the block containing the contents of the coupon smart contract execution to the blockchain network (step S45), and then transmits the coupon download success information to the coupon user terminal 300 (step S47).

다음으로, 도 4를 참조하여 다운로드 받은 쿠폰을 타인에게 선물하는 과정을 설명한다.Next, a process of presenting the downloaded coupon to another person will be described with reference to FIG. 4.

쿠폰 이용자 단말기(300)는 사용자의 요청에 따라 쿠폰 선물 요청 신호를 블록체인 시스템(110)에 전송한다(단계 S51).The coupon user terminal 300 transmits a coupon gift request signal to the blockchain system 110 according to the user's request (step S51).

블록체인 시스템(110)은 해당 쿠폰 선물 요청 신호에 포함된 정보와 키 스토어에 저장되어 있는 암호화된 키를 이용하여 계정의 잠금 해제 처리를 수행하는데(단계 S53), 쿠폰 선물 요청한 계정의 잠금 해제가 이루어지지 않은 경우(단계 S55) 쿠폰 선물 실패 처리를 수행하고(단계 S57), 계정 잠금 해제가 이루어진 경우 유효한 트랜잭션인지 여부를 판단한다(단계 S59).The blockchain system 110 performs an account unlocking process using the information included in the coupon gift request signal and the encrypted key stored in the key store (step S53), and unlocking the account requested for the coupon gift If not (step S55), the coupon gift failure processing is performed (step S57), and if the account is unlocked, it is determined whether the transaction is valid (step S59).

예를 들어 블록체인 시스템(110)은 쿠폰 소유자인지 여부, 쿠폰이 이미 사용되었는지 여부를 이용하여 해당 요청이 유효한 트랜잭션 요청인지 여부를 판단할 수 있다.For example, the blockchain system 110 may determine whether a corresponding request is a valid transaction request by using whether the coupon owner or whether the coupon has already been used.

판단 결과 유효한 트랜잭션(즉, 그 요청)인 경우(단계 S59) 블록체인 시스템(110)은 쿠폰 선물 임시 내역을 쿠폰 관리 서버(120)에 전송하여(단계 S61) 임시 저장되도록 하고(단계 S63), 이후 스마트 컨트랙트를 쿠폰 선물 기능으로 실행한다(단계 S65).If the determination result is a valid transaction (ie, its request) (step S59), the blockchain system 110 transmits the coupon gift temporary details to the coupon management server 120 (step S61) to be temporarily stored (step S63), Thereafter, the smart contract is executed as a coupon gift function (step S65).

스마트 컨트랙트 실행이 이루어진 후, 블록체인 시스템(110)은 쿠폰 선물 내역을 쿠폰 관리 서버(120)에 전송하여(단계 S67) 동기화되도록 한다(단계 S69).After the execution of the smart contract is performed, the blockchain system 110 transmits the coupon gift details to the coupon management server 120 (step S67) to be synchronized (step S69).

이후, 블록체인 시스템(110)은 쿠폰 스마트 컨트랙트 실행 내용을 담은 블록을 블록체인 네트워크에 전파한 후(단계 S71), 쿠폰 선물 성공 정보를 쿠폰 이용자 단말기(300)에 전송한다(단계 S73).Thereafter, the blockchain system 110 propagates the block containing the contents of the coupon smart contract execution to the blockchain network (step S71), and then transmits the coupon gift success information to the coupon user terminal 300 (step S73).

다음으로, 도 5를 참조하여 다운로드 받거나 선물 받은 쿠폰을 사용하는 과정을 설명한다.Next, a process of using a downloaded or gifted coupon will be described with reference to FIG. 5.

쿠폰 이용자 단말기(300)는 사용자의 요청에 따라 쿠폰 사용 요청 신호를 블록체인 시스템(110)에 전송한다(단계 S81).The coupon user terminal 300 transmits a coupon use request signal to the blockchain system 110 according to the user's request (step S81).

블록체인 시스템(110)은 해당 쿠폰 사용 요청 신호에 포함된 정보와 키 스토어에 저장되어 있는 암호화된 키를 이용하여 계정의 잠금 해제 처리를 수행하는데(단계 S83), 쿠폰 사용 요청한 계정의 잠금 해제가 이루어지지 않은 경우(단계 S85) 쿠폰 사용 실패 처리를 수행하고(단계 S87), 계정 잠금 해제가 이루어진 경우 유효한 트랜잭션인지 여부를 판단한다(단계 S89).The blockchain system 110 performs an account unlocking process using the information included in the coupon use request signal and the encrypted key stored in the key store (step S83). If not (step S85), the coupon use failure processing is performed (step S87), and if the account is unlocked, it is determined whether or not it is a valid transaction (step S89).

예를 들어 블록체인 시스템(110)은 쿠폰 소유자인지 여부, 쿠폰이 이미 사용되었는지 여부를 이용하여 해당 요청이 유효한 트랜잭션 요청인지 여부를 판단할 수 있다.For example, the blockchain system 110 may determine whether a corresponding request is a valid transaction request by using whether the coupon owner or whether the coupon has already been used.

판단 결과 유효한 트랜잭션(즉, 그 요청)인 경우(단계 S89) 블록체인 시스템(110)은 쿠폰 사용 임시 내역을 쿠폰 관리 서버(120)에 전송하여(단계 S91) 임시 저장되도록 하고(단계 S93), 이후 스마트 컨트랙트를 쿠폰 사용 기능으로 실행한다(단계 S95).If the determination result is a valid transaction (ie, its request) (step S89), the blockchain system 110 transmits the coupon usage temporary details to the coupon management server 120 (step S91) to be temporarily stored (step S93), Thereafter, the smart contract is executed as a coupon use function (step S95).

스마트 컨트랙트 실행이 이루어진 후, 블록체인 시스템(110)은 쿠폰 사용 내역을 쿠폰 관리 서버(120)에 전송하여(단계 S97) 동기화되도록 한다(단계 S99).After the execution of the smart contract is performed, the blockchain system 110 transmits the coupon usage details to the coupon management server 120 (step S97) to be synchronized (step S99).

이후, 블록체인 시스템(110)은 쿠폰 스마트 컨트랙트 실행 내용을 담은 블록을 블록체인 네트워크에 전파한 후(단계 S101), 쿠폰 사용 성공 정보를 쿠폰 이용자 단말기(300)에 전송한다(단계 S103).Thereafter, the blockchain system 110 propagates the block containing the contents of the coupon smart contract execution to the blockchain network (step S101), and then transmits the coupon use success information to the coupon user terminal 300 (step S103).

도 3 내지 도 5를 살펴보면, 쿠폰 관리 서버(120)는 쿠폰 다운로드 내역, 쿠폰 선물 내역, 쿠폰 사용 내역을 임시 저장한 후, 추후 동기화 과정을 거치게 되는데, 이처럼 각종 정보를 임시 저장하는 것은 스마트 컨트랙트 실행시 시간 지연에도 미리 해당 내용을 미리 등록하여 중복 이용 시도를 방지하기 위함이다.3 to 5, the coupon management server 120 temporarily stores the coupon download history, the coupon gift history, and the coupon usage history, and then undergoes a later synchronization process. This temporary storage of various information is executed by a smart contract. This is to prevent duplicate use attempts by registering the content in advance even if there is a time delay.

또한 각종 내역의 동기화 과정 역시 해당 내용을 포함하는 블록이 블록체인 네트워크에 전파되는 것이 완료되는 것과 상관없이 미리 이루어짐으로써, 블록이 생성되는데 시간 지연이 발생하더라도 쿠폰 관련 정보들이 미리 갱신된 상태를 유지하므로 도 3에서 쿠폰 다운로드를 위해 쿠폰 컨트랙트 정보를 쿠폰 관리 서버(120)에 요청하는 쿠폰 이용자는 언제나 최신으로 갱신되어 있는 쿠폰 관련 정보를 확인할 수 있는 것이다.In addition, the synchronization process of various details is also performed in advance regardless of whether the block containing the content is propagated to the blockchain network in advance, so even if there is a time delay while the block is generated, coupon-related information is kept updated in advance. In FIG. 3, a coupon user who requests coupon contract information to the coupon management server 120 for coupon download can always check the latest updated coupon related information.

특히 쿠폰 관련된 임시 저장 상태와 동기화 상태에 대한 정보를 쿠폰 이용자 등에게 구분 제시함으로써, 쿠폰 이용 시점에서 현재 해당 쿠폰과 관련된 스마트 컨트랙트의 실행이 완료되었는지 여부를 다른 쿠폰 이용자 등이 미리 알 수 있도록 할 수도 있다.In particular, by separately presenting information on the coupon-related temporary storage status and synchronization status to coupon users, other coupon users can know in advance whether the execution of the smart contract related to the coupon has been completed at the time of coupon use. have.

특히 도 2 내지 도 5에 도시하지는 않았지만, 쿠폰 관리 서버(120)가 전자 쿠폰 이용자의 각종 요청(즉, 다운로드 요청, 선물 요청, 사용 요청)을 직접 수신하는 경우에는 자체적으로 해당 쿠폰 관련 요청에 대한 트랜잭션을 처리한 후, 블록체인 시스템(110)에 그 처리된 트랜잭션에 대한 블록 생성 및 블록체인 네트워크로의 전파를 요청할 수도 있음은 앞서 언급한 바와 같다.In particular, although not shown in FIGS. 2 to 5, when the coupon management server 120 directly receives various requests (ie, download requests, gift requests, and use requests) from electronic coupon users, As mentioned above, after processing the transaction, it is possible to request the block chain system 110 to generate a block for the processed transaction and propagate it to the blockchain network.

한편, 상술한 각 실시예를 수행하는 과정은 소정의 기록 매체(예를 들어 컴퓨터로 판독 가능한)에 저장된 프로그램 또는 애플리케이션에 의해 이루어질 수 있음은 물론이다. 여기서 기록 매체는 RAM(Random Access Memory)과 같은 전자적 기록 매체, 하드 디스크와 같은 자기적 기록 매체, CD(Compact Disk)와 같은 광학적 기록 매체 등을 모두 포함한다.Meanwhile, it goes without saying that the process of performing each of the above-described embodiments may be performed by a program or application stored in a predetermined recording medium (eg, computer-readable). Here, the recording medium includes all of an electronic recording medium such as a random access memory (RAM), a magnetic recording medium such as a hard disk, and an optical recording medium such as a compact disk (CD).

이때, 기록 매체에 저장된 프로그램은 컴퓨터나 스마트폰 등과 같은 하드웨어 상에서 실행되어 상술한 각 실시예를 수행할 수 있다. 특히, 상술한 본 발명에 따른 단계들 중 적어도 어느 하나는 이러한 프로그램 또는 애플리케이션에 의해 구현될 수 있다.At this time, the program stored in the recording medium may be executed on hardware such as a computer or a smart phone to perform each of the above-described embodiments. In particular, at least one of the steps according to the invention described above can be implemented by such a program or application.

또한, 본 발명은 상기한 특정 실시예에 한정되는 것이 아니라 본 발명의 요지를 벗어나지 않는 범위 내에서 여러 가지로 변형 및 수정하여 실시할 수 있는 것이다. 이러한 변형 및 수정이 첨부되는 특허청구범위에 속한다면 본 발명에 포함된다는 것은 자명할 것이다. In addition, the present invention is not limited to the specific embodiments described above, but can be implemented by various modifications and modifications without departing from the gist of the present invention. It will be apparent that such modifications and modifications are included in the present invention if they fall within the appended claims.

100 : 전자 쿠폰 발행 및 사용 시스템
200 : 쿠폰 발행자 단말기 300 : 쿠폰 이용자 단말기
110 : 블록체인 시스템 120 : 쿠폰 관리 서버
100: Electronic coupon issuance and use system
200: coupon issuer terminal 300: coupon user terminal
110: blockchain system 120: coupon management server

Claims (6)

(a) 블록체인 시스템이 전자 쿠폰 발행자로부터 전자 쿠폰 컨트랙트 요청 신호가 수신되면, 상기 전자 쿠폰 컨트랙트 요청 신호에 포함된 쿠폰 정보를 기초로 특정 전자 쿠폰에 대응되는 스마트 컨트랙트 코드를 포함하는 쿠폰 스마트 컨트랙트를 자동 생성하는 단계와;
(b) 상기 블록체인 시스템이 상기 (a) 단계에서 자동 생성된 쿠폰 스마트 컨트랙트를 포함하는 블록을 생성하여 블록체인 네트워크에 전파하는 단계와;
(c) 상기 블록체인 시스템이 전자 쿠폰 이용자의 요청에 따라 상기 블록체인 네트워크에 전파된 쿠폰 스마트 컨트랙트를 실행시켜 전자 쿠폰에 대한 다운로드 및 선물을 처리하는 단계와;
(d) 별도의 쿠폰 관리 서버가 상기 (a) 단계에서 생성된 쿠폰 스마트 컨트랙트에 대응되는 쿠폰 컨트랙트 정보 및 쿠폰 정보를 동기화하여 저장하는 단계와;
(e) 상기 쿠폰 관리 서버가 전자 쿠폰 이용자로부터 쿠폰 컨트랙트 정보 요청 신호가 수신되면, 상기 (d) 단계에서 동기화하여 저장한 쿠폰 컨트랙트 정보를 추출하여 상기 전자 쿠폰 이용자에게 제공하는 단계를 포함하고,
상기 (c) 단계는,
(c1) 상기 블록체인 시스템이 상기 쿠폰 컨트랙트 정보를 확인한 전자 쿠폰 이용자로부터 쿠폰 다운로드 요청 신호를 수신하면 유효한 트랜잭션인지 여부를 판단하고, 판단 결과 유효한 트랜잭션인 경우 요청받은 전자 쿠폰에 대응되는 쿠폰 스마트 컨트랙트를 쿠폰 다운로드 기능으로 실행하는 단계와;
(c2) 상기 블록체인 시스템이 상기 (c1) 단계의 쿠폰 스마트 컨트랙트 실행 결과를 포함하는 블록을 생성하여 블록체인 네트워크에 전파하는 단계를 포함하고,
(f) 상기 쿠폰 관리 서버가 상기 (c1) 단계에서 유효한 트랜잭션이라고 판단한 경우 쿠폰 다운로드 처리 가상 실행 결과를 임시 저장하는 단계와;
(g) 상기 쿠폰 관리 서버가 상기 (c1) 단계에서 쿠폰 스마트 컨트랙트가 쿠폰 다운로드 기능으로 실행이 이루어진 후에 해당 쿠폰 스마트 컨트랙트 실행 결과에 대응되는 쿠폰 다운로드 처리 결과를 동기화하는 단계를 더 포함하는 것을 특징으로 하는 블록체인에 기반한 P2P 전자 쿠폰 발행 및 선물 방법.
(a) When the blockchain system receives an electronic coupon contract request signal from an electronic coupon issuer, based on the coupon information included in the electronic coupon contract request signal, a coupon smart contract including a smart contract code corresponding to a specific electronic coupon Automatically generating;
(b) generating, by the blockchain system, a block including the coupon smart contract automatically generated in step (a) and propagating it to the blockchain network;
(c) the blockchain system executing a coupon smart contract propagated to the blockchain network at the request of the electronic coupon user to process downloads and gifts for the electronic coupon;
(d) synchronizing and storing coupon contract information and coupon information corresponding to the coupon smart contract generated in step (a) by a separate coupon management server;
(e) when the coupon management server receives the coupon contract information request signal from the electronic coupon user, extracting the coupon contract information synchronized and stored in step (d) and providing the coupon contract information to the electronic coupon user,
The step (c),
(c1) When the blockchain system receives a coupon download request signal from an electronic coupon user who has checked the coupon contract information, it determines whether it is a valid transaction, and if it is a valid transaction, a coupon smart contract corresponding to the requested electronic coupon is created. Executing the coupon download function;
(c2) the block chain system generates a block including the coupon smart contract execution result of step (c1) and propagates it to the blockchain network,
(f) temporarily storing a coupon download processing virtual execution result when the coupon management server determines that the transaction is valid in step (c1);
(g) the coupon management server, after the coupon smart contract is executed by the coupon download function in step (c1), synchronizing the coupon download processing result corresponding to the coupon smart contract execution result. Blockchain based P2P electronic coupon issuance and gift method.
삭제delete 삭제delete 제1항에 있어서,
상기 (c) 단계는,
(c3) 상기 블록체인 시스템이 전자 쿠폰 이용자로부터 쿠폰 선물 요청 신호를 수신하면 유효한 트랜잭션인지 여부를 판단하고, 판단 결과 유효한 트랜잭션인 경우 요청받은 전자 쿠폰에 대응되는 쿠폰 스마트 컨트랙트를 쿠폰 선물 기능으로 실행하는 단계와;
(c4) 상기 블록체인 시스템이 상기 (c3) 단계의 쿠폰 스마트 컨트랙트 실행 결과를 포함하는 블록을 생성하여 블록체인 네트워크에 전파하는 단계를 포함하고,
(h) 상기 쿠폰 관리 서버가 상기 (c3) 단계에서 유효한 트랜잭션이라고 판단한 경우 쿠폰 선물 처리 가상 실행 결과를 임시 저장하는 단계와;
(i) 상기 쿠폰 관리 서버가 상기 (c3) 단계에서 쿠폰 스마트 컨트랙트가 쿠폰 선물 기능으로 실행이 이루어진 후에 해당 쿠폰 스마트 컨트랙트 실행 결과에 대응되는 쿠폰 선물 처리 결과를 동기화하는 단계를 더 포함하는 것을 특징으로 하는 블록체인에 기반한 P2P 전자 쿠폰 발행 및 선물 방법.
The method of claim 1,
The step (c),
(c3) When the blockchain system receives a coupon gift request signal from an electronic coupon user, it determines whether it is a valid transaction, and if the determination result is a valid transaction, executes a coupon smart contract corresponding to the requested electronic coupon as a coupon gift function. Step and;
(c4) the block chain system generates a block including the result of executing the coupon smart contract in step (c3) and propagates it to the blockchain network,
(h) temporarily storing a coupon gift processing virtual execution result when the coupon management server determines that the transaction is valid in step (c3);
(i) the coupon management server, after the coupon smart contract is executed as a coupon gift function in step (c3), synchronizing the coupon gift processing result corresponding to the coupon smart contract execution result. Blockchain based P2P electronic coupon issuance and gift method.
제1항에 있어서,
상기 (c) 단계는,
(c4) 상기 블록체인 시스템이 전자 쿠폰 이용자로부터 쿠폰 사용 요청 신호를 수신하면 유효한 트랜잭션인지 여부를 판단하고, 판단 결과 유효한 트랜잭션인 경우 요청받은 전자 쿠폰에 대응되는 쿠폰 스마트 컨트랙트를 쿠폰 사용 기능으로 실행하는 단계와;
(c5) 상기 블록체인 시스템이 상기 (c4) 단계의 쿠폰 스마트 컨트랙트 실행 결과를 포함하는 블록을 생성하여 블록체인 네트워크에 전파하는 단계를 포함하고,
(j) 상기 쿠폰 관리 서버가 상기 (c4) 단계에서 유효한 트랜잭션이라고 판단한 경우 쿠폰 사용 처리 가상 실행 결과를 임시 저장하는 단계와;
(k) 상기 쿠폰 관리 서버가 상기 (c4) 단계에서 쿠폰 스마트 컨트랙트가 쿠폰 사용 기능으로 실행이 이루어진 후에 해당 쿠폰 스마트 컨트랙트 실행 결과에 대응되는 쿠폰 사용 처리 결과를 동기화하는 단계를 더 포함하는 것을 특징으로 하는 블록체인에 기반한 P2P 전자 쿠폰 발행 및 선물 방법.
The method of claim 1,
The step (c),
(c4) When the blockchain system receives a coupon request signal from an electronic coupon user, it determines whether or not it is a valid transaction, and if it is a valid transaction, executes a coupon smart contract corresponding to the requested electronic coupon as a coupon use function. Step and;
(c5) the block chain system generates a block containing the coupon smart contract execution result of step (c4) and propagates it to the blockchain network,
(j) temporarily storing a coupon use processing virtual execution result when the coupon management server determines that the transaction is valid in step (c4);
(k) the coupon management server, after the coupon smart contract is executed with the coupon use function in step (c4), synchronizing the coupon use processing result corresponding to the coupon smart contract execution result. Blockchain based P2P electronic coupon issuance and gift method.
제5항에 있어서,
(l) 상기 쿠폰 관리 서버가 상기 전자 쿠폰 이용자로부터 쿠폰 사용 요청 신호를 수신하면 자체적으로 해당 쿠폰 사용 요청에 대한 트랜잭션을 처리한 후, 상기 블록체인 시스템에 그 처리된 트랜잭션에 대한 블록 생성 및 블록체인 네트워크로의 전파를 요청하는 단계를 더 포함하는 것을 특징으로 하는 블록체인에 기반한 P2P 전자 쿠폰 발행 및 선물 방법.
The method of claim 5,
(l) When the coupon management server receives the coupon use request signal from the electronic coupon user, it processes the transaction for the coupon use request by itself, and then creates a block for the processed transaction in the blockchain system and blockchain. Blockchain-based P2P electronic coupon issuance and gift method, characterized in that it further comprises the step of requesting the propagation to the network.
KR1020180079712A 2018-07-10 2018-07-10 P2P coupon issue and gift method based on blockchain KR102160004B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180079712A KR102160004B1 (en) 2018-07-10 2018-07-10 P2P coupon issue and gift method based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180079712A KR102160004B1 (en) 2018-07-10 2018-07-10 P2P coupon issue and gift method based on blockchain

Publications (2)

Publication Number Publication Date
KR20200006238A KR20200006238A (en) 2020-01-20
KR102160004B1 true KR102160004B1 (en) 2020-09-25

Family

ID=69367939

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180079712A KR102160004B1 (en) 2018-07-10 2018-07-10 P2P coupon issue and gift method based on blockchain

Country Status (1)

Country Link
KR (1) KR102160004B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111325583B (en) * 2020-03-20 2023-05-02 贵阳块数据城市建设有限公司 Design method for recording life cycle of electronic ticket based on blockchain technology
CN113313520B (en) * 2021-05-28 2023-08-11 安徽海汇金融投资集团有限公司 Method and system for issuing coupons based on blockchain
KR102464369B1 (en) * 2022-06-27 2022-11-09 주식회사 아이정보통신 B2C online mobile phone distribution system using blockchain-based B2B coupon marketing system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101841561B1 (en) * 2017-04-27 2018-05-04 주식회사 코인플러그 Method for issuing, using, refunding, settling and revocating electric voucher in use of unspent transaction output based protocol, and server using the same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100914513B1 (en) * 2007-10-02 2009-09-02 주식회사 하렉스인포텍 Method For User Authentication Using UICC-ID of Mobile Communication Terminal, and System and Method For Electric Commerce Thereof
KR101157541B1 (en) 2011-06-10 2012-08-07 에이큐 주식회사 The system of issuing a p2p coupon and method thereof
KR20180068888A (en) * 2016-12-14 2018-06-22 성신여자대학교 산학협력단 Method and apparatus for purchasing game item using smart contract

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101841561B1 (en) * 2017-04-27 2018-05-04 주식회사 코인플러그 Method for issuing, using, refunding, settling and revocating electric voucher in use of unspent transaction output based protocol, and server using the same

Also Published As

Publication number Publication date
KR20200006238A (en) 2020-01-20

Similar Documents

Publication Publication Date Title
JP7241216B2 (en) Computer-implemented method and system for validating tokens for blockchain-based cryptocurrencies
KR101680540B1 (en) Financial institution document verification system that is based on the block chain
JP2022103306A (en) Method for splitting blockchain-registered digital asset and autonomous computing agent
US20170221053A1 (en) Digital asset conversion
JP7075393B2 (en) Systems and methods realized by blockchain
US20170221022A1 (en) Information transaction infrastructure
KR20190028517A (en) Distributing digital assets by transactional devices
KR20180113143A (en) System for trading user-defined currency based on blockchain and operating method thereof
KR102160004B1 (en) P2P coupon issue and gift method based on blockchain
KR20200046260A (en) Method and apparatus for managing digital collectable card based block-chain
US20220067125A1 (en) Method for distributing certificate of right to use digital content, and computer program stored in medium in order to carry out method
WO2021132454A1 (en) Transaction delegation method, transaction delegation system, and computer program
KR20210029703A (en) Method of paying based on blockchain token and bank server using them
KR102204313B1 (en) Server and method of donation management based on block cahin
KR102493442B1 (en) user terminal, method of distributing digital content, and computer program
TWI646487B (en) Smart contract executing system with permission rating and avoid duplication and method thereof
KR20090058500A (en) Data transmitting/receiving method
TWI675336B (en) System of smart ticket, method for issuing ticket and computer-readable storage device
JP2020046975A (en) Fund transfer system and method for virtual currency
Antal et al. Distributed Ledger Technology Review and Decentralized Applications Development Guidelines. Future Internet 2021, 13, 62
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain
KR20200079931A (en) Method for issuing and authenticating an elelcrtonic ticket based on block chain network
CN117061089B (en) Voting management method, device, equipment and storage medium
JP2011048782A (en) Electronic value information management server and electronic value information transmitting/receiving method
CN115601091A (en) Bill management method based on block chain and related equipment

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant