Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7318427B2 - Trading Systems, Transaction Processing Programs and Trading Methods - Google Patents
[go: Go Back, main page]

JP7318427B2 - Trading Systems, Transaction Processing Programs and Trading Methods - Google Patents

Trading Systems, Transaction Processing Programs and Trading Methods Download PDF

Info

Publication number
JP7318427B2
JP7318427B2 JP2019160747A JP2019160747A JP7318427B2 JP 7318427 B2 JP7318427 B2 JP 7318427B2 JP 2019160747 A JP2019160747 A JP 2019160747A JP 2019160747 A JP2019160747 A JP 2019160747A JP 7318427 B2 JP7318427 B2 JP 7318427B2
Authority
JP
Japan
Prior art keywords
transaction
currency
blockchain
refund
transfer
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2019160747A
Other languages
Japanese (ja)
Other versions
JP2021039564A (en
Inventor
真吾 藤本
健 鎌倉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2019160747A priority Critical patent/JP7318427B2/en
Publication of JP2021039564A publication Critical patent/JP2021039564A/en
Application granted granted Critical
Publication of JP7318427B2 publication Critical patent/JP7318427B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Description

本発明は、取引システムなどに関する。 The present invention relates to trading systems and the like.

近年では、仮想通貨ブームを受け、中央集権でない分散台帳管理技術として、ブロックチェーンの有用性には大きな期待が持たれている。仮想通貨は、暗号技術で保護され、受け渡しが容易である反面、政府が発行する兌換通貨と比べると、利用できる店舗が限られるなど不利な点がある。 In recent years, following the virtual currency boom, there are great expectations for the usefulness of blockchain as a non-centralized distributed ledger management technology. Virtual currencies are protected by cryptographic technology and can be easily transferred, but they have disadvantages, such as limited stores where they can be used compared to government-issued convertible currencies.

また、特定のコミュニティ内での流通を意図した「地域通貨」がある。かかる「地域通貨」は、地域経済の振興策として導入されるが、その目的を果たすためには利用できるコミュニティが限られるというデメリットを超えるインセンティブの付加が必要となる。 There is also a "community currency" intended for circulation within a specific community. Such "community currency" is introduced as a measure to promote the local economy, but in order to achieve its purpose, it is necessary to add an incentive that goes beyond the disadvantage of being limited to the community that can use it.

「地域通貨」には、特定地域での消費活動促進を目的に、地方自治体が発行する「地域振興券」があり、利用条件を限定的にする代わりに、額面価値より安価に頒布される。 "Regional currency" includes "regional promotion coupons" issued by local governments for the purpose of promoting consumption activities in specific regions, and instead of restricting usage conditions, they are distributed at a lower price than the face value.

ところが、地域振興券を受け取る店舗では、利用条件や偽造券などのチェックを行うことになり、店舗の負担となっている。また、地域振興券を受け取る店舗では、おつりを返さないことが多いので、利用者は地域振興券の購入に消極的になっているのが現状である。 However, the store that accepts the regional promotion ticket has to check the terms of use and the counterfeit ticket, which is a burden on the store. In addition, the stores that accept regional promotion tickets often do not return change, so the current situation is that users are reluctant to purchase regional promotion tickets.

特開2012-64005号公報JP 2012-64005 A 特開2017-204070号公報JP 2017-204070 A

ここで、地域振興券をブロックチェーンで実現される「地域通貨」に置き換えることが考えられる。しかしながら、地域振興券をブロックチェーンで実現される地域通貨に置き換える場合、ブロックチェーンでは、商品購入時に資産価値の移動だけが検証される仕組みのため、利用条件などのチェックを資産移動の検証プロセスで実現するのは難しいという問題がある。 Here, it is conceivable to replace regional promotion tickets with “regional currency” realized by blockchain. However, when replacing the regional promotion ticket with the local currency realized by the blockchain, the blockchain only verifies the movement of the asset value at the time of product purchase, so the usage conditions etc. are checked in the verification process of the asset movement. The problem is that it is difficult to implement.

1つの側面では、ブロックチェーンで実現される地域通貨による利用者の購買促進の仕組みを提供することを目的とする。 In one aspect, the purpose is to provide a mechanism for promoting purchases by users using community currency realized by blockchain.

1つの案では、取引システムは、互いに異なる通貨の取引を記録する複数のブロックチェーンと、前記複数のブロックチェーンの取引を監視するサーバと、を有する。前記サーバは、第1のブロックチェーンの通貨から第2のブロックチェーンの通貨への資産移転の取引依頼に応答して、前記第2のブロックチェーンに対して変換レートに従った入金処理を実行する第1の実行部と、入金した通貨を用いた購買取引の検出に応答して、前記第1のブロックチェーンにおいて前記購買取引の形態に応じた額の払い戻しを実行する第2の実行部と、を有する。 In one scheme, a trading system includes multiple blockchains that record transactions in different currencies, and a server that monitors transactions on the multiple blockchains. The server responds to a transaction request for asset transfer from the currency of the first blockchain to the currency of the second blockchain, and executes deposit processing according to the conversion rate to the second blockchain. a first execution unit, and a second execution unit that, in response to detection of a purchase transaction using the deposited currency, refunds an amount corresponding to the form of the purchase transaction in the first blockchain; have

1つの態様によれば、ブロックチェーンで実現される地域通貨による利用者の購買促進の仕組みを提供できる。 According to one aspect, it is possible to provide a mechanism for promoting purchases by users using community currency realized by blockchain.

図1は、実施例1に係る取引システムの構成を示す機能ブロック図である。FIG. 1 is a functional block diagram showing the configuration of a trading system according to the first embodiment. 図2は、実施例1に係る条件DBの一例を示す図である。FIG. 2 is a diagram illustrating an example of a condition DB according to the first embodiment; 図3は、交換元BCの取引データの一例を示す図である。FIG. 3 is a diagram showing an example of transaction data of an exchange source BC. 図4は、交換先BCの取引データの一例を示す図である。FIG. 4 is a diagram showing an example of transaction data of exchange destination BC. 図5は、実施例1に係る取引処理の流れの一例を示す図である。FIG. 5 is a diagram illustrating an example of the flow of transaction processing according to the first embodiment. 図6は、実施例1に係るスマートコントラクト実行処理の流れの一例を示す図である。FIG. 6 is a diagram illustrating an example of the flow of smart contract execution processing according to the first embodiment. 図7は、実施例1に係るサーバが実行する取引処理のフローチャートの一例を示す図である。FIG. 7 is a diagram illustrating an example of a flowchart of transaction processing executed by the server according to the first embodiment; 図8は、実施例2に係るスマートコントラクト実行処理の流れの一例を示す図である。FIG. 8 is a diagram illustrating an example of the flow of smart contract execution processing according to the second embodiment. 図9は、実施例2に係るサーバが実行する取引処理のフローチャートの一例を示す図である。FIG. 9 is a diagram illustrating an example of a flowchart of transaction processing executed by the server according to the second embodiment. 図10は、取引処理プログラムを実行するコンピュータの一例を示す図である。FIG. 10 is a diagram showing an example of a computer that executes a transaction processing program.

以下に、本願の開示する取引システム、取引処理プログラムおよび取引方法の実施例を図面に基づいて詳細に説明する。なお、実施例によりこの発明が限定されるものではない。 Hereinafter, embodiments of the transaction system, transaction processing program, and transaction method disclosed in the present application will be described in detail based on the drawings. In addition, this invention is not limited by an Example.

[実施例1に係る取引システムの構成]
図1は、実施例1に係る取引システムの構成を示す機能ブロック図である。図1に示す取引システム9は、一方のブロックチェーン(BC)で管理され、現金化できる一般通貨と他方のBCで管理される地域通貨とを交換し、地域通貨で実行される取引を管理する。かかる取引システム9に含まれるサーバ1は、互いに異なる通貨の取引を記録する複数のブロックチェーン(BC)の取引を監視する。そして、サーバ1は、一方のBCの一般通貨から他方のBCの地域通貨への価値を移転する価値移転の取引依頼に応答して、他方のBCにおいて変換レートに従った入金処理を実行する。そして、サーバ1は、入金した地域通貨を用いた購買が行われた購買取引の検出に応答して、一方のBCにおいて当該購買取引の形態に応じたキャッシュバックを実行するとともに、決済を行う。ここでいう一般通貨とは、現金との兌換性があり、流通性の高い仮想通貨のことをいう。ここでいう地域通貨とは、地域に限定されている仮想通貨であり、地域振興券に代わる通貨のことをいう。すなわち、サーバ1を含む取引システム9は、地域振興券に代わる地域通貨で購買取引がされた場合に、購買取引の形態を判別して、判別した結果に応じて購買したユーザにキャッシュバックすることで、ユーザの購買意欲を高める仕組みを提供する。
[Configuration of transaction system according to embodiment 1]
FIG. 1 is a functional block diagram showing the configuration of a trading system according to the first embodiment. The transaction system 9 shown in FIG. 1 is managed by one blockchain (BC), exchanges a common currency that can be cashed and a community currency managed by the other BC, and manages transactions executed in the community currency. . A server 1 included in such a transaction system 9 monitors transactions of a plurality of blockchains (BC) that record transactions in different currencies. Then, the server 1, in response to a value transfer transaction request for transferring value from the general currency of one BC to the community currency of the other BC, executes deposit processing according to the conversion rate in the other BC. Then, in response to the detection of a purchase transaction in which the purchase is made using the deposited local currency, the server 1 executes cashback according to the form of the purchase transaction and settles the account at one of the BCs. The general currency referred to here is a virtual currency that is convertible into cash and has high circulation. The term "regional currency" as used herein means a virtual currency that is limited to a region, and is a currency that replaces regional promotion coupons. That is, the transaction system 9 including the server 1 discriminates the form of the purchase transaction when the purchase transaction is made in the local currency instead of the regional promotion coupon, and cash backs the user who made the purchase according to the discrimination result. In this way, we provide a mechanism to increase the user's willingness to purchase.

取引システム9は、サーバ1と、複数のBCのP2Pネットワーク3,4とを有する。サーバ1は、複数のBCのP2Pネットワーク3,4を用いた取引のスマートコントラクトを実行する。ここでいうスマートコントラクトとは、資産の預託を受けて通貨の交換規則に沿った運用がなされるように振る舞うプログラムのことをいい、特に、一般通貨から地域振興券に代わる地域通貨への通貨の交換後に地域通貨での取引を円滑に行うように振る舞う。なお、複数のBCのP2Pネットワーク3,4は、以降、それぞれ「交換元BC3」,「交換先BC4」というものとする。 The trading system 9 has a server 1 and a P2P network 3,4 of a plurality of BCs. The server 1 executes a smart contract for transactions using P2P networks 3, 4 of multiple BCs. The smart contract here refers to a program that behaves in such a way that it receives deposits of assets and behaves in accordance with currency exchange rules. After the exchange, act to conduct transactions in community currency smoothly. The P2P networks 3 and 4 of the plurality of BCs are hereinafter referred to as "exchange source BC 3" and "exchange destination BC 4", respectively.

交換元BC3は、交換元(課金トークン)BCのP2Pネットワークのことをいう。例えば、交換元BC3は、一般通貨を管理するBCのP2Pネットワークに参加する複数のノードを含む。それぞれのノードには、一般通貨の取引履歴が登録される。あるノードが取引データを記載したトランザクションを交換元(課金トークン)BCのP2Pネットワークにブロードキャストすると、そのトランザクションを含むブロックが生成されて、生成されたブロックがそれぞれのノードのブロックチェーンの末尾に追加される。また、交換元BC3は、第1の取引監視部31を含む。 The exchange source BC3 refers to the P2P network of the exchange source (billing token) BC. For example, source BC3 includes multiple nodes participating in a P2P network of BCs that manage common currency. Transaction history of general currency is registered in each node. When a node broadcasts a transaction containing transaction data to the P2P network of the exchange source (charging token) BC, a block containing the transaction is generated, and the generated block is added to the end of each node's blockchain. be. The exchange source BC3 also includes a first transaction monitoring unit 31 .

第1の取引監視部31は、交換元BC3での取引(資産移転)を監視する。例えば、ユーザが交換元BC3の移転元口座にある一般通貨の保有資産を交換先BC4の自身の移転先口座に移転する場合に、移転元口座の保有資産を、スマートコントラクトが管理する「預託口座」に送金する。第1の取引監視部31は、「預託口座」を宛先とした送金取引を検出した場合には、預託口座への資産移転をサーバ1の後述する代金預託受付部11に通知する。 The first transaction monitoring unit 31 monitors transactions (asset transfers) at the exchange source BC3. For example, when the user transfers the assets held in general currency in the transfer source account of the exchange source BC3 to his own transfer destination account of the exchange destination BC4, the assets held in the transfer source account are transferred to the "deposit account" managed by the smart contract. ”. When the first transaction monitoring unit 31 detects a remittance transaction addressed to the “deposit account”, the first transaction monitoring unit 31 notifies the money deposit receiving unit 11 (to be described later) of the server 1 of the asset transfer to the deposit account.

交換先BC4は、交換先(地域振興コイン)BCのP2Pネットワークのことをいう。例えば、交換先BC4は、地域通貨を管理するBCのP2Pネットワークに参加する複数のノードを含む。それぞれのノードには、地域通貨の取引履歴が登録される。あるノードが取引データを記載したトランザクションを交換先(地域振興コイン)BCのP2Pネットワークにブロードキャストすると、そのトランザクションを含むブロックが生成されて、生成されたブロックがそれぞれのノードのブロックチェーンの末尾に追加される。また、交換先BC4は、第2の取引監視部41を含む。 The exchange destination BC4 refers to the P2P network of the exchange destination (regional promotion coin) BC. For example, the exchange destination BC4 includes multiple nodes participating in a P2P network of BCs that manage local currency. Transaction histories of local currency are registered in each node. When a node broadcasts a transaction containing transaction data to the P2P network of the exchange destination (regional promotion coin) BC, a block containing the transaction is generated, and the generated block is added to the end of the blockchain of each node. be done. The exchange destination BC 4 also includes a second transaction monitoring unit 41 .

第2の取引監視部41は、交換先BC4での地域通貨での取引(資産移転)を監視する。例えば、第2の取引監視部41は、監視対象の地域通貨での取引を検出した場合には、監視対象に関する地域通貨での資産移転の検出通知をサーバ1の後述するスマートコントラクト実行部14に通知する。 The second transaction monitoring unit 41 monitors transactions (asset transfers) in local currency at the exchange destination BC4. For example, when the second transaction monitoring unit 41 detects a transaction in the local currency to be monitored, the second transaction monitoring unit 41 notifies the smart contract execution unit 14 of the server 1 of the detection of the asset transfer in the local currency related to the monitoring target. Notice.

また、第2の取引監視部41は、サーバ1からの依頼に応じて、監視すべき対象の取引の移転を監視する。 Also, the second transaction monitoring unit 41 monitors the transfer of the transaction to be monitored in response to a request from the server 1 .

サーバ1は、制御部10と、記憶部20とを有する。 The server 1 has a control section 10 and a storage section 20 .

制御部10は、CPU(Central Processing Unit)などの電子回路に対応する。そして、制御部10は、各種の処理手順を規定したプログラムや制御データを格納するための内部メモリを有し、これらによって種々の処理を実行する。制御部10は、代金預託受付部11、交換貨幣払出部12、スマートコントラクト実行部13、返金額送金指示部14および決済額送金指示部15を有する。なお、代金預託受付部11および交換貨幣払出部12は、第1の実行部の一例である。スマートコントラクト実行部13は、第2の実行部の一例である。 The control unit 10 corresponds to an electronic circuit such as a CPU (Central Processing Unit). The control unit 10 has an internal memory for storing programs defining various processing procedures and control data, and executes various processing using these. The control unit 10 has a deposit acceptance unit 11 , a currency exchange unit 12 , a smart contract execution unit 13 , a refund amount remittance instruction unit 14 and a settlement amount remittance instruction unit 15 . Note that the money deposit reception unit 11 and the exchange money dispensing unit 12 are examples of the first execution unit. The smart contract execution unit 13 is an example of a second execution unit.

記憶部20は、例えば、RAM(Random Access Memory)、フラッシュメモリ(Flash Memory)などの半導体メモリ素子、または、ハードディスク、光ディスクなどの記憶装置である。記憶部20は、条件DB(DataBase)21を有する。 The storage unit 20 is, for example, a semiconductor memory device such as a RAM (Random Access Memory) or a flash memory, or a storage device such as a hard disk or an optical disk. The storage unit 20 has a condition DB (DataBase) 21 .

条件DB21は、移転取引があったときにスマートコントラクトで用いられる監視対象ごとの条件を管理する。なお、条件DB21は、第2の取引監視部41によって追加および更新される。ここで、条件DB21の一例を、図2を参照して説明する。 The condition DB 21 manages conditions for each monitoring target used in the smart contract when there is a transfer transaction. Note that the condition DB 21 is added and updated by the second transaction monitoring unit 41 . An example of the condition DB 21 will now be described with reference to FIG.

図2は、実施例1に係る条件DBの一例を示す図である。図2に示すように、条件DB21は、監視対象口座、移転取引TxID、預託量、返金期限、許諾使途および許諾譲渡先を含む。 FIG. 2 is a diagram illustrating an example of a condition DB according to the first embodiment; As shown in FIG. 2, the condition DB 21 includes monitored account, transfer transaction TxID, deposit amount, refund deadline, permitted use, and permitted transfer destination.

監視対象口座は、監視対象のユーザの口座情報を示す。移転取引TxIDは、資産の移転取引において仮想通貨を送金する際に生成されるトランザクションのIDを示す。預託量は、スマートコントラクトが管理化にある「預託口座」に預託された代金の額に対する量を示す。 The monitored account indicates the account information of the monitored user. The transfer transaction TxID indicates the ID of the transaction generated when the virtual currency is transferred in the asset transfer transaction. The deposit amount indicates the amount of money deposited in the "deposit account" in which the smart contract is managed.

返金期限は、ユーザが地域通貨を用いて購買した際に所定の代金が返金(キャッシュバック)される期限を示し、予め返金ルールとして定められた規則に則って決められる。返金(キャッシュバック)は、ユーザの購買意欲を引き出す誘因(インセンティブ)として行われる。返金期限および返金額は、返金ルールによって決められる。ここでいう返金ルールは、例えば、取引の購入先、取引の対象(例えば、物やサービス)、取引の時期などの取引の形態から構成される。取引の時期を用いた返金ルールの一例として、返金期限が、一般通貨から地域通貨へ交換された交換時点から一定期間後の時点であるとする。地域通貨を用いて購買した時点(取引の時期)が返金期限以前であれば、返金されるが、返金額は、購買した時点が遅くなれば少なくなるようにする。すなわち、返金額は、購買した時点が返金期限に近くなる程少なくなる。 The refund deadline indicates the deadline for a refund (cashback) of a predetermined price when the user makes a purchase using the local currency, and is determined in accordance with a rule set in advance as a refund rule. Refund (cashback) is performed as an incentive (incentive) to draw out the user's willingness to purchase. The refund period and refund amount are determined by the refund rules. The refund rule referred to here is composed of, for example, the form of the transaction such as the purchaser of the transaction, the object of the transaction (for example, goods or services), and the timing of the transaction. As an example of a refund rule that uses transaction timing, assume that the refund deadline is a certain period of time after the conversion from the general currency to the community currency. If the time of purchase (time of transaction) using local currency is before the refund deadline, the refund amount will be less if the time of purchase is later. That is, the refund amount decreases as the point of purchase is closer to the refund deadline.

許諾使途は、地域通貨の利用が許諾される使途を示す。一例として、許諾使途には、商店街内の全対象を示す「商店街内」、商店街内の許諾される商店や商店街内の許諾される対象(例えば、物やサービス)が設定される。許諾譲渡先は、地域通貨の譲渡が許諾される譲渡先を示す。一例として、許諾譲渡先は、親子、配偶者や兄弟などの2親等までの親族の名前が設定されても良い。 Permitted use indicates the use for which the use of Community Currency is permitted. As an example, the permitted usage is set as "in the shopping district" indicating all objects in the shopping district, licensed shops in the shopping district, and licensed objects (e.g., goods and services) in the shopping district. . The permitted transferee indicates a transferee to which the local currency is permitted to be transferred. As an example, the names of relatives up to the second degree, such as parent and child, spouse, and siblings, may be set as permitted transferees.

一例として、監視対象口座が「0x223587」である場合に、移転取引TxIDとして「0x33fa5662」、預託量として「30,000」を記憶している。加えて、返金期限として「2019/01/10」、許諾使途として「商店街内」、許諾譲渡先として「花子、次郎」を記憶している。 As an example, when the monitored account is "0x223587", "0x33fa5662" is stored as the transfer transaction TxID and "30,000" is stored as the deposit amount. In addition, "2019/01/10" is stored as the refund deadline, "in the shopping district" as the permitted usage, and "Hanako, Jiro" as the permitted transfer destination.

図1に戻って、代金預託受付部11は、代金の預託を監視する。例えば、代金預託受付部11は、交換元BC3の第1の取引監視部31から預託口座への資産移転の通知を受け取る。代金預託受付部11は、交換貨幣払出部12に対して交換先BC4に対する払い出し依頼を要求する。 Returning to FIG. 1, the money deposit reception unit 11 monitors the deposit of money. For example, the money deposit receiving unit 11 receives a notification of asset transfer to the deposit account from the first transaction monitoring unit 31 of the exchange source BC3. The money deposit acceptance unit 11 requests the exchange money dispensing unit 12 to issue a withdrawal request to the exchange destination BC 4 .

交換貨幣払出部12は、交換貨幣の払い出しを依頼する。例えば、交換貨幣払出部12は、代金預託受付部11から払い出し依頼の要求を受け取る。交換貨幣払出部12は、交換レートに従ったコインの払い出し処理を行うべく、交換業者の口座からユーザの移転先口座へ交換貨幣(地域通貨)での資産の移転を交換業者に対して指示する。すなわち、交換貨幣払出部12は、一般通貨から地域通貨への価値移転の取引を交換業者に対して依頼する。 The exchange money payout unit 12 requests the payout of exchange money. For example, the exchange money payout unit 12 receives a payout request from the money deposit accepting unit 11 . The exchange money payout unit 12 instructs the exchange company to transfer assets in exchange money (local currency) from the account of the exchange company to the transfer destination account of the user in order to pay out coins according to the exchange rate. . That is, the exchange money payout unit 12 requests the exchange trader to conduct a value transfer transaction from the general currency to the community currency.

加えて、交換貨幣払出部12は、交換先BC4の第2の取引監視部41に対して、ユーザの移転先口座を監視対象とする資産移転の監視を依頼する。 In addition, the exchange money dispensing unit 12 requests the second transaction monitoring unit 41 of the exchange destination BC 4 to monitor the asset transfer targeting the user's transfer destination account.

スマートコントラクト実行部13は、スマートコントラクトを実行する。例えば、スマートコントラクト実行部13は、交換先BC4の第2の取引監視部41から地域通貨での資産移転の検出通知を受け取る。スマートコントラクト実行部13は、取引の購入先、取引の対象または取引の時期などの取引の形態を含む返金ルールに従って、条件DB21を参照して、取引に応じた払い戻しの額と決済額を決定する。一例として、スマートコントラクト実行部13は、返金ルールが取引の対象(条件DB21の許諾使途に対応)および取引の時期に関するルールである場合、取引の対象が返金ルールに合致するとき、取引の時期に従った払い戻しの額の計算を行う。スマートコントラクト実行部13は、交換時点(入金処理の時点)から返金期限までの間で、取引の時期の時間の経過とともに払い戻し(キャッシュバック)の額を減じる。スマートコントラクト実行部13は、取引の時期が返金期限を超えると払い戻しの額がゼロになるように払い戻しの額を決定する。そして、スマートコントラクト実行部13は、取引の対象が返金ルールに合致しないとき、取引の時期に従った払い戻しの額の計算を行わない。なお、返金ルールの内容は、一例であって、これに限定されるものではない。返金ルールに従った払い戻しの額の計算は、一例であって、これに限定されるものではない。 The smart contract execution unit 13 executes smart contracts. For example, the smart contract execution unit 13 receives a detection notification of asset transfer in local currency from the second transaction monitoring unit 41 of the exchange destination BC4. The smart contract execution unit 13 refers to the condition DB 21 according to the refund rule including the type of transaction such as the purchaser of the transaction, the target of the transaction, or the timing of the transaction, and determines the refund amount and settlement amount according to the transaction. . As an example, if the refund rule is a rule relating to the transaction target (corresponding to the permitted usage of the condition DB 21) and the timing of the transaction, the smart contract execution unit 13 may set Calculate the refund amount accordingly. The smart contract execution unit 13 reduces the amount of refund (cashback) as time elapses during the transaction period from the time of exchange (time of payment processing) to the deadline for refund. The smart contract execution unit 13 determines the amount of refund so that the amount of refund becomes zero when the timing of the transaction exceeds the refund deadline. Then, the smart contract execution unit 13 does not calculate the refund amount according to the timing of the transaction when the transaction target does not match the refund rule. Note that the content of the refund rule is an example, and is not limited to this. The calculation of the refund amount according to the refund rule is an example and is not limited to this.

返金額送金指示部15は、返金額の送金を交換元BC3へ指示する。例えば、返金額送金指示部15は、スマートコントラクト実行部13によって決定された払い戻し額の一般通貨での送金を交換元BC3へ指示する。この後、交換元BC3では、一般通貨での払い戻し額がスマートコントラクトの預託口座からユーザの移転元口座へ送金される。 The refund amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the refund amount. For example, the refund amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the refund amount determined by the smart contract execution unit 13 in general currency. After this, at the exchange source BC3, the refund amount in common currency is transferred from the deposit account of the smart contract to the transfer source account of the user.

決済額送金指示部15は、決済額の送金を交換元BC3へ指示する。例えば、決済額送金指示部15は、スマートコントラクト実行部13によって決定された決済額の一般通貨での送金を交換元BC3へ指示する。この後、交換元BC3では、一般通貨での決済額がスマートコントラクトの預託口座から交換業者の決済用口座へ送金される。 The settlement amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the settlement amount. For example, the settlement amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the settlement amount determined by the smart contract execution unit 13 in general currency. Thereafter, at the exchange source BC3, the settlement amount in the general currency is transferred from the deposit account of the smart contract to the settlement account of the exchange company.

[取引データの一例]
ここで、交換元BC3の取引データの一例を、図3を参照して説明する。図3は、交換元BCの取引データの一例である。図3に示すように、取引データは、取引ID、タイムスタンプ、送金元、送金先、送金額、電子署名を含む。取引IDは、資産の移転取引において一般通貨を送金する際のトランザクションのIDを示す。取引IDは、条件DB21の移転取引TxIDに対応する。タイムスタンプは、取引があった時刻を示す。送金元は、送金したユーザの口座情報を示す。送金先は、送金した先の口座情報を示す。送金額は、送金した、一般通貨での額を示す。かかる取引データを記載したトランザクションを含むブロックが、交換元BC3内のそれぞれのノードのブロックチェーンに取引履歴として追加される。
[Example of transaction data]
Here, an example of transaction data of the exchange source BC3 will be described with reference to FIG. FIG. 3 is an example of transaction data of the exchange source BC. As shown in FIG. 3, transaction data includes transaction ID, time stamp, remittance source, remittance destination, remittance amount, and electronic signature. The transaction ID indicates the ID of the transaction when remittance of general currency in asset transfer transaction. Transaction ID corresponds to transfer transaction TxID of condition DB 21 . Timestamp indicates the time of transaction. The remittance source indicates the account information of the user who made the remittance. The remittance destination indicates the account information of the remittance destination. The remittance amount indicates the remitted amount in general currency. A block containing a transaction describing such transaction data is added as a transaction history to the blockchain of each node in the exchange source BC3.

また、交換先BC4の取引データの一例を、図4を参照して説明する。図4は、交換先BCの取引データの一例である。図4に示すように、取引データは、取引ID、タイムスタンプ、送金元、早期先、送金額、電子署名を含む。取引IDは、資産の移転取引において地域通貨を送金する際のトランザクションのIDを示す。取引IDは、条件DB21の移転取引TxIDに対応する。タイムスタンプは、取引があった時刻を示す。送金元は、送金したユーザの口座情報を示す。送金先は、送金した先の口座情報を示す。送金額は、送金した、地域通貨での額を示す。かかる取引データを記載したトランザクションを含むブロックが、交換先BC4内のそれぞれのノードのブロックチェーンに取引履歴として追加される。 Also, an example of transaction data of the exchange destination BC4 will be described with reference to FIG. FIG. 4 is an example of transaction data of exchange destination BC. As shown in FIG. 4, the transaction data includes transaction ID, time stamp, remittance source, early destination, remittance amount, and electronic signature. The transaction ID indicates the ID of the transaction when transferring the local currency in the asset transfer transaction. Transaction ID corresponds to transfer transaction TxID of condition DB 21 . Timestamp indicates the time of transaction. The remittance source indicates the account information of the user who made the remittance. The remittance destination indicates the account information of the remittance destination. The remittance amount indicates the remitted amount in local currency. A block containing a transaction describing such transaction data is added as a transaction history to the blockchain of each node in the exchange destination BC4.

[取引処理の流れ]
図5は、実施例1に係る取引処理の流れの一例を示す図である。なお、図5では、交換元BC3で使用する一般通貨(課金トークン)の単位を「ポーション」というものとする。一般通貨のコインを課金トークンという場合がある。交換先BC4で使用する地域通貨(地域振興コイン)の単位を「コイン」というものとする。地域通貨のコインを地域振興コインという場合がある。
[Flow of transaction processing]
FIG. 5 is a diagram illustrating an example of the flow of transaction processing according to the first embodiment. In FIG. 5, the unit of general currency (charging token) used at the exchange source BC3 is called "portion". Common currency coins are sometimes called billing tokens. The unit of the regional currency (regional promotion coin) used in the exchange destination BC4 is called "coin". Community currency coins are sometimes referred to as community promotion coins.

前提として、ユーザAは、交換元(課金トークン)BC3と交換先(地域振興コイン)BC4の両方に口座を持っている。ユーザAは、仮想通貨である地域通貨(地域振興コイン)の発行を受けるべく、交換元BC3にある移転元口座に別途発行を受けた一般通貨(課金トークン)30,000ポーション(例えば、現金3万円相当)を保有している。そして、ユーザAは、交換先(地域振興コイン)BC4の移転先口座に30,000枚(特定商店では3万円相当)の地域通貨(地域振興コイン)の発行を受けるつもりである。この発行には、付帯条件(返金ルール)が付帯されている。ここでは、1か月以内に全コインを消費したならば、10,000ポーションの返金が受けられ、6ヶ月以内ならば、5,000ポーション、それ以降ならば、返金が受けられないという返金ルールが付帯されているとする。 As a premise, user A has accounts in both the exchange source (charging token) BC3 and the exchange destination (regional promotion coin) BC4. User A receives 30,000 portion (for example, cash 3 10,000 yen equivalent). Then, User A intends to receive issuance of 30,000 coins (equivalent to 30,000 yen at a specific store) of regional currency (regional promotion coin) to the transfer destination account of exchange destination (regional promotion coin) BC4. This issuance is accompanied by additional conditions (refund rules). Here, the refund rule is that if all coins are consumed within a month, 10,000 portions will be refunded, if within 6 months, 5,000 portions will be refunded, and after that, no refund will be received. is attached.

このような前提の下、ユーザAは、移転元口座から一般通貨(課金トークン)30,000ポーションの保有資産をスマートコントラクト用の預託口座へ送金する(<1>)。すなわち、ユーザAは、地域通貨(地域振興コイン)の発行を受けるべく、代金を預託口座へ送金する。これにより、スマートコントラクトの取引処理が起動される。 Under this premise, user A remits 30,000 portions of common currency (charging token) from the transfer source account to the deposit account for the smart contract (<1>). That is, user A remits the payment to the deposit account in order to receive the issuance of the regional currency (regional promotion coin). This activates the transaction processing of the smart contract.

そして、第1の取引監視部31は、スマートコントラクト用の預託口座を宛先とした送金取引を検出すると、預託口座への資産移転の検出をサーバ1に通知する(<2>)。 Then, when the first transaction monitoring unit 31 detects a remittance transaction addressed to the smart contract deposit account, it notifies the server 1 of the detection of the asset transfer to the deposit account (<2>).

そして、サーバ1では、代金預託受付部11が、預託口座への資産移転の検出通知を受け取り、交換貨幣払出部12が、起動時に指定された交換先(地域振興コイン)BC4のユーザAの移転先口座宛てに入金を行うよう、交換業者に指示を出す(<3>)。すなわち、交換貨幣払出部12は、一般通貨(課金トークン)から地域通貨(地域振興コイン)への価値移転の取引をするように、交換業者に対して、交換レートに従った地域振興コインの払い出しを依頼する。加えて、交換貨幣払出部12は、交換先(地域振興コイン)BC4に対して、ユーザAの移転先口座を監視対象とする資産移転の監視を依頼する。なお、交換貨幣払出部12は、資産移転の監視を依頼する際に、ユーザAの監視対象口座として移転先口座、預託口座に預託した預託量、返金期限、許諾使途、譲渡可能な譲渡先を含む情報を添付して送信する。 Then, in the server 1, the money deposit acceptance unit 11 receives the notification of the detection of the asset transfer to the deposit account, and the exchange money dispensing unit 12 transfers the exchange destination (regional promotion coin) BC4 specified at the time of activation by the user A. Instructions are issued to the exchange company to deposit money to the destination account (<3>). That is, the exchange money payout unit 12 pays out the regional promotion coin according to the exchange rate to the exchange company so as to perform a value transfer transaction from the general currency (charging token) to the regional currency (regional promotion coin). ask for In addition, the exchange money payout unit 12 requests the exchange destination (regional promotion coin) BC4 to monitor the asset transfer targeting the transfer destination account of the user A. When requesting asset transfer monitoring, the exchange money dispensing unit 12 specifies the transfer destination account, the deposit amount deposited in the deposit account, the refund deadline, the permitted usage, and the transferable transfer destination as the monitoring target account of user A. Attach and send information including:

交換先(地域振興コイン)BC4では、第2の取引監視部41が、資産移転の監視の依頼を受け付けると、当該依頼に添付された情報を条件DB21に追加する。また、交換業者は、払い出しの依頼を受け付けると、交換レートに従って、地域振興コイン30,000コインを、払い出し用口座からユーザAの移転先口座へ送金する。この結果、ユーザAは、地域通貨(地域振興コイン)30,000コインを自身が管理する移転先口座で受け取る(<4>)。 In the exchange destination (regional promotion coin) BC4, when the second transaction monitoring unit 41 receives the request for monitoring the asset transfer, it adds the information attached to the request to the condition DB21. Further, when the exchange agent accepts the payment request, it remits 30,000 regional promotion coins from the payment account to the destination account of user A according to the exchange rate. As a result, user A receives 30,000 coins of the local currency (regional promotion coin) in the transfer destination account managed by him/herself (<4>).

この後、ユーザAは、移転先口座の地域通貨(地域振興コイン)に加え現金2万円を追加して5万円のパソコンを地域の商店で購入すべく、移転先口座の地域通貨(地域振興コイン)30,000コインと現金2万円を送金する(<5>)。すると、交換先(地域振興コイン)BC4のいずれかのノードが、条件DB21の移転先口座に対応する移転取引TxIDを資産移転のトランザクションのIDに更新する。そして、第2の取引監視部41は、監視対象の資産移転を検出し、監視対象の移転先口座を含む資産移転取引情報を添付した、資産移転の検出通知をサーバ1に対して送信する(<6>)。 After that, User A adds 20,000 yen in cash to the local currency (regional promotion coin) of the transfer destination account to purchase a computer for 50,000 yen at a local store. Promotion coin) 30,000 coins and cash of 20,000 yen are remitted (<5>). Then, one of the nodes of the exchange destination (regional promotion coin) BC4 updates the transfer transaction TxID corresponding to the transfer destination account in the condition DB 21 to the asset transfer transaction ID. Then, the second transaction monitoring unit 41 detects the asset transfer to be monitored, and transmits to the server 1 an asset transfer detection notification attached with the asset transfer transaction information including the transfer destination account to be monitored ( <6>).

