KR20200084162A - Payment system and payment method based on a blockchain lightning network - Google Patents

Payment system and payment method based on a blockchain lightning network Download PDF

Info

Publication number
KR20200084162A
KR20200084162A KR1020190000224A KR20190000224A KR20200084162A KR 20200084162 A KR20200084162 A KR 20200084162A KR 1020190000224 A KR1020190000224 A KR 1020190000224A KR 20190000224 A KR20190000224 A KR 20190000224A KR 20200084162 A KR20200084162 A KR 20200084162A
Authority
KR
South Korea
Prior art keywords
node
loan
payment
transaction
channel
Prior art date
Application number
KR1020190000224A
Other languages
Korean (ko)
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 KR1020190000224A priority Critical patent/KR20200084162A/en
Publication of KR20200084162A publication Critical patent/KR20200084162A/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/22Payment schemes or models
    • G06Q20/223Payment schemes or models based on the use of peer-to-peer networks
    • 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
    • G06Q40/025
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash

Abstract

The present invention relates to a payment system based on a blockchain lightning network. The payment system includes a loan node to perform a loan for a channel deposit for payment channel generation to a participation node or perform a loan for capital to a participation node to perform a prepayment for a payment in accordance with a request of a participation node. Transaction-involved nodes among the participation nodes deposit a channel deposit for a P2P transaction and generate a P2P payment channel. The transaction-involved nodes perform a P2P transaction through the P2P payment channel or broker nodes among the participation nodes perform a prepayment for money for a payment. A transaction-involved node with an insufficient channel deposit or a broker node with an insufficient capital requests a loan from the loan node to receive a channel deposit or a capital from the loan node to activate transactions between users.

Description

블록체인 라이트닝 네트워크를 기반으로 한 사용자간 거래 활성화를 위한 결제 시스템 및 결제 방법{Payment system and payment method based on a blockchain lightning network}Payment system and payment method based on a blockchain lightning network for activating transactions between users based on the blockchain lightning network

본 발명은 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템 및 방법에 관한 것으로서, 더욱 구체적으로는 블록체인 라이트닝 네트워크에서 거래 당사자 노드들이 채널 보증금이 부족하거나 HTLC 방식에서의 중개 노드들이 선지불 수행을 위한 자본이 부족한 경우에 대출 노드를 이용하여 이들에게 대출할 수 있도록 하여, 사용자간의 거래를 활성화시킬 수 있도록 하는 블록체인 라이트닝 네트워크를 기반으로 한 사용자간 거래 활성화를 위한 결제 시스템 및 결제 방법에 관한 것이다. The present invention relates to a payment system and method based on the blockchain lightening network, and more specifically, in the blockchain lightening network, the trading partner nodes have insufficient channel deposits or intermediary nodes in the HTLC method are required to perform prepayment. It is related to a payment system and a payment method for activating transactions between users based on a blockchain lightning network that enables transactions between users by allowing them to loan using a loan node in the case where this is insufficient.

블록체인은 해시 함수를 이용한 데이터 암호화 및 머클트리 구조를 이용한 데이터 무결성을 보장하고 거래장부인 블록체인의 공유를 통해 데이터 위변조 여부 파악이 가능한 peer-to-peer (P2P) 기반의 분산형 컴퓨팅 기술이다. Blockchain is a peer-to-peer (P2P) based distributed computing technology that guarantees data integrity using a hash function and data integrity using a Merkle tree structure, and can detect whether data has been forged or altered by sharing the blockchain as a transaction book. .

그러나, 기존의 블록체인을 이용한 결제시스템은 각각의 세부 거래 과정마다 트랜잭션이 발생하고 합의 알고리즘을 통해 블록에 기록되어야 하므로 거래 속도가 매우 낮은 문제점이 있다. 특히, 종래의 페이팔, 비자카드 등과 같은 결제시스템과의 거래 속도와 비교하였을 때, 블록체인을 이용한 결제 시스템은 실생활에서 이용하기 어려울 정도로 거래 속도가 매우 낮은 문제점이 있다. 또한, 매 거래마다 트랜잭션을 생성하여 블록체인에 기록하므로 사용자가 많아질수록 전체 블록체인의 용량이 크게 증가하는 확장성 문제가 발생하게 된다. However, the existing payment system using a block chain has a problem in that the transaction speed is very low because a transaction occurs for each detailed transaction process and must be recorded in a block through a consensus algorithm. In particular, compared to the transaction speed with conventional payment systems such as PayPal and Visa Card, the payment system using blockchain has a problem that the transaction speed is very low to be difficult to use in real life. In addition, since transactions are generated for each transaction and recorded in the blockchain, the scalability problem that increases the capacity of the entire blockchain greatly increases as the number of users increases.

결제 시스템에서의 이러한 문제점들을 극복하기 위하여 비트코인에서는 블록체인 라이트닝 네트워크 기술을 적용하는 방안이 제시되고 있다. 라이트닝 네트워크는 거래 당사자들이 지불, 환불, 송금 등 모든 세부 거래 과정을 매번 트랜잭션을 통해 블록체인에 기록하는 것이 아니라, 거래 당사자간에 off-chain을 통한 1대1 결제 채널(Payment Channel)을 생성하고, 상기 생성된 payment channel을 통해 거래 당사자간의 모든 micro payment를 진행하고 모든 거래 과정의 데이터를 기록하며, 거래가 끝나면 payment channel을 종료한 후, 각자의 개인키를 이용한 다중 서명(Multi Signature)을 통해 모든 거래 내역을 하나의 Commitment Transaction으로 만들어 블록체인에 기록하게 된다. 그 결과, 거래 속도를 높이고 확장성 문제를 해결할 수 있게 된다. 또한, 기존의 결제 시스템에서는 동일한 거래자들 사이에 복수의 micro payment를 할 경우 매 송금마다 암호화폐에 대한 송금 수수료가 발생하게 되는 문제가 발생하게 되나, 전술한 라이트닝 네트워크에서는 모든 거래를 수행하고 최종적으로 하나의 트랜잭션을 전파하므로 송금 수수료를 크게 낮출 수 있게 된다. In order to overcome these problems in the payment system, Bitcoin has been proposed to apply blockchain lightening network technology. The Lightning Network does not record all detailed transaction processes such as payment, refund, and remittance on the blockchain through transactions every time, but creates a one-to-one payment channel through the off-chain between trading parties, Through the created payment channel, all micro payments between the trading partners are performed, data of all transaction processes are recorded, and when the transaction is completed, the payment channel is terminated, and all transactions are performed through multi-signature using each private key. The details are made into a single Commitment Transaction and recorded on the blockchain. As a result, you can speed up transactions and solve scalability problems. In addition, in the existing payment system, when a plurality of micro payments are made between the same traders, a problem arises in that a remittance fee for cryptocurrency is generated for each remittance, but in the aforementioned Lightning Network, all transactions are performed and finally Since a single transaction is propagated, the remittance fee can be greatly reduced.

한편, P2P payment channel을 생성하기 위하여 거래 당사자인 노드들은 일정 금액을 채널 보증금으로 예치하는 Funding Transaction을 생성하여야 하며, 거래 당사자들은 이 채널 보증금의 범위내에서 복수의 일대일 micro payment가 가능하게 된다. 또한, 이 채널 보증금에 의해 추후 거래 과정에서 악의적인 시도를 한 이용자에게 패널티 부과가 가능하게 된다. On the other hand, in order to create a P2P payment channel, the nodes that are trading parties must create a Funding Transaction that deposits a certain amount as a channel deposit, and the trading parties can make multiple one-to-one micro payments within the scope of this channel deposit. In addition, a penalty can be imposed on users who have made malicious attempts in the future transaction process by this channel deposit.

