WO2020063036A1 - Digital currency settlement method, terminal and machine-readable storage medium - Google Patents

Digital currency settlement method, terminal and machine-readable storage medium Download PDF

Info

Publication number
WO2020063036A1
WO2020063036A1 PCT/CN2019/095810 CN2019095810W WO2020063036A1 WO 2020063036 A1 WO2020063036 A1 WO 2020063036A1 CN 2019095810 W CN2019095810 W CN 2019095810W WO 2020063036 A1 WO2020063036 A1 WO 2020063036A1
Authority
WO
WIPO (PCT)
Prior art keywords
record
account
bank
ledger
authenticity
Prior art date
Application number
PCT/CN2019/095810
Other languages
French (fr)
Chinese (zh)
Inventor
南相浩
Original Assignee
晋商博创(北京)科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 晋商博创(北京)科技有限公司 filed Critical 晋商博创(北京)科技有限公司
Publication of WO2020063036A1 publication Critical patent/WO2020063036A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials

Definitions

  • the present invention relates to the technical field of computers and software, and in particular to a method, terminal, and machine-readable storage medium for settlement of digital currency.
  • the bookkeeping and storage methods of bank books are the key to bank financial security.
  • the security of the ledger is mostly compensated by the storage method.
  • the second method is distributed storage in a database. Comparing the above two, the distributed storage method in the library has higher system efficiency. Whether it is block storage between libraries or distributed storage within the library, the management mode is basically the same.
  • the third is a centralized hot backup storage method, which is a traditional storage and management mode and one of the effective methods.
  • the self-protecting accounting method has not been solved, and the security protection problem of the library has become prominent.
  • the inventor of the present application found in the process of implementing the present invention that the above-mentioned solution of the prior art has the following defects: when the self-protection of the ledger is solved, the system efficiency cannot be guaranteed, or when the system efficiency is guaranteed, the ledger storage cannot be guaranteed Security.
  • the purpose of the embodiments of the present invention is to provide a digital currency checkout method, terminal, and machine-readable storage medium, and simultaneously solve the problems of security and system efficiency of ledger storage, and propose a storage method based on evidence chain, which is not subject to storage.
  • the impact of location and management methods can not only ensure the integrity of the ledger, but also restore lost accounts in the ledger.
  • an embodiment of the present invention provides a method for settling a digital currency.
  • the method includes: obtaining a bill and verifying the authenticity of the bill, the bill including account information and a certificate of authenticity of the account information,
  • the evidence chain and the authenticity proof of the evidence chain, the evidence chain is a linear sum of the account names in the account information; when the bill is verified to be true, obtain the account information in the account name; find and Update the evidence in the ledger record according to the account record corresponding to the account information, and store the bill as the latest record in the corresponding ledger record; and according to the payment amount in the account information and the evidence chain
  • the chain code and the balance are stored in the latest record, and the evidence chain code is a linear sum of the evidence chain in the ledger record.
  • the account information includes a receiving account and a payment account.
  • updating the evidence chain code in the ledger record according to the evidence chain in the account information includes: or Evidence obtained ecode n chain code books after updating the record, wherein, Isum n is the chain of evidence and the account information, ecode n-1 is the latest recording on a record in a chain of evidence code , Isum i is the chain of evidence in the i record in the ledger record.
  • evidence chain code ecode 1 records the i-1;
  • Isum i-1 ecode i -ecode i-1, i-1 to determine the first record in the record books in the chain of evidence i-1 the Isum.
  • the balance i-1 in one record, where balance i is the balance in the i- th record in the ledger record, and amount i is the payment amount in the i-th record in the ledger record; according to amount i-1 balance i-1 -balance i-2 , determine the payment amount amount i-1 in the record i-1 in the ledger record, where balance i-2 is the first in the ledger record The balance in i-2 records.
  • the method further includes: according to a preset list of bank name, account information, and fund use, the first i-1 record
  • the payment amount and the evidence chain in the bank determine the bank name, account information, and use of funds in the i-1 record in the ledger record through exhaustive operations.
  • the method further includes: searching for the i-1 record in the hot backup database, extracting and recovering the first ledger record Article i-1 record.
  • an embodiment of the present invention further provides a bank terminal, where the bank terminal is configured to execute a settlement method of the digital currency.
  • an embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores instructions, and the instructions are used to cause a machine to execute the digital currency checkout method.
  • FIG. 1 is a schematic diagram of a digital account provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a digital currency checkout method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a ledger record provided by an embodiment of the present invention.
  • Digital currency is digitized cash, which is printed at the factory and is called the factory currency.
  • the account currency in digital currency is issued by an account like a check.
  • Household currency is indispensable to convert all the proof functions in cash. Household currency is more superior than cash. It can be circulated on the market or on the Internet. Its security function is stronger than cash. The most important one is that the household currency is not afraid of being lost, not afraid of being copied, and it does not make sense to steal it. This is vital to the security of bank books.
  • one transaction between the receiving account and the payment account forms a single bill
  • the account information included in a single bill contains multiple account names, such as bank name, receiving account, payment account, payment amount, fund use, and so on.
  • Multiple transactions form a ledger record, and each record in the ledger record contains the contents of the bill formed by one transaction.
  • the transaction is carried out through the account currency, so a bill is a digital account currency, as shown in Figure 1, which includes the account name and evidence provided by the issuing bank and the account name and evidence provided by the payment account.
  • Account opening can be circulated not only on the market, but also on the Internet, and it is also directly applicable to bank settlement.
  • the settlement of digital currency is implemented by digital signature technology.
  • the digital signature is provided by CPK (Combined Public Key).
  • CPK is an identity-based combined public key system.
  • Alice's identity is Alice
  • Alice's public and private keys are:
  • the identity is transformed into a series of random number sequences by Hash transformation, the random number sequence is used as the coordinates of the matrix, and the variables on the 32 coordinates are accumulated respectively for public and private. key.
  • Hash transformation the random number sequence is used as the coordinates of the matrix
  • variables on the 32 coordinates are accumulated respectively for public and private. key.
  • the bill for the settlement of digital currency further includes a linear sum of account names, and a linear sum forms a chain of evidence.
  • the chain of evidence can be used to determine whether the record is lost or not, and which record is lost, and the lost chain can be recovered through the chain of evidence and the chain of evidence code in the record. Embodiments are described below.
  • FIG. 2 is a schematic flowchart of a digital currency checkout method according to an embodiment of the present invention. The method is applied to a bank terminal. As shown in FIG. 2, the method includes the following steps:
  • Step 201 Obtain a bill and verify the authenticity of the bill, the bill includes account information and a certificate of authenticity of the account information, a chain of evidence, and a certificate of authenticity of the chain of evidence, and the chain of evidence is the account Linear sum of account names in the message.
  • the beneficiary account when a beneficiary account and a payment account are transacted, the beneficiary account first issues a receipt notice.
  • the receipt notice may be in the form of a two-dimensional code or other data form and sent to the payment account.
  • the payment account after receiving the payment notification, the payment account also uses the CPK signature protocol to verify the authenticity certificate therein, for example, to verify its authenticity according to the following methods:
  • a verification code c11' is obtained to prove the authenticity of the receipt amount.
  • VER is the verification function
  • FIRM is the public key of the receiving account.
  • the public key matrix is available to everyone based on the CPK system. Therefore, the payment account obtains the public account of the receiving account according to the identity of the receiving account Firm and the public key matrix. key. The payment account verifies whether c10 and c10 ', c11 and c11' are the same, and determines whether the payment notification is true. If true, the payment account fills in relevant account information according to the requirements of the currency template. If it is not true, the payment account will not make a payment to the receiving account.
  • the household currency template is obtained by applying for a payment account to a bank according to its own payment needs. The application for the household currency template is not the content to be explained in the present invention, and those skilled in the art can obtain it based on the existing technology, and will not repeat them here .
  • the payment account verifies that the receipt notice from the beneficiary account is true, a bill is sent to the beneficiary account, that is, the digital account currency shown in FIG. 1.
  • the bank is called the issuing bank of the payment account.
  • the payment account directly writes the account information such as the payment amount, the use of funds, and the receiving account into the digital account currency shown in Figure 1, and digitally signs it.
  • the specific implementation method is as follows:
  • the account information includes the digital signature sign1 of the time signature time1 of the bank to the bank, which indicates the authenticity certificate of the bank name, and the digital signature sign2 of the payment account Client, and that the authenticity certificate of the payment account is passed.
  • the private key of the bank is signed.
  • the account information also includes a digital signature sign3 of the payment account signing time2 of the payment account, a digital signature sign4 of the payment amount amount, a digital signature sign5 of the use of funds, a digital signature sign6 of the receiving account Firm, and Bank name, payment account, amount, fund use, and beneficiary account linearity and Isum digital signature sign7, which respectively represent the proof of authenticity of the payment account, the proof of authenticity of the payment amount, the proof of authenticity of the use of funds, the proof of authenticity of the receiving account, Both linear and authenticity proofs are signed by the payment account private key client.
  • SIG is a signature function
  • s1, s2, s3, s4, s5, s6, and s7 are signature codes
  • c1, c2, c3, c4, c5, c6, and c7 are verification codes.
  • each account is digitally signed, so that each account has its own independent protection capabilities.
  • the digital account currency specifies the receiving account and is signed by the payment account.
  • the local currency is only meaningful to the designated receiving account and has no meaning to any third party. Therefore, the bill is not afraid of being lost or stolen, which is the basic guarantee of the security of the ledger.
  • the bill data ⁇ bank, time1, sign1, Client, sign2, Client, time2, sign3, amount, sign4, use, sign5, Firm, sign6, Isum, sign7 ⁇ is sent to the payment Account, beneficiary account need to verify the authenticity proof in the bill, as follows:
  • VER is the verification function
  • BANK is the public key of the bank
  • CLIENT is the public key of the payment account
  • the receiving account calculates the bank public key and the payment account public key according to the identification of the bank name, the identification of the payment account, and the public key matrix.
  • the receiving account verifies whether c1 and c1 ', c2 and c2', c3 and c3 ', c4 and c4', c5 and c5 ', c6 and c6', c7 and c7 'are the same, and determine whether the bill is true.
  • the bank After obtaining the bill, the bank must verify the authenticity of the bill.
  • step 202 is performed. Otherwise, the bill is discarded.
  • the remaining account information is signed by the payment account, which realizes the principle of autonomous and controllable account, and the remaining account information is used as independent variables. Achieved "one event, one certificate”, put an end to the transfer of trust and the takeover of rights.
  • digital signatures they have the ability to protect themselves and do not require additional protection. Therefore, there is no requirement for the security of the storage place of the bill, and the storage place is not affected limit.
  • Step 202 When verifying that the bill is true, obtain account information in the account name;
  • Step 203 Find a ledger record corresponding to the account information, and store the bill as the latest record in the corresponding ledger record.
  • the bank needs to obtain the account information in the account name, that is, the receiving account and the payment account. Then, look up the ledger records corresponding to the receiving account and the payment account locally, that is, the ledger records corresponding to the receiving account stored locally in the bank terminal, which contains records of the transactions between the receiving account and other accounts, and there is a receiving record And payment records.
  • the book record corresponding to the payment account also includes the transaction records between the payment account and other accounts, and there are also collection records and payment records.
  • the record in the ledger record corresponding to the payment account is the payment record
  • the record in the ledger record corresponding to the receiving account is the payment record.
  • the difference between the specific records is whether the payment amount is positive or negative. For the payment account, the payment amount is negative, and for the receiving account, the payment amount is positive.
  • the account name and evidence provided by the issuing bank may be stored together with the account name and evidence provided by the payment account, or, as provided by the issuing bank
  • the account name and evidence provided by the bank are the evidence provided by the bank itself, which is only used to check its authenticity, and may not participate in bank records, that is, the account name and evidence provided by the issuing bank in the statement may not be stored, but only the statement
  • the account name and evidence provided by the payment account in the current account are stored in the corresponding ledger record as the latest record.
  • the payment account in this bill with its digital signature and payment amount instead of its digital signature, the use of funds and its digital signature, the receiving account and its digital signature, the chain of evidence and its digital signature are stored in its ledger records as the latest record.
  • the n record is the latest record of the payment account.
  • Step 204 Update the evidence chain code and balance in the ledger record according to the payment amount in the account information and the evidence chain, and store the evidence chain code in the latest record, where the evidence chain code is the ledger Linear sum of the evidence chain in the record.
  • the bank first calculates the balance when checking out.
  • the calculation method is as follows:
  • balance n balance n-1 -amount (for the ledger records of the payment account)
  • balance n balance n-1 + amount (for the ledger record of the receiving account)
  • SIG is the signature function
  • bank is the private key of the bank name
  • balance n is the updated balance
  • sign9 is used to mark (s9, c9), and it represents the updated balance authenticity proof
  • s9 is the signature code
  • c9 is the verification code.
  • the bank terminal updates the evidence chain code in the ledger record according to the evidence chain in the account information:
  • the updated evidence chain code ecode n in the ledger record is obtained.
  • Isum n is the evidence chain in the account information
  • ecode n -1 is the evidence chain code in the previous record of the latest record
  • Isum i is the i-th record in the ledger record Chain of evidence.
  • the updated evidence chain code there may be the above two methods, that is, to obtain the updated evidence chain code through the linearity of the evidence chain of all records in the ledger record (including the latest record), or, When the integrity of the ledger record has not been verified, the updated evidence chain code can also be obtained through the linear sum of the evidence chain code in the previous record and the evidence chain in this bill.
  • ecode n is the updated evidence chain code
  • sign8 is used to mark (s8, c8) and represents the updated evidence chain code authenticity proof
  • s8 is the signature code
  • c8 is the verification code.
  • a ledger record is composed of records. If a ledger record is complete, it is proved that the records in the ledger record are complete. Because each account in the record has a digital signature, its own protection function is very strong, tampering is unlikely, but the digital signature cannot be found or not. Therefore, it is necessary to verify the integrity of the ledger record according to the evidence chain and evidence chain code in the ledger record. Taking the ledger record shown in Figure 3 as an example, from the linear sum of the evidence chain code It can be seen that if the chain of evidence is disconnected, the two ends of the equation will not be equal, and the disconnected place is where the records are lost.
  • the first way is to check after going, that is, starting from the first record:
  • the i-1 record in the ledger record is lost.
  • the third record will be checked as the second record, that is, Isum 3 as Isum 2 , ecode 3 as ecode 2 , But actually From this, it can be judged that the second record is lost.
  • the second way is to reverse the verification from the back, that is, check from the nth record:
  • Article n record Article n-1 record Article n-2 Records Where i 1,2,3, ..., n, verify in turn whether each record in the ledger record is lost.
  • the i-1 record in the ledger record is lost.
  • the second record because the second record is lost, then when checking the third record, the first record will be regarded as the second record, that is, ecode 1 as ecode 2 , But actually From this, it can be judged that the second record is lost.
  • the evidence chain and the evidence chain code can be directly used to determine the lost records, without the need to perform a one-to-one correspondence between the locally stored ledger records and the corresponding ledger records in the hot backup database to check their integrity, reducing the The workload of the integrity check of the ledger records.
  • the payment amount, the evidence chain, the evidence chain code, and the balance in the ledger record may also be used to compare the -1 records are restored to obtain payment amount, chain of evidence, chain of evidence code and balance in record i-1.
  • the specific way is as follows:
  • the recovery of the evidence chain and the evidence chain code in the record of the first i-1 is only an example.
  • the evidence chain and the evidence chain code in the record of the first i-1 can be obtained by other methods.
  • the payment amount and evidence chain in the i-1 record can be substituted into the above linear and Isum
  • the bank name, account information, and fund use in the i-1 record in the ledger record are determined through an exhaustive operation.
  • the bank name, payment account, payment amount, use of funds, receiving account, evidence chain, chain of evidence code and balance in the record of Article i-1 can be recovered, but the authenticity of the above information cannot be recovered, so Hot backup database support is necessary. Since the lost records are clarified, the authenticity proof of the above information can be recovered by searching the corresponding records in the hot backup database.
  • the digital signature used by the digital account is a CPK signature protocol
  • the settlement time of a transaction only needs milliseconds, and there is no need to worry about the existing technology. Emerging system efficiency and overhead issues.
  • the payment account and payment account are specified in the digital account currency, and the transaction amount is digitally signed.
  • CPK digital signature is composed of time factor and identification factor, which prevents being copied and used, and can eliminate the possibility of internal and external crimes.
  • Digital currency is not afraid of being lost or copied, because digital currency has no meaning to non-parties.
  • bank book records settled in digital currency are not afraid of being stolen or copied, which is critical to the security of the database in which the bank stores the book records.
  • the storage method of digital account records the only worry is the loss of bills. Although the loss of one bill does not affect daily settlement and does not cause security hazards, it causes trouble to account management.
  • the storage method based on the chain of evidence is not affected by the storage location and the storage method. It can not only judge whether the bills in the ledger records are lost or not, but also determine which ledger records and bills are lost, and can recover the lost ones.
  • the accounts the chain of evidence can be established between the ledger record and the ledger record to determine whether the ledger record is lost.
  • the completeness of the ledger records is only related to the evidence chain and the evidence chain code, and has nothing to do with the storage of the ledger records. This self-protecting bookkeeping method can greatly ease the security burden of the ledger record database.
  • an embodiment of the present invention further provides a bank terminal, where the bank terminal is configured to execute the digital currency settlement method described in the foregoing embodiment.
  • an embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores instructions, and the instructions are used to make the machine execute the digital currency checkout method described in the foregoing embodiment.
  • the private key of the bank can be protected by a software package or stored in a storage medium, including: U disk, mobile Hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store parameters.