サーバ1では、スマートコントラクト実行部13が、監視対象の移転先口座を含む資産移転取引情報を添付した、資産移転の検出通知を受信すると、返金ルールに従って、条件DB21を参照して、返金額と決済額を決定する(<7>)。ここでは、1か月以内に全コインを消費したので、返金額は、一般通貨(課金トークン)建てで10,000ポーションと決定され、決済額は、一般通貨(課金トークン)建てで20,000ポーションと決定される。そこで、返金額送金指示部15は、監視対象のユーザAに対する返金額10,000ポーションの送金を、交換元(課金トークン)BC3に指示する。決済額送金指示部15は、監視対象のユーザAに対する決済額20,000ポーションの送金を、交換元(課金トークン)BC3に指示する(<8>)。 In the server 1, when the smart contract execution unit 13 receives the asset transfer detection notification attached with the asset transfer transaction information including the transfer destination account to be monitored, the condition DB 21 is referred to according to the refund rule, and the refund amount and Determine the settlement amount (<7>). Here, since all the coins have been consumed within one month, the refund amount is determined to be 10,000 portions denominated in the general currency (charging token), and the settlement amount is 20,000 portions denominated in the general currency (charging token). Determined as a potion. Therefore, the refund amount remittance instruction unit 15 instructs the exchange source (charging token) BC3 to remit the refund amount of 10,000 portion to the monitored user A. The payment amount remittance instruction unit 15 instructs the exchange source (billing token) BC3 to transfer the payment amount of 20,000 portions to the monitored user A (<8>).