하지만, 거래 당사자들이 예치할 채널 보증금이 없거나 모자라는 경우에는 Payment Channel 을 생성할 수 없게 되어, 전술한 라이트닝 네트워크를 형성할 수 없게 되는 문제점이 발생하게 된다. However, if there is no or insufficient channel deposit to be deposited by the trading parties, the payment channel cannot be created, resulting in a problem that the above-described lightning network cannot be formed.

또한, P2P 결제 시스템에서 라이트닝 네트워크가 유지되기 위해서는 HTLC(Hashed Time Locked Contracts) 방식이 필요하다. HTLC 방식은, 예를 들어 설명하면, 노드 A,B,C에서 A와 B, B와 C 사이에는 결제 채널이 형성되어 있지만 A와 C 사이에는 직접적인 결제 채널이 형성되어 있지 않을 경우에도 B를 매개로 하여 A와 C의 사이에 안전한 데이터 교환 및 거래가 가능하게 만드는 방식이다. 이러한 HTLC 방식을 이용하면 A와 C의 사이에 홉(Hop) 수가 높더라도 n개의 중개노드를 거쳐서 A와 C 사이의 채널을 통한 거래가 가능하게 된다. In addition, in order to maintain the lightening network in the P2P payment system, the HTLC (Hashed Time Locked Contracts) method is required. In the HTLC method, for example, if a payment channel is formed between A and B, B and C in nodes A, B, and C, but B is not formed, a direct payment channel is established between A and C. It is a method that enables secure data exchange and transaction between A and C. Using this HTLC method, even if the number of hops between A and C is high, transactions through channels between A and C are possible through n intermediary nodes.

하지만, HTLC 알고리즘은 A가 C에게 지불할 금액을 B가 C에게 먼저 지불하고, 후에 해시 함수 알고리즘을 통해 B가 A에게서 상기 금액을 받게 되는 선지불 방식이다. 따라서, 다수의 거래로 인해 B가 거래 대금에 해당하는 여유 자본이 없는 경우에는 선지불이 어려우므로 HTLC 방식을 제대로 적용할 수 없게 되는 문제가 발생한다. However, the HTLC algorithm is a prepaid method in which A pays C the amount to be paid to C first, and then B receives the amount from A through the hash function algorithm. Therefore, due to the large number of transactions, there is a problem in that it is difficult to properly apply the HTLC method, since it is difficult to pay in advance if B does not have the free capital corresponding to the transaction price.

또한, 라이트닝 네트워크에서 노드 수가 확장되는 경우 A와 C 사이의 Hop 수가 매우 커지게 되어 n개의 중개 노드를 거쳐서 A와 C가 거래를 해야 하는 경우도 발생한다. 네트워크의 참여 노드가 많아지고 거래가 활성화될수록 1개의 노드가 중개 노드로서 역할을 수행하는 횟수도 많아지게 되므로 중개 노드가 부담해야 하는 선지불 금액의 총 크기는 매우 커지게 되는 문제점이 있다. In addition, when the number of nodes in the Lightning Network is expanded, the number of hops between A and C becomes very large, so that A and C must transact through n intermediary nodes. As the number of participating nodes in the network increases and the transaction is activated, the number of times one node performs a role as an intermediary node increases, so the total size of the prepayment amount to be borne by the intermediary node becomes very large.

이와 같이, 라이트닝 네트워크에서 중개 노드가 선지불할 수 있을 만큼의 자본을 갖고 있지 않거나 특정 노드가 P2P 결제 채널을 생성할 수 있을 정도의 채널 보증금이 없는 경우에는 라이트닝 네트워크에서의 결제가 수행될 수 없게 되고, 그 결과 거래도 활성화될 수 없게 되는 것이다. In this way, if the intermediary node in the Lightning Network does not have enough capital to prepay, or if a specific node does not have a channel deposit sufficient to create a P2P payment channel, payment in the Lightning Network cannot be performed. As a result, the transaction cannot be activated.

한국등록특허공보 제 10-1628007호Korean Registered Patent Publication No. 10-1628007 한국공개특허공보 제 10-2018-0079847호Korean Patent Publication No. 10-2018-0079847

전술한 문제점을 해결하기 위한 본 발명은 블록체인 라이트닝 네트워크에 참여하는 거래 노드들에게 P2P 결제 채널을 형성하기 위한 채널 보증금을 대출하거나 중개 노드들에게 HTLC 방식에 따른 선지불 요청에 응하기 위한 자본을 대출할 수 있도록 하여 거래를 활성화시킬 수 있도록 하는 블록체인 라이트닝 네트워크에서의 결제 시스템 및 결제 방법을 제공하는 것을 목적으로 한다. The present invention for solving the above-mentioned problems lends a channel deposit to form a peer-to-peer payment channel to trading nodes participating in the Blockchain Lightning Network, or loans brokerage nodes to respond to a prepayment request according to the HTLC method. The aim is to provide a payment system and payment method in a blockchain lightening network that enables transactions to be activated.

전술한 기술적 과제를 달성하기 위한 본 발명의 특징에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템은, 다수 개의 참여 노드들을 구비하는 블록체인 라이트닝 네트워크에서의 결제 시스템으로서, 참여 노드의 요청에 따라, 참여 노드에게 결제 채널 생성을 위한 채널 보증금에 대한 대출을 수행하거나, 결제를 위하여 선지불을 수행해야 되는 참여 노드에게 자본금에 대한 대출을 수행하는 대출 노드;를 구비하고,The payment system based on the blockchain lightning network according to the features of the present invention for achieving the above-described technical problem is a payment system in a blockchain lightning network having a plurality of participating nodes, according to a request of a participating node, It is provided with a loan node that performs a loan for a channel deposit for creating a payment channel to a participating node, or a loan for capital money to a participating node that needs to pay in advance for payment.

상기 참여 노드 중 거래 당사자 노드들은 P2P(peer to peer) 거래를 위하여 채널 보증금을 예치하고 P2P(peer to peer) 결제 채널을 생성하고, 거래 당사자 노드들은 P2P 결제 채널을 통해 P2P 거래를 수행하거나, 상기 참여 노드들 중 중개 노드들은 결제를 위한 대금에 대한 선지불을 수행하는 것을 특징으로 하며, Among the participating nodes, the trading party nodes deposit a channel deposit for a peer to peer (P2P) transaction, create a peer to peer (P2P) payment channel, and the trading party nodes perform a P2P transaction through the P2P payment channel, or Intermediary nodes among the participating nodes are characterized by performing prepayment for payment for payment,

채널 보증금이 부족한 거래 당사자 노드 또는 선지불 요청을 수행하기 위한 자본금이 부족한 중개 노드는 상기 대출 노드에게 대출 신청하여 대출 노드로부터 채널 보증금 또는 자본을 대출받도록 하여, 사용자간의 거래를 활성화시킬 수 있도록 구성된다. The node of the transaction that lacks the channel deposit or the node that lacks the capital to perform the prepayment request is configured to activate the transaction between users by applying to the loan node to borrow the channel deposit or capital from the loan node. .

전술한 특징에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 상기 참여 노드는, 자신의 신용 정보를 포함하는 트랜잭션을 생성하여 스마트 컨트랙트에 업로드하고, 대출이 필요한 경우, 스마트 컨트랙트를 열람하여 스마트 컨트랙트에 기록된 대출 노드의 대출 정보를 확인하고, 차용 노드(Borrower node)로서 대출 노드에게 대출 신청하는 것이 바람직하다. In the payment system based on the blockchain lightening network according to the above-mentioned feature, the participating node creates a transaction including its own credit information and uploads it to a smart contract, and if a loan is required, it reads the smart contract It is preferable to check the loan information of the loan node recorded in the smart contract and apply for a loan to the loan node as a borrower node.