Abstract

Provided are a digital currency settlement method, a terminal and a machine-readable storage medium, belonging to the technical field of computers and software thereof. By means of the present invention, the security of a ledger is ensured, and same is not restricted by the way that the ledger is stored. In addition, since the linear sum of all the items of an account in a bill is provided, conditions are provided for restoring the items of an account when the bill is lost, thereby narrowing the scope of account-checking. The method comprises: acquiring a bill and verifying the authenticity of the bill, wherein the bill comprises information of items of an account, the authenticity proof of the information of the items of the account, an evidence chain and the authenticity proof of the evidence chain; when the bill is verified to be true, acquiring account information in the names of the items of the account; searching for a ledger record corresponding to the account information, and taking the bill as the latest record and storing same in the corresponding ledger record; and updating, according to a payment amount in the information of the items of the account and the evidence chain, an evidence chain code and a balance in the ledger record, and storing same in the latest record. The embodiments of the present invention are applicable to a settlement process of a digital account currency executed by a bank terminal.

Description

数字货币的结账方法、终端及机器可读存储介质Digital currency settlement method, terminal and machine-readable storage medium 技术领域Technical field
本发明涉及计算机及其软件技术领域,具体地涉及一种数字货币的结账方法、终端及机器可读存储介质。The present invention relates to the technical field of computers and software, and in particular to a method, terminal, and machine-readable storage medium for settlement of digital currency.
背景技术Background technique
银行账本的记账方法与存储方法,是关系到银行金融安全的关键所在。目前,由于没有解决自我保护性记账方法,账本的安全大都靠存储方法来弥补。现有的存储方式有三种,第一种是将一个账本在不同区块分散存储,用数据完整性码形成数据链,以数据链的完备性来保证账本的完整性。因为结账是在不同区块间进行,系统效率和系统开销是可想而知的。第二种方法是在一个数据库内分布式存储的方式。上述二者比较起来,库内分布式存放方式,其系统效率更高。无论是库间区块式存储或库内分布式存储,其管理模式基本相同。第三种是集中式热备份的存储方式,是传统的存放和管理模式,也是行之有效的方法之一,但一直没有解决自我保护性记账方法,库的安全保护问题变得很突出。The bookkeeping and storage methods of bank books are the key to bank financial security. At present, because there is no self-protecting accounting method, the security of the ledger is mostly compensated by the storage method. There are three existing storage methods. The first is to decentralize the storage of an ledger in different blocks, and use the data integrity code to form a data link. The integrity of the data link is used to ensure the integrity of the ledger. Because the checkout is performed between different blocks, system efficiency and system overhead are conceivable. The second method is distributed storage in a database. Comparing the above two, the distributed storage method in the library has higher system efficiency. Whether it is block storage between libraries or distributed storage within the library, the management mode is basically the same. The third is a centralized hot backup storage method, which is a traditional storage and management mode and one of the effective methods. However, the self-protecting accounting method has not been solved, and the security protection problem of the library has become prominent.
本申请发明人在实现本发明的过程中发现,现有技术的上述方案具有以下缺陷:在解决账本的自我保护性的时候,无法保证系统效率,或者在保证系统效率的时候,无法保证账本存储的安全性。The inventor of the present application found in the process of implementing the present invention that the above-mentioned solution of the prior art has the following defects: when the self-protection of the ledger is solved, the system efficiency cannot be guaranteed, or when the system efficiency is guaranteed, the ledger storage cannot be guaranteed Security.
发明内容Summary of the Invention
本发明实施例的目的是提供一种数字货币的结账方法、终端及机器可读存储介质,同时解决了账本存储的安全性以及系统效率的问题,提出了基于证据链的存储方法,不受存储地和管理方法的影响,不仅能保证账本的完整性还能恢复账本中丢失的账目。The purpose of the embodiments of the present invention is to provide a digital currency checkout method, terminal, and machine-readable storage medium, and simultaneously solve the problems of security and system efficiency of ledger storage, and propose a storage method based on evidence chain, which is not subject to storage. The impact of location and management methods can not only ensure the integrity of the ledger, but also restore lost accounts in the ledger.
为了实现上述目的,本发明实施例提供一种数字货币的结账方法,所述方法包括:获取账单并验证所述账单的真实性,所述账单包括账目信息以及所述账目信息的真实性证明、证据链以及所述证据链的真实性证明,所述证据链为所述账目信息中的账目名称的线性和;当验证所述账单为真时,获取所述账目名称中的账户信息;查找与所述账户信息对应的账本记录,并将所述账单作为最新一条记录存储在对应的账本记录中;以及根据所述账目信息中的付款金额以及所述证据链,更新所述账本记录中的证据链码和余额,并存储在所述最新一条记录中,所述证据链码为所述账本记录中的证据链的线性和。In order to achieve the above object, an embodiment of the present invention provides a method for settling a digital currency. The method includes: obtaining a bill and verifying the authenticity of the bill, the bill including account information and a certificate of authenticity of the account information, The evidence chain and the authenticity proof of the evidence chain, the evidence chain is a linear sum of the account names in the account information; when the bill is verified to be true, obtain the account information in the account name; find and Update the evidence in the ledger record according to the account record corresponding to the account information, and store the bill as the latest record in the corresponding ledger record; and according to the payment amount in the account information and the evidence chain The chain code and the balance are stored in the latest record, and the evidence chain code is a linear sum of the evidence chain in the ledger record.
进一步地,所述获取账单并验证所述账单的真实性包括:获取账单,所述账单为data={bank,time1,sign1,Client,sign2,Client,time2,sign3,amount,sign4,use,sign5,Firm,sign6,Isum,sign7},其中,Bank为银行名;time1为银行签名时间;sign1为银行对time1的数字签名,用于标记(s1,c1),且表示银行名真实性证明;Client为付款账户;sign2为银行对付款账户的数字签名,用于标记(s2,c2),且表示付款账户真实性证明;time2为付款账户签名时间;sign3为付款账户对time2的数字签名,用于标记(s3,c3),且表示付款账户真实性证明;amount为付款金额;sign4为付款账户对付款金额的数字签名,用于标记(s4,c4),且表示付款金额真实性证明;use为资金用途;sign5为付款账户对资金用途的数字签名,用于标记(s5,c5),且表示资金用途真实性证明;Firm为收款账户;sign6为付款账户对收款账户的数字签名,用于标记(s6,c6),且表示收款账户真实性证明;Isum为银行名、付款账户、金额、资金用途和收款账户的线性和;sign7为付款账户对线性和的数字签名,用于标记(s7,c7),且表示线性和真实性证明;s1、s2、s3、s4、s5、s6和s7为签名码,c1、c2、c3、c4、c5、c6和c7为验证码;根据VER BANK(time1,s1)=c1’,VER BANK(Client,s2)=c2’,VER CLIENT(time2,s3)=c3’,VER CLIENT(amount,s4)=c4’,VER CLIENT(use,s5)=c5’,VER CLIENT(Firm,s6)=c6’,VER CLIENT(Isum,s7)=c7’,分别得到银行名真实性证明的验证码c1’,付款账户真实性证明c2’,付款账户真实性证明c3’,付款金额真实性证明c4’,资金用途真实性证明c5’,收款账户真实性证明c6’,线性和真实性证明c7’,其中,VER为验证函数,BANK为银行名的公钥,CLIENT为收款账户的公钥;分别验证c1与c1’,c2与c2’,c3与c3’,c4与c4’,c5与c5’,c6与c6’,c7与c7’是否相同,确定所述账单是否为真。 Further, obtaining the bill and verifying the authenticity of the bill includes: obtaining a bill, where the bill is data = {bank, time1, sign1, Client, sign2, Client, time2, sign3, amount, sign4, use, sign5 , Firm, sign6, Isum, sign7}, where Bank is the name of the bank; time1 is the time of the bank's signature; sign1 is the digital signature of the bank by time1, which is used to mark (s1, c1) and indicates the authenticity of the bank name; Client Is the payment account; sign2 is the digital signature of the payment account by the bank, which is used to mark (s2, c2), and represents the authenticity certificate of the payment account; time2 is the time of signature of the payment account; sign3 is the digital signature of the time2 of the payment account, used for Mark (s3, c3) and indicate the authenticity of the payment account; amount is the payment amount; sign4 is the digital signature of the payment account for the payment amount; it is used to mark (s4, c4) and indicates the authenticity of the payment amount; use is Use of funds; sign5 is the digital signature of the payment account for the use of the funds, which is used to mark (s5, c5), and indicates the authenticity of the use of the funds; Firm is the receiving account; sign6 is the receiving account of the payment account The digital signature of the payment account is used to mark (s6, c6) and represents the authenticity of the receiving account; Isum is the linear sum of the bank name, payment account, amount, fund use and receiving account; sign7 is the linearity of the payment account pair And digital signatures for marking (s7, c7), and representing linearity and authenticity proof; s1, s2, s3, s4, s5, s6 and s7 are signature codes, c1, c2, c3, c4, c5, c6 And c7 are verification codes; according to VER BANK (time1, s1) = c1 ', VER BANK (Client, s2) = c2', VER CLIENT (time2, s3) = c3 ', VER CLIENT (amount, s4) = c4' , VER CLIENT (use, s5) = c5 ', VER CLIENT (Firm, s6) = c6', VER CLIENT (Isum, s7) = c7 ', get the verification code c1' of the bank name authenticity certificate, and the payment account is true Proof of authenticity c2 ', Proof of authenticity of payment account c3', Proof of authenticity of payment amount c4 ', Proof of authenticity of fund use c5', Proof of authenticity of receiving account c6 ', Proof of linearity and authenticity c7' Verification function, BANK is the public key of the bank name, CLIENT is the public key of the receiving account; verify c1 and c1 ', c2 and c2', c3 and c3 ', c4 and c4', c Whether 5 and c5 ', c6 and c6', c7 and c7 'are the same, determine whether the bill is true.
进一步地,所述账户信息包括收款账户和付款账户。Further, the account information includes a receiving account and a payment account.
进一步地,所述根据所述账目信息中的所述证据链,更新所述账本记录中的证据链码包括:根据
Figure PCTCN2019095810-appb-000001
或者
Figure PCTCN2019095810-appb-000002
得到所述账本记录中更新后的证据链码ecode n,其中,Isum n为所述账目信息中的所述证据链,ecode n-1为所述最新一条记录的上一条记录中的证据链码,Isum i为所述账本记录中的第i条记录中的证据链。
Further, updating the evidence chain code in the ledger record according to the evidence chain in the account information includes:
Figure PCTCN2019095810-appb-000001
or
Figure PCTCN2019095810-appb-000002
Evidence obtained ecode n chain code books after updating the record, wherein, Isum n is the chain of evidence and the account information, ecode n-1 is the latest recording on a record in a chain of evidence code , Isum i is the chain of evidence in the i record in the ledger record.
进一步地,在所述更新所述账本记录中的证据链码和余额,并存储在所述最新一条记录中之后,所述方法还包括:根据SIG bank(ecode n)=(s8,c8)=sign8,SIG bank(balance n)=(s9,c9)=sign9,分别得到所述银行名对更新后的证据链码的数字签名以及所述银行名对更新后的余额的数字签名,其中,SIG为签名函数;bank为所述银行名的私钥;ecode n 为更新后的证据链码;balance n为更新后的余额;sign8用于标记(s8,c8),且表示更新后的证据链码真实性证明;sign9用于标记(s9,c9),且表示更新后的余额真实性证明;s8和s9为签名码;c8和c9为验证码;将所述银行名对更新后的证据链码的数字签名以及所述银行名对更新后的余额的数字签名存储在所述最新一条记录中。 Further, after updating the chain of evidence code and balance in the ledger record and storing it in the latest record, the method further includes: according to SIG bank (ecode n ) = (s8, c8) = sign8, SIG bank (balance n ) = (s9, c9) = sign9, respectively, to obtain the digital signature of the bank name on the updated evidence chain code and the digital signature of the bank name on the updated balance, where SIG Is the signature function; bank is the private key of the bank name; ecode n is the updated evidence chain code; balance n is the updated balance; sign8 is used to mark (s8, c8) and represents the updated evidence chain code Proof of authenticity; sign9 is used to mark (s9, c9) and represents the updated authenticity of the balance; s8 and s9 are signature codes; c8 and c9 are verification codes; the bank name is updated to the updated evidence chain code The digital signature of and the digital signature of the bank name on the updated balance are stored in the latest record.
进一步地,所述方法还包括:通过下述方式,根据账本记录中的证据链和证据链码验证所述账本记录的完整性:根据
Figure PCTCN2019095810-appb-000003
或者
Figure PCTCN2019095810-appb-000004
依次验证所述账本记录中的每条记录是否丢失,其中i=1,2,3,…,n;当存在
Figure PCTCN2019095810-appb-000005
或者
Figure PCTCN2019095810-appb-000006
时,确定所述账本记录中的第i-1条记录丢失。
Further, the method further comprises: verifying the integrity of the ledger record according to the evidence chain and the evidence chain code in the ledger record by:
Figure PCTCN2019095810-appb-000003
or
Figure PCTCN2019095810-appb-000004
Verify in turn whether each record in the ledger record is lost, where i = 1, 2, 3, ..., n; when it exists
Figure PCTCN2019095810-appb-000005
or
Figure PCTCN2019095810-appb-000006
At that time, it is determined that the record i-1 in the ledger record is lost.
进一步地,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:根据ecode i-1=ecode i-Isum i,确定所述账本记录中的第i-1条记录中的证据链码ecode i-1;根据Isum i-1=ecode i-ecode i-1,确定所述账本记录中的第i-1条记录中的证据链Isum i-1Further, after determining that the first i-1 record in the ledger record is lost, the method further includes: determining the i- th in the ledger record according to ecode i-1 = ecode i -Isum i . evidence chain code ecode 1 records the i-1; Isum i-1 = ecode i -ecode i-1, i-1 to determine the first record in the record books in the chain of evidence i-1 the Isum.
进一步地,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:根据balance i-1=balance i-amount i,确定所述账本记录中的第i-1条记录中的余额balance i-1,其中,balance i为所述账本记录中的第i条记录中的余额,amount i为所述账本记录中的第i条记录中的付款金额;根据amount i-1=balance i-1-balance i-2,确定所述账本记录中的第i-1条记录中的付款金额amount i-1,其中,balance i-2为所述账本记录中的第i-2条记录中的余额。 Further, after determining that the i-th record in the ledger record is lost, the method further includes: determining the i- th in the ledger record according to balance i-1 = balance i -amount i . The balance i-1 in one record, where balance i is the balance in the i- th record in the ledger record, and amount i is the payment amount in the i-th record in the ledger record; according to amount i-1 = balance i-1 -balance i-2 , determine the payment amount amount i-1 in the record i-1 in the ledger record, where balance i-2 is the first in the ledger record The balance in i-2 records.
进一步地,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:根据银行名、账户信息和资金用途的预设列表,所述第i-1条记录中的付款金额以及证据链,通过穷举运算确定所述账本记录中的第i-1条记录中的银行名、账户信息和资金用途。Further, after determining that the first i-1 record in the ledger record is lost, the method further includes: according to a preset list of bank name, account information, and fund use, the first i-1 record The payment amount and the evidence chain in the bank determine the bank name, account information, and use of funds in the i-1 record in the ledger record through exhaustive operations.
进一步地,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:查找热备份数据库中所述第i-1条记录,提取并恢复所述账本记录中的第i-1条记录。Further, after determining that the first i-1 record in the ledger record is lost, the method further includes: searching for the i-1 record in the hot backup database, extracting and recovering the first ledger record Article i-1 record.
相应的,本发明实施例还提供一种银行终端,所述银行终端用于执行所述数字货币的结账方法。Correspondingly, an embodiment of the present invention further provides a bank terminal, where the bank terminal is configured to execute a settlement method of the digital currency.
相应的,本发明实施例还提供一种机器可读存储介质,该机器可读存储介质上存储有指令,该指令用于使得机器执行所述数字货币的结账方法。Correspondingly, an embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores instructions, and the instructions are used to cause a machine to execute the digital currency checkout method.
通过上述技术方案,得到由账目之间建立的证据链以及账单之间建立的证据链码,同时解决了账本存储的安全性以及系统效率的问题,能够及时发现账本记录中丢失的记录,并可以恢复丢失记录中的账目信息,这种自我保护性账本,大大减轻了账本存放的 负担。Through the above technical solution, the evidence chain established between the accounts and the evidence chain code established between the bills are obtained. At the same time, the problems of the security of the ledger storage and the system efficiency are solved, and the lost records in the ledger records can be found in time. Recovering account information from lost records, this self-protecting ledger greatly reduces the burden of ledger storage.
本发明实施例的其它特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed implementation sections.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
附图是用来提供对本发明实施例的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本发明实施例,但并不构成对本发明实施例的限制。在附图中:The drawings are used to provide a further understanding of the embodiments of the present invention, and constitute a part of the description. They are used to explain the embodiments of the present invention together with the following specific implementations, but do not constitute a limitation on the embodiments of the present invention. In the drawings:
图1是本发明实施例提供的数字户币的示意图;FIG. 1 is a schematic diagram of a digital account provided by an embodiment of the present invention;
图2是本发明实施例提供的一种数字货币的结账方法的流程示意图;2 is a schematic flowchart of a digital currency checkout method according to an embodiment of the present invention;
图3是本发明实施例提供的账本记录的示意图。FIG. 3 is a schematic diagram of a ledger record provided by an embodiment of the present invention.
具体实施方式detailed description
以下结合附图对本发明实施例的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本发明实施例,并不用于限制本发明实施例。The specific implementations of the embodiments of the present invention will be described in detail below with reference to the drawings. It should be understood that the specific implementation manners described herein are only used to illustrate and explain embodiments of the present invention, and are not intended to limit the embodiments of the present invention.
在网络化时代,纸质货币是不能在网上流通的,因此纸质货币必须改为数字化。那么,纸币上的所有物理签名必须改用数字签名实现,纸币上的所有物理防伪措施,必须改用逻辑措施实现。这种货币形态上的变化,必然引起结账方法的变化。In the era of networking, paper money cannot be circulated online, so paper money must be changed to digital. Then, all physical signatures on banknotes must be implemented with digital signatures, and all physical anti-counterfeiting measures on banknotes must be implemented with logical measures. This change in currency form will inevitably cause changes in the settlement method.
数字货币是数字化的现钞,现钞是工厂印制的,称为厂币。数字货币中的户币像支票一样是由账户开出的。户币要把现钞中的证明功能全部转化过来,缺一不可。户币比现钞更具有优越性,既可流通于市面,也可流通于网络,其安全性功能也比现钞强。其中最重要的一条就是户币不怕丢,不怕被复制,窃取了也没有意义,这对银行账本安全性是至关重要的。Digital currency is digitized cash, which is printed at the factory and is called the factory currency. The account currency in digital currency is issued by an account like a check. Household currency is indispensable to convert all the proof functions in cash. Household currency is more superior than cash. It can be circulated on the market or on the Internet. Its security function is stronger than cash. The most important one is that the household currency is not afraid of being lost, not afraid of being copied, and it does not make sense to steal it. This is vital to the security of bank books.
其中,收款账户与付款账户之间的一次交易形成一个账单,一个账单包括的账目信息中包含多个账目名称,例如,银行名、收款账户、付款账户、付款金额、资金用途等。多次交易则形成账本记录,账本记录中的每一条记录包含了一次交易形成的账单的内容。交易是通过户币进行的,因此一个账单就是一张数字户币,如图1所示,其中包括发行行提供的账目名称和证据以及付款账户提供的账目名称和证据,在交易时其由付款账户开出,不仅能流通于市面上,也能流通于网络上,也直接适用于银行的结账。Among them, one transaction between the receiving account and the payment account forms a single bill, and the account information included in a single bill contains multiple account names, such as bank name, receiving account, payment account, payment amount, fund use, and so on. Multiple transactions form a ledger record, and each record in the ledger record contains the contents of the bill formed by one transaction. The transaction is carried out through the account currency, so a bill is a digital account currency, as shown in Figure 1, which includes the account name and evidence provided by the issuing bank and the account name and evidence provided by the payment account. Account opening can be circulated not only on the market, but also on the Internet, and it is also directly applicable to bank settlement.
本发明实施例是通过数字签名技术实现数字货币的结账。其中的数字签名是由CPK(Combined Public Key,组合公钥)提供的。CPK是基于标识的组合公钥体制,公钥由标识通过Hash变换和矩阵的组合运算而得到。其中,在椭圆曲线上,G是基点,如果 任意整数a是私钥,那么aG=A,A是对应于a的公钥。设:标识是Alice,那么Alice的公私钥分别是:标识通过Hash变换,变为一串随机数序列,将随机数序列当作矩阵的坐标,将32个坐标上的变量分别累加得公、私钥。如:In the embodiment of the present invention, the settlement of digital currency is implemented by digital signature technology. The digital signature is provided by CPK (Combined Public Key). CPK is an identity-based combined public key system. The public key is obtained from the identity through a combination of Hash transforms and matrices. Among them, on the elliptic curve, G is the base point, if any integer a is the private key, then aG = A, and A is the public key corresponding to a. Let: Alice's identity is Alice, then Alice's public and private keys are: The identity is transformed into a series of random number sequences by Hash transformation, the random number sequence is used as the coordinates of the matrix, and the variables on the 32 coordinates are accumulated respectively for public and private. key. Such as:
Figure PCTCN2019095810-appb-000007
(大写,斜体,表示公钥)
Figure PCTCN2019095810-appb-000007
(Uppercase, italic, for public key)
Figure PCTCN2019095810-appb-000008
(小写,斜体,表示私钥)
Figure PCTCN2019095810-appb-000008
(Lowercase, italics, private key)
本发明实施例中数字货币的结账的账单中还包括账目名称的线性和,并由线性和形成证据链。在银行对收款账户和付款账户进行结账时,通过证据链可判断记录的丢失与否,以及丢失的是哪个记录,而且通过证据链以及记录中的证据链码可恢复被丢失的记录,具体实施方式如下所述。In the embodiment of the present invention, the bill for the settlement of digital currency further includes a linear sum of account names, and a linear sum forms a chain of evidence. When the bank checks the receiving account and the payment account, the chain of evidence can be used to determine whether the record is lost or not, and which record is lost, and the lost chain can be recovered through the chain of evidence and the chain of evidence code in the record. Embodiments are described below.
图2是本发明实施例提供的一种数字货币的结账方法的流程示意图。该方法应用于银行终端,如图2所示,所述方法包括如下步骤:FIG. 2 is a schematic flowchart of a digital currency checkout method according to an embodiment of the present invention. The method is applied to a bank terminal. As shown in FIG. 2, the method includes the following steps:
步骤201,获取账单并验证所述账单的真实性,所述账单包括账目信息以及所述账目信息的真实性证明、证据链以及所述证据链的真实性证明,所述证据链为所述账目信息中的账目名称的线性和。Step 201: Obtain a bill and verify the authenticity of the bill, the bill includes account information and a certificate of authenticity of the account information, a chain of evidence, and a certificate of authenticity of the chain of evidence, and the chain of evidence is the account Linear sum of account names in the message.
其中,在收款账户和付款账户交易的时候,收款账户首先发出收款通知,例如,该收款通知可以为二维码形式,或者其他数据形式发送给付款账户。当收款通知为二维码时,如QR1={Firm,time3,sign10,amount,sign11},其中包括了收款账户Firm;收款账户签名时间time3;收款账户对时间time3的数字签名sign10,用于标记(s10,c10),且表示收款账户真实性证明;收款金额amount;收款账户对收款金额的数字签名sign11,用于标记(s11,c11),且表示收款金额真实性证明。Among them, when a beneficiary account and a payment account are transacted, the beneficiary account first issues a receipt notice. For example, the receipt notice may be in the form of a two-dimensional code or other data form and sent to the payment account. When the payment notification is a QR code, such as QR1 = {Firm, time3, sign10, amount, sign11}, which includes the receiving account Firm; the receiving account signature time time3; the receiving account digital signature time10 , Used to mark (s10, c10), and indicate the authenticity of the receiving account; the amount of the received amount; the digital signature of the receiving account on the amount of the sign11, used to mark (s11, c11), and indicate the amount of received Proof of authenticity.
由于上述的数字签名均是采用CPK签名协议,因此,付款账户接收到付款通知之后,也是利用CPK签名协议验证其中的真实性证明,例如,根据下述方式验证其真实性:Because the above digital signatures use the CPK signature protocol, after receiving the payment notification, the payment account also uses the CPK signature protocol to verify the authenticity certificate therein, for example, to verify its authenticity according to the following methods:
由VER FIRM(time3,s10)=c10’,得到收款账户真实性证明的验证码c10’; VER FIRM (time3, s10) = c10 ', to obtain the verification code c10' of the authenticity certificate of the receiving account;
由VER FIRM(amount,s11)=c11’,得到收款金额真实性证明的验证码c11’。 From VER FIRM (amount, s11) = c11 ', a verification code c11' is obtained to prove the authenticity of the receipt amount.
其中,VER为验证函数,FIRM为收款账户的公钥,其中基于CPK体制,公钥矩阵人人都可以获得,因此付款账户根据收款账户的标识Firm以及公钥矩阵得到收款账户的公钥。付款账户分别验证c10与c10’,c11与c11’是否相同,确定付款通知是否为真。若为真,则付款账户根据户币模板的要求填写相关账目信息。若不为真,则付款账户不向收款账户进行付款。其中,所述户币模板为付款账户根据自身付款需求向银行申请得到的,对于户币模板的申请不是本发明所要阐述的内容,本领域技术人员可根据现 有技术获得,此处不再赘述。Among them, VER is the verification function and FIRM is the public key of the receiving account. Among them, the public key matrix is available to everyone based on the CPK system. Therefore, the payment account obtains the public account of the receiving account according to the identity of the receiving account Firm and the public key matrix. key. The payment account verifies whether c10 and c10 ', c11 and c11' are the same, and determines whether the payment notification is true. If true, the payment account fills in relevant account information according to the requirements of the currency template. If it is not true, the payment account will not make a payment to the receiving account. Wherein, the household currency template is obtained by applying for a payment account to a bank according to its own payment needs. The application for the household currency template is not the content to be explained in the present invention, and those skilled in the art can obtain it based on the existing technology, and will not repeat them here .
当付款账户验证收款账户发来的收款通知为真时,向收款账户发送账单,即如图1所示的数字户币。其中,银行名为付款账户的开户行。付款账户直接将付款金额、资金用途和收款账户等账目信息写入如图1所示的数字户币中,并对其进行数字签名,具体实施方式如下所示:When the payment account verifies that the receipt notice from the beneficiary account is true, a bill is sent to the beneficiary account, that is, the digital account currency shown in FIG. 1. Among them, the bank is called the issuing bank of the payment account. The payment account directly writes the account information such as the payment amount, the use of funds, and the receiving account into the digital account currency shown in Figure 1, and digitally signs it. The specific implementation method is as follows:
SIG bank(time1)=(s1,c1)=sign1, SIG bank (time1) = (s1, c1) = sign1,
SIG bank(Client)=(s2,c2)=sign2, SIG bank (Client) = (s2, c2) = sign2,
SIG client(time2)=(s3,c3)=sign3, SIG client (time2) = (s3, c3) = sign3,
SIG client(amount)=(s4,c4)=sign4, SIG client (amount) = (s4, c4) = sign4,
SIG client(use)=(s5,c5)=sign5, SIG client (use) = (s5, c5) = sign5,
SIG client(Firm)=(s6,c6)=sign6, SIG client (Firm) = (s6, c6) = sign6,
SIG client(Isum)=(s7,c7)=sign7。 SIG client (Isum) = (s7, c7) = sign7.
其中,所述账目信息中包括了银行对银行签名时间time1的数字签名sign1,且表示银行名真实性证明,以及银行对付款账户Client的数字签名sign2,且表示付款账户真实性证明,均是通过银行私钥bank进行签名。所述账目信息中还包括了付款账户对付款账户签名时间time2的数字签名sign3、对付款金额amount的数字签名sign4、对资金用途use的数字签名sign5、对收款账户Firm的数字签名sign6以及对银行名、付款账户、金额、资金用途和收款账户的线性和Isum的数字签名sign7,分别表示付款账户真实性证明、付款金额真实性证明、资金用途真实性证明、收款账户真实性证明、线性和真实性证明,均是通过付款账户私钥client进行签名。另外,SIG为签名函数,s1、s2、s3、s4、s5、s6和s7为签名码,c1、c2、c3、c4、c5、c6和c7为验证码。Wherein, the account information includes the digital signature sign1 of the time signature time1 of the bank to the bank, which indicates the authenticity certificate of the bank name, and the digital signature sign2 of the payment account Client, and that the authenticity certificate of the payment account is passed. The private key of the bank is signed. The account information also includes a digital signature sign3 of the payment account signing time2 of the payment account, a digital signature sign4 of the payment amount amount, a digital signature sign5 of the use of funds, a digital signature sign6 of the receiving account Firm, and Bank name, payment account, amount, fund use, and beneficiary account linearity and Isum digital signature sign7, which respectively represent the proof of authenticity of the payment account, the proof of authenticity of the payment amount, the proof of authenticity of the use of funds, the proof of authenticity of the receiving account, Both linear and authenticity proofs are signed by the payment account private key client. In addition, SIG is a signature function, s1, s2, s3, s4, s5, s6, and s7 are signature codes, and c1, c2, c3, c4, c5, c6, and c7 are verification codes.
其中,线性和
Figure PCTCN2019095810-appb-000009
Figure PCTCN2019095810-appb-000010
Where the linear sum
Figure PCTCN2019095810-appb-000009
Figure PCTCN2019095810-appb-000010
由于上述账单中,各项账目都做了数字签名,使每一个账目都具有自身保护的独立能力。数字户币中规定了收款账户,并由付款账户签名,本户币只对指定的收款账户有意义,对任何第三方均没有意义。因此该账单不怕丢失,不怕被窃,是账本安全的基础保障。As the above bills, each account is digitally signed, so that each account has its own independent protection capabilities. The digital account currency specifies the receiving account and is signed by the payment account. The local currency is only meaningful to the designated receiving account and has no meaning to any third party. Therefore, the bill is not afraid of being lost or stolen, which is the basic guarantee of the security of the ledger.
另外,由于账单中提供了各账目的线性和,一旦账单被丢失,线性和提供恢复账目的条件,大大缩小了查账的范围。In addition, because the linear sum of each account is provided in the bill, once the bill is lost, the linear sum provides conditions for recovering the account, which greatly reduces the scope of checking.
付款账户将账单制作好之后,例如,账单data={bank,time1,sign1,Client,sign2,Client,time2,sign3,amount,sign4,use,sign5,Firm,sign6,Isum,sign7}发送给 收款账户,收款账户需要对所述账单中的真实性证明进行验证,如下所示:After the payment account has prepared the bill, for example, the bill data = {bank, time1, sign1, Client, sign2, Client, time2, sign3, amount, sign4, use, sign5, Firm, sign6, Isum, sign7} is sent to the payment Account, beneficiary account need to verify the authenticity proof in the bill, as follows:
根据VER BANK(time1,s1)=c1’, According to VER BANK (time1, s1) = c1 ',
VER BANK(Client,s2)=c2’, VER BANK (Client, s2) = c2 ',
VER CLIENT(time2,s3)=c3’, VER CLIENT (time2, s3) = c3 ',
VER CLIENT(amount,s4)=c4’, VER CLIENT (amount, s4) = c4 ',
VER CLIENT(use,s5)=c5’, VER CLIENT (use, s5) = c5 ',
VER CLIENT(Firm,s6)=c6’, VER CLIENT (Firm, s6) = c6 ',
VER CLIENT(Isum,s7)=c7’, VER CLIENT (Isum, s7) = c7 ',
分别得到银行名真实性证明的验证码c1’,付款账户真实性证明c2’,付款账户真实性证明c3’,付款金额真实性证明c4’,资金用途真实性证明c5’,收款账户真实性证明c6’,线性和真实性证明c7’。其中,VER为验证函数,BANK为银行公钥,CLIENT为付款账户公钥,收款账户根据银行名的标识bank、付款账户的标识Client以及公钥矩阵计算出银行公钥和付款账户公钥。所述收款账户分别验证c1与c1’,c2与c2’,c3与c3’,c4与c4’,c5与c5’,c6与c6’,c7与c7’是否相同,确定所述账单是否为真。Obtain the verification code c1 'of the authenticity certificate of the bank name, the authenticity certificate of the payment account c2', the authenticity certificate of the payment account c3 ', the authenticity certificate of the payment amount c4', the authenticity certificate of the capital use c5 ', and the authenticity of the receiving account Prove c6 ', linearity and authenticity c7'. Among them, VER is the verification function, BANK is the public key of the bank, CLIENT is the public key of the payment account, and the receiving account calculates the bank public key and the payment account public key according to the identification of the bank name, the identification of the payment account, and the public key matrix. The receiving account verifies whether c1 and c1 ', c2 and c2', c3 and c3 ', c4 and c4', c5 and c5 ', c6 and c6', c7 and c7 'are the same, and determine whether the bill is true.
当所述收款账户验证所述账单为真时,则向所述付款账户发送收据并将所述账单发送至银行。若不为真,则中断本次交易。When the receiving account verifies that the bill is true, a receipt is sent to the payment account and the bill is sent to a bank. If it is not true, the transaction will be interrupted.
同样的,银行获取到所述账单之后也要验证所述账单的真实性。Similarly, after obtaining the bill, the bank must verify the authenticity of the bill.
其中,银行获取所述账单data={bank,time1,sign1,Client,sign2,Client,time2,sign3,amount,sign4,use,sign5,Firm,sign6,Isum,sign7}。Wherein, the bank obtains the bill data = {bank, time1, sign1, Client, sign2, Client, time2, sign3, amount, sign4, use, sign5, Firm, sign6, Isum, sign7}.
并根据VER BANK(time1,s1)=c1’, And according to VER BANK (time1, s1) = c1 ',
VER BANK(Client,s2)=c2’, VER BANK (Client, s2) = c2 ',
VER CLIENT(time2,s3)=c3’, VER CLIENT (time2, s3) = c3 ',
VER CLIENT(amount,s4)=c4’, VER CLIENT (amount, s4) = c4 ',
VER CLIENT(use,s5)=c5’, VER CLIENT (use, s5) = c5 ',
VER CLIENT(Firm,s6)=c6’, VER CLIENT (Firm, s6) = c6 ',
VER CLIENT(Isum,s7)=c7’, VER CLIENT (Isum, s7) = c7 ',
分别得到银行名真实性证明的验证码c1’,付款账户真实性证明c2’,付款账户真实性证明c3’,付款金额真实性证明c4’,资金用途真实性证明c5’,收款账户真实性证明c6’,线性和真实性证明c7’,其中,VER为验证函数,BANK为银行名的公钥,CLIENT为收款账户的公钥。Obtain the verification code c1 'of the authenticity certificate of the bank name, the authenticity certificate of the payment account c2', the authenticity certificate of the payment account c3 ', the authenticity certificate of the payment amount c4', the authenticity certificate of the capital use c5 ', and the authenticity of the receiving account Prove c6 ', linearity and authenticity proof c7', where VER is the verification function, BANK is the public key of the bank name, and CLIENT is the public key of the receiving account.
然后,分别验证c1与c1’,c2与c2’,c3与c3’,c4与c4’,c5与c5’,c6与c6’, c7与c7’是否相同,确定所述账单是否为真。Then, verify whether c1 and c1 ', c2 and c2', c3 and c3 ', c4 and c4', c5 and c5 ', c6 and c6', c7 and c7 'are the same, and determine whether the bill is true.
当银行验证所述账单为真时,则执行步骤202。否则,丢弃所述账单。When the bank verifies that the bill is true, step 202 is performed. Otherwise, the bill is discarded.
在所述账单中,除去银行对银行签名时间和付款账户的签名,其余各账目信息均是通过付款账户进行签名,实现了账户的自主可控的原则,而且其余各账目信息均作为独立变量,实现了“一事一证”,杜绝了信任转移以及权利被接管,另外通过数字签名,均具有自我保护能力,不需要额外的保护,因此对于账单的存储地的安全性没有要求,存储地不受限制。In the statement, excluding the bank's signature of the bank's signature time and payment account, the remaining account information is signed by the payment account, which realizes the principle of autonomous and controllable account, and the remaining account information is used as independent variables. Achieved "one event, one certificate", put an end to the transfer of trust and the takeover of rights. In addition, through digital signatures, they have the ability to protect themselves and do not require additional protection. Therefore, there is no requirement for the security of the storage place of the bill, and the storage place is not affected limit.
步骤202,当验证所述账单为真时,获取所述账目名称中的账户信息;Step 202: When verifying that the bill is true, obtain account information in the account name;
步骤203,查找与所述账户信息对应的账本记录,并将所述账单作为最新一条记录存储在对应的账本记录中。Step 203: Find a ledger record corresponding to the account information, and store the bill as the latest record in the corresponding ledger record.
其中,银行需要获取所述账目名称中的账户信息,即收款账户和付款账户。然后,在本地查找与收款账户和付款账户对应的账本记录,即银行终端本地存储的收款账户对应的账本记录,其中包含收款账户与其他账户之间的交易的记录,存在收账记录和付账记录。同样的,付款账户对应的账本记录也包含付款账户与其他账户之间的交易记录,也存在收账记录和付账记录。其中,对于本次交易,付款账户对应的账本记录中的记录为付账记录,而收款账户对应的账本记录中的记录为收款记录,具体记录的不同之处在于付款金额是正还是负。对于付款账户来说,付款金额为负值,对于收款账户来说收款金额为正值。The bank needs to obtain the account information in the account name, that is, the receiving account and the payment account. Then, look up the ledger records corresponding to the receiving account and the payment account locally, that is, the ledger records corresponding to the receiving account stored locally in the bank terminal, which contains records of the transactions between the receiving account and other accounts, and there is a receiving record And payment records. Similarly, the book record corresponding to the payment account also includes the transaction records between the payment account and other accounts, and there are also collection records and payment records. For this transaction, the record in the ledger record corresponding to the payment account is the payment record, and the record in the ledger record corresponding to the receiving account is the payment record. The difference between the specific records is whether the payment amount is positive or negative. For the payment account, the payment amount is negative, and for the receiving account, the payment amount is positive.
另外,在将所述账单作为最新一条记录存储在对应的账本记录中的时候,可以将包含发行行提供的账目名称和证据与付款账户提供的账目名称和证据一同存储,或者,由于发行行提供的账目名称和证据是银行自己提供的证据,只用于检查其真伪,可不参与银行记录,即所述账单中的发行行提供的账目名称和证据可以不进行存储,而仅将所述账单中的付款账户提供的账目名称和证据作为最新一条记录存储在对应的账本记录中,如图3所示,对于付款账户对应的账本记录,将本次账单中的付款账户与其数字签名、付款金额与其数字签名、资金用途与其数字签名、收款账户与其数字签名、证据链与其数字签名作为最新一条记录存储在其账本记录中。如图3所示,第n条记录即为付款账户的最新一条记录。In addition, when the bill is stored as the latest record in the corresponding ledger record, the account name and evidence provided by the issuing bank may be stored together with the account name and evidence provided by the payment account, or, as provided by the issuing bank The account name and evidence provided by the bank are the evidence provided by the bank itself, which is only used to check its authenticity, and may not participate in bank records, that is, the account name and evidence provided by the issuing bank in the statement may not be stored, but only the statement The account name and evidence provided by the payment account in the current account are stored in the corresponding ledger record as the latest record. As shown in Figure 3, for the corresponding ledger record of the payment account, the payment account in this bill with its digital signature and payment amount Instead of its digital signature, the use of funds and its digital signature, the receiving account and its digital signature, the chain of evidence and its digital signature are stored in its ledger records as the latest record. As shown in Figure 3, the n record is the latest record of the payment account.
步骤204,根据所述账目信息中的付款金额以及所述证据链,更新所述账本记录中的证据链码和余额,并存储在所述最新一条记录中,所述证据链码为所述账本记录中的证据链的线性和。Step 204: Update the evidence chain code and balance in the ledger record according to the payment amount in the account information and the evidence chain, and store the evidence chain code in the latest record, where the evidence chain code is the ledger Linear sum of the evidence chain in the record.
其中,银行在结账时,首先计算余额。计算方式如下所示:Among them, the bank first calculates the balance when checking out. The calculation method is as follows:
balance n=balance n-1-amount(对于付款账户的账本记录) balance n = balance n-1 -amount (for the ledger records of the payment account)
balance n=balance n-1+amount(对于收款账户的账本记录) balance n = balance n-1 + amount (for the ledger record of the receiving account)
然后对更新后的余额利用银行名的私钥进行数字签名,得到签名sign9:Then digitally sign the updated balance using the private key of the bank name to get the signature sign9:
SIG bank(balance n)=(s9,c9)=sign9 SIG bank (balance n ) = (s9, c9) = sign9
其中,SIG为签名函数,bank为所述银行名的私钥,balance n为更新后的余额,sign9用于标记(s9,c9),且表示更新后的余额真实性证明,s9为签名码,c9为验证码。 Among them, SIG is the signature function, bank is the private key of the bank name, balance n is the updated balance, sign9 is used to mark (s9, c9), and it represents the updated balance authenticity proof, and s9 is the signature code, c9 is the verification code.
在线性和的基础上,银行终端根据所述账目信息中的所述证据链,更新所述账本记录中的证据链码:Based on the linear sum, the bank terminal updates the evidence chain code in the ledger record according to the evidence chain in the account information:
Figure PCTCN2019095810-appb-000011
Figure PCTCN2019095810-appb-000011
或者,
Figure PCTCN2019095810-appb-000012
or,
Figure PCTCN2019095810-appb-000012
得到所述账本记录中更新后的证据链码ecode n。其中,Isum n为所述账目信息中的所述证据链,ecode n-1为所述最新一条记录的上一条记录中的证据链码,Isum i为所述账本记录中的第i条记录中的证据链。 The updated evidence chain code ecode n in the ledger record is obtained. Among them, Isum n is the evidence chain in the account information, ecode n -1 is the evidence chain code in the previous record of the latest record, and Isum i is the i-th record in the ledger record Chain of evidence.
其中,对于计算更新后的证据链码,可以有上述两种方式,即通过所述账本记录中的所有记录(包括最新一条记录)的证据链的线性和得到更新后的证据链码,或者,在没有验证该账本记录的完整性时,也可以通过上一条记录中的证据链码与本次账单中的证据链的线性和得到更新后的证据链码。Among them, for calculating the updated evidence chain code, there may be the above two methods, that is, to obtain the updated evidence chain code through the linearity of the evidence chain of all records in the ledger record (including the latest record), or, When the integrity of the ledger record has not been verified, the updated evidence chain code can also be obtained through the linear sum of the evidence chain code in the previous record and the evidence chain in this bill.
然后,所述银行名对更新后的证据链码进行数字签名,得到签名8:Then, the bank name digitally signs the updated evidence chain code to obtain signature 8:
SIG bank(ecode n)=(s8,c8)=sign8 SIG bank (ecode n ) = (s8, c8) = sign8
其中,ecode n为更新后的证据链码;sign8用于标记(s8,c8),且表示更新后的证据链码真实性证明;s8为签名码;c8为验证码。 Among them, ecode n is the updated evidence chain code; sign8 is used to mark (s8, c8) and represents the updated evidence chain code authenticity proof; s8 is the signature code; c8 is the verification code.
之后,将更新后的证据链码与所述银行名对更新后的证据链码的数字签名,以及更新后的余额与所述银行名对更新后的余额的数字签名一同存储在所述最新一条记录中,如图3所示。After that, the updated digital signature of the chain of evidence and the updated name chain code of the bank name, and the updated balance and the digital signature of the updated balance of the bank name are stored in the latest one together. In the record, as shown in Figure 3.
在本发明的一种实施方式中,一个账本记录是由记录构成的,如果一个账本记录是完整的,那么证明账本记录中的记录是完整的。因为记录中的每一账目都有数字签名,自身保护功能很强,篡改是不大可能的,但是数字签名不能发现丢失与否。因此,这就需要根据账本记录中的证据链和证据链码验证所述账本记录的完整性。还是以图3所示的账本记录为例,从证据链码的线性和
Figure PCTCN2019095810-appb-000013
中可知,如果证据链被断开,那么等式两端就不会相等,而断开的地方就是丢失记录的地方。
In one embodiment of the present invention, a ledger record is composed of records. If a ledger record is complete, it is proved that the records in the ledger record are complete. Because each account in the record has a digital signature, its own protection function is very strong, tampering is unlikely, but the digital signature cannot be found or not. Therefore, it is necessary to verify the integrity of the ledger record according to the evidence chain and evidence chain code in the ledger record. Taking the ledger record shown in Figure 3 as an example, from the linear sum of the evidence chain code
Figure PCTCN2019095810-appb-000013
It can be seen that if the chain of evidence is disconnected, the two ends of the equation will not be equal, and the disconnected place is where the records are lost.
对于检查记录丢失的方式可以有以下两种:There are two ways to check for lost records:
第一种方式是从前往后检查,即从第一条记录开始检查:The first way is to check after going, that is, starting from the first record:
第一条记录
Figure PCTCN2019095810-appb-000014
第二条记录
Figure PCTCN2019095810-appb-000015
第3条记录
Figure PCTCN2019095810-appb-000016
Figure PCTCN2019095810-appb-000017
第i条记录
Figure PCTCN2019095810-appb-000018
第n条记录
Figure PCTCN2019095810-appb-000019
其中i=1,2,3,…,n,依次验证所述账本记录中的每条记录是否丢失。
First record
Figure PCTCN2019095810-appb-000014
Second record
Figure PCTCN2019095810-appb-000015
Article 3 records
Figure PCTCN2019095810-appb-000016
Figure PCTCN2019095810-appb-000017
Article i record
Figure PCTCN2019095810-appb-000018
Article n record
Figure PCTCN2019095810-appb-000019
Where i = 1,2,3, ..., n, verify in turn whether each record in the ledger record is lost.
其中,若是发现
Figure PCTCN2019095810-appb-000020
即表示所述账本记录中的第i-1条记录丢失。例如,所述账本记录中的第2条记录丢失,由于第2条记录丢失,那么在检查第2条记录时,就会将第3条记录当做第2条记录来检查,即Isum 3当做Isum 2,ecode 3当做ecode 2
Figure PCTCN2019095810-appb-000021
但是实际上
Figure PCTCN2019095810-appb-000022
由此即可判断第2条记录丢失。
Among them, if found
Figure PCTCN2019095810-appb-000020
It means that the i-1 record in the ledger record is lost. For example, if the second record in the ledger record is lost, because the second record is lost, then when checking the second record, the third record will be checked as the second record, that is, Isum 3 as Isum 2 , ecode 3 as ecode 2 ,
Figure PCTCN2019095810-appb-000021
But actually
Figure PCTCN2019095810-appb-000022
From this, it can be judged that the second record is lost.
第二种方式是从后往前反推验证,即从第n条记录开始检查:The second way is to reverse the verification from the back, that is, check from the nth record:
第n条记录
Figure PCTCN2019095810-appb-000023
第n-1条记录
Figure PCTCN2019095810-appb-000024
第n-2条记录
Figure PCTCN2019095810-appb-000025
Figure PCTCN2019095810-appb-000026
其中i=1,2,3,…,n,依次验证所述账本记录中的每条记录是否丢失。
Article n record
Figure PCTCN2019095810-appb-000023
Article n-1 record
Figure PCTCN2019095810-appb-000024
Article n-2 Records
Figure PCTCN2019095810-appb-000025
Figure PCTCN2019095810-appb-000026
Where i = 1,2,3, ..., n, verify in turn whether each record in the ledger record is lost.
其中,若是发现
Figure PCTCN2019095810-appb-000027
即表示所述账本记录中的第i-1条记录丢失。仍是以第2条记录丢失为例,由于第2条记录丢失,那么在检查第3条记录时,就会将第1条记录当做第2条记录,即ecode 1当做ecode 2
Figure PCTCN2019095810-appb-000028
但是实际上
Figure PCTCN2019095810-appb-000029
由此即可判断第2条记录丢失。
Among them, if found
Figure PCTCN2019095810-appb-000027
It means that the i-1 record in the ledger record is lost. Still taking the second record as an example, because the second record is lost, then when checking the third record, the first record will be regarded as the second record, that is, ecode 1 as ecode 2 ,
Figure PCTCN2019095810-appb-000028
But actually
Figure PCTCN2019095810-appb-000029
From this, it can be judged that the second record is lost.
通过本实施方式,可直接利用证据链和证据链码来确定丢失的记录,而无需将本地存储的账本记录与热备份数据库中对应的账本记录进行一一对应的来检查其完整性,减少了账本记录完整性检查的工作量。With this embodiment, the evidence chain and the evidence chain code can be directly used to determine the lost records, without the need to perform a one-to-one correspondence between the locally stored ledger records and the corresponding ledger records in the hot backup database to check their integrity, reducing the The workload of the integrity check of the ledger records.
在本发明的另一个实施方式中,在确定所述账本记录中的第i-1条记录丢失之后,还可以利用所述账本记录中的付款金额、证据链、证据链码和余额对第i-1条记录进行恢复,从而得到第i-1条记录中的付款金额、证据链、证据链码和余额。具体方式如下所示:In another embodiment of the present invention, after it is determined that the record i-1 in the ledger record is lost, the payment amount, the evidence chain, the evidence chain code, and the balance in the ledger record may also be used to compare the -1 records are restored to obtain payment amount, chain of evidence, chain of evidence code and balance in record i-1. The specific way is as follows:
例如,可以根据ecode i-1=ecode i-Isum i,确定所述账本记录中的第i-1条记录中的证据链码ecode i-1。然后根据Isum i-1=ecode i-ecode i-1,确定所述账本记录中的第i-1条记录中的证据链Isum i-1。仍是以第2条记录丢失为例,由于第3条记录是已知的,由ecode 2=ecode 3-Isum 3,得到第2条记录中的证据链码ecode 2,然后由Isum 2=ecode 3-ecode 2,得到第2条记录中的证据链Isum 2。当然上述恢复第i-1条记录中的证据链和证据链码仅 作为示例,还可以通过其他方式得到第i-1条记录中的证据链和证据链码,例如,当得到第i-1条记录中的证据链码ecode i-1之后,还可以通过Isum i-1=ecode i-1-ecode i-2,得到第i-1条记录中的证据链。对于其它方式得到第i-1条记录中的证据链和证据链码的示例,此处不再一一举例,无论通过什么方式,均是以
Figure PCTCN2019095810-appb-000030
以及
Figure PCTCN2019095810-appb-000031
Figure PCTCN2019095810-appb-000032
为基础的。
For example, the evidence chain code ecode i-1 in the i-1th record in the ledger record may be determined according to ecode i-1 = ecode i -Isum i . Then, according to Isum i-1 = ecode i -ecode i-1 , the chain of evidence Isum i-1 in the i-1 record in the ledger record is determined. Still lost is the second record as an example, since the recording section 3 are known by ecode 2 = ecode 3 -Isum 3, to give the first two records in the chain of evidence eCODE 2 code, and then by the Isum 2 = ecode 3 -ecode 2 to get the chain of evidence Isum 2 in the second record. Of course, the recovery of the evidence chain and the evidence chain code in the record of the first i-1 is only an example. The evidence chain and the evidence chain code in the record of the first i-1 can be obtained by other methods. For example, when the first i-1 After the evidence chain code ecode i-1 in the records, you can also obtain the evidence chain in the record i-1 through Isum i-1 = ecode i-1 -ecode i-2 . For other examples of obtaining the evidence chain and evidence chain code in record i-1, no examples will be given here. No matter what method is adopted, they are all based on
Figure PCTCN2019095810-appb-000030
as well as
Figure PCTCN2019095810-appb-000031
Figure PCTCN2019095810-appb-000032
on the basis of.
另外,在恢复第i-1条记录中的余额与付款金额时,可根据balance i-1=balance i-amount i,确定所述账本记录中的第i-1条记录中的余额balance i-1,以及根据amount i-1=balance i-1-balance i-2,确定所述账本记录中的第i-1条记录中的付款金额amount i-1,其中,balance i为所述账本记录中的第i条记录中的余额,amount i为所述账本记录中的第i条记录中的付款金额,balance i-2为所述账本记录中的第i-2条记录中的余额。以图3所示的账本记录为例,若其中第2条记录丢失,若该账本记录为付款账户“张三”的账本记录,则在确定第2条记录中的余额 2时,由于balance 3=balance 2+amount 3,则反推balance 2=balance 3-amount 3,即balance 2=balance 3-(-512),然后同样由于balance 2=balance 1+amount 2,则反推amount 2=balance 2-balance 1。同样,在确定第i-1条记录中的余额与付款金额也有其他示例,此处不再赘述。 In addition, when restoring the balance and payment amount in record i-1, the balance i- in record i-1 in the ledger record can be determined according to balance i-1 = balance i -amount i 1 , and determine the payment amount amount i-1 in the record i-1 in the ledger record according to amount i-1 = balance i-1 -balance i-2 , where balance i is the ledger record The balance in the i-th record in the record, amount i is the payment amount in the i-th record in the ledger record, and balance i-2 is the balance in the i-th record in the ledger record. Taking the ledger record shown in Figure 3 as an example, if the second record is lost, if the ledger record is the account record of the payment account "Zhang San", when determining the balance 2 in the second record, due to the balance 3 = balance 2 + amount 3, the reverse thrust balance 2 = balance 3 -amount 3, i.e. balance 2 = balance 3 - (- 512), and also due to balance 2 = balance 1 + amount 2 , the thrust reverser amount 2 = balance 2 -balance 1 . Similarly, there are other examples in determining the balance and payment amount in record i-1, which will not be repeated here.
在恢复第i-1条记录中的银行名、付款账户、资金用途与收款账户时,根据线性和
Figure PCTCN2019095810-appb-000033
可知,由于该账本记录属于付款账户或收款账户的,因此账户信息中的一者已知,通过上述实施方式得到付款金额已知,若该条记录为付款账户的账本记录所有时,则上述还存在未知因素银行名、资金用途和收款账户。如果是同行交易,则银行名也是已知的。若不是同行交易,则银行名的范围也是有限的,可根据银行名、账户信息和资金用途的预设列表,所述第i-1条记录中的付款金额以及证据链,代入上述线性和Isum中,通过穷举运算确定所述账本记录中的第i-1条记录中的银行名、账户信息和资金用途。
When restoring the bank name, payment account, use of funds and collection account in the record of Article i-1,
Figure PCTCN2019095810-appb-000033
It can be known that, because the ledger record belongs to the payment account or the receiving account, one of the account information is known, and the payment amount obtained through the above embodiment is known. If the record is all the ledger records of the payment account, the above There are also unknown factors such as bank name, use of funds and collection account. In the case of peer transactions, the bank name is also known. If it is not a peer transaction, the scope of the bank name is also limited. According to the preset list of bank name, account information, and use of funds, the payment amount and evidence chain in the i-1 record can be substituted into the above linear and Isum The bank name, account information, and fund use in the i-1 record in the ledger record are determined through an exhaustive operation.
另外,对于第i-1条记录中的银行名、付款账户、付款金额、资金用途、收款账户、证据链、证据链码和余额可以恢复,但是上述信息的真实性证明却不能恢复,因此热备份数据库的支持就是必要的。由于明确了丢失的记录,则通过查找热备份数据库中对应的记录,即可恢复上述信息的真实性证明。In addition, the bank name, payment account, payment amount, use of funds, receiving account, evidence chain, chain of evidence code and balance in the record of Article i-1 can be recovered, but the authenticity of the above information cannot be recovered, so Hot backup database support is necessary. Since the lost records are clarified, the authenticity proof of the above information can be recovered by searching the corresponding records in the hot backup database.
或者,在确定了所述账本记录中的第i-1条记录丢失之后,直接查找热备份数据库中所述第i-1条记录,直接提取拷贝到本地,恢复本地账本记录中的第i-1条记录。Alternatively, after determining that the first i-1 record in the ledger record is lost, directly search the i-1 record in the hot backup database, directly extract and copy it to the local, and restore the i-th in the local ledger record. 1 record.
通过本发明实施例,由于每次交易均是在数字户币基础上实现的,而数字户币所用数字签名是用CPK签名协议,一次交易的结账时间只需毫秒级,无需担心现有技术中 出现的系统效率和开销的问题。另外,在数字户币中规定了收款账户和付款账户,而且都对交易金额做了数字签名。CPK数字签名由时间因素和标识因素构成,防止了被复制利用,可杜绝内、外作案的可能性。数字户币不怕被丢失、被复制,因为数字户币对非当事人没有任何意义。同样,以数字户币结账的银行账本记录,也不怕被窃、被复制,这对银行存储账本记录的数据库的安全性是至关重要的。According to the embodiment of the present invention, since each transaction is implemented on the basis of a digital account, and the digital signature used by the digital account is a CPK signature protocol, the settlement time of a transaction only needs milliseconds, and there is no need to worry about the existing technology. Emerging system efficiency and overhead issues. In addition, the payment account and payment account are specified in the digital account currency, and the transaction amount is digitally signed. CPK digital signature is composed of time factor and identification factor, which prevents being copied and used, and can eliminate the possibility of internal and external crimes. Digital currency is not afraid of being lost or copied, because digital currency has no meaning to non-parties. Similarly, bank book records settled in digital currency are not afraid of being stolen or copied, which is critical to the security of the database in which the bank stores the book records.
对数字户币的账本记录的存储方法,唯一担心的是账单的丢失,尽管一个账单的丢失不影响日常结账,不造成安全危害,但给账目管理造成麻烦。基于证据链码的存储方法,不受存储地和存放方式的影响,不仅能判别账本记录中账单的丢失与否,而且能确定丢失的是哪一个账本记录和哪一个账单,并能恢复被丢失的账目。另外,由本发明可扩展的,在账本记录和账本记录之间也可以建立证据链码,判断账本记录丢失与否。账本记录的完整性只与证据链、证据链码相关,与账本记录的存储无关。这种自我保护性记账方法,可大大缓解对账本记录数据库的安全负担。Regarding the storage method of digital account records, the only worry is the loss of bills. Although the loss of one bill does not affect daily settlement and does not cause security hazards, it causes trouble to account management. The storage method based on the chain of evidence is not affected by the storage location and the storage method. It can not only judge whether the bills in the ledger records are lost or not, but also determine which ledger records and bills are lost, and can recover the lost ones. The accounts. In addition, according to the present invention, the chain of evidence can be established between the ledger record and the ledger record to determine whether the ledger record is lost. The completeness of the ledger records is only related to the evidence chain and the evidence chain code, and has nothing to do with the storage of the ledger records. This self-protecting bookkeeping method can greatly ease the security burden of the ledger record database.
相应的,本发明实施例还提供一种银行终端,所述银行终端用于执行上述实施例所述的数字货币的结账方法。Correspondingly, an embodiment of the present invention further provides a bank terminal, where the bank terminal is configured to execute the digital currency settlement method described in the foregoing embodiment.
相应的,本发明实施例还提供一种机器可读存储介质,该机器可读存储介质上存储有指令,该指令用于使得机器执行上述实施例所述的数字货币的结账方法。Correspondingly, an embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores instructions, and the instructions are used to make the machine execute the digital currency checkout method described in the foregoing embodiment.
以上结合附图详细描述了本发明实施例的可选实施方式,但是,本发明实施例并不限于上述实施方式中的具体细节,在本发明实施例的技术构思范围内,可以对本发明实施例的技术方案进行多种简单变型,这些简单变型均属于本发明实施例的保护范围。The optional implementations of the embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the foregoing implementations. Within the scope of the technical concept of the embodiments of the present invention, the embodiments of the present invention may be implemented. The technical solution of the present invention performs various simple modifications, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本发明实施例对各种可能的组合方式不再另行说明。In addition, it should be noted that the specific technical features described in the foregoing specific embodiments can be combined in any suitable manner without conflict. In order to avoid unnecessary repetition, the embodiments of the present invention do not separately describe various possible combinations.
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤的执行方法和地点不限,所用银行私钥可以用软件包保护,也可以存储在一个存储介质中,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储参数的介质。Those skilled in the art can understand that there is no limitation on the method and place for performing all or part of the steps in the method of the above embodiment. The private key of the bank can be protected by a software package or stored in a storage medium, including: U disk, mobile Hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store parameters.
此外,本发明实施例的各种不同的实施方式之间也可以进行任意组合,只要其不违背本发明实施例的思想,其同样应当视为本发明实施例所公开的内容。In addition, various combinations of the embodiments of the present invention can also be arbitrarily combined, as long as it does not violate the idea of the embodiment of the present invention, it should also be regarded as the content disclosed in the embodiment of the present invention.