交換元(課金トークン)BC3では、返金額10,000ポーションのユーザAの移転元口座宛てへの返金(キャッシュバック)が行われる(<9.1>)。決済額20,000ポーションの商店会宛てへの送金が行われる(<9.2>)。 At the exchange source (billing token) BC3, a refund (cashback) of 10,000 portions is made to the transfer source account of user A (<9.1>). The settlement amount of 20,000 portions is remitted to the store association (<9.2>).

これにより、ユーザAは、10,000円相当額のキャッシュバックを受けられる。一方、商店会は、30,000円相当の地域振興券と引き換えに、決済額として20,000円相当の一般通貨(課金トークン)を受け取る。商店会は、差額の10,000円が損失となるが、地域振興を図ることができる。なお、ユーザAは、6ヶ月の間、商店会で商品やサービスの購入をしなかった場合でも、コインを消費した場合の返金は受けられないが、30,000円相当額の価値は残る。この結果、ユーザAは、地域貨幣(地域振興コイン)の購入時の不安感を低減できる。 As a result, User A can receive a cashback equivalent to 10,000 yen. On the other hand, the store association receives a general currency (charging token) equivalent to 20,000 yen as a settlement amount in exchange for a regional promotion ticket equivalent to 30,000 yen. The store association will lose the difference of 10,000 yen, but can promote regional development. Note that even if user A does not purchase any product or service at the shopping mall for six months, the user A cannot receive a refund for the amount of coins spent, but the value equivalent to 30,000 yen remains. As a result, the user A can reduce anxiety when purchasing the regional currency (regional promotion coin).