전술한 특징에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 상기 대출 노드는, 대출 정보를 포함하는 트랜잭션을 생성하고, 상기 트랜잭션을 포함하는 스마트 컨트랙트를 작성하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하고, 차용 노드로부터 대출 신청이 발생하면, 스마트 컨트랙트에 차용 노드에 대한 정보를 요청하고, 스마트 컨트랙트로부터 해당 차용 노드에 대한 정보를 담은 트랜잭션을 열람하고, 대출 노드의 대출 조건과 차용 노드의 신용 정보를 비교하여 확인하고, 차용 노드의 신용 정보가 대출 조건을 충족하는 경우 차용 노드에게 대출을 수행하는 것이 바람직하다. In the payment system based on the blockchain lightening network according to the above-described feature, the loan node generates a transaction including loan information, creates a smart contract including the transaction, and blocks according to a preset consensus algorithm When a loan request is generated from the borrowing node in the chain, request information about the borrowing node from the smart contract, view the transaction containing the information about the borrowing node from the smart contract, loan terms and borrowing conditions of the borrowing node It is preferable to check the credit information by comparing, and if the credit information of the borrowing node satisfies the loan condition, it is preferable to perform a loan to the borrowing node.

전술한 특징에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 상기 대출 노드의 대출 정보는, 대출 조건, 대출 가능 금액, 상환 일자, 대출 이자, 대출 수수료를 포함하며, 상기 차용 노드의 신용 정보는, 신뢰도, 자본 정보, 대출 기록, 대출 노드와의 홉(Hop) 수를 포함하는 것이 바람직하다. In the payment system based on the blockchain lightening network according to the above-mentioned characteristics, the loan information of the loan node includes loan conditions, a loanable amount, a repayment date, a loan interest, and a loan fee, and credit of the borrowing node Preferably, the information includes reliability, capital information, loan history, and number of hops with the loan node.

전술한 특징에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 상기 거래 당사자 노드들은 채널 보증금을 예치하는 펀딩 트랜잭션(Funding Transaction)을 생성하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하고, 거래 당사자 노드간의 P2P 거래를 위한 P2P 결제 채널을 생성하고, P2P 결제 채널을 통해 상기 P2P 거래의 과정에서 발생되는 복수의 마이크로 결제(micro payment)에 대한 모든 데이터를 채널에 기록하고 상기 P2P 거래가 종료되면 P2P 결제 채널을 닫고, 상기 채널에 기록된 모든 거래 내역 정보를 포함하는 단일의 Commitment 트랜잭션(Commitment Transaction)을 생성하고, 거래 당사자 노드들의 개인키로 상기 트랜잭션을 다중 서명하고 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하는 것이 바람직하다. In the payment system based on the blockchain lightening network according to the above-mentioned feature, the trading party nodes create a funding transaction that deposits a channel deposit, record it on the blockchain according to a preset consensus algorithm, and trade Create a P2P payment channel for P2P transactions between party nodes, record all data for a plurality of micro payments generated in the process of the P2P transaction through the P2P payment channel to the channel, and when the P2P transaction ends, P2P Closes the payment channel, creates a single Commitment transaction that includes all transaction history information recorded in the channel, multi-signs the transaction with the private key of the trading party nodes, and enters the blockchain according to a preset consensus algorithm. It is desirable to record.

전술한 특징에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 상기 채널 보증금은, 거래 당사자 노드들의 추후 거래 과정에서 악의적인 시도가 발생되는 경우 패널티로 사용되는 것이 바람직하다. In the payment system based on the blockchain lightening network according to the above-described feature, it is preferable that the channel deposit is used as a penalty when a malicious attempt occurs in a future transaction process of nodes of the trading party.

본 발명에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템은, 대출 노드를 더 구비하고, 거래 당사자 노드들이 P2P 결제 채널을 생성하기 위하여 필요한 채널 보증금이 부족하거나, 중개 노드들이 HTLC 방식에 따라 대금을 선지불해야 되는 경우 자본금이 부족한 경우에, 대출 노드로부터 채널 보증금이나 선지불을 위한 자본금을 대출받을 수 있도록 한다. The payment system based on the Blockchain Lightning Network according to the present invention further includes a loan node, and the channel nodes required for the transaction party nodes to create a P2P payment channel are insufficient, or the intermediary nodes pay the price according to the HTLC method. If you need to pay in advance If your capital is insufficient, you can get a channel deposit or a capital for advance payment from the lender node.

그 결과, 거래 당사자 노드들이 채널 보증금이 부족하거나 중개 노드가 선지불을 위한 자본금이 부족하더라도 스마트 컨트랙트와 대출 노드를 이용하여 대출할 수 있도록 함으로써, 블록체인 라이트닝 네트워크를 안정적으로 유지할 수 있을 뿐만 아니라 사용자간의 거래를 원활하게 수행할 수 있게 된다. As a result, the blockchain lightening network can be maintained stably by allowing the trading partner nodes to borrow using the smart contract and the loan node even if the channel deposit is insufficient or the brokerage node lacks the capital for prepayment. It is possible to smoothly conduct transactions between the two.

도 1은 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템을 전체적으로 도시한 구성도이다.
도 2는 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 채널 보증금을 대출할 수 있도록 하여 사용자간의 거래 활성화시킨 결제 과정을 순차적으로 도시한 흐름도이다.
도 3은 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 거래 당사자 노드들이 대출 노드로부터 채널 보증금을 대출하는 과정을 도시한 모식도이다.
도 4는 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 거래 당사자 노드들이 P2P 결제 채널(Payment Channel)을 통해 거래하는 것을 도시한 모식도이며, 도 5는 P2P 결제 채널에 의해 생성된 거래 내역들을 포함하는 Commitment transaction을 생성하는 것을 도시한 모식도이다.
도 6은 본 발명의 제2 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, HTLC 방식에 의한 중개 노드가 선지불할 자본금을 대출할 수 있도록 하여 사용자간의 거래 활성화시킨 결제 과정을 순차적으로 도시한 흐름도이다.
1 is a block diagram showing a payment system based on a blockchain lightening network according to a first embodiment of the present invention as a whole.
FIG. 2 is a flowchart sequentially showing a payment process that activates a transaction between users by allowing a channel deposit to be loaned in a payment system based on a blockchain lightening network according to a first embodiment of the present invention.
3 is a schematic diagram illustrating a process in which a trading party node loans a channel deposit from a lending node in a payment system based on a blockchain lightening network according to a first embodiment of the present invention.
Figure 4 is a schematic diagram showing that the trading party nodes in the payment system based on the blockchain lightning network according to the first embodiment of the present invention, through a P2P payment channel (Payment Channel), Figure 5 is P2P It is a schematic diagram showing the creation of a Commitment transaction that includes transaction details generated by a payment channel.
6 is a payment system based on a blockchain lightening network according to a second embodiment of the present invention, which enables an intermediary node by the HTLC method to borrow capital to be paid in advance, thereby facilitating transactions between users. It is a flow chart shown sequentially.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 사용자간의 거래를 활성화시킬 수 있는 결제 시스템 및 결제 방법에 대하여 구체적으로 설명한다. Hereinafter, a payment system and a payment method capable of activating transactions between users based on a blockchain lightening network according to a first preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템을 전체적으로 도시한 구성도이다. 1 is a block diagram showing a payment system based on a blockchain lightening network according to a first embodiment of the present invention as a whole.

도 1을 참조하면, 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템은, 다수의 참여 노드들과 다수의 대출 노드들을 포함하는 블록체인 라이트닝 네트워크(Blockchain Lightning Network)를 구성한다. 다수의 참여 노드들 중 2개의 노드는 거래 당사자 노드로서 지불, 환불, 송금 등의 거래를 수행하게 된다. Referring to FIG. 1, a payment system based on a blockchain lightening network according to a first embodiment of the present invention includes a blockchain lightning network including a plurality of participating nodes and a plurality of loan nodes. Make up. Two nodes among a plurality of participating nodes perform transactions such as payment, refund, and remittance as nodes of the trading party.