Claims (12)

  1. 一种数字货币的结账方法,其特征在于,包括:A digital currency checkout method, comprising:
    获取账单并验证所述账单的真实性,所述账单包括账目信息以及所述账目信息的真实性证明、证据链以及所述证据链的真实性证明,所述证据链为所述账目信息中的账目名称的线性和;Obtain a bill and verify the authenticity of the bill, the bill includes the account information and the proof of authenticity of the account information, the evidence chain, and the proof of authenticity of the evidence chain, the evidence chain is the Linear sum of account names;
    当验证所述账单为真时,获取所述账目名称中的账户信息;Obtaining the account information in the account name when verifying that the bill is true;
    查找与所述账户信息对应的账本记录,并将所述账单作为最新一条记录存储在对应的账本记录中;以及Find the ledger record corresponding to the account information, and store the bill as the latest record in the corresponding ledger record; and
    根据所述账目信息中的付款金额以及所述证据链,更新所述账本记录中的证据链码和余额,并存储在所述最新一条记录中,所述证据链码为所述账本记录中的证据链的线性和。Update the evidence chain code and balance in the ledger record according to the payment amount in the account information and the evidence chain, and store in the latest record, the evidence chain code is the Linear sum of evidence chain.
  2. 根据权利要求1所述的方法,其特征在于,所述获取账单并验证所述账单的真实性包括:The method according to claim 1, wherein the obtaining a bill and verifying the authenticity of the bill comprises:
    获取账单,所述账单为data={bank,time1,sign1,Client,sign2,Client,time2,sign3,amount,sign4,use,sign5,Firm,sign6,Isum,sign7},Get a bill, where the bill is data = {bank, time1, sign1, Client, sign2, Client, time2, sign3, amount, sign4, use, sign5, Firm, sign6, Isum, sign7},
    其中,Bank为银行名;time1为银行签名时间;sign1为银行对time1的数字签名,用于标记(s1,c1),且表示银行名真实性证明;Client为付款账户;sign2为银行对付款账户的数字签名,用于标记(s2,c2),且表示付款账户真实性证明;time2为付款账户签名时间;sign3为付款账户对time2的数字签名,用于标记(s3,c3),且表示付款账户真实性证明;amount为付款金额;sign4为付款账户对付款金额的数字签名,用于标记(s4,c4),且表示付款金额真实性证明;use为资金用途;sign5为付款账户对资金用途的数字签名,用于标记(s5,c5),且表示资金用途真实性证明;Firm为收款账户;sign6为付款账户对收款账户的数字签名,用于标记(s6,c6),且表示收款账户真实性证明;Isum为银行名、付款账户、金额、资金用途和收款账户的线性和;sign7为付款账户对线性和的数字签名,用于标记(s7,c7),且表示线性和真实性证明;s1、s2、s3、s4、s5、s6和s7为签名码,c1、c2、c3、c4、c5、c6和c7为验证码;Among them, Bank is the name of the bank; time1 is the signature time of the bank; sign1 is the digital signature of the bank by time1, which is used to mark (s1, c1) and indicate the authenticity of the bank name; Client is the payment account; sign2 is the payment account of the bank The digital signature is used to mark (s2, c2) and indicates the authenticity of the payment account; time2 is the time of signature of the payment account; sign3 is the digital signature of the payment account to time2, which is used to mark (s3, c3) and indicates payment Proof of account authenticity; amount is the payment amount; sign4 is the digital signature of the payment account for the payment amount, which is used to mark (s4, c4) and indicates the authenticity of the payment amount; use is the use of funds; sign5 is the use of funds by the payment account The digital signature is used to mark (s5, c5), and represents the authenticity of the fund use; Firm is the receiving account; sign6 is the digital signature of the payment account to the receiving account, and is used to mark (s6, c6), and indicates Proof of authenticity of the receiving account; Isum is the linear sum of the bank name, payment account, amount, fund use, and receiving account; sign7 is the digital signature of the linear sum of the payment account, which is used to mark (s7 , C7), and represents linearity and authenticity proof; s1, s2, s3, s4, s5, s6, and s7 are signature codes, and c1, c2, c3, c4, c5, c6, and c7 are verification codes;
    根据VER BANK(time1,s1)=c1’, According to VER BANK (time1, s1) = c1 ',
    VER BANK(Client,s2)=c2’, VER BANK (Client, s2) = c2 ',
    VER CLIENT(time2,s3)=c3’, VER CLIENT (time2, s3) = c3 ',
    VER CLIENT(amount,s4)=c4’, VER CLIENT (amount, s4) = c4 ',
    VER CLIENT(use,s5)=c5’, VER CLIENT (use, s5) = c5 ',
    VER CLIENT(Firm,s6)=c6’, VER CLIENT (Firm, s6) = c6 ',
    VER CLIENT(Isum,s7)=c7’, VER CLIENT (Isum, s7) = c7 ',
    分别得到银行名真实性证明的验证码c1’,付款账户真实性证明c2’,付款账户真实性证明c3’,付款金额真实性证明c4’,资金用途真实性证明c5’,收款账户真实性证明c6’,线性和真实性证明c7’,其中,VER为验证函数,BANK为银行名的公钥,CLIENT为收款账户的公钥;Obtain the verification code c1 'of the authenticity certificate of the bank name, the authenticity certificate of the payment account c2', the authenticity certificate of the payment account c3 ', the authenticity certificate of the payment amount c4', the authenticity certificate of the capital use c5 ', and the authenticity of the receiving account Proof c6 ', linearity and authenticity proof c7', where VER is the verification function, BANK is the public key of the bank name, and CLIENT is the public key of the receiving account;
    分别验证c1与c1’,c2与c2’,c3与c3’,c4与c4’,c5与c5’,c6与c6’,c7与c7’是否相同,确定所述账单是否为真。Verify that c1 and c1 ', c2 and c2', c3 and c3 ', c4 and c4', c5 and c5 ', c6 and c6', c7 and c7 'are the same, and determine whether the bill is true.
  3. 根据权利要求1所述的方法,其特征在于,所述账户信息包括收款账户和付款账户,所述账本记录包括所述收款账户对应的账本记录和所述付款账户对应的账本记录。The method according to claim 1, wherein the account information includes a receiving account and a payment account, and the ledger record includes a ledger record corresponding to the receiving account and a ledger record corresponding to the payment account.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述账目信息中的所述证据链,更新所述账本记录中的证据链码包括:The method according to any one of claims 1-3, wherein updating the evidence chain code in the ledger record according to the evidence chain in the account information comprises:
    根据
    Figure PCTCN2019095810-appb-100001
    according to
    Figure PCTCN2019095810-appb-100001
    或者
    Figure PCTCN2019095810-appb-100002
    得到所述账本记录中更新后的证据链码ecode n,其中,Isum n为所述账目信息中的所述证据链,ecode n-1为所述最新一条记录的上一条记录中的证据链码,Isum i为所述账本记录中的第i条记录中的证据链。
    or
    Figure PCTCN2019095810-appb-100002
    Evidence obtained ecode n chain code books after updating the record, wherein, Isum n is the chain of evidence and the account information, ecode n-1 is the latest recording on a record in a chain of evidence code , Isum i is the chain of evidence in the i record in the ledger record.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,在所述更新所述账本记录中的证据链码和余额,并存储在所述最新一条记录中之后,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that after the updating of the chain of evidence code and balance in the ledger record and storing in the latest record, the method further comprises :
    根据SIG bank(ecode n)=(s8,c8)=sign8,SIG bank(balance n)=(s9,c9)=sign9,分别得到所述银行名对更新后的证据链码的数字签名以及所述银行名对更新后的余额的数字签名,其中,SIG为签名函数;bank为所述银行名的私钥;ecode n为更新后的证据链码;balance n为更新后的余额;sign8用于标记(s8,c8),且表示更新后的证据链码真实性证明;sign9用于标记(s9,c9),且表示更新后的余额真实性证明;s8和s9为签名码;c8和c9为验证码; According to SIG bank (ecode n ) = (s8, c8) = sign8, SIG bank (balance n ) = (s9, c9) = sign9, the digital signature of the updated evidence chain code by the bank name and the Digital signature of the updated balance by bank name, where SIG is the signature function; bank is the private key of the bank name; ecode n is the updated chain of evidence code; balance n is the updated balance; sign8 is used to mark (s8, c8), and represents the updated evidence chain code authenticity proof; sign9 is used to mark (s9, c9), and represents the updated balance authenticity proof; s8 and s9 are signature codes; c8 and c9 are verification code;
    将所述银行名对更新后的证据链码的数字签名以及所述银行名对更新后的余额的数字签名存储在所述最新一条记录中。The digital signature of the bank name on the updated evidence chain code and the digital signature of the bank name on the updated balance are stored in the latest record.
  6. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, further comprising:
    通过下述方式,根据账本记录中的证据链和证据链码验证所述账本记录的完整性:Verify the integrity of the ledger record according to the evidence chain and evidence chain code in the ledger record by:
    根据
    Figure PCTCN2019095810-appb-100003
    或者
    Figure PCTCN2019095810-appb-100004
    依次验证所述账本记录中的每条记录是否丢失,其中i=1,2,3,…,n;
    according to
    Figure PCTCN2019095810-appb-100003
    or
    Figure PCTCN2019095810-appb-100004
    Verify in turn whether each record in the ledger record is lost, where i = 1,2,3, ..., n;
    当存在
    Figure PCTCN2019095810-appb-100005
    或者
    Figure PCTCN2019095810-appb-100006
    时,确定所述账本记录中的第i-1条记录丢失。
    When exists
    Figure PCTCN2019095810-appb-100005
    or
    Figure PCTCN2019095810-appb-100006
    At that time, it is determined that the record i-1 in the ledger record is lost.
  7. 根据权利要求6所述的方法,其特征在于,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:The method according to claim 6, characterized in that after said determining that the first i-1 record in said ledger record is lost, the method further comprises:
    根据ecode i-1=ecode i-Isum i,确定所述账本记录中的第i-1条记录中的证据链码ecode i-1Determine the evidence chain code ecode i-1 in the i-1 record in the ledger record according to ecode i-1 = ecode i -Isum i ;
    根据Isum i-1=ecode i-ecode i-1,确定所述账本记录中的第i-1条记录中的证据链Isum i-1According to Isum i-1 = ecode i -ecode i-1 , the evidence chain Isum i-1 in the i-1 record in the ledger record is determined.
  8. 根据权利要求6所述的方法,其特征在于,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:The method according to claim 6, characterized in that after said determining that the first i-1 record in said ledger record is lost, the method further comprises:
    根据balance i-1=balance i-amount i,确定所述账本记录中的第i-1条记录中的余额balance i-1,其中,balance i为所述账本记录中的第i条记录中的余额,amount i为所述账本记录中的第i条记录中的付款金额; According to balance i-1 = balance i -amount i , determine the balance i-1 in the i-1 record in the ledger record, where balance i is the i- th record in the ledger record. The balance, amount i is the payment amount in the record of item i in the ledger record;
    根据amount i-1=balance i-1-balance i-2,确定所述账本记录中的第i-1条记录中的付款金额amount i-1,其中,balance i-2为所述账本记录中的第i-2条记录中的余额。 According to amount i-1 = balance i-1 -balance i-2 , determine the payment amount amount i-1 in the record i-1 in the ledger record, where balance i-2 is in the ledger record Balance in Article i-2.
  9. 根据权利要求6所述的方法,其特征在于,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:The method according to claim 6, characterized in that after said determining that the first i-1 record in said ledger record is lost, the method further comprises:
    根据银行名、账户信息和资金用途的预设列表,所述第i-1条记录中的付款金额以及证据链,通过穷举运算确定所述账本记录中的第i-1条记录中的银行名、账户信息和资金用途。According to a preset list of bank names, account information, and use of funds, the payment amount and evidence chain in the i-1 record are determined through exhaustive operations to determine the bank in the i-1 record in the ledger record Name, account information, and fund use.
  10. 根据权利要求6所述的方法,其特征在于,在所述确定所述账本记录中的第i-1条记录丢失之后,所述方法还包括:The method according to claim 6, characterized in that after said determining that the first i-1 record in said ledger record is lost, the method further comprises:
    查找热备份数据库中所述第i-1条记录,提取并恢复所述账本记录中的第i-1条记 录。Find the i-1 record in the hot backup database, extract and restore the i-1 record in the ledger record.
  11. 一种银行终端,其特征在于,所述银行终端用于执行所述权利要求1-10任一项所述的数字货币的结账方法。A bank terminal, characterized in that the bank terminal is used to execute the digital currency settlement method according to any one of claims 1-10.
  12. 一种机器可读存储介质,其特征在于,该机器可读存储介质上存储有指令,该指令用于使得机器执行上述权利要求1-10任一项所述的数字货币的结账方法。A machine-readable storage medium, characterized in that instructions are stored on the machine-readable storage medium, and the instructions are used to cause a machine to execute the digital currency checkout method according to any one of claims 1-10.