[スマートコントラクト実行処理の流れの一例]
図6は、実施例1に係るスマートコントラクト実行処理の流れの一例を示す図である。なお、条件DB21には、監視対象口座に対応するエントリが示されている。交換先(地域振興コイン)BC4の複数の取引データが取引履歴として示されている。
[Example of flow of smart contract execution process]
FIG. 6 is a diagram illustrating an example of the flow of smart contract execution processing according to the first embodiment. Note that the condition DB 21 shows entries corresponding to monitored accounts. A plurality of transaction data of exchange destination (regional promotion coin) BC4 are shown as transaction history.

スマートコントラクト実行部13が、交換先(地域振興コイン)BC4の第2の取引監視部41から資産移転取引情報を添付した、地域通貨での資産移転の検出通知を受信したとする。資産移転取引情報には、監視対象の移転先口座「0x223587」が示されている。 It is assumed that the smart contract execution unit 13 receives a detection notification of an asset transfer in local currency with attached asset transfer transaction information from the second transaction monitoring unit 41 of the exchange destination (regional promotion coin) BC4. The asset transfer transaction information indicates the transfer destination account "0x223587" to be monitored.

スマートコントラクト実行部13は、資産移転取引情報に示された監視対象の移転先口座(資産移転の移転元)から条件DB21内で対応するエントリを検索する(a1)。 The smart contract execution unit 13 searches for a corresponding entry in the condition DB 21 from the monitoring target transfer destination account (transfer source of the asset transfer) indicated in the asset transfer transaction information (a1).

スマートコントラクト実行部13は、検索できたエントリの移転取引TxIDから取引履歴内で対応する取引データを検索する。スマートコントラクト実行部13は、検索できた取引データから、移転取引が発生したタイムスタンプを取得する。ここでは、取得したタイムスタンプは、「201809221007」である。スマートコントラクト実行部13は、取得したタイムスタンプと返金期限とを比較し、取得したタイムスタンプが返金の有効期限内か否かを判定する(a2)。ここでは、返金期限は、「2019/01/10」であるので、取得したタイムスタンプは返金の有効期限内であると判定される。 The smart contract execution unit 13 searches for corresponding transaction data in the transaction history from the transfer transaction TxID of the retrieved entry. The smart contract execution unit 13 acquires the time stamp at which the transfer transaction occurred from the retrieved transaction data. Here, the acquired time stamp is "201809221007". The smart contract execution unit 13 compares the acquired time stamp with the refund deadline, and determines whether the acquired time stamp is within the refund expiration date (a2). Here, since the refund deadline is "2019/01/10", it is determined that the acquired time stamp is within the refund validity period.

スマートコントラクト実行部13は、取得したタイムスタンプが返金の有効期限内でなければ、決済額送金指示部15に、預託口座から決済用口座へ決済額を送金させる。一方、スマートコントラクト実行部13は、取得したタイムスタンプが返金の有効期限内であれば、検索できた取引データから、移転取引の送金先の口座番号を取得する。ここでは、取得したタイムスタンプは返金の有効期限内であると判定されるので、移転取引の送金先の口座番号「0x46666」が取得される。そして、スマートコントラクト実行部13は、取得した送金先の口座番号から口座種別を判定し、口座種別が許諾された使途か否かを判定する(a3)。ここでは、送金先の口座番号「0x46666」から口座種別が「商店街内」であると判定されるとする。 The smart contract execution unit 13 causes the payment amount remittance instruction unit 15 to remit the payment amount from the deposit account to the payment account if the acquired time stamp is not within the refund expiration date. On the other hand, if the acquired time stamp is within the expiration date of the refund, the smart contract execution unit 13 acquires the account number of the remittance destination of the transfer transaction from the retrieved transaction data. Here, since it is determined that the acquired time stamp is within the expiration date of the refund, the account number "0x46666" of the remittance destination of the transfer transaction is acquired. Then, the smart contract execution unit 13 determines the account type from the acquired account number of the remittance destination, and determines whether or not the account type is permitted for use (a3). Here, it is assumed that the account type is determined to be "within the shopping mall" from the account number "0x46666" of the remittance destination.

スマートコントラクト実行部13は、口座種別が許諾されない使途ならば、決済額送金指示部15に、預託口座から決済用口座へ決済額を送金させる。一方、スマートコントラクト実行部13は、口座種別が許諾された使途ならば、返金ルールに従って、条件DB21を参照して、取引データにおける地域振興コインでの送金額に対する返金額と決済額を決定する。スマートコントラクト実行部13は、決定した返金額を、返金額送金指示部14に、預託口座から移転元口座へ返金額を送金させる。そして、スマートコントラクト実行部13は、決定した決済額を、決済額送金指示部15に、預託口座から決済用口座へ送金させる。 If the account type is not permitted for use, the smart contract execution unit 13 causes the payment amount remittance instruction unit 15 to transfer the payment amount from the deposit account to the payment account. On the other hand, if the account type is permitted for use, the smart contract execution unit 13 refers to the condition DB 21 according to the refund rule to determine the refund amount and settlement amount for the remittance amount in the regional promotion coin in the transaction data. The smart contract execution unit 13 causes the refund amount remittance instructing unit 14 to remit the determined refund amount from the deposit account to the transfer source account. Then, the smart contract execution unit 13 causes the payment amount remittance instruction unit 15 to transfer the determined payment amount from the deposit account to the payment account.

[サーバの取引処理のフローチャート]
図7は、実施例1に係るサーバの取引処理のフローチャートの一例を示す図である。
[Server transaction processing flow chart]
FIG. 7 is a diagram illustrating an example of a flowchart of transaction processing of the server according to the first embodiment.

図7に示すように、呼び出し待機中のサーバ1は、預託口座への資産移転の通知を受信する(ステップS11)。すなわち、利用者が交換元BC3の移転元口座にある一般通貨の保有資産を交換先BC4の移転先口座に移転する場合に、当該保有資産をスマートコントラクトが管理する預託口座に送金する。このとき、交換元BC3の第1の取引監視部31によって送信される、預託口座への資産移転の通知を、サーバ1が受信する。 As shown in FIG. 7, the server 1 waiting for a call receives the notification of the asset transfer to the deposit account (step S11). That is, when the user transfers the common currency held assets in the transfer source account of the exchange source BC3 to the transfer destination account of the exchange destination BC4, the held assets are transferred to the deposit account managed by the smart contract. At this time, the server 1 receives the notification of the asset transfer to the deposit account, which is transmitted by the first transaction monitoring unit 31 of the exchange source BC3.

すると、サーバ1は、交換業者の口座から利用者の移転先口座への交換貨幣(地域通貨)での資産移転を交換先BC4の交換業者へ指示する(ステップS12)。すなわち、サーバ1は、一般通貨から地域通貨への価値移転の取引を交換先BC4の交換業者に対して依頼する。加えて、サーバ1は、利用者の移転先口座の資産移転の監視を、交換先BC4の第2の取引監視部41に依頼する(ステップS13)。第2の取引監視部41は、利用者の移転先口座を監視対象口座として資産移転を監視する。 Then, the server 1 instructs the exchange company of the exchange destination BC 4 to transfer assets from the exchange company's account to the user's transfer destination account in exchange currency (local currency) (step S12). That is, the server 1 requests the exchange agent of the exchange destination BC 4 for a value transfer transaction from the general currency to the local currency. In addition, the server 1 requests the second transaction monitoring unit 41 of the exchange destination BC 4 to monitor the asset transfer of the user's transfer destination account (step S13). The second transaction monitoring unit 41 monitors the asset transfer with the user's transfer destination account as the monitoring target account.

この後、サーバ1は、交換先BC4の第2の取引監視部41から地域通貨での資産移転の検出通知を受信する(ステップS14)。すなわち、利用者が地域通貨を用いて購買取引した場合に、利用者の移転先口座から資産移転が行われる。このとき、第2の取引監視部41は、利用者の移転先口座からの資産移転を検出し、資産移転の検出通知を送信する。第2の取引監視部41によって送信された資産移転の検出通知を、サーバ1が受信する。 After that, the server 1 receives the detection notification of the asset transfer in the local currency from the second transaction monitoring unit 41 of the exchange destination BC 4 (step S14). That is, when a user makes a purchase transaction using community currency, assets are transferred from the user's transfer destination account. At this time, the second transaction monitoring unit 41 detects an asset transfer from the user's account to which the transfer is made, and transmits an asset transfer detection notification. The server 1 receives the asset transfer detection notification sent by the second transaction monitoring unit 41 .

そして、サーバ1は、資産移転が返金の有効期限内か否かを判定する(ステップS15)。例えば、サーバ1は、返金ルールに従って、条件DB21の返金期限と購買取引の取引データのタイムスタンプとを参照して、資産移転が返金の有効期限内か否かを判定する。 Then, the server 1 determines whether or not the asset transfer is within the expiration date of the refund (step S15). For example, according to the refund rule, the server 1 refers to the refund deadline in the condition DB 21 and the time stamp of the transaction data of the purchase transaction to determine whether the asset transfer is within the refund validity period.