도 2는 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 채널 보증금을 대출할 수 있도록 하여 사용자간의 거래 활성화시킨 결제 과정을 순차적으로 도시한 흐름도이다. 이하, 도 1 및 도 2를 참조하여 본 발명의 제1 실시예에 따른 결제 시스템에 있어서 거래 당사자 노드에게 채널 보증금을 대출하여 P2P 결제 채널을 이용하여 OFF-Chain 에서 거래할 수 있도록 하는 결제 방법에 대하여 구체적으로 설명한다. FIG. 2 is a flowchart sequentially showing a payment process that activates a transaction between users by allowing a channel deposit to be loaned in a payment system based on a blockchain lightening network according to a first embodiment of the present invention. Hereinafter, with reference to FIGS. 1 and 2, in a payment system according to a first embodiment of the present invention, a payment method for lending a channel deposit to a trading party node and using a P2P payment channel to trade in an OFF-Chain It will be described in detail.

도 1 및 도 2를 참조하면, 본 실시예에 따른 결제 시스템은 먼저 거래 당사자들인 A 및 B를 참여 노드로 하고 적어도 하나 이상의 대출 노드(Lender node)를 포함하는 블록체인 라이트닝 네트워크를 구성한다(단계 400).1 and 2, the payment system according to the present embodiment first constitutes a blockchain lightning network including trading partners A and B as participating nodes and at least one loan node (steps). 400).

각 대출 노드들은 대출 정보를 포함하는 트랜잭션을 생성하고, 상기 트랜잭션을 포함하는 스마트 컨트랙트를 작성하고, 블록체인 라이트닝 네트워크의 다른 노드들에게 전파하고 사전 설정된 합의 알고리즘에 따라 합의 절차를 거친 후 상기 스마트 컨트랙트를 블록체인에 기록한다(단계 410). 상기 대출 정보는 대출 조건, 대출 가능 금액, 상환 일자, 대출 이자, 대출 수수료를 포함하는 것이 바람직하다. Each loan node creates a transaction containing the loan information, creates a smart contract containing the transaction, propagates it to other nodes in the blockchain lightning network, goes through the consensus process according to a preset consensus algorithm, and then the smart contract Is recorded on the blockchain (step 410). Preferably, the loan information includes a loan condition, a loanable amount, a repayment date, a loan interest, and a loan fee.

상기 블록체인 라이트닝 네트워크를 구성하는 모든 참여 노드들은 대출을 위하여 필요한 자신의 신용 정보를 포함하는 트랜잭션을 생성하고 스마트 컨트랙트에 기록한다(단계 420). 상기 신용 정보는 신뢰도, 자본 정보, 대출 기록, 대출 노드와의 홉(Hop) 수를 포함하는 것이 바람직하다. All the participating nodes constituting the blockchain lightening network create a transaction including their own credit information necessary for lending and record it in a smart contract (step 420). Preferably, the credit information includes reliability, capital information, loan history, and number of hops with the loan node.

상기 블록체인 라이트닝 네트워크를 구성하는 모든 노드들은 네트워크에서 전파되는 모든 트랜잭션 및 블록들에 대하여 사전 설정된 합의 알고리즘에 따라 유효성을 검증하게 된다(단계 430). 상기 합의 알고리즘은 작업 증명(POW) 등이 사용될 수 있다.All nodes constituting the blockchain lightening network are validated according to a preset consensus algorithm for all transactions and blocks propagated in the network (step 430). For the consensus algorithm, proof of work (POW) may be used.

다음, 거래를 수행하고자 하는 거래 당사자 노드들인 제1 및 제2 노드는 채널 보증금을 예치한다. 도 3을 참조하여, 거래 당사자 노드들이 채널 보증금을 예치하는 과정을 보다 구체적으로 설명한다. Next, the first and second nodes, which are nodes of the trading party to perform the transaction, deposit a channel deposit. Referring to FIG. 3, the process of depositing channel deposits by the trading party nodes will be described in more detail.

도 3은 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 거래 당사자 노드들이 대출 노드로부터 채널 보증금을 대출하는 과정을 도시한 모식도이다. FIG. 3 is a schematic diagram showing a process in which a trading party node borrows a channel deposit from a lending node in a payment system based on a blockchain lightening network according to a first embodiment of the present invention.

먼저, 도 3을 참조하면, 거래 당자사 노드들 중 제1 노드는 결제 채널 생성을 위한 채널 보증금을 예치하는 트랜잭션을 생성하고, 네트워크에 전파하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록한다. 이때, 제1 노드는 결제 채널 생성을 위한 채널 보증금이 충분한지 여부를 판단한다(단계 440). 만약 채널 보증금이 부족하지 않으면, 제1 노드는 채널 보증금을 예치하기 위한 트랜잭션을 생성하여 네트워크에 전파하고, 사전 설정된 합의 알고리즘에 따라 블록체인에 기록한다(단계 450).First, referring to FIG. 3, the first node among the trading party nodes creates a transaction that deposits a channel deposit for creating a payment channel, propagates it to the network, and records it on the blockchain according to a preset consensus algorithm. At this time, the first node determines whether the channel deposit for creating the payment channel is sufficient (step 440). If the channel deposit is not insufficient, the first node creates a transaction for depositing the channel deposit, propagates it to the network, and records it in the blockchain according to a preset consensus algorithm (step 450).

만약 제1 노드가 제2 노드와의 결제 채널 생성을 위한 채널 보증금이 부족한 경우, 스마트 컨트랙트를 열람하여 스마트 컨트랙트에 기록된 대출 노드의 대출 정보를 확인하고, 차용 노드(Borrower node)로서 대출 노드에게 대출 신청을 하게 된다(단계 442). 다음, 대출 노드는 대출 신청에 따라, 스마트 컨트랙트에 차용 노드에 대한 정보를 요청하고, 스마트 컨트랙트로부터 해당 차용 노드에 대한 정보를 담은 트랜잭션을 열람하고(단계 444), 대출 노드의 대출 조건과 차용 노드의 신용 정보를 비교하여 확인하고, 차용 노드의 신용 정보가 대출 조건을 충족하는 경우(단계 446) 차용 노드에게 대출을 수행한다(단계 448). 다음, 제1 노드는 대출받은 채널 보증금을 예치하기 위한 트랜잭션을 생성하여 네트워크에 전파하고, 사전 설정된 합의 알고리즘에 따라 블록체인에 기록한다(단계 450).If the first node lacks a channel deposit for creating a payment channel with the second node, the smart contract is viewed to check the loan information of the loan node recorded in the smart contract, and the loan node is sent to the loan node as a borrower node. A loan application is made (step 442). Next, the loan node requests information about the borrowing node from the smart contract according to the loan application, browses the transaction containing the information about the borrowing node from the smart contract (step 444), and borrows the loan node's loan conditions and the borrowing node Compare and check the credit information of, and if the credit information of the borrowing node satisfies the loan condition (step 446), the borrowing node is loaned (step 448). Next, the first node generates a transaction for depositing the loaned channel deposit and propagates it to the network, and records it on the blockchain according to a preset consensus algorithm (step 450).

