CN118052551B - Financial settlement method and system - Google Patents

Financial settlement method and system Download PDF

Info

Publication number
CN118052551B
CN118052551B CN202410229837.7A CN202410229837A CN118052551B CN 118052551 B CN118052551 B CN 118052551B CN 202410229837 A CN202410229837 A CN 202410229837A CN 118052551 B CN118052551 B CN 118052551B
Authority
CN
China
Prior art keywords
transaction
payment
settlement
blockchain
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410229837.7A
Other languages
Chinese (zh)
Other versions
CN118052551A (en
Inventor
陈淑翠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongkai Urban Investment Group Co ltd
Original Assignee
Beijing Yingjia Brand Management Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yingjia Brand Management Co ltd filed Critical Beijing Yingjia Brand Management Co ltd
Priority to CN202410229837.7A priority Critical patent/CN118052551B/en
Publication of CN118052551A publication Critical patent/CN118052551A/en
Application granted granted Critical
Publication of CN118052551B publication Critical patent/CN118052551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Fuzzy Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明提出了一种金融结算方法,适用于区块链节点。方法包括:接收第一交易方的结算请求,所述结算请求包括所述第一交易方的区块链账户标识和所述第一交易方参与的目标交易的交易标识;响应所述结算请求,根据所述目标交易的交易标识在区块链中查询所述目标交易的交易凭证,其中,所述交易凭证包括所述第一交易方的资金账户标识和交易金额;基于所述第一交易方的资金账户标识和交易金额,生成支付指令;向银行系统传达所述支付指令,并接收所述银行系统返回的支付结果;将所述支付结果与所述目标交易的交易标识关联,并将关联后的支付结果写入区块链。本发明还提出了一种金融结算系统。

The present invention proposes a financial settlement method, which is applicable to blockchain nodes. The method includes: receiving a settlement request from a first transaction party, the settlement request including the blockchain account identifier of the first transaction party and the transaction identifier of a target transaction in which the first transaction party participates; responding to the settlement request, querying the transaction voucher of the target transaction in the blockchain according to the transaction identifier of the target transaction, wherein the transaction voucher includes the capital account identifier and the transaction amount of the first transaction party; generating a payment instruction based on the capital account identifier and the transaction amount of the first transaction party; communicating the payment instruction to a bank system, and receiving a payment result returned by the bank system; associating the payment result with the transaction identifier of the target transaction, and writing the associated payment result into the blockchain. The present invention also proposes a financial settlement system.

Description

Financial settlement method and system
Technical Field
The invention relates to the technical field of information, in particular to a financial settlement method and a financial settlement system.
Background
In the prior art, many financial settlement systems are centralized systems. The centralized financial settlement system can reduce the labor cost of settlement, but has the defects of single point invalidation, data tampering and the like. For example, devices of the settlement institution are paralyzed by a network attack, resulting in failure to provide settlement services. As another example, the settlement facility spoofs the transaction party, privately tampers with the settlement data, resulting in the interests of the transaction party being compromised.
In view of this, it is desirable to provide a reliable automated financial settlement method and system.
Disclosure of Invention
The invention aims to provide a reliable automatic financial settlement method and system.
A first aspect of an embodiment of the present invention provides a financial settlement method, applicable to a blockchain node, including:
Receiving a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party; inquiring a transaction credential of the target transaction in a blockchain according to the transaction identifier of the target transaction in response to the settlement request, wherein the transaction credential comprises a fund account identifier and a transaction amount of the first transaction party; generating a payment instruction based on the fund account identification and the transaction amount of the first transaction party;
Conveying the payment instruction to a banking system, and receiving a payment result returned by the banking system; and associating the payment result with the transaction identifier of the target transaction, and writing the associated payment result into a blockchain.
With reference to the first aspect, in some embodiments, the communicating the payment instruction to a banking system and receiving a payment result returned by the banking system includes: generating an HTTP request based on Content-Type or Authorization parameters, wherein the HTTP request contains payment related information, and the payment related information comprises an order number, a payment amount and a payment mode; converting the HTTP request into a character string, wherein the data format of the character string is JSON or XML; and sending the HTTP request to the banking system, waiting for the response of the banking system and returning the payment result.
With reference to the first aspect, in some embodiments, the generating payment instruction based on the fund account identification and the transaction amount of the first transaction party includes: determining a settlement amount according to a preset settlement rule based on the transaction amount; and generating the payment instruction based on the fund account identification of the first transaction party and the settlement amount.
With reference to the first aspect, in some embodiments, the HTTP request is sent to the banking system, and the banking system responds to the first HTTP request and generates a first character string according to an instruction library; the first character string is split and then sent to all users with the blockchain account identifier; receiving the first character string and generating a second character string according to the instruction library; and the banking system receives the second character string and verifies the source data of the second character string according to the second character string, and if the source data accords with the instruction library, the banking system responds and returns the payment result.
With reference to the first aspect, in some embodiments, the target transaction is a passcard transaction, the first transaction party is a buyer or a seller, and the transaction credential of the target transaction further includes a passcard account address and a passcard delivery number of the first transaction party; the settlement process further includes: generating a pass transfer instruction based on the pass account address of the first transaction party and the pass delivery number; the certification transferring instruction is transmitted to a financial institution system, and a certification transferring result returned by the financial institution system is received; and writing the evidence-passing transfer result into a blockchain.
With reference to the first aspect, in some embodiments, before generating the payment instruction and the passcard transfer instruction, the settlement process further includes: the transaction credential is audited to determine the legitimacy of the transaction credential, the payment instruction and the passcard transfer instruction and being generated only if the transaction credential is determined to be legitimate.
With reference to the first aspect, in some embodiments, the settlement process further includes: acquiring a plurality of certificates generated in the settlement process; determining a category of the plurality of credentials; for each of the plurality of credentials, generating an index of the credential based on a category of the credential and a transaction identification of the target transaction; the plurality of credentials are written to the blockchain at respective indexes.
With reference to the first aspect, in some embodiments, receiving a settlement request of a first transaction party, the settlement request including a blockchain account identification of the first transaction party and a transaction identification of a target transaction in which the first transaction party participates, includes: determining an API interface for receiving the settlement request; determining an endpoint based on the API interface, the endpoint for receiving the settlement request, wherein the endpoint parameter includes a blockchain account identification of the first transaction party and a transaction identification of a target transaction; performing identity verification based on a blockchain account identification of the first transaction party, wherein the identity verification process comprises searching related transaction information based on the transaction identification; and returning the payment result to the first transaction party based on the HTTP response mode.
With reference to the first aspect, in some embodiments, obtaining the plurality of credentials generated in the settlement process includes:
inquiring the transaction certificate of a target transaction in a blockchain based on the transaction identifier in the settlement request, and acquiring an inquiry result; all of the credentials associated with the target transaction are determined in a query result. With reference to the first aspect, in some implementations, auditing the transaction credential to determine validity of the transaction credential, the payment instruction and the passable transfer instruction and being generated only if the transaction credential is determined to be valid includes: calculating the transaction certificate based on a hash function, and comparing the transaction certificate with a hash value in the transaction certificate; verifying the signature based on the public key in the transaction certificate and ensuring that the public key is matched with the identity information in the transaction certificate; and verifying whether the payment instruction and the evidence transferring instruction in the transaction evidence accord with system rules and constraint conditions or not according to the payment instruction and the evidence transferring instruction.
A second aspect of an embodiment of the present invention provides a financial settlement system, adapted for blockchain nodes, configured to:
Receiving a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party; inquiring a transaction credential of the target transaction in a blockchain according to the transaction identifier of the target transaction in response to the settlement request, wherein the transaction credential comprises a fund account identifier and a transaction amount of the first transaction party;
generating a payment instruction based on the fund account identification and the transaction amount of the first transaction party; conveying the payment instruction to a banking system, and receiving a payment result returned by the banking system; and associating the payment result with the transaction identifier of the target transaction, and writing the associated payment result into a blockchain.
With reference to the second aspect, in some embodiments, the system is further configured to:
Generating an HTTP request based on Content-Type or Authorization parameters, wherein the HTTP request contains payment related information, and the payment related information comprises an order number, a payment amount and a payment mode; converting the HTTP request into a character string, wherein the data format of the character string is JSON or XML; and sending the HTTP request to the banking system, waiting for the response of the banking system and returning the payment result.
With reference to the second aspect, in some embodiments, the system is further configured to: determining a settlement amount according to a preset settlement rule based on the transaction amount; and generating the payment instruction based on the fund account identification of the first transaction party and the settlement amount.
With reference to the second aspect, in some embodiments, the system is further configured to:
The target transaction is a pass transaction, the first transaction party is a buyer party or a seller party, and the transaction certificate of the target transaction also comprises a pass account address and a pass delivery number of the first transaction party;
the settlement process further includes: generating a pass transfer instruction based on the pass account address of the first transaction party and the pass delivery number; the certification transferring instruction is transmitted to a financial institution system, and a certification transferring result returned by the financial institution system is received; and writing the evidence-passing transfer result into a blockchain.
With reference to the second aspect, in some embodiments, the system is further configured to:
Before generating the payment instruction and the clearance transfer instruction, the settlement process further includes: the transaction credential is audited to determine the legitimacy of the transaction credential, the payment instruction and the passcard transfer instruction and being generated only if the transaction credential is determined to be legitimate.
With reference to the second aspect, in some embodiments, the system is further configured to: the settlement process further includes: acquiring a plurality of certificates generated in the settlement process; determining a category of the plurality of credentials; for each of the plurality of credentials, generating an index of the credential based on a category of the credential and a transaction identification of the target transaction; the plurality of credentials are written to the blockchain at respective indexes.
With reference to the second aspect, in some embodiments, the system is further configured to:
Receiving a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party, and the settlement request comprises the following steps: determining an API interface for receiving the settlement request; determining an endpoint based on the API interface, the endpoint for receiving the settlement request, wherein the endpoint parameter includes a blockchain account identification of the first transaction party and a transaction identification of a target transaction; performing identity verification based on a blockchain account identification of the first transaction party, wherein the identity verification process comprises searching related transaction information based on the transaction identification; and returning the payment result to the first transaction party based on the HTTP response mode.
With reference to the second aspect, in some embodiments, the system is further configured to: acquiring a plurality of credentials generated in the settlement process, including: inquiring the transaction certificate of a target transaction in a blockchain based on the transaction identifier in the settlement request, and acquiring an inquiry result; all of the credentials associated with the target transaction are determined in a query result.
With reference to the second aspect, in some embodiments, the system is further configured to:
Auditing the transaction credential to determine the legitimacy of the transaction credential, the payment instruction and the passcard transfer instruction and being generated only if the transaction credential is determined to be legitimate, comprising: calculating the transaction certificate based on a hash function, and comparing the transaction certificate with a hash value in the transaction certificate; verifying the signature based on the public key in the transaction certificate and ensuring that the public key is matched with the identity information in the transaction certificate; and verifying whether the payment instruction and the evidence transferring instruction in the transaction evidence accord with system rules and constraint conditions or not according to the payment instruction and the evidence transferring instruction.
A third aspect of an embodiment of the present invention provides an electronic device, including:
At least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method according to the first aspect of the present invention.
A fourth aspect of the embodiments of the present invention proposes a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as proposed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has at least the following technical effects:
In the scheme, firstly, a settlement request of a first transaction party is received, the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party, then, in response to the settlement request, transaction certificates of the target transaction are inquired in a blockchain according to the transaction identifier of the target transaction, wherein the transaction certificates comprise a fund account identifier of the first transaction party and a transaction amount, then, a payment instruction is generated based on the fund account identifier of the first transaction party and the transaction amount, then, the payment instruction is transmitted to a banking system, a payment result returned by the banking system is received, finally, the payment result is associated with the transaction identifier of the target transaction, and the associated payment result is written into the blockchain. According to the financial settlement method provided by the embodiment of the invention, the automatic settlement can be realized by inquiring the pre-stored transaction certificate and generating the payment instruction based on the content of the transaction certificate, so that the settlement efficiency is improved, and the settlement cost is saved. Meanwhile, due to the fact that the blockchain has the characteristics of decentralization and difficult data tampering, the payment result can be ensured to be stored in a plurality of blockchain nodes in a distributed mode by writing the payment result into the blockchain, and the payment result is difficult to tamper.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a financial settlement method according to an embodiment of the application. .
Detailed Description
In order to make the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are all embodiments of one path of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
The term "comprising" in the description of the application and the claims and in the above figures and any variants thereof is intended to cover a non-exclusive inclusion. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include additional steps or elements not listed or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used for distinguishing between different objects and not for describing a particular sequential order.
In this specification, the term "blockchain" may refer to a chain of entities consisting of different entities (e.g., individuals, companies, institutions, governments, etc.), or a data chain of blocks linked in chronological order, depending on the specific context.
Fig. 1 is a flowchart of a financial settlement method according to an embodiment of the present application. The flow may be performed by block link points. The flow may be performed by a financial settlement system implemented in a blockchain node, for example. As shown in fig. 1, the flow includes the following steps.
Step 101, receiving a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party.
Taking a general certificate (e.g., stock, securities, etc.) transaction as an example, the first party may be the buyer or seller of the general certificate.
The settlement request includes a blockchain account identification of the first transaction party and a transaction identification of a target transaction in which the first transaction party participates. Illustratively, the various types of identifiers referred to herein may be represented as fixed-length strings. The first transaction part can initiate a settlement request through the user side. Specifically, the first transaction party can specify the target transaction corresponding to the settlement request, and accordingly, the user terminal can automatically package the blockchain account identifier of the first transaction party and the transaction identifier of the target transaction into the settlement request and upload the settlement request to the blockchain network.
In this embodiment, a transacting party (e.g., a person) may access the blockchain network through the user side (without running a consensus algorithm). Of course, a transacting party (e.g., a company) may also access the blockchain network through a consensus node (i.e., a blockchain node that needs to run a consensus algorithm). In particular, a federation chain can be constructed consisting of at least banks, financial institutions (e.g., dealers) and governments, the members of which require deployment of high-power consensus nodes, other entities (e.g., individuals) having access to a blockchain network of consensus nodes through low-power nodes (common nodes).
In response to the settlement request, the settlement module performs a settlement process. The execution process of the transparent intelligent contract is disclosed, and all transactions are recorded on the blockchain and can be checked at any time, so that the transparency of the transactions is improved.
As an implementation manner, an HTTP request may be generated based on a Content-Type or Authorization parameter, where the HTTP request includes payment related information, where the payment related information includes an order number, a payment amount, and a payment manner, and then the HTTP request is converted into a character string, where a data format of the character string is JSON or XML, and then the HTTP request is sent to the banking system, and waits for the banking system to respond and return the payment result.
Specifically, the HTTP request may be sent to the banking system, which responds to the first HTTP request and generates a first string according to an instruction library; the first character string is split and then sent to all users with the blockchain account identifier; receiving the first character string and generating a second character string according to the instruction library; and the banking system receives the second character string and verifies the source data of the second character string according to the second character string, and if the source data accords with the instruction library, the banking system responds and returns the payment result. In this way, the safety thereof can be further improved.
Step 102, responding to the settlement request, and inquiring a transaction certificate of the target transaction in a blockchain according to the transaction identifier of the target transaction, wherein the transaction certificate comprises the fund account identifier and the transaction amount of the first transaction party.
The transaction credential includes a funds account identification of the first transaction party and a transaction amount. For each transaction facilitated, the financial institution system may upload transaction credentials for the transaction (e.g., as a blockchain node) to the blockchain network. That is, the transaction credentials of the target transaction may be pre-written to the blockchain. In addition, to distinguish between transaction credentials of different transactions, the transaction credentials in the blockchain are associated with a transaction identification. For example, the transaction identification in the transaction voucher may be directly used as the transaction in the blockchain associated with the transaction voucher, and accordingly, the transaction voucher and the transaction identification for the same transaction may be uploaded together to the blockchain network for associated storage. In one possible implementation, the transaction identification and the transaction credential may be composed into a key-value pair and then written into the blockchain, with the transaction identification being as a key and the transaction credential being as a value.
And step 103, generating a payment instruction based on the fund account identification and the transaction amount of the first transaction party.
The payment instructions are used to instruct transfer of the settlement amount from a designated account (e.g., a centralized funds receiving account) to a funds account of a first transaction party (e.g., a seller) or transfer of the settlement funds from a funds account of a first transaction party (e.g., a buyer) to a designated account (e.g., a centralized funds receiving account).
In some embodiments, the settlement module may determine the settlement amount according to preset settlement rules based on the transaction amount. The settlement rules may include calculation rules for related fees (e.g., financial services fees, tax, value added tax, tax stamp, etc.), and the settlement amount may be determined based on the transaction amount and the related fees.
Specifically, as one implementation mode, an API interface for receiving the settlement request may be determined first, then, an endpoint is determined based on the API interface, where the endpoint parameter includes a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction, then, identity verification is performed based on the blockchain account identifier of the first transaction party, the identity verification process includes searching related transaction information based on the transaction identifier, and finally, the payment result is returned to the first transaction party based on an HTTP response mode.
Step 104, the payment instruction is transmitted to a banking system, and a payment result returned by the banking system is received.
Specifically, the payment result may indicate whether the payment was successful, for example, "1" indicates that the payment was successful and "0" indicates that the payment failed. Further, when the payment result indicates that the payment was successful, the payment result may carry payment credentials.
Step 105, associating the payment result with the transaction identifier of the target transaction, and writing the associated payment result into a blockchain.
In the embodiment of the application, on one hand, by inquiring the pre-stored transaction certificate and generating the payment instruction based on the content of the transaction certificate, the automatic settlement can be realized, the settlement efficiency is improved, and the settlement cost is saved. On the other hand, due to the fact that the blockchain has the characteristics of decentralization and difficult data tampering, the payment result can be ensured to be stored in a plurality of blockchain nodes in a distributed mode by writing the payment result into the blockchain, and the payment result is difficult to tamper. That is, the embodiment of the application provides a reliable automatic settlement method based on blockchain.
In some embodiments, the settlement module may associate the payment result with a transaction identification of the target transaction and write the associated payment result to the blockchain. Referring to the foregoing embodiment, the transaction identifier and the payment result may form a key-value pair and then be written into a blockchain, wherein the transaction identifier is a key (key) and the payment result is a value (value). Thus, specific payment results can be queried through the transaction identification.
In some embodiments, the target transaction is a passbook transaction (e.g., a stock or securities transaction), the first party is a buyer or seller, and the transaction credential of the target transaction further includes a passbook account address and a passbook delivery number of the first party. Based on this, as an embodiment, it may further include:
Step 310, generating a pass transfer instruction based on the pass account address and the pass number of the first transaction party.
The pass transfer instruction is configured to instruct transfer of a specified number of passes (i.e., the pass-through number) from a specified account (e.g., a centralized pass-through account) to a pass account of a first transaction party (e.g., a seller), or transfer of a specified number of passes (i.e., the pass-through number) from a pass account of a first transaction party (e.g., a buyer) to a specified account (e.g., a centralized pass-through account).
Step 320, the certification transferring instruction is transmitted to the financial institution system, and the certification transferring result returned by the financial institution system is received.
Specifically, the authenticated transfer result may indicate whether the transfer (delivery) is successful, for example, "1" indicates that the transfer (delivery) is successful and "0" indicates that the transfer (delivery) is failed. Further, when the passcard transfer result indicates that the transfer (delivery) is successful, the passcard transfer result may carry a passcard transfer (delivery) credential.
And 330, writing the certification transfer result into a blockchain.
In some embodiments, the certification transfer outcome may be associated with a transaction identifier of the target transaction and the associated certification transfer outcome written to the blockchain. Referring to the foregoing embodiment, the transaction identifier and the through certificate transfer result may form a key value pair and then be written into a blockchain, where the transaction identifier is a key (key) and the through certificate transfer result is a value (value). Thus, the specific evidence-passing transfer result can be queried through the transaction identifier.
In some embodiments, the transaction credential may be audited to determine the validity of the transaction credential prior to generating the payment instruction and the passable transfer instruction. The payment instructions and the passcard transfer instructions and are only generated when the transaction credential is determined to be legitimate (i.e., pass an audit). In other words, settlement may be terminated when the transaction credential is determined to be illegal (i.e., not approved). In particular, the transaction credential may be checked for its field integrity and whether each field (e.g., transaction amount, number of passes, etc.) meets specifications. Thus, the reliability of the settlement process can be improved, and invalid and incorrect settlement can be avoided.
Specifically, the transaction credential may be calculated based on a hash function and compared with a hash value in the transaction credential; verifying the signature based on the public key in the transaction certificate and ensuring that the public key is matched with the identity information in the transaction certificate; and verifying whether the payment instruction and the evidence transferring instruction in the transaction evidence accord with system rules and constraint conditions or not according to the payment instruction and the evidence transferring instruction.
In some embodiments, a sorted store of related credentials is also included. Specifically, the classified storage flow of credentials includes steps 410 through 430.
Step 410, obtaining a plurality of credentials generated in the settlement process.
Illustratively, the plurality of credentials may include payment credentials, pass transfer (payment) credentials, payment (e.g., financial services, tax) credentials, and the like, or any combination thereof. Inquiring the transaction certificate of a target transaction in a blockchain based on the transaction identification in the settlement request, and acquiring an inquiry result to determine all the certificates related to the target transaction in the inquiry result.
Step 420, determining a category of the plurality of credentials.
The category of each credential may be determined by extracting a particular field (e.g., the first field) of each credential. For example, if the first field of a credential is "pay," then the type of credential is a payment credential. For another example, if the first field of a credential is "security," then the category of the credential is a security-delivery credential. For another example, if the first field of a certain certificate is "tax", the type of the certificate is a tax payment certificate.
Step 430, for each of the plurality of credentials, generating an index of the credential based on the category of the credential and the transaction identification of the target transaction.
Step 440, writing the plurality of credentials to the blockchain in respective indexes.
Specifically, each credential may be associated with its index and the associated credential written to the blockchain. With reference to the foregoing embodiments, the credential and its index may form a key-value pair and then be written to the blockchain, where the index is a key and the credential is a value. Thus, a transaction party can quickly query specific types of credentials for specific transactions (e.g., target transactions) by entering an index.
In some embodiments, this may be performed by invoking a smart contract, and accordingly, the settlement request also includes a contract address of the smart contract for performing the settlement process 220. Advantages of using smart contracts for settlement include: (1) The settlement is automatically executed, so that the settlement efficiency can be improved, and the transaction cost is reduced; (2) The intelligent contract is decentralised and does not depend on any central institution or third party institutions, so that the safety and reliability of settlement are improved; (3) Intelligent contracts are code-based agreements in which conditions and rules that must be satisfied by parties during the settlement process are specified, which can reduce subsequent disputes and disputes; (4) The intelligent contract can be written by using a plurality of programming languages, and can realize various complex logics and functions, thereby improving the flexibility and editability of the settlement process.
In some embodiments, the blockchain node may feed various types of results (e.g., audit results, payment results, credit transfer results, categories of the one or more credentials) back to the user side of the first transaction party (e.g., individual).
The financial settlement method provided by the embodiment of the application comprises the steps of firstly, receiving a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party, then, responding to the settlement request, inquiring a transaction certificate of the target transaction in a blockchain according to the transaction identifier of the target transaction, wherein the transaction certificate comprises a fund account identifier of the first transaction party and a transaction amount, then, generating a payment instruction based on the fund account identifier of the first transaction party and the transaction amount, then, transmitting the payment instruction to a banking system, receiving a payment result returned by the banking system, and finally, associating the payment result with the transaction identifier of the target transaction and writing the associated payment result into the blockchain. According to the financial settlement method provided by the embodiment of the application, the automatic settlement can be realized by inquiring the pre-stored transaction certificate and generating the payment instruction based on the content of the transaction certificate, so that the settlement efficiency is improved, and the settlement cost is saved. Meanwhile, due to the fact that the blockchain has the characteristics of decentralization and difficult data tampering, the payment result can be ensured to be stored in a plurality of blockchain nodes in a distributed mode by writing the payment result into the blockchain, and the payment result is difficult to tamper.
Based on the same inventive concept, the application also provides a financial settlement system, which is applicable to the blockchain node and is configured as follows:
Receiving a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party;
Inquiring a transaction credential of the target transaction in a blockchain according to the transaction identifier of the target transaction in response to the settlement request, wherein the transaction credential comprises a fund account identifier and a transaction amount of the first transaction party;
Generating a payment instruction based on the fund account identification and the transaction amount of the first transaction party;
conveying the payment instruction to a banking system, and receiving a payment result returned by the banking system;
And associating the payment result with the transaction identifier of the target transaction, and writing the associated payment result into a blockchain.
In some implementations, the system is further configured to:
Generating an HTTP request based on Content-Type or Authorization parameters, wherein the HTTP request contains payment related information, and the payment related information comprises an order number, a payment amount and a payment mode;
Converting the HTTP request into a character string, wherein the data format of the character string is JSON or XML;
and sending the HTTP request to the banking system, waiting for the response of the banking system and returning the payment result.
With reference to the second aspect, in some embodiments, the system is further configured to:
Determining a settlement amount according to a preset settlement rule based on the transaction amount;
And generating the payment instruction based on the fund account identification of the first transaction party and the settlement amount.
With reference to the second aspect, in some embodiments, the system is further configured to:
The target transaction is a pass transaction, the first transaction party is a buyer party or a seller party, and the transaction certificate of the target transaction also comprises a pass account address and a pass delivery number of the first transaction party;
the settlement process further includes:
Generating a pass transfer instruction based on the pass account address of the first transaction party and the pass delivery number;
The certification transferring instruction is transmitted to a financial institution system, and a certification transferring result returned by the financial institution system is received;
and writing the evidence-passing transfer result into a blockchain.
With reference to the second aspect, in some embodiments, the system is further configured to:
before generating the payment instruction and the clearance transfer instruction, the settlement process further includes:
the transaction credential is audited to determine the legitimacy of the transaction credential, the payment instruction and the passcard transfer instruction and being generated only if the transaction credential is determined to be legitimate.
In some implementations, the system is further configured to:
the settlement process further includes:
Acquiring a plurality of certificates generated in the settlement process;
determining a category of the plurality of credentials;
for each of the plurality of credentials, generating an index of the credential based on a category of the credential and a transaction identification of the target transaction;
the plurality of credentials are written to the blockchain at respective indexes.
In some implementations, the system is further configured to:
Receiving a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party, and the settlement request comprises the following steps:
Determining an API interface for receiving the settlement request;
determining an endpoint based on the API interface, the endpoint for receiving the settlement request, wherein the endpoint parameter includes a blockchain account identification of the first transaction party and a transaction identification of a target transaction;
performing identity verification based on a blockchain account identification of the first transaction party, wherein the identity verification process comprises searching related transaction information based on the transaction identification;
and returning the payment result to the first transaction party based on the HTTP response mode.
In some implementations, the system is further configured to:
acquiring a plurality of credentials generated in the settlement process, including:
Inquiring the transaction certificate of a target transaction in a blockchain based on the transaction identifier in the settlement request, and acquiring an inquiry result;
all of the credentials associated with the target transaction are determined in a query result.
In some implementations, the system is further configured to:
Auditing the transaction credential to determine the legitimacy of the transaction credential, the payment instruction and the passcard transfer instruction and being generated only if the transaction credential is determined to be legitimate, comprising:
calculating the transaction certificate based on a hash function, and comparing the transaction certificate with a hash value in the transaction certificate;
Verifying the signature based on the public key in the transaction certificate and ensuring that the public key is matched with the identity information in the transaction certificate;
And verifying whether the payment instruction and the evidence transferring instruction in the transaction evidence accord with system rules and constraint conditions or not according to the payment instruction and the evidence transferring instruction.
The financial settlement system provided by the embodiment of the application firstly receives a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party, then, in response to the settlement request, a transaction certificate of the target transaction is queried in a blockchain according to the transaction identifier of the target transaction, wherein the transaction certificate comprises a fund account identifier of the first transaction party and a transaction amount, then, a payment instruction is generated based on the fund account identifier of the first transaction party and the transaction amount, then, the payment instruction is transmitted to a banking system, a payment result returned by the banking system is received, and finally, the payment result is associated with the transaction identifier of the target transaction, and the associated payment result is written into the blockchain. According to the financial settlement system provided by the embodiment of the application, the automatic settlement can be realized by inquiring the pre-stored transaction certificate and generating the payment instruction based on the content of the transaction certificate, so that the settlement efficiency is improved, and the settlement cost is saved. Meanwhile, due to the fact that the blockchain has the characteristics of decentralization and difficult data tampering, the payment result can be ensured to be stored in a plurality of blockchain nodes in a distributed mode by writing the payment result into the blockchain, and the payment result is difficult to tamper.
Based on the same inventive concept, the embodiment of the application also provides an electronic device, which comprises:
At least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a financial settlement method according to embodiments of the application.
The electronic equipment provided by the embodiment of the application firstly receives a settlement request of a first transaction party, wherein the settlement request comprises a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction participated by the first transaction party, then, in response to the settlement request, inquires a transaction certificate of the target transaction in a blockchain according to the transaction identifier of the target transaction, wherein the transaction certificate comprises a fund account identifier of the first transaction party and a transaction amount, then, a payment instruction is generated based on the fund account identifier of the first transaction party and the transaction amount, then, the payment instruction is transmitted to a banking system, a payment result returned by the banking system is received, and finally, the payment result is associated with the transaction identifier of the target transaction, and the associated payment result is written into the blockchain. According to the electronic device provided by the embodiment of the application, the automatic settlement can be realized by inquiring the pre-stored transaction certificate and generating the payment instruction based on the content of the transaction certificate, so that the settlement efficiency is improved, and the settlement cost is saved. Meanwhile, due to the fact that the blockchain has the characteristics of decentralization and difficult data tampering, the payment result can be ensured to be stored in a plurality of blockchain nodes in a distributed mode by writing the payment result into the blockchain, and the payment result is difficult to tamper.
In addition, in order to achieve the above object, an embodiment of the present application also provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements a financial settlement method of the embodiment of the present application.
The following describes each component of the electronic device in detail:
The processor is a control center of the electronic device, and may be one processor or a collective name of a plurality of processing elements. For example, a processor is one or more central processing units (central processing unit, CPU), but may also be an Application SPECIFIC INTEGRATED Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the invention, such as: one or more microprocessors (DIGITAL SIGNAL processors, DSPs), or one or more field programmable gate arrays (field programmable GATE ARRAY, FPGAs).
In the alternative, the processor may perform various functions of the electronic device by executing or executing software programs stored in memory, and invoking data stored in memory.
The memory is configured to store a software program for executing the scheme of the present invention, and the processor is used to control the execution of the software program, and the specific implementation manner may refer to the above method embodiment, which is not described herein again.
Alternatively, the memory may be read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-only memory, EEPROM), compact disc read-only memory (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, without limitation. The memory may be integral with the processor or may exist separately and be coupled to the processor through interface circuitry of the electronic device, as the embodiments of the invention are not limited in detail.
A transceiver for communicating with a network device or with a terminal device.
Alternatively, the transceiver may include a receiver and a transmitter. The receiver is used for realizing the receiving function, and the transmitter is used for realizing the transmitting function.
Alternatively, the transceiver may be integrated with the processor, or may exist separately, and be coupled to the processor through an interface circuit of the router, which is not specifically limited by the embodiment of the present invention.
In addition, the technical effects of the electronic device may refer to the technical effects of the data transmission method described in the foregoing method embodiment, which is not described herein again.
It should be appreciated that the processor in embodiments of the invention may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf programmable gate arrays (field programmable GATE ARRAY, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should also be appreciated that the memory in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an erasable programmable ROM (erasable PROM), an electrically erasable programmable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of random access memory (random access memory, RAM) are available, such as static random access memory (STATIC RAM, SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (double DATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and direct memory bus random access memory (direct rambus RAM, DR RAM).
The above embodiments may be implemented in whole or in part by software, hardware (e.g., circuitry), firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
It should be understood that the term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural. In addition, the character "/" herein generally indicates that the associated object is an "or" relationship, but may also indicate an "and/or" relationship, and may be understood by referring to the context.
In the present invention, "at least one" means one or more, and "a plurality" means two or more. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (9)

1.一种金融结算方法,其特征在于,适用于区块链节点,包括:1. A financial settlement method, characterized in that it is applicable to a blockchain node and includes: 接收第一交易方的结算请求,所述结算请求包括所述第一交易方的区块链账户标识和所述第一交易方参与的目标交易的交易标识;receiving a settlement request from a first transaction party, the settlement request including a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction in which the first transaction party participates; 响应所述结算请求,根据所述目标交易的交易标识在区块链中查询所述目标交易的交易凭证,其中,所述交易凭证包括所述第一交易方的资金账户标识和交易金额,同一交易的交易凭证和交易标识一起被上传至区块链网络,交易标识和交易凭证组成键值对后写入区块链,其中,交易标识为作为键,交易凭证作为值;In response to the settlement request, query the transaction voucher of the target transaction in the blockchain according to the transaction identifier of the target transaction, wherein the transaction voucher includes the fund account identifier and the transaction amount of the first transaction party, and the transaction voucher and the transaction identifier of the same transaction are uploaded to the blockchain network together, and the transaction identifier and the transaction voucher form a key-value pair and are written into the blockchain, wherein the transaction identifier is used as the key and the transaction voucher is used as the value; 基于所述第一交易方的资金账户标识和交易金额,生成支付指令;Generate a payment instruction based on the fund account identifier and transaction amount of the first transaction party; 向银行系统传达所述支付指令,并接收所述银行系统返回的支付结果;Transmitting the payment instruction to the banking system and receiving the payment result returned by the banking system; 将所述支付结果与所述目标交易的交易标识关联,并将关联后的支付结果写入区块链;Associating the payment result with the transaction identifier of the target transaction, and writing the associated payment result into the blockchain; 所述向银行系统传达所述支付指令,并接收所述银行系统返回的支付结果,包括:The step of transmitting the payment instruction to the bank system and receiving the payment result returned by the bank system comprises: 基于Content-Type或Authorization参数生成HTTP请求,所述HTTP请求包含支付相关信息,所述支付相关信息包括订单号、支付金额、支付方式;Generate an HTTP request based on the Content-Type or Authorization parameter, where the HTTP request contains payment related information, including the order number, payment amount, and payment method; 将所述HTTP请求转换为字符串,所述字符串的数据格式为JSON或XML;Convert the HTTP request into a string, wherein the data format of the string is JSON or XML; 发送所述HTTP请求到所述银行系统,并等待所述银行系统响应并返回所述支付结果;Sending the HTTP request to the bank system, and waiting for the bank system to respond and return the payment result; 所述发送所述HTTP请求到所述银行系统,并等待所述银行系统响应并返回所述支付结果,包括:The sending of the HTTP request to the bank system and waiting for the bank system to respond and return the payment result comprises: 发送所述HTTP请求到所述银行系统,所述银行系统响应所述HTTP请求并根据指令库生成第一字符串;Sending the HTTP request to the bank system, the bank system responding to the HTTP request and generating a first character string according to an instruction library; 将所述第一字符串在拆分后发送给具有所述区块链账户标识的所有用户;Sending the first character string after splitting to all users with the blockchain account identifier; 接受所述第一字符串并根据所述指令库生成第二字符串;Accepting the first string and generating a second string according to the instruction library; 所述银行系统接收所述第二字符串并根据所述第二字符串并验证所述第二字符串源数据,若所述源数据符合所述指令库,则响应并返回所述支付结果。The bank system receives the second character string and verifies the source data of the second character string according to the second character string. If the source data conforms to the instruction library, the bank system responds and returns the payment result. 2.如权利要求1所述的金融结算方法,其特征在于,所述基于所述第一交易方的资金账户标识和交易金额,生成支付指令,包括:2. The financial settlement method according to claim 1, wherein generating a payment instruction based on the capital account identifier and transaction amount of the first transaction party comprises: 基于所述交易金额,根据预设结算规则确定结算金额;Based on the transaction amount, determining the settlement amount according to preset settlement rules; 基于所述第一交易方的资金账户标识和所述结算金额,生成所述支付指令。The payment instruction is generated based on the capital account identifier of the first transaction party and the settlement amount. 3.如权利要求2所述的金融结算方法,其特征在于,所述目标交易为通证交易,所述第一交易方为买入方或卖出方,所述目标交易的交易凭证还包括所述第一交易方的通证账户地址和通证交割数量;3. The financial settlement method according to claim 2, characterized in that the target transaction is a token transaction, the first transaction party is a buyer or a seller, and the transaction voucher of the target transaction further includes the token account address and the token delivery quantity of the first transaction party; 所述结算过程还包括:The settlement process also includes: 基于所述第一交易方的通证账户地址和所述通证交割数量,生成通证转移指令;Generate a token transfer instruction based on the token account address of the first transaction party and the token delivery quantity; 向金融机构系统传达所述通证转移指令,并接收所述金融机构系统返回的通证转移结果;Transmit the token transfer instruction to the financial institution system, and receive the token transfer result returned by the financial institution system; 将所述通证转移结果写入区块链。The token transfer result is written into the blockchain. 4.如权利要求3所述的金融结算方法,其特征在于,在生成所述支付指令和所述通证转移指令之前,所述结算过程还包括:4. The financial settlement method according to claim 3, characterized in that before generating the payment instruction and the token transfer instruction, the settlement process further includes: 对所述交易凭证进行审核,以确定所述交易凭证的合法性,所述支付指令和所述通证转移指令和仅在所述交易凭证被确定为合法时生成。The transaction voucher is reviewed to determine the legitimacy of the transaction voucher, and the payment instruction and the token transfer instruction are only generated when the transaction voucher is determined to be legitimate. 5.如权利要求4所述的金融结算方法,其特征在于,所述结算过程还包括:5. The financial settlement method according to claim 4, wherein the settlement process further comprises: 获取所述结算过程中产生的多个凭证;Obtaining multiple vouchers generated during the settlement process; 确定所述多个凭证的类别;determining categories of the plurality of credentials; 对于所述多个凭证中的每个凭证,基于该凭证的类别和所述目标交易的交易标识,生成该凭证的索引;For each voucher of the plurality of vouchers, generating an index of the voucher based on a category of the voucher and a transaction identifier of the target transaction; 将所述多个凭证按各自的索引写入所述区块链。The multiple credentials are written into the blockchain according to their respective indexes. 6.如权利要求5所述的金融结算方法,其特征在于,接收第一交易方的结算请求,所述结算请求包括所述第一交易方的区块链账户标识和所述第一交易方参与的目标交易的交易标识,包括:6. The financial settlement method according to claim 5, characterized in that receiving a settlement request from a first transaction party, wherein the settlement request includes a blockchain account identifier of the first transaction party and a transaction identifier of a target transaction in which the first transaction party participates, comprises: 确定接收所述结算请求的API接口;Determine an API interface for receiving the settlement request; 基于所述API接口确定端点,所述端点用于接收所述结算请求,其中,所述端点参数包括所述第一交易方的区块链账户标识和目标交易的交易标识;Determining an endpoint based on the API interface, the endpoint being used to receive the settlement request, wherein the endpoint parameters include the blockchain account identifier of the first transaction party and the transaction identifier of the target transaction; 基于所述第一交易方的区块链账户标识来进行身份验证,所述身份验证的过程包括基于所述交易标识查找相关的交易信息;Performing identity authentication based on the blockchain account identifier of the first transaction party, the identity authentication process comprising searching for relevant transaction information based on the transaction identifier; 基于HTTP响应的方式将所述支付结果返回至所述第一交易方。The payment result is returned to the first transaction party based on HTTP response. 7.根据权利要求6所述的金融结算方法,其特征在于,获取所述结算过程中产生的多个凭证,包括:7. The financial settlement method according to claim 6, characterized in that obtaining a plurality of vouchers generated during the settlement process comprises: 基于所述结算请求中的所述交易标识,在区块链中查询目标交易的所述交易凭证,并获取查询结果;Based on the transaction identifier in the settlement request, query the transaction voucher of the target transaction in the blockchain and obtain the query result; 在查询结果中确定与所述目标交易相关的所有所述凭证。All the vouchers related to the target transaction are determined in the query results. 8.根据权利要求7所述的金融结算方法,其特征在于,对所述交易凭证进行审核,以确定所述交易凭证的合法性,所述支付指令和所述通证转移指令和仅在所述交易凭证被确定为合法时生成,包括:8. The financial settlement method according to claim 7, characterized in that the transaction voucher is reviewed to determine the legitimacy of the transaction voucher, and the payment instruction and the token transfer instruction are generated only when the transaction voucher is determined to be legitimate, including: 基于哈希函数对所述交易凭证进行计算,并与所述交易凭证中的哈希值进行比对;Calculating the transaction voucher based on a hash function and comparing it with the hash value in the transaction voucher; 基于所述交易凭证中的公钥对签名进行验证,并确保该公钥与所述交易凭证中的身份信息相匹配;Verifying the signature based on the public key in the transaction voucher and ensuring that the public key matches the identity information in the transaction voucher; 根据所述交易凭证中的所述支付指令和通证转移指令,验证其是否符合系统规则和约束条件。Based on the payment instructions and token transfer instructions in the transaction voucher, verify whether they comply with system rules and constraints. 9.一种金融结算系统,其特征在于,包括:9. A financial settlement system, comprising: 接收模块,用于接收第一交易方的结算请求,所述结算请求包括所述第一交易方参与的目标交易的交易标识;A receiving module, configured to receive a settlement request from a first transaction party, wherein the settlement request includes a transaction identifier of a target transaction in which the first transaction party participates; 结算模块,用于响应于所述结算请求,执行以下结算过程:根据所述目标交易的交易标识在区块链中查询所述目标交易的交易凭证,所述交易凭证包括所述第一交易方的资金账户标识和交易金额,同一交易的交易凭证和交易标识一起被上传至区块链网络,交易标识和交易凭证组成键值对后写入区块链,其中,交易标识为作为键,交易凭证作为值;A settlement module, configured to respond to the settlement request and execute the following settlement process: querying the transaction voucher of the target transaction in the blockchain according to the transaction identifier of the target transaction, wherein the transaction voucher includes the fund account identifier and the transaction amount of the first transaction party, and the transaction voucher and the transaction identifier of the same transaction are uploaded to the blockchain network together, and the transaction identifier and the transaction voucher form a key-value pair and are written into the blockchain, wherein the transaction identifier is used as the key and the transaction voucher is used as the value; 基于所述第一交易方的资金账户标识和所述交易金额,生成支付指令;generating a payment instruction based on the fund account identifier of the first transaction party and the transaction amount; 向银行系统传达所述支付指令,并接收所述银行系统返回的支付结果;Transmitting the payment instruction to the banking system and receiving the payment result returned by the banking system; 将所述支付结果与所述目标交易的交易标识关联,并将关联后的支付结果写入区块链;Associating the payment result with the transaction identifier of the target transaction, and writing the associated payment result into the blockchain; 所述向银行系统传达所述支付指令,并接收所述银行系统返回的支付结果,包括:The step of transmitting the payment instruction to the bank system and receiving the payment result returned by the bank system comprises: 基于Content-Type或Authorization参数生成HTTP请求,所述HTTP请求包含支付相关信息,所述支付相关信息包括订单号、支付金额、支付方式;Generate an HTTP request based on the Content-Type or Authorization parameter, where the HTTP request contains payment related information, including the order number, payment amount, and payment method; 将所述HTTP请求转换为字符串,所述字符串的数据格式为JSON或XML;Convert the HTTP request into a string, wherein the data format of the string is JSON or XML; 发送所述HTTP请求到所述银行系统,并等待所述银行系统响应并返回所述支付结果;Sending the HTTP request to the bank system, and waiting for the bank system to respond and return the payment result; 所述发送所述HTTP请求到所述银行系统,并等待所述银行系统响应并返回所述支付结果,包括:The sending of the HTTP request to the bank system and waiting for the bank system to respond and return the payment result comprises: 发送HTTP请求到所述银行系统,所述银行系统响应所述HTTP请求并根据指令库生成第一字符串;Sending an HTTP request to the bank system, the bank system responding to the HTTP request and generating a first character string according to an instruction library; 将所述第一字符串在拆分后发送给具有所述区块链账户标识的所有用户;Sending the first character string after splitting to all users with the blockchain account identifier; 接受所述第一字符串并根据所述指令库生成第二字符串;Accepting the first string and generating a second string according to the instruction library; 所述银行系统接收所述第二字符串并根据所述第二字符串并验证所述第二字符串源数据,若所述源数据符合所述指令库,则响应并返回所述支付结果。The bank system receives the second character string and verifies the source data of the second character string according to the second character string. If the source data conforms to the instruction library, the bank system responds and returns the payment result.
CN202410229837.7A 2024-02-29 2024-02-29 Financial settlement method and system Active CN118052551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410229837.7A CN118052551B (en) 2024-02-29 2024-02-29 Financial settlement method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410229837.7A CN118052551B (en) 2024-02-29 2024-02-29 Financial settlement method and system

Publications (2)

Publication Number Publication Date
CN118052551A CN118052551A (en) 2024-05-17
CN118052551B true CN118052551B (en) 2024-10-22

Family

ID=91047913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410229837.7A Active CN118052551B (en) 2024-02-29 2024-02-29 Financial settlement method and system

Country Status (1)

Country Link
CN (1) CN118052551B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805564A (en) * 2018-04-26 2018-11-13 布比(北京)网络技术有限公司 A kind of method and system carrying out payment and settlement based on block chain

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160203482A1 (en) * 2013-08-15 2016-07-14 Visa International Service Association System and method for generating payment credentials
CN108073391B (en) * 2016-11-11 2021-06-22 阿里巴巴集团控股有限公司 Method and device for transmitting and processing JSON character string
US11132704B2 (en) * 2017-07-06 2021-09-28 Mastercard International Incorporated Method and system for electronic vouchers via blockchain
US11321718B1 (en) * 2017-07-17 2022-05-03 Agasthya P. Narendranathan Systems and methods for blockchain based identity assurance and risk management
CN111985911A (en) * 2019-05-21 2020-11-24 触信(厦门)智能科技有限公司 Block chain payment method, system and storage medium
CN111027992B (en) * 2020-01-04 2024-12-31 链农(深圳)信息科技有限公司 Asset transaction method, device and hardware equipment based on blockchain system
CN111565109A (en) * 2020-07-16 2020-08-21 百度在线网络技术(北京)有限公司 Key processing method, device, equipment and medium for block chain
CN112988898B (en) * 2021-03-31 2024-12-17 中国工商银行股份有限公司 Block chain-based merchant funds clearing method and device
IT202100026213A1 (en) * 2021-10-13 2023-04-13 Blasis Luca De System for the creation and transfer of digital FIAT money based on blockchain

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805564A (en) * 2018-04-26 2018-11-13 布比(北京)网络技术有限公司 A kind of method and system carrying out payment and settlement based on block chain

Also Published As

Publication number Publication date
CN118052551A (en) 2024-05-17

Similar Documents

Publication Publication Date Title
US11797982B2 (en) Digital ledger authentication using address encoding
US20240256703A1 (en) Systems and methods for providing identity verification services
US11676117B2 (en) Blockchain compliance verification network
US10129238B2 (en) System for control of secure access and communication with different process data networks with separate security features
US11461771B2 (en) Hybrid digital ledger control with address encoding
US20240104521A1 (en) System and method for compliance-enabled digitally represented assets
KR102854486B1 (en) Computer-implemented methods and systems for validating tokens for blockchain-based cryptocurrencies
US10142347B2 (en) System for centralized control of secure access to process data network
CN112037068B (en) Resource transfer method, system, device, computer equipment and storage medium
Mudliar et al. A comprehensive integration of national identity with blockchain technology
US20220303248A1 (en) Providing assertions regarding entities
US20240265446A1 (en) Computer-implemented system and method for blockchain-enabled documentation of trade transactions
TW201804395A (en) Virtual currency crediting system based on physical assets and method thereof
US20210029121A1 (en) System for selective mapping of distributed resources across network edge framework for authorized user access
CN113723953B (en) Digital asset transaction method, device, system and electronic equipment
CN113657877B (en) Asset management method, system and device based on blockchain
CN111652726B (en) Information processing method and system based on block chain
CN118052551B (en) Financial settlement method and system
CN114945931B (en) Method and apparatus for mitigating bill financing fraud
US20210248603A1 (en) Blockchain-based transaction processing method and apparatus
CN112400298B (en) Verification transaction system and method for adding to an electronic blockchain
US20240126904A1 (en) Systems and Methods for Managing Access to Confidential Data
CN111275506A (en) Bill issuing method and block link point equipment
Irwanto et al. Decentralized Identity (DID) for Know Your Customer (KYC) Process in the Banking Industry
CN114830159B (en) Method and apparatus for mitigating ticket financing fraud

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250903

Address after: 066000 Hebei Province Qinhuangdao City Haigang District Binhe Li Building 43 Unit 2 Room 502

Patentee after: Liu Jiaqi

Country or region after: China

Address before: 101599 room 110-2410, building 1, town government, No. 66, Huanhu Road, xiwengzhuang Town, Miyun District, Beijing (xiwengzhuang town centralized office area)

Patentee before: Beijing Yingjia Brand Management Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250918

Address after: 100071 Beijing City Fengtai District Xinfa Di Panjiamiao 56 No. 5 building B-5-22

Patentee after: Zhongkai Urban Investment Group Co.,Ltd.

Country or region after: China

Address before: 066000 Hebei Province Qinhuangdao City Haigang District Binhe Li Building 43 Unit 2 Room 502

Patentee before: Liu Jiaqi

Country or region before: China

TR01 Transfer of patent right