資産移転が返金の有効期限内でないと判定した場合には(ステップS15;No)、サーバ1は、返金しないで決済すべく、ステップS18に移行する。かかる場合の決済額は、購買取引の取引データの送金額となる。一方、資産移転が返金の有効期限内であると判定した場合には(ステップS15;Yes)、サーバ1は、資産移転が許可された使途か否かを判定する(ステップS16)。例えば、サーバ1は、購買取引の取引データの送金先と条件DB21の許諾使途とを参照して、許可された使途か否かを判定する。 If it is determined that the asset transfer is not within the refund expiration date (step S15; No), the server 1 proceeds to step S18 to settle without refunding. The settlement amount in such a case is the remittance amount of the transaction data of the purchase transaction. On the other hand, if it is determined that the asset transfer is within the expiration date of the refund (step S15; Yes), the server 1 determines whether or not the asset transfer is permitted (step S16). For example, the server 1 refers to the remittance destination of the transaction data of the purchase transaction and the permitted use in the condition DB 21 to determine whether or not the use is permitted.

資産移転が許可された使途でないと判定した場合には(ステップS16;No)、サーバ1は、返金しないで決済すべく、ステップS18に移行する。かかる場合の決済額は、購買取引の取引データの送金額となる。一方、資産移転が許可された使途であると判定した場合には(ステップS16;Yes)、サーバ1は、返金ルールに従って、返金(払い戻し)額および決済額を算出して、返金額をスマートコントラクトが管理する預託口座から利用者の移転元口座へ返金するように交換元BC3へ指示する(ステップS17)。そして、サーバ1は、返金したうえで決済すべく、ステップS18に移行する。 If it is determined that the asset transfer is not permitted for use (step S16; No), the server 1 moves to step S18 to settle without refunding. The settlement amount in such a case is the remittance amount of the transaction data of the purchase transaction. On the other hand, if it is determined that the asset transfer is permitted for use (Step S16; Yes), the server 1 calculates the refund (refund) amount and the settlement amount according to the refund rules, and transfers the refund amount to the smart contract. instructs the exchange source BC 3 to make a refund from the deposit account managed by , to the transfer source account of the user (step S17). Then, the server 1 shifts to step S18 in order to make a payment after refunding.

ステップS18において、サーバ1は、決済額をスマートコントラクトが管理する預託口座から交換業者の決済用口座へ送金するように交換元BC3へ指示する(ステップS18)。サーバ1は、取引処理を終了する。 In step S18, the server 1 instructs the exchange source BC3 to remit the settlement amount from the deposit account managed by the smart contract to the settlement account of the exchanger (step S18). The server 1 ends transaction processing.

[実施例1の効果]
上記実施例1によれば、取引システム9は、互いに異なる通貨の取引を記録する複数のBCと、複数のBCの取引を監視するサーバ1と、を有する。サーバ1は、交換元BC3の通貨から交換先BC4の通貨への資産移転の取引依頼に応答して、交換先BC4に対して変換レートに従った入金処理を実行する。サーバ1は、入金した通貨を用いた購買取引の検出に応答して、交換元BC3において購買取引の形態に応じた額の払い戻しを実行する。かかる構成によれば、取引システム9は、交換先BC4の通貨を地域通貨とした場合に、BCで実現される地域通貨による利用者の購買促進の仕組みを提供できる。すなわち、取引システム9は、購買取引時に資産価値の移動を検出するだけでなく、購買取引の形態を検証することで、購買取引の形態に応じた額の払い戻しを実行することができ、地域通貨による購買促進の仕組みを提供できる。
[Effect of Example 1]
According to Example 1 above, the trading system 9 has a plurality of BCs that record transactions in different currencies, and the server 1 that monitors the transactions of the plurality of BCs. The server 1 responds to the transaction request for asset transfer from the currency of the exchange source BC3 to the currency of the exchange destination BC4, and executes the deposit processing according to the conversion rate to the exchange destination BC4. In response to detection of a purchase transaction using the deposited currency, the server 1 refunds an amount corresponding to the form of the purchase transaction at the exchange source BC 3 . According to such a configuration, the transaction system 9 can provide a mechanism for promoting purchases by users using the local currency realized by the BC when the local currency is used as the currency of the exchange destination BC 4 . That is, the transaction system 9 not only detects the movement of the asset value at the time of the purchase transaction, but also verifies the form of the purchase transaction, thereby executing the refund of the amount according to the form of the purchase transaction. We can provide a mechanism for promoting purchases by

また、上記実施例1によれば、サーバ1は、取引のタイミング、取引の購入先または取引の対象の少なくとも1つの取引の形態を含むルールに基づいて購買取引に応じた払い戻しの額を決定し、決定した額の払い戻しを実行する。かかる構成によれば、サーバ1は、取引のタイミングや使途を限定した払い戻しのルールを用いて払い戻しを実行することで、地域通貨による購買を促進できる。 Further, according to the first embodiment, the server 1 determines the amount of refund according to the purchase transaction based on rules including at least one transaction mode of transaction timing, transaction purchaser, or transaction target. , to execute a refund of the determined amount. According to such a configuration, the server 1 can promote purchases in local currency by executing refunds using refund rules that limit transaction timing and usage.

また、上記実施例1によれば、サーバ1は、ルールが取引のタイミングにおけるルールである場合に、購買取引のタイミングが入金の時点からの時間の経過とともに払い戻しの額を減じるように前記払い戻しの額を決定する。かかる構成によれば、サーバ1は、時間の経過とともに払い戻しの額が少なくなるルールを用いることで、資産価値が時間経過に伴って減少していく「時間逓減コイン」を実現できる。 Further, according to the first embodiment, the server 1 reduces the amount of refund as time elapses from the timing of the purchase transaction when the rule is the timing of the transaction. determine the amount. According to such a configuration, the server 1 can realize a "decreasing time coin" in which the asset value decreases with the passage of time by using the rule that the refund amount decreases with the passage of time.

また、上記実施例1によれば、サーバ1は、購買取引の形態がルールに合致しない場合に、交換元BC3において購買取引の取引額を決済するが、払い戻しを実行しない。かかる構成によれば、サーバ1は、例えば、購買取引の期限が切れていたり、購買取引の使途が限定された使途でなかったりした場合でも、払い戻しを実行しないが、地域通貨により購買をすることができる。この結果、サーバ1は、地域通貨への交換および地域通貨による購買を促進できる。すなわち、利用者は地域振興券に代わる地域通貨を積極的に購入することができる。 Further, according to the first embodiment, the server 1 settles the transaction amount of the purchase transaction at the exchange source BC 3 when the form of the purchase transaction does not conform to the rules, but does not execute the refund. According to such a configuration, the server 1 does not execute a refund even if, for example, the purchase transaction has expired or the usage of the purchase transaction is not limited, but the purchase can be made in the local currency. can be done. As a result, the server 1 can promote conversion to local currency and purchasing with local currency. That is, the user can positively purchase the regional currency instead of the regional promotion ticket.

ところで、実施例1では、地域通貨を購入したユーザが購買取引を行った場合に、サーバ1が、購買取引の検出に応答して、購買取引の形態に応じた額の払い戻しを実行する場合を説明した。しかしながら、地域通貨を購入したユーザが購買取引を行った場合に限定されず、地域通貨を購入したユーザが自身が購入した地域通貨を許諾譲渡先のユーザに譲渡し、譲渡されたユーザが購買取引を行う場合であっても良い。かかる場合には、サーバ1は、譲渡先のユーザの購買取引の検出に応答して、購買取引の形態に応じた額の払い戻しを譲渡元のユーザに行うようにすれば良い。 By the way, in the first embodiment, when a user who has purchased local currency performs a purchase transaction, the server 1 responds to the detection of the purchase transaction and executes a refund of an amount corresponding to the form of the purchase transaction. explained. However, this is not limited to the case where the user who purchased the community currency made the purchase transaction, and the user who purchased the community currency transfers the purchased community currency to the authorized transferee user, and the transferred user makes the purchase transaction. may be used. In such a case, the server 1 may, in response to the detection of the purchase transaction of the transferee user, refund the amount corresponding to the form of the purchase transaction to the transferor user.

そこで、実施例2では、サーバ1は、地域通貨を譲渡されたユーザが購買取引を行った場合に、購買取引の検出に応答して、購買取引の形態に応じた額の払い戻しを譲渡元のユーザに行う場合について説明する。 Therefore, in the second embodiment, when a user to whom local currency is transferred performs a purchase transaction, the server 1 responds to the detection of the purchase transaction and refunds the amount corresponding to the form of the purchase transaction to the transferor. A case will be described where this is done for the user.

[実施例2に係るサーバの構成]
実施例2に係るサーバ1は、図1に示すサーバ1の構成と同一の構成であるので、その構成については省略する。ただし、スマートコントラクト実行部13、返金額送金指示部14および決済額送金指示部15の動作が若干異なる部分があるので、その動作について説明する。
[Configuration of server according to embodiment 2]
The configuration of the server 1 according to the second embodiment is the same as that of the server 1 shown in FIG. 1, so the configuration thereof will be omitted. However, the operations of the smart contract execution unit 13, the refund amount remittance instruction unit 14, and the settlement amount remittance instruction unit 15 are slightly different, so these operations will be explained.

スマートコントラクト実行部13は、スマートコントラクトを実行する。例えば、スマートコントラクト実行部13は、交換先BC4の第2の取引監視部41から地域通貨での資産移転の検出通知を受け取る。スマートコントラクト実行部13は、条件DB21を参照して、資産移転の移転先が許諾譲渡先であるか否かを判定する。なお、許諾譲渡先は、譲渡元と所定の関係を示す、例えば親子や兄弟などの親族などであるとする。スマートコントラクト実行部13は、資産移転の移転先が許諾譲渡先であるならば、ユーザ間移転と判断し、交換先BC4の第2の取引監視部41に対して、今回の資産移転の移転先口座を監視対象とする資産移転の監視を依頼する。 The smart contract execution unit 13 executes smart contracts. For example, the smart contract execution unit 13 receives a detection notification of asset transfer in local currency from the second transaction monitoring unit 41 of the exchange destination BC4. The smart contract execution unit 13 refers to the condition DB 21 and determines whether or not the transferee of the asset transfer is the permitted transferee. It should be noted that the permitted transferee is assumed to be relatives such as parent and child or siblings, which indicate a predetermined relationship with the transferor. If the transfer destination of the asset transfer is the authorized transferee, the smart contract execution unit 13 determines that the transfer is between users, and notifies the second transaction monitoring unit 41 of the exchange destination BC 4 of the transfer destination of the current asset transfer. Request monitoring of asset transfers that target accounts.

スマートコントラクト実行部13は、資産移転の移転先が許諾譲渡先でないならば、購買による移転と判断する。そして、スマートコントラクト実行部13は、取引の購入先、取引の対象または取引の時期などの取引の形態を含む返金ルールに従って、条件DB21を参照して、取引に応じた払い戻しの額と決済額を決定する。なお、払い戻しの額の計算方法は、実施例1と同様であるので、その説明を省略する。 If the transferee of the asset transfer is not the authorized transferee, the smart contract execution unit 13 determines that the transfer is due to purchase. Then, the smart contract execution unit 13 refers to the condition DB 21 according to the refund rule including the type of transaction such as the purchaser of the transaction, the target of the transaction, or the timing of the transaction, and determines the refund amount and settlement amount according to the transaction. decide. Since the method of calculating the amount of refund is the same as in the first embodiment, the explanation thereof will be omitted.

返金額送金指示部15は、返金額の送金を交換元BC3へ指示する。例えば、返金額送金指示部15は、スマートコントラクト実行部13によって決定された払い戻し額の一般通貨での送金を交換元BC3へ指示する。この後、交換元BC3では、一般通貨での払い戻し額がスマートコントラクトの預託口座からユーザの移転元口座へ送金される。すなわち、払い戻し額は、スマートコントラクトの預託口座に預託したユーザであって、地域通貨を譲渡した譲渡元のユーザの移転元口座へ送金される。 The refund amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the refund amount. For example, the refund amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the refund amount determined by the smart contract execution unit 13 in general currency. After this, at the exchange source BC3, the refund amount in common currency is transferred from the deposit account of the smart contract to the transfer source account of the user. In other words, the refund amount is transferred to the transfer source account of the transfer source user who deposited the local currency in the deposit account of the smart contract.