한편, 거래 당자사 노드들 중 제2 노드도 결제 채널 생성을 위한 채널 보증금을 예치하는 트랜잭션을 생성하고, 네트워크에 전파하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록한다. 이때, 제2 노드는 결제 채널 생성을 위한 채널 보증금이 충분한지 여부를 판단한다(단계 460). 만약 채널 보증금이 부족하지 않으면, 제2 노드는 채널 보증금을 예치하기 위한 펀딩 트랜잭션(Funding Transaction)을 생성하여 네트워크에 전파하고, 사전 설정된 합의 알고리즘에 따라 블록체인에 기록한다(단계 470).On the other hand, the second node among the trading party nodes also creates a transaction that deposits a channel deposit for creating a payment channel, propagates it to the network, and records it on the blockchain according to a preset consensus algorithm. At this time, the second node determines whether the channel deposit for creating a payment channel is sufficient (step 460). If the channel deposit is not insufficient, the second node creates a funding transaction for depositing the channel deposit, propagates it to the network, and records it in the blockchain according to a preset consensus algorithm (step 470).

만약 제2 노드는 제1 노드와의 결제 채널 생성을 위한 채널 보증금이 부족한 경우, 스마트 컨트랙트를 열람하여 스마트 컨트랙트에 기록된 대출 노드의 대출 정보를 확인하고, 차용 노드(Borrower node)로서 대출 노드에게 대출 신청을 하게 된다(단계 462). 다음, 대출 노드는 대출 신청에 따라, 스마트 컨트랙트에 차용 노드에 대한 정보를 요청하고, 스마트 컨트랙트로부터 해당 차용 노드에 대한 정보를 담은 트랜잭션을 열람하고(단계 464), 대출 노드의 대출 조건과 차용 노드의 신용 정보를 비교하여 확인하고, 차용 노드의 신용 정보가 대출 조건을 충족하는 경우(단계 466) 차용 노드에게 대출을 수행한다(단계 468). 다음, 제2 노드는 대출받은 채널 보증금을 예치하기 위한 펀딩 트랜잭션(Funding Transaction)을 생성하여 네트워크에 전파하고, 사전 설정된 합의 알고리즘에 따라 블록체인에 기록한다(단계 470). If the second node lacks a channel deposit for creating a payment channel with the first node, it reads the smart contract to check the loan information of the loan node recorded in the smart contract, and sends it to the loan node as a borrower node. A loan application is made (step 462). Next, the loan node requests information about the borrowing node from the smart contract according to the loan application, reads a transaction containing the information about the borrowing node from the smart contract (step 464), and borrows the loan node's loan conditions and the borrowing node. Compare and check the credit information of, and if the credit information of the borrowing node satisfies the loan condition (step 466), the borrowing node is loaned (step 468). Next, the second node generates a funding transaction for depositing the loaned channel deposit and propagates it to the network, and records it on the blockchain according to a preset consensus algorithm (step 470).

한편, 거래 당사자 노드인 제1 노드 또는 제2 노드가 대출을 받지 못하여 채널 보증금이 부족하여 이를 예치하지 못하는 경우 P2P 결제 채널을 생성할 수 없게 되므로, 해당 거래는 무효가 된다. On the other hand, if the first node or the second node, which is the node of the transaction, does not receive the loan and cannot deposit it due to insufficient channel deposit, the P2P payment channel cannot be created, and thus the transaction is invalid.

다음, 채널 보증금을 예치한 거래 당사자 노드들인 제1 및 제2 노드는 P2P 결제 채널(Payment channel)을 생성하고 상기 결제 채널을 통해 거래를 수행하게 된다(단계 480). 도 4 내지 도 5를 참조하여, 거래 당사자 노드들이 결제 채널을 생성하고 거래를 수행하는 과정을 보다 구체적으로 설명한다. Next, the first and second nodes, which are the trading party nodes depositing the channel deposit, create a P2P payment channel and perform the transaction through the payment channel (step 480). Referring to FIGS. 4 to 5, a process in which the trading party nodes create a payment channel and perform a transaction will be described in more detail.

도 4는 본 발명의 제1 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, 거래 당사자 노드들이 P2P 결제 채널(Payment Channel)을 통해 거래하는 것을 도시한 모식도이며, 도 5는 P2P 결제 채널에 의해 생성된 거래 내역들을 포함하는 Commitment transaction을 생성하는 것을 도시한 모식도이다. Figure 4 is a schematic diagram showing that the trading party nodes in the payment system based on the blockchain lightning network according to the first embodiment of the present invention, through a P2P payment channel (Payment Channel), Figure 5 is P2P It is a schematic diagram showing the creation of a Commitment transaction that includes transaction details generated by a payment channel.

전술한 과정에 의해 거래 당사자인 제1 및 제2 노드가 모두 채널 보증금을 예치하면, OFF-chain인 제1 및 제2 노드간의 P2P 결제 채널을 생성하고(단계 480), P2P 결제 채널을 통해 상기 P2P 거래의 과정에서 발생되는 복수의 마이크로 결제(micro payment)에 대한 모든 데이터를 채널에 기록하고 상기 P2P 거래가 종료되면 P2P 결제 채널을 닫고(단계 482), 상기 채널에 기록된 모든 거래 내역 정보를 포함하는 단일의 Commitment 트랜잭션(Commitment Transaction)을 생성하고(단계 484), 거래 당사자 노드들의 개인키로 상기 트랜잭션을 다중 서명하고 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하게 된다(단계 486). When the first and second nodes, which are the parties to the transaction, deposit the channel deposit through the above-described process, a P2P payment channel is created between the first and second nodes that are off-chain (step 480), and the P2P payment channel is used to Records all data for a plurality of micro payments generated in the course of a P2P transaction on a channel, closes the P2P payment channel when the P2P transaction ends (step 482), and includes all transaction history information recorded on the channel Creates a single Commitment Transaction (step 484), multi-signs the transaction with the private key of the trading party nodes and records it on the blockchain according to a preset consensus algorithm (step 486).

한편, 상기 채널 보증금은, 거래 당사자 노드들의 추후 거래 과정에서 악의적인 시도가 발생되는 경우 패널티로 사용된다. On the other hand, the channel deposit is used as a penalty when a malicious attempt occurs in a later transaction process of nodes of the trading party.

이하, 도 6을 참조하여 본 발명의 제2 실시예에 따른 결제 시스템에 있어서 참여 노드가 HTLC 방식에 따른 선지불을 위한 자본금을 대출할 수 있도록 하여 P2P 결제 채널을 이용한 거래에서의 중개 노드 역할을 수행할 수 있도록 하는 결제 방법에 대하여 구체적으로 설명한다. Hereinafter, with reference to FIG. 6, in the payment system according to the second embodiment of the present invention, the participating node can lend capital for prepayment according to the HTLC method, thereby acting as an intermediary node in the transaction using the P2P payment channel. The payment method that can be performed will be described in detail.

도 6은 본 발명의 제2 실시예에 따른 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템에 있어서, HTLC 방식에 의한 중개 노드가 선지불할 자본금을 대출할 수 있도록 하여 사용자간의 거래 활성화시킨 결제 과정을 순차적으로 도시한 흐름도이다. 도 6을 참조하면, 본 실시예에 따른 결제 시스템은 먼저 A, B 및 C를 참여 노드로 하고 적어도 하나 이상의 대출 노드(Lender node)를 포함하는 블록체인 라이트닝 네트워크를 구성한다(단계 800).6 is a payment system based on a blockchain lightening network according to a second embodiment of the present invention, which enables an intermediary node by the HTLC method to borrow capital to be paid in advance, thereby facilitating transactions between users. It is a flow chart shown sequentially. Referring to FIG. 6, the payment system according to the present embodiment first configures a blockchain lightning network including A, B, and C as participating nodes and at least one loan node (step 800).