PCT/CN2019/095810 2018-09-26 2019-07-12 Digital currency settlement method, terminal and machine-readable storage medium WO2020063036A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811124244.5 2018-09-26
CN201811124244.5A CN109345222B (en) 2018-09-26 2018-09-26 Method for settling accounts of digital currency, terminal and machine-readable storage medium

Publications (1)

Publication Number Publication Date
WO2020063036A1 true WO2020063036A1 (en) 2020-04-02

Family

ID=65306562

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095810 WO2020063036A1 (en) 2018-09-26 2019-07-12 Digital currency settlement method, terminal and machine-readable storage medium

Country Status (2)

Country Link
CN (1) CN109345222B (en)
WO (1) WO2020063036A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345222B (en) * 2018-09-26 2022-04-26 晋商博创(北京)科技有限公司 Method for settling accounts of digital currency, terminal and machine-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240017A (en) * 2017-07-20 2017-10-10 捷德(中国)信息科技有限公司 Block chain trade managing system and method
CN107274159A (en) * 2017-06-09 2017-10-20 北京泛融科技有限公司 A kind of accounting system and method that algorithm is concurrently performed based on block
WO2017194976A1 (en) * 2016-05-13 2017-11-16 De La Rue International Limited Methods and systems for processing assets
CN109345222A (en) * 2018-09-26 2019-02-15 晋商博创(北京)科技有限公司 Accounting method, terminal and the machine readable storage medium of digital cash

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106779696B (en) * 2016-11-29 2020-09-29 晋商博创(北京)科技有限公司 CPK-based digital bank and digital currency and payment method
CN107580022B (en) * 2017-08-02 2020-11-06 国家计算机网络与信息安全管理中心 Data sharing system and method
CN108122098A (en) * 2018-01-10 2018-06-05 晋商博创(北京)科技有限公司 Digital coin systems, method of payment and terminal based on CPK

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017194976A1 (en) * 2016-05-13 2017-11-16 De La Rue International Limited Methods and systems for processing assets
CN107274159A (en) * 2017-06-09 2017-10-20 北京泛融科技有限公司 A kind of accounting system and method that algorithm is concurrently performed based on block
CN107240017A (en) * 2017-07-20 2017-10-10 捷德(中国)信息科技有限公司 Block chain trade managing system and method
CN109345222A (en) * 2018-09-26 2019-02-15 晋商博创(北京)科技有限公司 Accounting method, terminal and the machine readable storage medium of digital cash

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BA, JIEM: "Application of Distributed Ledger Technology to High Value Payment System: Advantage, Risk and Countermeasure", SOUTH CHINA FINANCE, 31 December 2017 (2017-12-31), pages 82 - 88 *