決済額送金指示部15は、決済額の送金を交換元BC3へ指示する。例えば、決済額送金指示部15は、スマートコントラクト実行部13によって決定された決済額の一般通貨での送金を交換元BC3へ指示する。この後、交換元BC3では、一般通貨での決済額がスマートコントラクトの預託口座から交換業者の決済用口座へ送金される。 The settlement amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the settlement amount. For example, the settlement amount remittance instruction unit 15 instructs the exchange source BC 3 to remit the settlement amount determined by the smart contract execution unit 13 in general currency. Thereafter, at the exchange source BC3, the settlement amount in the general currency is transferred from the deposit account of the smart contract to the settlement account of the exchange company.

[スマートコントラクト実行処理の流れの一例]
図8は、実施例2に係るスマートコントラクト実行処理の流れの一例を示す図である。なお、条件DB21には、監視対象口座に対応するエントリが示されている。交換先(地域振興コイン)BC4の複数の取引データが取引履歴として示されている。
[Example of flow of smart contract execution process]
FIG. 8 is a diagram illustrating an example of the flow of smart contract execution processing according to the second embodiment. Note that the condition DB 21 shows entries corresponding to monitored accounts. A plurality of transaction data of exchange destination (regional promotion coin) BC4 are shown as transaction history.

スマートコントラクト実行部13は、交換先(地域振興コイン)BC4の第2の取引監視部41から資産移転取引情報を添付した、地域通貨での資産移転の検出通知を受信したとする。資産移転取引情報には、監視対象の移転先口座「0x223587」が示されている。 It is assumed that the smart contract execution unit 13 receives the detection notification of the asset transfer in the local currency attached with the asset transfer transaction information from the second transaction monitoring unit 41 of the exchange destination (regional promotion coin) BC4. The asset transfer transaction information indicates the transfer destination account "0x223587" to be monitored.

スマートコントラクト実行部13は、資産移転取引情報に示された監視対象の移転先口座(資産移転の移転元)から条件DB21内で対応するエントリを検索する(b1)。 The smart contract execution unit 13 searches for a corresponding entry in the condition DB 21 from the monitoring target transfer destination account (transfer source of the asset transfer) indicated in the asset transfer transaction information (b1).

スマートコントラクト実行部13は、検索できたエントリの移転取引TxIDから取引履歴内で対応する取引データを検索する。スマートコントラクト実行部13は、検索できた取引データから、送金先を取得する。ここでは、取得した送金先の口座番号は、「0x46666」である。スマートコントラクト実行部13は、取得した送金先の口座番号が、検索できたエントリの許諾譲渡先であるか否かを判定する(b2)。ここでは、送金先の口座番号「0x46666」から許諾譲渡先の「花子」の口座番号であると判定されるとする。 The smart contract execution unit 13 searches for corresponding transaction data in the transaction history from the transfer transaction TxID of the retrieved entry. The smart contract execution unit 13 acquires a remittance destination from the retrieved transaction data. Here, the acquired account number of the remittance destination is "0x46666". The smart contract execution unit 13 determines whether or not the acquired account number of the remittance destination is the permitted transferee of the retrieved entry (b2). Here, it is assumed that the account number "0x46666" of the remittance destination is determined to be the account number of "Hanako", the permitted transferee.

そこで、スマートコントラクト実行部13は、今回の送金先の移転先口座「0x46666」を監視対象とする資産移転の監視を、交換先(地域振興コイン)BC4の第2の取引監視部41に依頼する(b3)。ここでは、例えば、第2の取引監視部41は、監視対象口座を今回の送金先であった「0x46666」とするエントリを条件DB21に追加する。そして、第2の取引監視部41は、追加したエントリについて、返金期限を資産移転元のエントリの返金期限「2019/01/10」に、許諾使途を資産移転元のエントリの許諾使途「商店街内」に更新する。そして、第2の取引監視部41は、「0x46666」を含む監視対象口座の資産移転を監視する。 Therefore, the smart contract execution unit 13 requests the second transaction monitoring unit 41 of the exchange destination (regional promotion coin) BC4 to monitor the asset transfer targeting the transfer destination account "0x46666" of the current remittance destination. (b3). Here, for example, the second transaction monitoring unit 41 adds to the condition DB 21 an entry that designates the account to be monitored as "0x46666", which was the current remittance destination. Then, for the added entry, the second transaction monitoring unit 41 sets the refund deadline to the refund deadline “2019/01/10” of the entry of the asset transfer source, and sets the permitted usage to the permitted usage “shopping mall” of the entry of the asset transfer source. Update to "inside". Then, the second transaction monitoring unit 41 monitors the asset transfer of the monitored account including "0x46666".

この後、スマートコントラクト実行部13は、交換先(地域振興コイン)BC4の第2の取引監視部41から資産移転取引情報を添付した、地域通貨での資産移転の検出通知を受信したとする。資産移転取引情報には、監視対象の口座「0x46666」が示されている。 After that, it is assumed that the smart contract execution unit 13 receives the detection notification of the asset transfer in the local currency attached with the asset transfer transaction information from the second transaction monitoring unit 41 of the exchange destination (regional promotion coin) BC4. The asset transfer transaction information indicates the monitored account "0x46666".

スマートコントラクト実行部13は、資産移転取引情報に示された監視対象の口座(資産移転の移転元)「0x46666」から条件DB21内で対応するエントリを検索する(b11)。 The smart contract execution unit 13 searches for a corresponding entry in the condition DB 21 from the monitored account (source of asset transfer) "0x46666" indicated in the asset transfer transaction information (b11).

スマートコントラクト実行部13は、検索できたエントリの移転取引TxIDから取引履歴内で対応する取引データを検索する。スマートコントラクト実行部13は、検索できた取引データから、送金先を取得する。ここでは、取得した送金先の口座番号は、「0x58888」である。スマートコントラクト実行部13は、取得した送金先の口座番号が、検索できたエントリの許諾譲渡先であるか否かを判定する(b12)。ここでは、送金先の口座番号「0x58888」から許諾譲渡先の口座番号でないと判定されるとする。 The smart contract execution unit 13 searches for corresponding transaction data in the transaction history from the transfer transaction TxID of the retrieved entry. The smart contract execution unit 13 acquires a remittance destination from the retrieved transaction data. Here, the acquired account number of the remittance destination is "0x58888". The smart contract execution unit 13 determines whether or not the acquired account number of the remittance destination is the permitted transferee of the retrieved entry (b12). Here, it is assumed that the remittance destination account number "0x58888" is determined not to be the account number of the permitted transfer destination.

そして、スマートコントラクト実行部13は、検索できた取引データから、移転取引が発生したタイムスタンプを取得する。ここでは、取得したタイムスタンプは、「201809302118」である。スマートコントラクト実行部13は、取得したタイムスタンプと返金期限とを比較し、取得したタイムスタンプが返金の有効期限内か否かを判定する(b13)。ここでは、返金期限は、「2019/01/10」であるので、取得したタイムスタンプは返金の有効期限内であると判定される。 Then, the smart contract execution unit 13 acquires the time stamp at which the transfer transaction occurred from the retrieved transaction data. Here, the acquired time stamp is "201809302118". The smart contract execution unit 13 compares the acquired time stamp with the refund deadline, and determines whether or not the acquired time stamp is within the refund expiration date (b13). Here, since the refund deadline is "2019/01/10", it is determined that the acquired time stamp is within the refund validity period.

スマートコントラクト実行部13は、取得したタイムスタンプが返金の有効期限内でなければ、決済額送金指示部15に、預託口座から決済用口座へ決済額を送金させる。一方、スマートコントラクト実行部13は、取得したタイムスタンプが返金の有効期限内であれば、検索できた取引データから、移転取引の送金先の口座番号を取得する。ここでは、取得したタイムスタンプは返金の有効期限内であると判定されるので、移転取引の送金先の口座番号「0x58888」が取得される。そして、スマートコントラクト実行部13は、取得した送金先の口座番号から口座種別を判定し、口座種別が許諾された使途か否かを判定する(b14)。ここでは、送金先の口座番号「0x58888」から口座種別が「商店街内」であると判定されるとする。 The smart contract execution unit 13 causes the payment amount remittance instruction unit 15 to remit the payment amount from the deposit account to the payment account if the acquired time stamp is not within the refund expiration date. On the other hand, if the acquired time stamp is within the expiration date of the refund, the smart contract execution unit 13 acquires the account number of the remittance destination of the transfer transaction from the retrieved transaction data. Here, since it is determined that the acquired time stamp is within the expiration date of the refund, the account number "0x58888" of the remittance destination of the transfer transaction is acquired. Then, the smart contract execution unit 13 determines the account type from the acquired account number of the remittance destination, and determines whether or not the account type is permitted for use (b14). Here, it is assumed that the account type is determined to be "within the mall" from the account number "0x58888" of the remittance destination.

スマートコントラクト実行部13は、口座種別が許諾されない使途ならば、決済額送金指示部15に、預託口座から決済用口座へ決済額を送金させる。一方、スマートコントラクト実行部13は、口座種別が許諾された使途ならば、返金ルールに従って、条件DB21を参照して、取引データにおける送金額(地域振興コイン)に対する返金額と決済額を決定する。ここでは、口座種別が許諾された使途であるので、返金額と決済額が決定される。一例として、返金ルールが2000コイン以下では、返金額は一般通貨(課金トークン)建てで300ポーションとされているとする。すると、返金額は300ポーションと決定される。決済額は、残りの1700ポーションと決定される。 If the account type is not permitted for use, the smart contract execution unit 13 causes the payment amount remittance instruction unit 15 to transfer the payment amount from the deposit account to the payment account. On the other hand, the smart contract execution unit 13 determines the refund amount and settlement amount for the remittance amount (regional promotion coin) in the transaction data by referring to the condition DB 21 according to the refund rule if the account type is used for permitted purposes. Here, since the account type is the permitted use, the refund amount and settlement amount are determined. As an example, if the refund rule is 2000 coins or less, the refund amount is 300 portions denominated in general currency (charging token). Then, the refund amount is determined to be 300 portions. The settlement amount is determined as the remaining 1700 portions.

そして、スマートコントラクト実行部13は、決定した返金額を、返金額送金指示部14に、預託口座から譲渡元の移転元口座へ返金額を送金させる。そして、スマートコントラクト実行部13は、決定し決済額を、決済額送金指示部15に、預託口座から決済用口座へ送金させる。 Then, the smart contract execution unit 13 causes the refund amount remittance instructing unit 14 to remit the determined refund amount from the deposit account to the transfer source account of the transfer source. Then, the smart contract execution unit 13 causes the settlement amount remittance instruction unit 15 to remit the determined settlement amount from the deposit account to the settlement account.

これにより、スマートコントラクト実行部13は、ユーザと所定の関係を有するユーザとのユーザ間で地域通貨を譲渡しても、地域通貨による購買促進の仕組みを提供できる。また、スマートコントラクト実行部13は、地域通貨を使用したと詐称することを防止することが可能となる。 As a result, the smart contract execution unit 13 can provide a mechanism for promoting purchases using the community currency even if the community currency is transferred between users who have a predetermined relationship with the user. In addition, the smart contract execution unit 13 can prevent fraudulent use of community currency.

[サーバの取引処理のフローチャート]
図9は、実施例2に係るサーバの取引処理のフローチャートの一例を示す図である。
[Server transaction processing flow chart]
FIG. 9 is a diagram illustrating an example of a flow chart of transaction processing of the server according to the second embodiment.

図9に示すように、呼び出し待機中のサーバ1は、預託口座への資産移転の通知を受信する(ステップS21)。すなわち、利用者が交換元BC3の移転元口座にある一般通貨の保有資産を交換先BC4の移転先口座に移転する場合に、当該保有資産をスマートコントラクトが管理する預託口座に送金する。このとき、交換元BC3の第1の取引監視部31によって送信される、預託口座への資産移転の通知を、サーバ1が受信する。 As shown in FIG. 9, the server 1 waiting for a call receives the notification of the asset transfer to the deposit account (step S21). That is, when the user transfers the common currency held assets in the transfer source account of the exchange source BC3 to the transfer destination account of the exchange destination BC4, the held assets are transferred to the deposit account managed by the smart contract. At this time, the server 1 receives the notification of the asset transfer to the deposit account, which is transmitted by the first transaction monitoring unit 31 of the exchange source BC3.