각 대출 노드들은 대출 정보를 포함하는 트랜잭션을 생성하고, 상기 트랜잭션을 포함하는 스마트 컨트랙트를 작성하고, 블록체인 라이트닝 네트워크의 다른 노드들에게 전파하고 사전 설정된 합의 알고리즘에 따라 합의 절차를 거친 후 상기 스마트 컨트랙트를 블록체인에 기록한다(단계 810). 상기 대출 정보는 대출 조건, 대출 가능 금액, 상환 일자, 대출 이자, 대출 수수료를 포함하는 것이 바람직하다. Each loan node creates a transaction containing the loan information, creates a smart contract containing the transaction, propagates it to other nodes in the blockchain lightning network, goes through the consensus process according to a preset consensus algorithm, and then the smart contract Is recorded on the blockchain (step 810). Preferably, the loan information includes a loan condition, a loanable amount, a repayment date, a loan interest, and a loan fee.

상기 블록체인 라이트닝 네트워크를 구성하는 모든 참여 노드들은 대출을 위하여 필요한 자신의 신용 정보를 포함하는 트랜잭션을 생성하고 스마트 컨트랙트에 기록한다(단계 820). 상기 신용 정보는 신뢰도, 자본 정보, 대출 기록, 대출 노드와의 홉(Hop) 수를 포함하는 것이 바람직하다. All participating nodes constituting the blockchain lightening network create a transaction including their own credit information necessary for loaning and record it in a smart contract (step 820). Preferably, the credit information includes reliability, capital information, loan history, and number of hops with the loan node.

상기 블록체인 라이트닝 네트워크를 구성하는 모든 노드들은 네트워크에서 전파되는 모든 트랜잭션 및 블록들에 대하여 사전 설정된 합의 알고리즘에 따라 유효성을 검증하게 된다(단계 830). All nodes constituting the blockchain lightening network are validated according to a preset consensus algorithm for all transactions and blocks propagated in the network (step 830).

다음, 거래를 수행하고자 하는 거래 당사자 노드들인 제1 및 제2 노드(A,C)는 블록체인 네트워크에서의 Hop 수를 계산한다(단계 840). 제1 및 제2 노드의 사이의 Hop 수가 사전 설정된 기준값(m)이상인지 여부를 판단한다(단계 850). Next, the first and second nodes (A, C), which are the trading party nodes to perform the transaction, calculate the number of hops in the blockchain network (step 840). It is determined whether the number of hops between the first and second nodes is equal to or greater than a preset reference value m (step 850).

만약, 거래 당사자인 제1 및 제2 노드 사이의 Hop 수가 기준값보다 작으면, 전술한 제1 실시예의 방법에 따라 제1 및 제2 노드의 사이에 P2P Payment Channel을 생성하고 거래를 수행한다(단계 860). If the number of hops between the first and second nodes, which are the trading parties, is smaller than the reference value, a P2P Payment Channel is created between the first and second nodes according to the method of the first embodiment described above and the transaction is performed (step 860).

만약, 거래 당사자인 제1 및 제2 노드의 사이의 Hop 수가 기준값 이상이면, 제1 및 제2 노드는 자신들과 거래 채널을 형성하고 있는 노드들을 탐색하고(단계 870), 탐색된 노드들 중에서 제1 및 제2 노드로부터 기준 Hop수(n) 이하이며 수수료가 가장 낮은 노드를 중개 노드(B)로 선정한다(단계 872). If the number of hops between the first and second nodes, which are trading parties, is greater than or equal to the reference value, the first and second nodes search for nodes forming a trading channel with them (step 870), and the first of the searched nodes is selected. The node having the lowest number of hops (n) and having the lowest fee from the first and second nodes is selected as the intermediary node (B) (step 872).

다음, 중개 노드(B)가 HTLC 방식에 의한 선지불을 위한 자본이 충분한지 여부를 판단한다(단계 874).Next, the intermediary node B determines whether there is sufficient capital for prepayment by the HTLC method (step 874).

만약 중개 노드가 선지불을 위한 자본이 충분하면, 제1 노드(A)와 중개노드(B)의 결제 채널과, 중개노드(B)와 제2 노드(C)의 결제 채널을 통해, 제1 노드(A)와 제2 노드(C)는 거래를 수행하게 된다(단계 890).If the intermediary node has sufficient capital for prepayment, the first node (A) and the intermediary node (B) through the payment channel, and the intermediary node (B) and the second node (C) through the payment channel, the first The node A and the second node C perform a transaction (step 890).

만약 중개 노드가 선지불을 위한 자본이 부족하면, 중개 노드는 스마트 컨트랙트를 열람하여 스마트 컨트랙트에 기록된 대출 노드의 대출 정보를 확인하고, 차용 노드(Borrower node)로서 대출 노드에게 대출 신청을 한다(단계 880). 다음, 대출 노드는 대출 신청에 따라, 스마트 컨트랙트에 차용 노드에 대한 정보를 요청하고, 스마트 컨트랙트로부터 해당 차용 노드에 대한 정보를 담은 트랜잭션을 열람하고(단계 882), 대출 노드의 대출 조건과 차용 노드의 신용 정보를 비교하여 확인하고, 차용 노드의 신용 정보가 대출 조건을 충족하는 경우(단계 884) 차용 노드에게 대출을 수행한다(단계 886). 다음, 제1 노드(A)와 중개노드(B)의 결제 채널과, 중개노드(B)와 제2 노드(C)의 결제 채널을 통해, 제1 노드(A)와 제2 노드(C)는 거래를 수행하게 된다(단계 890).If the intermediary node has insufficient capital for prepayment, the intermediary node reads the smart contract to check the loan information of the loan node recorded in the smart contract, and applies for a loan to the lender node as a borrower node ( Step 880). Next, the loan node requests information about the borrowing node from the smart contract according to the loan application, reads a transaction containing the information about the borrowing node from the smart contract (step 882), and borrows the loan node's loan conditions and the borrowing node. Compare and check the credit information of, and if the credit information of the borrowing node satisfies the loan condition (step 884), the borrowing node is loaned (step 886). Next, the first node (A) and the second node (C) through the payment channel of the intermediary node (B) and the payment channel of the intermediary node (B) and the second node (C), Will perform the transaction (step 890).

한편, 중개 노드가 대출 노드로부터 대출받지 못하거나 선지불할 자본금이 부족한 경우에는 P2P 결제 채널을 유지할 수 없게 되어 거래는 무효가 된다. On the other hand, if the intermediary node does not receive a loan from the loan node or there is insufficient capital to pay in advance, the P2P payment channel cannot be maintained and the transaction becomes invalid.

이상에서 본 발명에 대하여 그 바람직한 실시예를 중심으로 설명하였으나, 이는 단지 예시일 뿐 본 발명을 한정하는 것이 아니며, 본 발명이 속하는 분야의 통상의 지식을 가진 자라면 본 발명의 본질적인 특성을 벗어나지 않는 범위에서 이상에 예시되지 않은 여러 가지의 변형과 응용이 가능함을 알 수 있을 것이다. 그리고, 이러한 변형과 응용에 관계된 차이점들은 첨부된 청구 범위에서 규정하는 본 발명의 범위에 포함되는 것으로 해석되어야 할 것이다. In the above, the present invention has been mainly described with respect to its preferred embodiment, but this is merely an example and does not limit the present invention, and those skilled in the art to which the present invention pertains do not depart from the essential characteristics of the present invention. It will be appreciated that various modifications and applications not illustrated above are possible in the scope. And, the differences related to these modifications and applications should be construed as being included in the scope of the invention defined in the appended claims.

Claims (12)