Also Published As

Publication number Publication date
CN109345222B (en) 2022-04-26
CN109345222A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US20190236565A1 (en) Method for issuing currency and making payment by managing balance database for each block in blockchain network and server using same
WO2020134653A1 (en) Method and device for uploading electronic certificate
US10410214B2 (en) System and method for financial transaction validation
WO2020134699A1 (en) Blockchain-based invoice reimbursement method and device and electronic device
US20190103973A1 (en) Hash subtrees for grouping components by component type
CN109919756A (en) Fund transfer system, checking method and method of commerce based on Merkle tree backtracking location technology
CN111989707B (en) Managing user rights for blockchain-based customs clearance services
EP3433814A1 (en) Methods and systems for recording multiple transactions on a blockchain
CN107171812A (en) It is a kind of based on block chain without key signature infrastructure construction method
CN111936995A (en) Distributed storage of customs clearance data
CN111989663A (en) Intelligent contract pool based on block chain
CN109508564A (en) A kind of digital asset storage system and method based on block chain
CN106056373A (en) Divisible digital asset transfer method based on blockchains
CN111868725A (en) Processing import customs clearance data based on block chain
CN106909852B (en) Intelligent contract encryption method and device based on triple md5 encryption algorithms
CN114930330A (en) User management of customs clearance service platform based on block chain
US11818271B2 (en) Linking transactions
CN111936994A (en) Block chain based document registration for customs clearance
WO2020063036A1 (en) Digital currency settlement method, terminal and machine-readable storage medium
KR20190093011A (en) The block-chain system with enhanced security and the method of generating a data block using a double block-chain structure
WO2019177788A1 (en) Detecting alterations of journal data structures
CN110163754B (en) Method, client, blockchain and system for realizing coinage transaction in Fabric blockchain
US20230112296A1 (en) Universal payment channels
CN111242785A (en) Bill processing method and device, electronic equipment and storage medium
CN112163845B (en) Transaction identity confirmation method and device for cross-region block chain

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19864839

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19864839

Country of ref document: EP

Kind code of ref document: A1