すると、サーバ1は、交換業者の口座から利用者の移転先口座への交換貨幣(地域通貨)での資産移転を交換先BC4の交換業者へ指示する(ステップS22)。すなわち、サーバ1は、一般通貨から地域通貨への価値移転の取引を交換先BC4の交換業者に対して依頼する。加えて、サーバ1は、利用者の移転先口座の資産移転の監視を、交換先BC4の第2の取引監視部41に依頼する(ステップS23)。第2の取引監視部41は、利用者の移転先口座を監視対象口座として資産移転を監視する。 Then, the server 1 instructs the exchange company of the exchange destination BC 4 to transfer assets from the exchange company's account to the user's transfer destination account in exchange currency (local currency) (step S22). That is, the server 1 requests the exchange agent of the exchange destination BC 4 for a value transfer transaction from the general currency to the local currency. In addition, the server 1 requests the second transaction monitoring unit 41 of the exchange destination BC 4 to monitor the asset transfer of the user's transfer destination account (step S23). The second transaction monitoring unit 41 monitors the asset transfer with the user's transfer destination account as the monitoring target account.

この後、サーバ1は、交換先BC4の第2の取引監視部41から地域通貨での資産移転の検出通知を受信する(ステップS24)。すなわち、利用者が自身の地域通貨の一部または全部を譲渡した場合に、利用者の口座から資産移転が行われる。また、利用者が地域通貨を用いて購買取引した場合に、利用者の口座から資産移転が行われる。このとき、第2の取引監視部41は、利用者の口座からの資産移転を検出し、資産移転の検出通知を送信する。第2の取引監視部41によって送信された資産移転の検出通知を、サーバ1が受信する。 After that, the server 1 receives the detection notification of the asset transfer in the local currency from the second transaction monitoring unit 41 of the exchange destination BC 4 (step S24). That is, when a user transfers part or all of his/her community currency, assets are transferred from the user's account. Also, when a user makes a purchase transaction using community currency, assets are transferred from the user's account. At this time, the second transaction monitoring unit 41 detects an asset transfer from the user's account and transmits an asset transfer detection notification. The server 1 receives the asset transfer detection notification sent by the second transaction monitoring unit 41 .

資産移転の検出通知を受信したサーバ1は、条件DB21を参照して、ユーザ間の資産移転であるか否かを判定する(ステップS25)。ユーザ間の資産移転であると判定した場合には(ステップS25;Yes)、サーバ1は、資産移転の監視の対象を資産移転された移転先口座に変更する(ステップS26)。第2の取引監視部41は、資産移転された移転先口座を監視対象口座として資産移転を監視する。そして、サーバ1は、次の資産移転の検出通知を受信すべく、ステップS24に移行する。 The server 1 that has received the asset transfer detection notification refers to the condition DB 21 and determines whether or not it is an asset transfer between users (step S25). If it is determined to be an asset transfer between users (step S25; Yes), the server 1 changes the target of asset transfer monitoring to the account to which the asset was transferred (step S26). The second transaction monitoring unit 41 monitors the asset transfer with the account to which the asset has been transferred as the account to be monitored. Then, the server 1 proceeds to step S24 in order to receive the next asset transfer detection notification.

一方、ユーザ間の資産移転でないと判定した場合には(ステップS25;No)、サーバ1は、資産移転が返金の有効期限内か否かを判定する(ステップS27)。例えば、サーバ1は、返金ルールに従って、条件DB21の返金期限と購買取引の取引データのタイムスタンプとを参照して、資産移転が返金の有効期限内か否かを判定する。 On the other hand, if it is determined that the transaction is not an asset transfer between users (step S25; No), the server 1 determines whether or not the asset transfer is within the expiration date of the refund (step S27). For example, according to the refund rule, the server 1 refers to the refund deadline in the condition DB 21 and the time stamp of the transaction data of the purchase transaction to determine whether the asset transfer is within the refund validity period.

資産移転が返金の有効期限内でないと判定した場合には(ステップS27;No)、サーバ1は、返金しないで決済すべく、ステップS30に移行する。かかる場合の決済額は、購買取引の取引データの送金額となる。一方、資産移転が返金の有効期限内であると判定した場合には(ステップS27;Yes)、サーバ1は、資産移転が許可された使途か否かを判定する(ステップS28)。例えば、サーバ1は、購買取引の取引データの送金先と条件DB21の許諾使途とを参照して、許可された使途か否かを判定する。 If it is determined that the asset transfer is not within the refund expiration date (step S27; No), the server 1 proceeds to step S30 to settle without refunding. The settlement amount in such a case is the remittance amount of the transaction data of the purchase transaction. On the other hand, if it is determined that the asset transfer is within the expiration date of the refund (step S27; Yes), the server 1 determines whether or not the asset transfer is permitted (step S28). For example, the server 1 refers to the remittance destination of the transaction data of the purchase transaction and the permitted use in the condition DB 21 to determine whether or not the use is permitted.

資産移転が許可された使途でないと判定した場合には(ステップS28;No)、サーバ1は、返金しないで決済すべく、ステップS30に移行する。かかる場合の決済額は、購買取引の取引データの送金額となる。一方、資産移転が許可された使途であると判定した場合には(ステップS28;Yes)、サーバ1は、返金ルールに従って、返金(払い戻し)額および決済額を算出して、返金額をスマートコントラクトが管理する預託口座から利用者(または譲渡元)の移転元口座へ返金するように交換元BC3へ指示する(ステップS29)。そして、サーバ1は、返金したうえで決済すべく、ステップS30に移行する。 If it is determined that the asset transfer is not permitted for use (step S28; No), the server 1 proceeds to step S30 to settle without refunding. The settlement amount in such a case is the remittance amount of the transaction data of the purchase transaction. On the other hand, if it is determined that the asset transfer is permitted for use (step S28; Yes), the server 1 calculates the refund (refund) amount and settlement amount according to the refund rules, and transfers the refund amount to the smart contract. instructs the exchange source BC 3 to repay the transfer source account of the user (or the transfer source) from the deposit account managed by (step S29). Then, the server 1 shifts to step S30 in order to make a payment after refunding.

ステップS30において、サーバ1は、決済額をスマートコントラクトが管理する預託口座から交換業者の決済用口座へ送金するように交換元BC3へ指示する(ステップS30)。サーバ1は、取引処理を終了する。 In step S30, the server 1 instructs the exchange source BC3 to transfer the settlement amount from the deposit account managed by the smart contract to the settlement account of the exchange company (step S30). The server 1 ends transaction processing.

[実施例2の効果]
上記実施例2によれば、サーバ1は、さらに、資産移転の取引があった移転元を監視対象とする取引の検出を交換先BC4に依頼する。サーバ1は、入金した通貨を用いた取引の検出に応答して、当該取引が購買取引か、ユーザ間の資産移転の取引であるか否かを判定する。そして、サーバ1は、当該取引がユーザ間の資産移転の取引であると判定した場合には、ユーザ間の資産移転の取引の資産移転先を監視対象とする取引の検出を交換先BC4に依頼する。かかる構成によれば、サーバ1は、ユーザ間の地域通貨における資産移転があっても、地域通貨による購買促進の仕組みを継続できる。また、サーバ1は、地域通貨を使用したと詐称することを防止することが可能となる。
[Effect of Example 2]
According to the second embodiment, the server 1 further requests the exchange destination BC 4 to detect a transaction whose monitoring target is the transfer source with which the asset transfer transaction was made. In response to detecting a transaction using deposited currency, the server 1 determines whether the transaction is a purchase transaction or an asset transfer transaction between users. Then, when the server 1 determines that the transaction is an asset transfer transaction between users, the server 1 requests the exchange destination BC 4 to detect a transaction targeting the asset transfer destination of the asset transfer transaction between users. do. According to such a configuration, the server 1 can continue the purchase promotion mechanism using the local currency even if there is an asset transfer in the local currency between users. Also, the server 1 can prevent misrepresentation that the local currency has been used.

[その他]
なお、サーバ1は、既知のパーソナルコンピュータ、ワークステーションなどの情報処理装置に、上記した制御部10および記憶部20などの機能を搭載することによって実現することができる。
[others]
Note that the server 1 can be realized by installing functions such as the above-described control unit 10 and storage unit 20 in an information processing apparatus such as a known personal computer or workstation.

また、図示した装置の各構成要素は、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、装置の分散・統合の具体的態様は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、代金預託受付部11と交換貨幣払出部12とを1個の部として統合しても良い。返金額送金指示部14と決済額送金指示部15とを1個の部として統合しても良い。一方、スマートコントラクト実行部13を、資産移転の移転先が許諾譲渡先であるか否かを判定する判定部と、資産移転の移転先が許諾譲渡先である場合の実行部と、資産移転の移転先が許諾譲渡先でない場合の実行部とに分散しても良い。また、記憶部20をサーバ1の外部装置としてネットワーク経由で接続するようにしても良い。 Also, each component of the illustrated apparatus does not necessarily have to be physically configured as illustrated. That is, the specific mode of distributing/integrating the devices is not limited to the illustrated one, and all or part of them can be functionally or physically distributed/integrated in arbitrary units according to various loads and usage conditions. can be configured as For example, the money deposit reception unit 11 and the exchange money dispensing unit 12 may be integrated as one unit. The refund amount remittance instruction unit 14 and the settlement amount remittance instruction unit 15 may be integrated as one unit. On the other hand, the smart contract execution unit 13 is composed of a determination unit that determines whether or not the transfer destination of the asset transfer is the permitted transfer destination, an execution unit that determines whether the transfer destination of the asset transfer is the permitted transfer destination, and a It may be distributed to the execution part when the transfer destination is not the permission transfer destination. Alternatively, the storage unit 20 may be connected to the server 1 via a network as an external device.

また、上記実施例で説明した各種の処理は、あらかじめ用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータで実行することによって実現することができる。そこで、以下では、図1に示したサーバ1と同様の機能を実現する取引処理プログラムを実行するコンピュータの一例を説明する。図10は、取引処理プログラムを実行するコンピュータの一例を示す図である。 Further, various processes described in the above embodiments can be realized by executing a prepared program on a computer such as a personal computer or a work station. Therefore, an example of a computer that executes a transaction processing program that implements the same functions as those of the server 1 shown in FIG. 1 will be described below. FIG. 10 is a diagram showing an example of a computer that executes a transaction processing program.

図10に示すように、コンピュータ200は、各種演算処理を実行するCPU203と、ユーザからのデータの入力を受け付ける入力装置215と、表示装置209を制御する表示制御部207とを有する。また、コンピュータ200は、記憶媒体からプログラムなどを読取るドライブ装置213と、ネットワークを介して他のコンピュータとの間でデータの授受を行う通信制御部217とを有する。また、コンピュータ200は、各種情報を一時記憶するメモリ201と、HDD(Hard Disk Drive)205を有する。そして、メモリ201、CPU203、HDD205、表示制御部207、ドライブ装置213、入力装置215、通信制御部217は、バス219で接続されている。 As shown in FIG. 10, the computer 200 has a CPU 203 that executes various arithmetic processes, an input device 215 that receives data input from the user, and a display control unit 207 that controls the display device 209 . The computer 200 also has a drive device 213 that reads programs and the like from a storage medium, and a communication control unit 217 that exchanges data with other computers via a network. The computer 200 also has a memory 201 that temporarily stores various information and a HDD (Hard Disk Drive) 205 . The memory 201 , CPU 203 , HDD 205 , display control section 207 , drive device 213 , input device 215 and communication control section 217 are connected via a bus 219 .

ドライブ装置213は、例えばリムーバブルディスク211用の装置である。HDD205は、取引処理プログラム205aおよび取引処理関連情報205bを記憶する。 The drive device 213 is a device for the removable disk 211, for example. HDD 205 stores transaction processing program 205a and transaction processing related information 205b.