다수의 참여 노드들을 구비하는 블록체인 라이트닝 네트워크에서의 결제 시스템에 있어서,
참여 노드의 요청에 따라, 참여 노드에게 결제 채널 생성을 위한 채널 보증금에 대한 대출을 수행하거나, 결제를 위하여 선지불을 수행해야 되는 참여 노드에게 자본금에 대한 대출을 수행하는 대출 노드;를 구비하고,
상기 참여 노드 중 거래 당사자 노드들은 P2P(peer to peer) 거래를 위하여 채널 보증금을 예치하고 P2P(peer to peer) 결제 채널을 생성하고, 거래 당사자 노드들은 P2P 결제 채널을 통해 P2P 거래를 수행하는 것을 특징으로 하며,
채널 보증금이 부족한 거래 당사자 노드는 상기 대출 노드에게 대출 신청하여 대출 노드로부터 채널 보증금을 대출받도록 하여, 사용자간의 거래를 활성화시킬 수 있도록 구성된 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
In a payment system in a blockchain lightning network having a plurality of participating nodes,
And a loan node that performs a loan for a channel deposit for creating a payment channel to the participating node at the request of the participating node, or a loan for the capital to the participating node that needs to perform prepayment for payment.
Among the participating nodes, the trading partner nodes deposit a channel deposit for peer to peer (P2P) transactions, create a peer to peer (P2P) payment channel, and the trading partner nodes perform P2P transactions through the P2P payment channel. And
A payment system based on a blockchain lightning network, characterized in that a trading party node lacking a channel deposit is configured to activate a transaction between users by applying for a loan to the lending node to obtain a channel deposit from the lending node.
제1항에 있어서, 거래 당사자 노드들이 중개 노드를 통해 P2P 거래하는 경우, 상기 중개 노드는 결제를 위한 대금에 대한 선지불을 수행하는 것을 특징으로 하며,
선지불을 위한 자본이 부족한 노드는 상기 대출 노드에게 대출 신청하여 대출 노드로부터 선지불을 위한 자본을 대출받도록 하여, 사용자간의 거래를 활성화시킬 수 있도록 구성된 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
The method of claim 1, wherein when the trading party nodes P2P transactions through an intermediary node, the intermediary node is characterized in that it performs prepayment for payment for payment,
A node that lacks capital for prepayment is based on the Blockchain Lightning Network, characterized in that it is configured to activate transactions between users by applying to the lender node for lending and borrowing capital for prepayment from the lender node. Payment system.
제1항에 있어서, 상기 참여 노드는,
자신의 신용 정보를 포함하는 트랜잭션을 생성하여 스마트 컨트랙트에 업로드하고,
대출이 필요한 경우, 스마트 컨트랙트를 열람하여 스마트 컨트랙트에 기록된 대출 노드의 대출 정보를 확인하고, 차용 노드(Borrower node)로서 대출 노드에게 대출 신청하는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
The method of claim 1, wherein the participating node,
Create a transaction containing your credit information and upload it to your smart contract,
When a loan is required, payment based on the blockchain lighting network, characterized by viewing the smart contract and checking the loan information of the loan node recorded in the smart contract, and applying for a loan to the loan node as a borrower node system.
제1항에 있어서, 상기 대출 노드는,
대출 정보를 포함하는 트랜잭션을 생성하고, 상기 트랜잭션을 포함하는 스마트 컨트랙트를 작성하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하고,
차용 노드로부터 대출 신청이 발생하면, 스마트 컨트랙트에 차용 노드에 대한 정보를 요청하고, 스마트 컨트랙트로부터 해당 차용 노드에 대한 정보를 담은 트랜잭션을 열람하고, 대출 노드의 대출 조건과 차용 노드의 신용 정보를 비교하여 확인하고, 차용 노드의 신용 정보가 대출 조건을 충족하는 경우 차용 노드에게 대출을 수행하는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
The method of claim 1, wherein the loan node,
Create a transaction containing the loan information, create a smart contract containing the transaction and record it on the blockchain according to a preset consensus algorithm,
When a loan request is generated from the borrowing node, request information about the borrowing node from the smart contract, view the transaction containing the information about the borrowing node from the smart contract, and compare the loan node's loan terms with the borrowing node's credit information Payment system based on the blockchain lightening network, characterized in that, when the credit information of the borrowing node satisfies the loan condition, the loan is made to the borrowing node.
제1항에 있어서, 상기 대출 노드의 대출 정보는,
대출 조건, 대출 가능 금액, 상환 일자, 대출 이자, 대출 수수료를 포함하는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
According to claim 1, The loan information of the loan node,
Payment system based on the blockchain lightning network, characterized by including loan terms, loanable amount, repayment date, loan interest, and loan fees.
제1항에 있어서, 상기 차용 노드의 신용 정보는,
신뢰도, 자본 정보, 대출 기록, 대출 노드와의 홉(Hop) 수를 포함하는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
The credit information of the borrowing node,
Payment system based on blockchain lightening network, characterized by including reliability, capital information, loan history, and number of hops with the lending node.
제1항에 있어서, 상기 거래 당사자 노드들은
채널 보증금을 예치하는 펀딩 트랜잭션(Funding Transaction)을 생성하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하고,
거래 당사자 노드간의 P2P 거래를 위한 P2P 결제 채널을 생성하고,
P2P 결제 채널을 통해 상기 P2P 거래의 과정에서 발생되는 복수의 마이크로 결제(micro payment)에 대한 모든 데이터를 채널에 기록하고 상기 P2P 거래가 종료되면 P2P 결제 채널을 닫고, 상기 채널에 기록된 모든 거래 내역 정보를 포함하는 단일의 Commitment 트랜잭션(Commitment Transaction)을 생성하고, 거래 당사자 노드들의 개인키로 상기 트랜잭션을 다중 서명하고 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
The method of claim 1, wherein the trading party nodes
Create a funding transaction to deposit the channel deposit and record it on the blockchain according to a preset consensus algorithm,
Create a P2P payment channel for P2P transactions between trading party nodes,
Through the P2P payment channel, all data for a plurality of micro payments generated in the process of the P2P transaction are recorded in the channel, and when the P2P transaction ends, the P2P payment channel is closed, and all transaction history information recorded in the channel Based on the Blockchain Lightning Network, characterized in that it generates a single Commitment Transaction that includes, multi-signs the transaction with the private key of the trading party nodes and records it on the blockchain according to a preset consensus algorithm. Payment system.
제7항에 있어서, 상기 채널 보증금은, 거래 당사자 노드들의 추후 거래 과정에서 악의적인 시도가 발생되는 경우 패널티로 사용되는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템. The payment system based on the Blockchain Lightning Network according to claim 7, wherein the channel deposit is used as a penalty when a malicious attempt occurs in a later transaction process of nodes of the trading party. 제2항에 있어서, 상기 중개 노드는 거래 당사자 노드들과 각각 결제 채널을 형성하고 있는 노드로서, 거래 당사자 노드들로부터 사전 설정된 기준 홉(Hop)수 이하이며 수수료가 가장 낮은 노드인 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 하는 결제 시스템.The intermediary node of claim 2, wherein the intermediary node is a node that forms a payment channel with each of the trading party nodes, and is a node having a lower commission than the preset number of reference hops from the trading party nodes. Payment system based on Blockchain Lightning Network. 다수의 참여 노드들과 대출 노드들을 구비하는 블록체인 라이트닝 네트워크에서의 결제 방법에 있어서,
(a) 대출 노드가 대출 정보를 포함하는 트랜잭션을 생성하고, 상기 트랜잭션을 포함하는 스마트 컨트랙트를 작성하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하는 단계;
(b) 참여 노드들 중 거래 당사자 노드들이 자신의 신용 정보를 포함하는 트랜잭션을 생성하여 스마트 컨트랙트에 업로드하고, 대출이 필요한 경우, 스마트 컨트랙트를 열람하여 스마트 컨트랙트에 기록된 대출 노드의 대출 정보를 확인하고, 차용 노드(Borrower node)로서 대출 노드에게 대출 신청하는 단계;
(c) 대출 노드는, 차용 노드로부터 대출 신청이 발생하면, 스마트 컨트랙트에 차용 노드에 대한 정보를 요청하고, 스마트 컨트랙트로부터 해당 차용 노드에 대한 정보를 담은 트랜잭션을 열람하고, 대출 노드의 대출 조건과 차용 노드의 신용 정보를 비교하여 확인하고, 차용 노드의 신용 정보가 대출 조건을 충족하는 경우 차용 노드에게 대출을 수행하는 단계;
(d) 참여 노드들 중 거래 당사자 노드들이 P2P(peer to peer) 거래를 위하여 채널 보증금을 예치하고 P2P(peer to peer) 결제 채널을 생성하고, 거래 당사자 노드들이 P2P 결제 채널을 통해 P2P 거래를 수행하는 단계;
를 구비하여, 블록체인 라이트닝 네트워크에서 사용자간의 거래를 활성화시킬 수 있도록 구성된 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 방법.
In a payment method in a blockchain lightning network having a number of participating nodes and loan nodes,
(a) the loan node creates a transaction including the loan information, writes a smart contract containing the transaction and records it in the blockchain according to a preset consensus algorithm;
(b) Among the participating nodes, the trading partner nodes create a transaction that includes their credit information and upload it to the smart contract, and if a loan is required, view the smart contract to check the loan information of the loan node recorded in the smart contract And applying for a loan to a loan node as a borrower node;
(c) The loan node, when a loan request from the borrow node occurs, requests information about the borrow node from the smart contract, reads the transaction containing the information about the borrow node from the smart contract, and checks the loan node's loan conditions and Comparing and verifying the credit information of the borrowing node and performing a loan to the borrowing node when the crediting information of the borrowing node satisfies the loan condition;
(d) Among the participating nodes, the trading party nodes deposit a channel deposit for peer to peer (P2P) transactions, create a peer to peer (P2P) payment channel, and the trading partner nodes perform P2P transactions through the P2P payment channel. To do;
A payment method based on the blockchain lightning network, characterized by being configured to enable transactions between users in the blockchain lightning network.
제10항에 있어서, 상기 블록체인 라이트닝 네트워크를 기반으로 한 결제 방법은,
(e) 거래 당사자 노드들이 중개 노드를 통해 P2P 거래하는 경우, 상기 중개 노드는 결제를 위한 대금에 대한 선지불을 위한 자본이 부족하면, 상기 대출 노드에게 대출 신청하여 대출 노드로부터 선지불을 위한 자본을 대출받는 단계; 및
(f) 상기 중개 노드는 대금에 대한 선지불을 수행하고 거래 당사자 노드들의 거래를 중개하는 단계;
를 더 구비하는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
The method of claim 10, wherein the payment method based on the blockchain lightning network,
(e) When the trading party nodes trade P2P through an intermediary node, if the intermediary node does not have enough capital for prepayment for payment for payment, the intermediary node applies for a loan to the lender node and capital for prepayment from the lender Receiving a loan; And
(f) the intermediary node performing prepayment for payment and brokering transactions of the trading party nodes;
Payment system based on the blockchain lightning network, characterized in that it further comprises.
제1항에 있어서, 상기 (d) 단계는,
거래 당사자 노드들이 채널 보증금을 예치하는 펀딩 트랜잭션(Funding Transaction)을 생성하여 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하고,
거래 당사자 노드간의 P2P 거래를 위한 P2P 결제 채널을 생성하고,
P2P 결제 채널을 통해 상기 P2P 거래의 과정에서 발생되는 복수의 마이크로 결제(micro payment)에 대한 모든 데이터를 채널에 기록하고 상기 P2P 거래가 종료되면 P2P 결제 채널을 닫고, 상기 채널에 기록된 모든 거래 내역 정보를 포함하는 단일의 Commitment 트랜잭션(Commitment Transaction)을 생성하고, 거래 당사자 노드들의 개인키로 상기 트랜잭션을 다중 서명하고 사전 설정된 합의 알고리즘에 따라 블록체인에 기록하는 것을 특징으로 하는 블록체인 라이트닝 네트워크를 기반으로 한 결제 시스템.
The method of claim 1, wherein the step (d),
The trading party nodes create a funding transaction to deposit the channel deposit and record it on the blockchain according to a preset consensus algorithm,
Create a P2P payment channel for P2P transactions between trading party nodes,
Through the P2P payment channel, all data for a plurality of micro payments generated in the process of the P2P transaction are recorded in the channel, and when the P2P transaction ends, the P2P payment channel is closed, and all transaction history information recorded in the channel Based on the Blockchain Lightning Network, characterized in that it generates a single Commitment Transaction that includes, multi-signs the transaction with the private key of the trading party nodes and records it on the blockchain according to a preset consensus algorithm. Payment system.
KR1020190000224A 2019-01-02 2019-01-02 Payment system and payment method based on a blockchain lightning network KR20200084162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190000224A KR20200084162A (en) 2019-01-02 2019-01-02 Payment system and payment method based on a blockchain lightning network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190000224A KR20200084162A (en) 2019-01-02 2019-01-02 Payment system and payment method based on a blockchain lightning network

