JP7318427B2 - Trading Systems, Transaction Processing Programs and Trading Methods - Google Patents
Trading Systems, Transaction Processing Programs and Trading Methods Download PDFInfo
- 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
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.
ここで、地域振興券をブロックチェーンで実現される「地域通貨」に置き換えることが考えられる。しかしながら、地域振興券をブロックチェーンで実現される地域通貨に置き換える場合、ブロックチェーンでは、商品購入時に資産価値の移動だけが検証される仕組みのため、利用条件などのチェックを資産移動の検証プロセスで実現するのは難しいという問題がある。 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.
以下に、本願の開示する取引システム、取引処理プログラムおよび取引方法の実施例を図面に基づいて詳細に説明する。なお、実施例によりこの発明が限定されるものではない。 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
取引システム9は、サーバ1と、複数のBCのP2Pネットワーク3,4とを有する。サーバ1は、複数のBCのP2Pネットワーク3,4を用いた取引のスマートコントラクトを実行する。ここでいうスマートコントラクトとは、資産の預託を受けて通貨の交換規則に沿った運用がなされるように振る舞うプログラムのことをいい、特に、一般通貨から地域振興券に代わる地域通貨への通貨の交換後に地域通貨での取引を円滑に行うように振る舞う。なお、複数のBCのP2Pネットワーク3,4は、以降、それぞれ「交換元BC3」,「交換先BC4」というものとする。
The
交換元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
第1の取引監視部31は、交換元BC3での取引(資産移転)を監視する。例えば、ユーザが交換元BC3の移転元口座にある一般通貨の保有資産を交換先BC4の自身の移転先口座に移転する場合に、移転元口座の保有資産を、スマートコントラクトが管理する「預託口座」に送金する。第1の取引監視部31は、「預託口座」を宛先とした送金取引を検出した場合には、預託口座への資産移転をサーバ1の後述する代金預託受付部11に通知する。
The first
交換先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
第2の取引監視部41は、交換先BC4での地域通貨での取引(資産移転)を監視する。例えば、第2の取引監視部41は、監視対象の地域通貨での取引を検出した場合には、監視対象に関する地域通貨での資産移転の検出通知をサーバ1の後述するスマートコントラクト実行部14に通知する。
The second
また、第2の取引監視部41は、サーバ1からの依頼に応じて、監視すべき対象の取引の移転を監視する。
Also, the second
サーバ1は、制御部10と、記憶部20とを有する。
The
制御部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
記憶部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
図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
監視対象口座は、監視対象のユーザの口座情報を示す。移転取引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
交換貨幣払出部12は、交換貨幣の払い出しを依頼する。例えば、交換貨幣払出部12は、代金預託受付部11から払い出し依頼の要求を受け取る。交換貨幣払出部12は、交換レートに従ったコインの払い出し処理を行うべく、交換業者の口座からユーザの移転先口座へ交換貨幣(地域通貨)での資産の移転を交換業者に対して指示する。すなわち、交換貨幣払出部12は、一般通貨から地域通貨への価値移転の取引を交換業者に対して依頼する。
The exchange
加えて、交換貨幣払出部12は、交換先BC4の第2の取引監視部41に対して、ユーザの移転先口座を監視対象とする資産移転の監視を依頼する。
In addition, the exchange
スマートコントラクト実行部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
返金額送金指示部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
また、交換先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
[取引処理の流れ]
図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,
このような前提の下、ユーザ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
そして、サーバ1では、代金預託受付部11が、預託口座への資産移転の検出通知を受け取り、交換貨幣払出部12が、起動時に指定された交換先(地域振興コイン)BC4のユーザAの移転先口座宛てに入金を行うよう、交換業者に指示を出す(<3>)。すなわち、交換貨幣払出部12は、一般通貨(課金トークン)から地域通貨(地域振興コイン)への価値移転の取引をするように、交換業者に対して、交換レートに従った地域振興コインの払い出しを依頼する。加えて、交換貨幣払出部12は、交換先(地域振興コイン)BC4に対して、ユーザAの移転先口座を監視対象とする資産移転の監視を依頼する。なお、交換貨幣払出部12は、資産移転の監視を依頼する際に、ユーザAの監視対象口座として移転先口座、預託口座に預託した預託量、返金期限、許諾使途、譲渡可能な譲渡先を含む情報を添付して送信する。
Then, in the
交換先(地域振興コイン)BC4では、第2の取引監視部41が、資産移転の監視の依頼を受け付けると、当該依頼に添付された情報を条件DB21に追加する。また、交換業者は、払い出しの依頼を受け付けると、交換レートに従って、地域振興コイン30,000コインを、払い出し用口座からユーザAの移転先口座へ送金する。この結果、ユーザAは、地域通貨(地域振興コイン)30,000コインを自身が管理する移転先口座で受け取る(<4>)。
In the exchange destination (regional promotion coin) BC4, when the second
この後、ユーザ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
サーバ1では、スマートコントラクト実行部13が、監視対象の移転先口座を含む資産移転取引情報を添付した、資産移転の検出通知を受信すると、返金ルールに従って、条件DB21を参照して、返金額と決済額を決定する(<7>)。ここでは、1か月以内に全コインを消費したので、返金額は、一般通貨(課金トークン)建てで10,000ポーションと決定され、決済額は、一般通貨(課金トークン)建てで20,000ポーションと決定される。そこで、返金額送金指示部15は、監視対象のユーザAに対する返金額10,000ポーションの送金を、交換元(課金トークン)BC3に指示する。決済額送金指示部15は、監視対象のユーザAに対する決済額20,000ポーションの送金を、交換元(課金トークン)BC3に指示する(<8>)。
In the
交換元(課金トークン)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
スマートコントラクト実行部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
スマートコントラクト実行部13は、資産移転取引情報に示された監視対象の移転先口座(資産移転の移転元)から条件DB21内で対応するエントリを検索する(a1)。
The smart contract execution unit 13 searches for a corresponding entry in the
スマートコントラクト実行部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
[サーバの取引処理のフローチャート]
図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
すると、サーバ1は、交換業者の口座から利用者の移転先口座への交換貨幣(地域通貨)での資産移転を交換先BC4の交換業者へ指示する(ステップS12)。すなわち、サーバ1は、一般通貨から地域通貨への価値移転の取引を交換先BC4の交換業者に対して依頼する。加えて、サーバ1は、利用者の移転先口座の資産移転の監視を、交換先BC4の第2の取引監視部41に依頼する(ステップS13)。第2の取引監視部41は、利用者の移転先口座を監視対象口座として資産移転を監視する。
Then, the
この後、サーバ1は、交換先BC4の第2の取引監視部41から地域通貨での資産移転の検出通知を受信する(ステップS14)。すなわち、利用者が地域通貨を用いて購買取引した場合に、利用者の移転先口座から資産移転が行われる。このとき、第2の取引監視部41は、利用者の移転先口座からの資産移転を検出し、資産移転の検出通知を送信する。第2の取引監視部41によって送信された資産移転の検出通知を、サーバ1が受信する。
After that, the
そして、サーバ1は、資産移転が返金の有効期限内か否かを判定する(ステップS15)。例えば、サーバ1は、返金ルールに従って、条件DB21の返金期限と購買取引の取引データのタイムスタンプとを参照して、資産移転が返金の有効期限内か否かを判定する。
Then, the
資産移転が返金の有効期限内でないと判定した場合には(ステップ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
資産移転が許可された使途でないと判定した場合には(ステップ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
ステップS18において、サーバ1は、決済額をスマートコントラクトが管理する預託口座から交換業者の決済用口座へ送金するように交換元BC3へ指示する(ステップS18)。サーバ1は、取引処理を終了する。
In step S18, the
[実施例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
また、上記実施例1によれば、サーバ1は、取引のタイミング、取引の購入先または取引の対象の少なくとも1つの取引の形態を含むルールに基づいて購買取引に応じた払い戻しの額を決定し、決定した額の払い戻しを実行する。かかる構成によれば、サーバ1は、取引のタイミングや使途を限定した払い戻しのルールを用いて払い戻しを実行することで、地域通貨による購買を促進できる。
Further, according to the first embodiment, the
また、上記実施例1によれば、サーバ1は、ルールが取引のタイミングにおけるルールである場合に、購買取引のタイミングが入金の時点からの時間の経過とともに払い戻しの額を減じるように前記払い戻しの額を決定する。かかる構成によれば、サーバ1は、時間の経過とともに払い戻しの額が少なくなるルールを用いることで、資産価値が時間経過に伴って減少していく「時間逓減コイン」を実現できる。
Further, according to the first embodiment, the
また、上記実施例1によれば、サーバ1は、購買取引の形態がルールに合致しない場合に、交換元BC3において購買取引の取引額を決済するが、払い戻しを実行しない。かかる構成によれば、サーバ1は、例えば、購買取引の期限が切れていたり、購買取引の使途が限定された使途でなかったりした場合でも、払い戻しを実行しないが、地域通貨により購買をすることができる。この結果、サーバ1は、地域通貨への交換および地域通貨による購買を促進できる。すなわち、利用者は地域振興券に代わる地域通貨を積極的に購入することができる。
Further, according to the first embodiment, the
ところで、実施例1では、地域通貨を購入したユーザが購買取引を行った場合に、サーバ1が、購買取引の検出に応答して、購買取引の形態に応じた額の払い戻しを実行する場合を説明した。しかしながら、地域通貨を購入したユーザが購買取引を行った場合に限定されず、地域通貨を購入したユーザが自身が購入した地域通貨を許諾譲渡先のユーザに譲渡し、譲渡されたユーザが購買取引を行う場合であっても良い。かかる場合には、サーバ1は、譲渡先のユーザの購買取引の検出に応答して、購買取引の形態に応じた額の払い戻しを譲渡元のユーザに行うようにすれば良い。
By the way, in the first embodiment, when a user who has purchased local currency performs a purchase transaction, the
そこで、実施例2では、サーバ1は、地域通貨を譲渡されたユーザが購買取引を行った場合に、購買取引の検出に応答して、購買取引の形態に応じた額の払い戻しを譲渡元のユーザに行う場合について説明する。
Therefore, in the second embodiment, when a user to whom local currency is transferred performs a purchase transaction, the
[実施例2に係るサーバの構成]
実施例2に係るサーバ1は、図1に示すサーバ1の構成と同一の構成であるので、その構成については省略する。ただし、スマートコントラクト実行部13、返金額送金指示部14および決済額送金指示部15の動作が若干異なる部分があるので、その動作について説明する。
[Configuration of server according to embodiment 2]
The configuration of the
スマートコントラクト実行部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
スマートコントラクト実行部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
返金額送金指示部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
スマートコントラクト実行部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
スマートコントラクト実行部13は、資産移転取引情報に示された監視対象の移転先口座(資産移転の移転元)から条件DB21内で対応するエントリを検索する(b1)。
The smart contract execution unit 13 searches for a corresponding entry in the
スマートコントラクト実行部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
この後、スマートコントラクト実行部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
スマートコントラクト実行部13は、資産移転取引情報に示された監視対象の口座(資産移転の移転元)「0x46666」から条件DB21内で対応するエントリを検索する(b11)。
The smart contract execution unit 13 searches for a corresponding entry in the
スマートコントラクト実行部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
そして、スマートコントラクト実行部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
すると、サーバ1は、交換業者の口座から利用者の移転先口座への交換貨幣(地域通貨)での資産移転を交換先BC4の交換業者へ指示する(ステップS22)。すなわち、サーバ1は、一般通貨から地域通貨への価値移転の取引を交換先BC4の交換業者に対して依頼する。加えて、サーバ1は、利用者の移転先口座の資産移転の監視を、交換先BC4の第2の取引監視部41に依頼する(ステップS23)。第2の取引監視部41は、利用者の移転先口座を監視対象口座として資産移転を監視する。
Then, the
この後、サーバ1は、交換先BC4の第2の取引監視部41から地域通貨での資産移転の検出通知を受信する(ステップS24)。すなわち、利用者が自身の地域通貨の一部または全部を譲渡した場合に、利用者の口座から資産移転が行われる。また、利用者が地域通貨を用いて購買取引した場合に、利用者の口座から資産移転が行われる。このとき、第2の取引監視部41は、利用者の口座からの資産移転を検出し、資産移転の検出通知を送信する。第2の取引監視部41によって送信された資産移転の検出通知を、サーバ1が受信する。
After that, the
資産移転の検出通知を受信したサーバ1は、条件DB21を参照して、ユーザ間の資産移転であるか否かを判定する(ステップS25)。ユーザ間の資産移転であると判定した場合には(ステップS25;Yes)、サーバ1は、資産移転の監視の対象を資産移転された移転先口座に変更する(ステップS26)。第2の取引監視部41は、資産移転された移転先口座を監視対象口座として資産移転を監視する。そして、サーバ1は、次の資産移転の検出通知を受信すべく、ステップS24に移行する。
The
一方、ユーザ間の資産移転でないと判定した場合には(ステップ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
資産移転が返金の有効期限内でないと判定した場合には(ステップ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
資産移転が許可された使途でないと判定した場合には(ステップ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
ステップS30において、サーバ1は、決済額をスマートコントラクトが管理する預託口座から交換業者の決済用口座へ送金するように交換元BC3へ指示する(ステップS30)。サーバ1は、取引処理を終了する。
In step S30, the
[実施例2の効果]
上記実施例2によれば、サーバ1は、さらに、資産移転の取引があった移転元を監視対象とする取引の検出を交換先BC4に依頼する。サーバ1は、入金した通貨を用いた取引の検出に応答して、当該取引が購買取引か、ユーザ間の資産移転の取引であるか否かを判定する。そして、サーバ1は、当該取引がユーザ間の資産移転の取引であると判定した場合には、ユーザ間の資産移転の取引の資産移転先を監視対象とする取引の検出を交換先BC4に依頼する。かかる構成によれば、サーバ1は、ユーザ間の地域通貨における資産移転があっても、地域通貨による購買促進の仕組みを継続できる。また、サーバ1は、地域通貨を使用したと詐称することを防止することが可能となる。
[Effect of Example 2]
According to the second embodiment, the
[その他]
なお、サーバ1は、既知のパーソナルコンピュータ、ワークステーションなどの情報処理装置に、上記した制御部10および記憶部20などの機能を搭載することによって実現することができる。
[others]
Note that the
また、図示した装置の各構成要素は、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、装置の分散・統合の具体的態様は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、代金預託受付部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
また、上記実施例で説明した各種の処理は、あらかじめ用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータで実行することによって実現することができる。そこで、以下では、図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
図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
ドライブ装置213は、例えばリムーバブルディスク211用の装置である。HDD205は、取引処理プログラム205aおよび取引処理関連情報205bを記憶する。
The
CPU203は、取引処理プログラム205aを読み出して、メモリ201に展開し、プロセスとして実行する。かかるプロセスは、サーバ1の各機能部に対応する。取引処理関連情報205bは、条件DB21に対応する。そして、例えばリムーバブルディスク211が、取引処理プログラム205aなどの各情報を記憶する。
The
なお、取引処理プログラム205aについては、必ずしも最初からHDD205に記憶させておかなくても良い。例えば、コンピュータ200に挿入されるフレキシブルディスク(FD)、CD-ROM(Compact Disk Read Only Memory)、DVD(Digital Versatile Disk)、光磁気ディスク、IC(Integrated Circuit)カードなどの「可搬用の物理媒体」に当該プログラムを記憶させておく。そして、コンピュータ200がこれらから取引処理プログラム205aを読み出して実行するようにしても良い。
Note that the
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
3 Exchange source BC
31 first
41 second
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
ことを特徴とする請求項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に記載の取引システム。 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または請求項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.
前記第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のブロックチェーンにおいて前記購買取引の形態に応じた額の払い戻しを実行する
処理をコンピュータに実行させることを特徴とする取引処理プログラム。 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のブロックチェーンにおいて前記購買取引の形態に応じた額の払い戻しを実行する
処理をコンピュータが実行することを特徴とする取引方法。 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.
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)
| 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)
| 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 |
-
2019
- 2019-09-03 JP JP2019160747A patent/JP7318427B2/en active Active
Patent Citations (4)
| 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 |