CPU203は、取引処理プログラム205aを読み出して、メモリ201に展開し、プロセスとして実行する。かかるプロセスは、サーバ1の各機能部に対応する。取引処理関連情報205bは、条件DB21に対応する。そして、例えばリムーバブルディスク211が、取引処理プログラム205aなどの各情報を記憶する。 The CPU 203 reads the transaction processing program 205a, develops it in the memory 201, and executes it as a process. Such a process corresponds to each functional unit of the server 1. FIG. Transaction processing related information 205b corresponds to condition DB 21 . For example, the removable disk 211 stores information such as the transaction processing program 205a.

なお、取引処理プログラム205aについては、必ずしも最初からHDD205に記憶させておかなくても良い。例えば、コンピュータ200に挿入されるフレキシブルディスク(FD)、CD-ROM(Compact Disk Read Only Memory)、DVD(Digital Versatile Disk)、光磁気ディスク、IC(Integrated Circuit)カードなどの「可搬用の物理媒体」に当該プログラムを記憶させておく。そして、コンピュータ200がこれらから取引処理プログラム205aを読み出して実行するようにしても良い。 Note that the transaction processing program 205a does not necessarily have to be stored in the HDD 205 from the beginning. For example, a flexible disk (FD), a CD-ROM (Compact Disk Read Only Memory), a DVD (Digital Versatile Disk), a magneto-optical disk, an IC (Integrated Circuit) card inserted into the computer 200, and other "portable physical media" ” to store the program. Then, the computer 200 may read and execute the transaction processing program 205a from these.

1 サーバ
10 制御部
11 代金預託受付部
12 交換貨幣払出部
13 スマートコントラクト実行部
14 返金額送金指示部
15 決済額送金指示部
20 記憶部
21 条件DB
3 交換元BC
31 第1の取引監視部
4 交換先BC
41 第2の取引監視部
9 取引システム
1 Server 10 Control Unit 11 Money Deposit Receiving Unit 12 Exchange Money Dispensing Unit 13 Smart Contract Execution Unit 14 Refund Amount Remittance Instruction Unit 15 Settlement Amount Remittance Instruction Unit 20 Storage Unit 21 Condition DB
3 Exchange source BC
31 first transaction monitoring unit 4 exchange destination BC
41 second transaction monitoring unit 9 transaction system

Claims (7)

互いに異なる通貨の取引を記録する複数のブロックチェーンと、
前記複数のブロックチェーンの取引を監視するサーバと、を有し、
前記サーバは、
第1のブロックチェーンの通貨から第2のブロックチェーンの通貨への資産移転の取引依頼に応答して、前記第2のブロックチェーンに対して変換レートに従った入金処理を実行する第1の実行部と、
入金した通貨を用いた購買取引の検出に応答して、前記第1のブロックチェーンにおいて前記購買取引の形態に応じた額の払い戻しを実行する第2の実行部と、
を有することを特徴とする取引システム。
multiple blockchains that record transactions in different currencies;
a server that monitors transactions of the plurality of blockchains;
The server is
A first execution of performing deposit processing according to a conversion rate to the second blockchain in response to a transaction request for asset transfer from the currency of the first blockchain to the currency of the second blockchain. Department and
a second execution unit that, in response to detection of a purchase transaction using the deposited currency, refunds an amount corresponding to the form of the purchase transaction in the first blockchain;
A trading system characterized by having
前記第2の実行部は、取引のタイミング、取引の購入先または取引の対象の少なくとも1つの取引の形態を含むルールに基づいて前記購買取引に応じた払い戻しの額を決定し、決定した額の払い戻しを実行する
ことを特徴とする請求項1に記載の取引システム。
The second execution unit determines a refund amount according to the purchase transaction based on rules including at least one transaction form of transaction timing, transaction purchaser, or transaction target, and 2. The trading system of claim 1, wherein the transaction system performs refunds.
前記第2の実行部は、前記ルールが前記取引のタイミングにおけるルールである場合に、前記購買取引のタイミングが前記入金の時点からの時間の経過とともに払い戻しの額を減じるように前記払い戻しの額を決定する
ことを特徴とする請求項2に記載の取引システム。
The second execution unit, when the rule is a rule for the timing of the transaction, adjusts the refund amount so that the timing of the purchase transaction reduces the refund amount as time elapses from the time of the deposit. 3. The trading system of claim 2, further comprising: determining.
前記第2の実行部は、さらに、前記購買取引の形態が前記ルールに合致しない場合には、前記第1のブロックチェーンにおいて前記購買取引の取引額を決済するが、前記払い戻しを実行しない
ことを特徴とする請求項2または請求項3に記載の取引システム。
The second execution unit further settles the transaction amount of the purchase transaction in the first blockchain, but does not execute the refund, if the form of the purchase transaction does not conform to the rule. 4. Trading system according to claim 2 or claim 3.
前記第1の実行部は、さらに、前記資産移転の取引があった移転元を監視対象とする取引の検出を前記第2のブロックチェーンに依頼し、
前記第2の実行部は、
入金した通貨を用いた取引の検出に応答して、当該取引が購買取引か、ユーザ間の資産移転の取引であるか否かを判定し、当該取引がユーザ間の資産移転の取引であると判定した場合には、前記ユーザ間の資産移転の取引の資産移転先を監視対象とする取引の検出を前記第2のブロックチェーンに依頼する
ことを特徴とする請求項1に記載の取引システム。
The first execution unit further requests the second blockchain to detect a transaction targeting the transfer source where the asset transfer transaction was made,
The second execution unit
In response to detecting a transaction using deposited currency, determine whether the transaction is a purchase transaction or a transaction of asset transfer between users, and determine that the transaction is a transaction of asset transfer between users. 2. The trading system according to claim 1, wherein when it is determined, the second block chain is requested to detect a transaction that targets the asset transfer destination of the asset transfer transaction between the users.
所定の通貨の取引を記録する第1のブロックチェーンの通貨から、前記第1のブロックチェーンと異なる通貨の取引を記録する第2のブロックチェーンの通貨への資産移転の取引依頼に応答して、前記第2のブロックチェーンに対して変換レートに従った入金処理を実行し、
入金した通貨を用いた購買取引の検出に応答して、前記第1のブロックチェーンにおいて前記購買取引の形態に応じた額の払い戻しを実行する
処理をコンピュータに実行させることを特徴とする取引処理プログラム。
In response to a transaction request for asset transfer from a currency of a first blockchain that records transactions of a predetermined currency to a currency of a second blockchain that records transactions of a currency different from the first blockchain, Execute deposit processing according to the conversion rate for the second blockchain,
A transaction processing program characterized by causing a computer to execute a process of refunding an amount corresponding to the form of the purchase transaction in the first block chain in response to detection of a purchase transaction using the deposited currency. .
所定の通貨の取引を記録する第1のブロックチェーンの通貨から、前記第1のブロックチェーンと異なる通貨の取引を記録する第2のブロックチェーンの通貨への資産移転の取引依頼に応答して、前記第2のブロックチェーンに対して変換レートに従った入金処理を実行し、
入金した通貨を用いた購買取引の検出に応答して、前記第1のブロックチェーンにおいて前記購買取引の形態に応じた額の払い戻しを実行する
処理をコンピュータが実行することを特徴とする取引方法。
In response to a transaction request for asset transfer from a currency of a first blockchain that records transactions of a predetermined currency to a currency of a second blockchain that records transactions of a currency different from the first blockchain, Execute deposit processing according to the conversion rate for the second blockchain,
A transaction method, wherein, in response to detection of a purchase transaction using deposited currency, a computer executes a process of refunding an amount corresponding to the form of the purchase transaction in the first blockchain.
JP2019160747A 2019-09-03 2019-09-03 Trading Systems, Transaction Processing Programs and Trading Methods Active JP7318427B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019160747A JP7318427B2 (en) 2019-09-03 2019-09-03 Trading Systems, Transaction Processing Programs and Trading Methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019160747A JP7318427B2 (en) 2019-09-03 2019-09-03 Trading Systems, Transaction Processing Programs and Trading Methods

Publications (2)

Publication Number Publication Date
JP2021039564A JP2021039564A (en) 2021-03-11
JP7318427B2 true JP7318427B2 (en) 2023-08-01

Family

ID=74847145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019160747A Active JP7318427B2 (en) 2019-09-03 2019-09-03 Trading Systems, Transaction Processing Programs and Trading Methods

Country Status (1)

Country Link
JP (1) JP7318427B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022264226A1 (en) * 2021-06-14 2022-12-22 日本電信電話株式会社 Information presentation control device, method, and program
JP7773724B2 (en) * 2021-07-02 2025-11-20 bacoor dApps株式会社 Management system and method for managing non-fungible tokens
JP7239256B1 (en) 2021-11-16 2023-03-14 株式会社マネーフォワード Electronic currency system
JP2023161865A (en) * 2022-04-26 2023-11-08 コクヨ株式会社 Trading support system
JP7256321B1 (en) * 2022-06-29 2023-04-11 Kddi株式会社 Information processing device, information processing method and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316521A (en) 2004-04-26 2005-11-10 Ntt Communications Kk Depreciation type electronic currency system, electronic currency management device, program for payment device, and electronic currency recording device
JP2012064005A (en) 2010-09-16 2012-03-29 Felica Pocket Marketng Inc Region specific point awarding system in regional currency using electronic medium
JP2019070931A (en) 2017-10-06 2019-05-09 株式会社Smbc信託銀行 Banking system, method and program to be executed by banking system
JP2019128932A (en) 2018-01-23 2019-08-01 Social Good Foundation株式会社 Information processor, information processing method and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316521A (en) 2004-04-26 2005-11-10 Ntt Communications Kk Depreciation type electronic currency system, electronic currency management device, program for payment device, and electronic currency recording device
JP2012064005A (en) 2010-09-16 2012-03-29 Felica Pocket Marketng Inc Region specific point awarding system in regional currency using electronic medium
JP2019070931A (en) 2017-10-06 2019-05-09 株式会社Smbc信託銀行 Banking system, method and program to be executed by banking system
JP2019128932A (en) 2018-01-23 2019-08-01 Social Good Foundation株式会社 Information processor, information processing method and program

Also Published As

Publication number Publication date
JP2021039564A (en) 2021-03-11

Similar Documents

Publication Publication Date Title
JP7318427B2 (en) Trading Systems, Transaction Processing Programs and Trading Methods
US7765154B2 (en) Methods and apparatus for funding transactions using debit cards issued by one institution and funds from accounts at other institutions
JP2022508450A (en) Systems and methods that implement smart stave coins to facilitate cryptographic trustless smart swaps
JP7422923B1 (en) Information processing device, information processing method, and information processing program
CN114723429A (en) Block chain based non-homogenous instrument trading systems, methods, media and devices
JP6785646B2 (en) Withdrawal processing device
TWI311292B (en) System and method for virtual capital operation on the internet
JP4461618B2 (en) Payment apparatus and method
JP2009098768A (en) Point exchange system
JP6508828B2 (en) Settlement processing apparatus, settlement system, settlement processing method, and program
KR101699106B1 (en) Loaned money redemption method, server performing the same and system performing the same
CN111033543B (en) Points conversion system
JP7695643B2 (en) Information processing system, information processing method, and program
JP7356611B1 (en) Information processing device, information processing system, and information processing method
JP7561397B2 (en) A transposition network for converting between variable and fixed units.
KR101654404B1 (en) Method of loaning and repaying loaned money, server performing the same and system performing the same
JP7268233B1 (en) Information processing device, information processing method and program
JP7119222B2 (en) Digital currency conversion system, digital currency conversion method and program
KR102383017B1 (en) Method and system for blockchain-based mobile anonymous non-currency payment
CN115943407B (en) Portfolio system for coupling to a trading system to maintain shadow portfolios
JP2024033153A (en) Information processing device, information processing method and program
JP2024091074A (en) Information processing system, information processing method, and program
JP2024025358A (en) Financial institution systems and computer programs
JP2017004082A (en) Point appropriation system and point appropriation method
KR20140136697A (en) Method of managing payment relation between enterprises and system performing the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230511

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230620

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230703

R150 Certificate of patent or registration of utility model

Ref document number: 7318427

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150