Publications (1)

Publication Number Publication Date
KR20200084162A true KR20200084162A (en) 2020-07-10

Family

ID=71604054

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190000224A KR20200084162A (en) 2019-01-02 2019-01-02 Payment system and payment method based on a blockchain lightning network

Country Status (1)

Country Link
KR (1) KR20200084162A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101628007B1 (en) 2015-04-07 2016-06-13 주식회사 코인플러그 System for dealing a digital currency with block chain
KR20180079847A (en) 2017-01-03 2018-07-11 아주대학교산학협력단 Person to person trading method and apparatus by using blockchain and distributed hash table

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101628007B1 (en) 2015-04-07 2016-06-13 주식회사 코인플러그 System for dealing a digital currency with block chain
KR20180079847A (en) 2017-01-03 2018-07-11 아주대학교산학협력단 Person to person trading method and apparatus by using blockchain and distributed hash table

Similar Documents

Publication Publication Date Title
JP7139499B2 (en) A method for secure peer-to-peer communication on the blockchain
Swan Anticipating the economic benefits of blockchain
US20210065293A1 (en) Distributed ledger lending
US20190392437A1 (en) Real-time net settlement by distributed ledger system
CN115136168A (en) System and method for providing a blockchain recording process
Swanson Consensus-as-a-service: a brief report on the emergence of permissioned, distributed ledger systems
US10937111B2 (en) Managing energy purchase agreements on a blockchain
US20180114205A1 (en) Distributed ledger system for providing aggregate tracking and threshold triggering
CN110333948A (en) Virtual resource allocation method and apparatus based on block chain
Ahmad et al. Blockchain Implementation in Financial Sector and Cyber Security System
CN106326771A (en) Storage method and clearing system
US20200160328A1 (en) Lightweight blockchain supported transaction platform with digital bill optimizations and denominations
CN110458561B (en) Method and device for realizing confidential transaction in block chain network
US11392906B2 (en) Cryptographic token with separate circulation groups
Li et al. Design principles and best practices of central bank digital currency
CN111640002A (en) Block chain-based mortgage loan method and device
JP6544695B2 (en) Virtual currency management program and method
US20230013119A1 (en) Tainted asset marker management
Bhat et al. A probabilistic analysis on crypto-currencies based on blockchain
Hefny et al. Open Banking API Framework to Improve the Online Transaction between Local Banks in Egypt Using Blockchain Technology
KR20200084162A (en) Payment system and payment method based on a blockchain lightning network
KR102332814B1 (en) The block chain system including a block chain structure for data self-sovereign identity
KR102186999B1 (en) Method for providing financial service associated with bank account in consortium blockchain network
Arora et al. Blockchain empowered framework for peer to peer lending
Uday et al. Energy trading through blockchain

Legal Events

Date Code Title Description
E601 Decision to refuse application