CN117710027A - Block chain-based point transaction settlement method, device, equipment and medium - Google Patents

Block chain-based point transaction settlement method, device, equipment and medium Download PDF

Info

Publication number
CN117710027A
CN117710027A CN202410169675.2A CN202410169675A CN117710027A CN 117710027 A CN117710027 A CN 117710027A CN 202410169675 A CN202410169675 A CN 202410169675A CN 117710027 A CN117710027 A CN 117710027A
Authority
CN
China
Prior art keywords
merchant
verification
settlement
request
configuration information
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.)
Pending
Application number
CN202410169675.2A
Other languages
Chinese (zh)
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.)
Shenzhen Feiquan Cloud Data Service Co ltd
Original Assignee
Shenzhen Feiquan Cloud Data Service 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 Shenzhen Feiquan Cloud Data Service Co ltd filed Critical Shenzhen Feiquan Cloud Data Service Co ltd
Priority to CN202410169675.2A priority Critical patent/CN117710027A/en
Publication of CN117710027A publication Critical patent/CN117710027A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a block chain-based point transaction settlement method, a device, equipment and a medium, wherein the method comprises the following steps: generating merchant configuration information according to merchant registration information configuration, storing the merchant configuration information in a verification database, sending the merchant configuration information to a distribution terminal, verifying a calculation request according to the verification database, and executing a settlement request according to an intelligent contract to process matched point transaction data if verification is passed; verifying the consumption request according to the verification database, and executing the consumption request according to the intelligent contract to process the matched point transaction data if the verification is passed; and when the finishing time point is reached, carrying out data finishing on the integrated transaction data according to the intelligent contract. The settlement method can verify the calculation request and the consumption request, and automatically synchronize the processing result to the blockchain network after executing the consumption request or the settlement request through the intelligent contract, thereby expanding the application range, improving the circulation efficiency of the integration and improving the safety.

Description

Block chain-based point transaction settlement method, device, equipment and medium
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain-based point transaction settlement method, device, equipment, and medium.
Background
The traditional mall point mode belongs to a centralized business mode, and the point acquisition rule and the point consumption rule are formulated by a platform, so that the flow rate of the point and the consumption enthusiasm of users are reduced; and the integral information is only stored in the platform, so that the safety and reliability of integral storage are not high. Therefore, the technical method for storing the point transaction in the prior art has the problems of low safety and narrow application range.
Disclosure of Invention
The embodiment of the invention provides a block chain-based point transaction settlement method, a block chain-based point transaction settlement device, block chain-based point transaction settlement equipment and a block chain-based point transaction settlement medium, and aims to solve the problems of low safety and narrow application range of a technical method for point transaction storage in the prior art.
In a first aspect, an embodiment of the present invention provides a blockchain-based point transaction settlement method, which is applied to a cloud server deployed in a blockchain network, where the cloud server is simultaneously connected with a plurality of distribution terminals deployed in the blockchain network through a network to transmit data information, each distribution terminal is connected with one or more user terminals through a network to transmit data information, and each user terminal is connected with the cloud server through a network to transmit data information, where the method includes:
Generating corresponding merchant configuration information according to the input merchant registration information configuration and storing the corresponding merchant configuration information into a preset verification database;
sending the merchant configuration information to the corresponding distribution terminal according to the merchant registration information;
if a settlement request from the distribution terminal is received, verifying the settlement request according to the verification database to obtain a verification result of whether to process the settlement request;
if the verification result of the settlement request is processing, executing the settlement request according to a preset intelligent contract to process the point transaction data matched with the settlement request to obtain a settlement processing result, and synchronizing the settlement processing result to the blockchain network and feeding back to the distribution terminal;
if a consumption request from the user terminal or the distribution terminal is received, verifying the consumption request according to the verification database to obtain a verification result of whether to process the consumption request;
if the verification result of the consumption request is processing, executing the consumption request according to the intelligent contract to process the point transaction data matched with the consumption request to obtain a consumption processing result, synchronizing the consumption processing result to the blockchain network and feeding back the consumption processing result to the corresponding distribution terminal and/or the user terminal;
And if the finishing time point is reached, carrying out data finishing on the integral transaction data according to the intelligent contract, and obtaining a corresponding finishing processing result to be synchronized to the blockchain network and fed back to the user terminal and the distribution terminal.
In a second aspect, an embodiment of the present invention further provides a blockchain-based point transaction settlement apparatus, where the apparatus is configured in a cloud server deployed in a blockchain network, where the cloud server is simultaneously connected to a plurality of distribution terminals deployed in the blockchain network through a network, each of the distribution terminals is connected to one or more user terminals through a network to transmit data information, and each of the user terminals is connected to the cloud server through a network to transmit data information, and the apparatus is configured to perform the blockchain-based point transaction settlement method according to the first aspect, where the apparatus includes:
the merchant configuration information storage unit is used for generating corresponding merchant configuration information according to the input merchant registration information configuration and storing the corresponding merchant configuration information into a preset verification database;
the merchant configuration information sending unit is used for sending the merchant configuration information to the corresponding distribution terminal according to the merchant registration information;
The first verification result acquisition unit is used for verifying the settlement request according to the verification database if the settlement request from the distribution terminal is received, so as to obtain a verification result of whether the settlement request is processed or not;
the first processing unit is used for executing the settlement request according to a preset intelligent contract if the verification result of the settlement request is processing, processing the integral transaction data matched with the settlement request to obtain a settlement processing result, synchronizing the settlement processing result to the blockchain network and feeding back the settlement processing result to the distribution terminal;
the second verification result acquisition unit is used for verifying the consumption request according to the verification database if the consumption request from the user terminal or the distribution terminal is received, so as to obtain a verification result of whether the consumption request is processed;
the second processing unit is used for executing the consumption request according to the intelligent contract to process the point transaction data matched with the consumption request if the verification result of the consumption request is processing, so that the consumption processing result is synchronized to the blockchain network and fed back to the corresponding distribution terminal and/or the user terminal;
And the data arrangement unit is used for carrying out data arrangement on the integrated transaction data according to the intelligent contract if the arrangement time point is reached, obtaining a corresponding arrangement processing result, synchronizing the arrangement processing result to the blockchain network and feeding back the arrangement processing result to the user terminal and the distribution terminal.
In a third aspect, an embodiment of the present invention further provides a computer device, where the device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the block chain-based point transaction settlement method according to the first aspect when executing the program stored in the memory.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the blockchain-based credit transaction settlement method as described in the first aspect above.
The embodiment of the invention provides a block chain-based point transaction settlement method, a device, equipment and a medium, wherein the method comprises the following steps: generating merchant configuration information according to merchant registration information configuration, storing the merchant configuration information in a verification database, sending the merchant configuration information to a distribution terminal, verifying a calculation request according to the verification database, and executing a settlement request according to an intelligent contract to process matched point transaction data if verification is passed; verifying the consumption request according to the verification database, and executing the consumption request according to the intelligent contract to process the matched point transaction data if the verification is passed; and when the finishing time point is reached, carrying out data finishing on the integrated transaction data according to the intelligent contract. The settlement method can verify the calculation request and the consumption request, automatically synchronize the processing result to the blockchain network after executing the consumption request or the settlement request through the intelligent contract, is suitable for various application scenes and expands the application range, thereby improving the circulation efficiency of the points; meanwhile, the security of the point transaction storage is greatly improved.
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 obvious that the drawings in the following description are 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 method flow diagram of a blockchain-based credit transaction settlement method provided by an embodiment of the invention;
fig. 2 is a schematic diagram of an application scenario of a blockchain-based credit transaction settlement method according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a blockchain-based points transaction settlement device provided by an embodiment of the invention;
fig. 4 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, as shown in the drawings, an embodiment of the present invention provides a blockchain-based credit transaction settlement method, which is applied to a cloud server 101 deployed in a blockchain network 10, and the method is executed by application software installed in the cloud server 101, where the cloud server 101 can be used for intelligent settlement of credit transactions and a server end storing the credit transactions through a blockchain technology, and the cloud server 101 is a large server or a server cluster configured on a platform side; the cloud server 101 is connected with a plurality of distribution terminals 102 deployed in the blockchain network 10 through a network to transmit data information, each distribution terminal 102 is connected with one or a plurality of user terminals 103 through a network to transmit data information, and each user terminal 103 is connected with the cloud server 101 through a network to transmit data information; the distribution terminals 102 are terminal devices for performing point distribution settlement, each distribution terminal 102 corresponds to one merchant, the distribution terminals 102 can be large servers or server clusters configured in the merchants, and the distribution terminals 102 can be advertisers, agents, platform resident merchants and the like. The user terminal 103 is a terminal device for processing and storing data information, such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone. In this embodiment, the blockchain network 10 may be a distributed data processing network built based on a federated chain (Hyperledger Fabric). As shown in FIG. 1, the method includes steps S110 to S170.
S110, generating corresponding merchant configuration information according to the input merchant registration information configuration, and storing the corresponding merchant configuration information into a preset verification database.
And generating corresponding merchant configuration information according to the input merchant registration information configuration, and storing the corresponding merchant configuration information into a preset verification database. Specifically, the manager of the cloud server may input the merchant registration information to the cloud server, and the cloud server may be configured to generate corresponding merchant configuration information after receiving the merchant registration information, where the merchant configuration information may be stored in a preset verification database. The merchant registration information comprises one or more groups of merchant information, the merchant information comprises terminal basic information corresponding to a distribution terminal, merchant basic information and the like, the terminal basic information corresponding to the distribution terminal comprises information such as a distribution terminal IP address, a distribution terminal MAC physical address, a terminal type and the like, and the merchant basic information comprises information such as a merchant name, a merchant type, enterprise full name, merchant social unified credit code and the like. Corresponding merchant configuration information, namely configuration information for checking the merchant, can be generated according to the merchant registration information, and can be stored in a checking database.
In a specific embodiment, step S110 includes the steps of: generating a corresponding merchant verification identifier according to the merchant information in the merchant registration information; configuring a corresponding validity period for each merchant verification identifier according to the validity duration in the merchant registration information; and combining the merchant verification identification configured with the validity period with the merchant information to form merchant configuration information, and storing the merchant configuration information into the verification database.
The merchant registration information contains one or more groups of merchant information, and specifically, a corresponding merchant verification identifier can be generated according to merchant basic information in the merchant registration information, and the merchant verification identifier is uniquely corresponding to a merchant. Specifically, the merchant name and the enterprise contained in the merchant basic information can be fully called as corresponding pinyin letters, the merchant type is converted into a corresponding type identifier (such as an advertiser corresponding to the A1 type identifier), the pinyin letters corresponding to the merchant name, the type identifier, the pinyin letters corresponding to the enterprise full call and the merchant social unification sign code are sequentially combined to form a combined character string, hash operation is performed on the combined character string according to hash operation to obtain corresponding abstract information as merchant verification identification corresponding to the merchant, wherein the hash operation is a secure hash algorithm 256.
In this embodiment, hash (combined string) =digest information, that is, hash the combined string to obtain a digest information, and for any length (calculated by bit), SHA256 (secure Hash algorithm 256) generates a 32-byte length data, and SHA256 always treats the information as a bit string. The abstract information obtained by carrying out hash operation on the same combined character string is completely the same, and if two different combined character strings are respectively subjected to hash operation, the obtained two abstract information are also different, so that the obtained merchant verification mark can be used for verifying whether the information corresponding to the merchant is changed or not, and whether the identity of the merchant is legal or not can be verified.
The merchant registration information is also configured with effective duration, further, the corresponding effective duration is configured for the merchant verification identifier according to the effective duration and the current time, the corresponding expiration time is determined according to the effective duration and the current time, the current time is used as the starting time of the effective duration, and therefore the effective duration corresponding to the starting time and the expiration time is obtained and the merchant verification identifier is configured.
And combining the merchant verification identification of the same merchant with the corresponding merchant information to obtain merchant configuration information corresponding to one merchant and storing the merchant configuration information into a verification database.
And S120, sending the merchant configuration information to the corresponding distribution terminal according to the merchant registration information.
And sending the merchant configuration information to the corresponding distribution terminal according to the merchant registration information. Because one group of merchant configuration information corresponds to one merchant, each distribution terminal also corresponds to one merchant, and the generated merchant configuration information can be sent to the distribution terminal corresponding to the terminal basic information according to the terminal basic information in the merchant information. The subsequent distribution terminal can generate a corresponding settlement request or consumption request based on the merchant configuration information of the subsequent distribution terminal and send the settlement request or consumption request to the cloud server.
And S130, if a settlement request from the distribution terminal is received, verifying the settlement request according to the verification database to obtain a verification result of whether to process the settlement request.
And if a settlement request from the distribution terminal is received, verifying the settlement request according to the verification database to obtain a verification result of whether to process the settlement request. The distribution terminal can generate a corresponding settlement request based on merchant configuration information, wherein the settlement request comprises a channel identifier, transaction data chain code information, a timestamp, merchant verification identifier, integral settlement information and the like, a blockchain network comprises different storage channels, each storage channel comprises a plurality of Peer nodes, the channel identifier is specific identifier information of the storage channel where data are located, the data are stored in the Peer nodes of the storage channel in a linked list mode, the transaction data chain code information is specific information of the linked list position where the data are located in the storage channel, and the timestamp is the generation time corresponding to the settlement request. The information contained in the settlement request can be verified according to the verification database to obtain a verification result of whether the settlement request is processed or not, and if the settlement request passes the verification, the verification result of processing the settlement request is obtained; if the settlement request is not verified, obtaining a verification result of not processing the settlement request. The point settlement information can be point rewards obtained by advertising of advertisers, point rewards obtained by agent business exhibition industry and the like.
In a specific embodiment, step S130 includes the steps of: verifying whether the data format of the settlement request is matched with a preset standard format; if the distribution terminal is matched with the preset standard format, verifying whether the distribution terminal corresponding to the settlement request is matched with the merchant configuration information in the verification database; if the merchant verification identification is matched with the merchant configuration information, verifying whether the merchant verification identification in the matched merchant configuration information is valid or not; and if the matched merchant verification identification in the merchant configuration information is valid, obtaining a verification result for processing the settlement request.
Firstly, verifying whether the data format of the settlement request is matched with a preset standard format or not, namely verifying whether the data format of each item of information in the settlement request is identical to the preset standard format or not, and if the data format of each item of information is identical to the preset standard format, verifying that the data format of the settlement request is matched with the preset standard format; otherwise, verifying that the data format of the settlement request is not matched with the preset standard format.
Further, whether the merchant verification identifier contained in the settlement request is the same as the merchant verification identifier corresponding to the distribution terminal sending the settlement request in the verification database is verified, so that whether the distribution terminal corresponding to the settlement request is matched with the corresponding merchant configuration information is verified; if the merchant verification identifier in the settlement request is the same as the corresponding merchant verification identifier in the verification database, judging that the distribution terminal corresponding to the settlement request is matched with the corresponding merchant configuration information; otherwise, judging that the distribution terminal corresponding to the settlement request is not matched with the corresponding merchant configuration information.
Further, whether the merchant verification identifier in the matched merchant configuration information is valid or not can be verified, namely whether the merchant verification identifier is within the valid period or not is verified, so that a verification result is obtained. And after the three steps are verified, and the verification results are all passed, obtaining the verification result for processing the calculation request. If any verification result in the three steps is not passed, a verification result which is not processed on the calculation request is obtained, and at the moment, feedback information which is not processed can be fed back to the corresponding distribution terminal.
And S140, if the verification result of the settlement request is processing, executing the settlement request according to a preset intelligent contract to process the point transaction data matched with the settlement request to obtain a settlement processing result, and synchronizing the settlement processing result to the blockchain network and feeding back to the distribution terminal.
And if the verification result of the settlement request is processing, executing the settlement request according to a preset intelligent contract to process the point transaction data matched with the settlement request to obtain a settlement processing result, and synchronizing the settlement processing result to the blockchain network and feeding back to the distribution terminal. The matched point transaction data in the blockchain network can be determined according to the channel identification, the transaction data chain code information and other information in the settlement request, the point settlement information in the settlement request comprises the information of calling chain code functions, function parameters, calling attribute configuration information and the like, and the point transaction data matched with the settlement request can be subjected to settlement processing based on the functions, the parameters and the attribute configuration information contained in the point settlement information, so that a settlement processing result is obtained. The obtained settlement processing result is sent to the distribution terminal, and the settlement processing result is synchronized to other terminal devices in the blockchain network (such as the distribution terminal in the blockchain network that does not send the settlement request, or other terminal devices except the distribution terminal).
In addition, the process of performing settlement processing on the point transaction data may be performed synchronously in a distribution terminal that transmits a settlement request in the blockchain network, and the process of performing settlement processing on the point transaction data in the transmitted settlement request in the distribution terminal may also be performed in accordance with the same smart contract. The distribution terminal obtains a terminal settlement processing result after performing settlement processing on the point transaction data in the settlement request, the distribution terminal sends the terminal settlement processing result to the cloud server, the cloud server checks whether the settlement processing result obtained by internal processing and the terminal settlement processing result from the distribution terminal are the same or not, and if so, the cloud server synchronizes the settlement processing result to other terminal equipment in the blockchain network; if the verification is different, the cloud server does not synchronize the result of the calculation processing, and can perform settlement processing on the calculation request again.
And S150, if a consumption request from the user terminal or the distribution terminal is received, verifying the consumption request according to the verification database to obtain a verification result of whether to process the consumption request.
And if a consumption request from the user terminal or the distribution terminal is received, verifying the consumption request according to the verification database to obtain a verification result of whether to process the consumption request. Further, the user terminal or the distribution terminal may further send a consumption request to the cloud server, and the cloud server may verify the consumption request according to the verification database.
In a specific embodiment, step S150 includes the steps of: verifying whether the data format of the consumption request is matched with a preset standard format; if the consumption request is matched with the preset standard format, judging whether the consumption request is a single-side consumption request or not; if the consumption request is a single-side consumption request, carrying out single-side verification on the consumption request according to the verification database to obtain the verification result; and if the consumption request is not a single-side consumption request, carrying out multi-side verification on the consumption request according to the verification database to obtain the verification result.
Specifically, it may be first verified whether the data format of the consumption request matches the preset specification format, where the verification process is the same as the verification process for the data format of the calculation request.
Further, it is determined whether the consumption request is a single-sided consumption request, such as a user consuming the points through the consumption request to purchase the service or product, or a merchant consuming the points through the consumption request to purchase the service or product. Specifically, whether the consumption request has a consumption object is judged, and the consumption object can be a user corresponding to other user terminals or a merchant corresponding to other distribution terminals. If the consumption request contains the consumption object, indicating that the consumption request is not a single-side consumption request; and if the consumption request does not contain the consumption object, indicating that the consumption request is a single-side consumption request.
If the consumption request is a single-side consumption request, carrying out single-side verification on the consumption request according to a verification database, and if the user terminal sends the consumption request, acquiring a terminal verification identifier corresponding to the consumption request in the verification database to carry out single-side verification, and obtaining a corresponding verification result; if the distribution terminal sends the consumption request, the merchant verification identifier corresponding to the consumption request in the verification database is obtained to carry out unilateral verification, and a corresponding verification result is obtained. The process of verifying the terminal verification mark or the merchant verification mark on one side comprises verifying whether the mark is the same as the corresponding mark in the verification database or not, and verifying whether the corresponding mark in the verification database is located in the validity period or not, and the specific process refers to the steps.
If the consumption request is not a unilateral consumption request, the terminal verification identifications corresponding to the two user terminals in the consumption request are required to be checked (the points are transacted between the two user terminals), the terminal verification identifications of the user terminals corresponding to the consumption request and the merchant verification identifications of the distribution terminals are required to be checked (the points are transacted between the user terminals and the distribution terminals), or the merchant verification identifications corresponding to the two distribution terminals in the consumption request are required to be checked (the points are transacted between the two distribution terminals). The verification process involves a plurality of identifiers corresponding to a plurality of terminals, namely, the multi-side verification is carried out on the consumption request, so that a verification result is obtained. At this time, only if a plurality of identifiers in the consumption request pass verification, the verification result of the consumption request is obtained for processing; if the identification corresponding to any terminal in the consumption request is not verified, the verification result of the consumption request is obtained and is not processed.
And S160, if the verification result of the consumption request is processing, executing the consumption request according to the intelligent contract to process the point transaction data matched with the consumption request so as to obtain a consumption processing result, and synchronizing the consumption processing result to the blockchain network and feeding back the consumption processing result to the corresponding distribution terminal and/or the user terminal.
And if the verification result of the consumption request is processing, executing the consumption request according to the intelligent contract to process the point transaction data matched with the consumption request to obtain a consumption processing result, and synchronizing the consumption processing result to the blockchain network and feeding back the consumption processing result to the corresponding distribution terminal and/or the user terminal.
If the verification result of the consumption request is processing, executing the consumption request through the intelligent contract to process the point transaction data matched with the consumption request, wherein the specific settlement processing process is the same as the processing process of the calculation request.
And S170, if the finishing time point is reached, carrying out data finishing on the integral transaction data according to the intelligent contract, and obtaining a corresponding finishing processing result to be synchronized to the blockchain network and fed back to the user terminal and the distribution terminal.
And if the finishing time point is reached, carrying out data finishing on the integral transaction data according to the intelligent contract, and obtaining a corresponding finishing processing result to be synchronized to the blockchain network and fed back to the user terminal and the distribution terminal. If the finishing time point is reached, the integrated transaction data can be subjected to data finishing according to the intelligent contract, so that a finishing result is obtained, and the obtained finishing result is synchronized to the blockchain network and fed back to the corresponding user terminal. Specifically, each user terminal correspondingly comprises historical points, each distribution terminal correspondingly comprises historical points, and in order to improve the enthusiasm of users and merchants for using the points, the points which are not used for a long time by the users and the merchants can be converted and tidied, so that a tidying processing result is obtained. The user terminal or the distribution terminal carries out transaction and the points consumed, and the transaction time of the points is updated to the current time when the points are consumed or the transaction is carried out to other terminals; if the points are stored in the user terminal or the distribution terminal all the time without finishing calculation, the transaction time of the points is the time from the transaction to the terminal and cannot be updated. For example, the sort time point may be set to a date corresponding to the user registration time every year.
In a specific embodiment, step S170 includes the steps of: acquiring historical points in the point transaction data, wherein the historical points correspond to each user verification identifier and each merchant verification identifier in the verification database respectively; and respectively calculating historical points according to the point arrangement rules in the intelligent contracts to obtain arrangement points respectively corresponding to each user verification identifier and each merchant verification identifier as corresponding arrangement processing results.
Historical points corresponding to the user verification identifications and the merchant verification identifications can be obtained respectively, the historical points are calculated according to the point arrangement rules respectively, and accordingly arrangement points corresponding to the historical points are obtained, and the transaction time of the arrangement points is updated to be the current time.
Specifically, the integral value corresponding to each time segment may be determined according to the transaction time of each of the historical points. For example, the time segment may be divided into 3 months, 3-6 months, and 6 months to 12 months, and then the integral arrangement rule may be expressed by the formula (1):
(1);
wherein R is 1 For the integral value corresponding to the first time segment, R 2 For the integral value corresponding to the second time segment, R 3 E is a natural logarithmic base number, and Z is a calculated value obtained by integrating an arrangement rule; and (5) rounding up the calculated value of Z to obtain a corresponding sorting integral.
The obtained arrangement points respectively corresponding to the user verification identifications and the merchant verification identifications are combined to form an arrangement processing result, the arrangement processing result is synchronized to the blockchain network for storage, and the arrangement points in the arrangement processing result are respectively sent to the user terminal and the distribution terminal corresponding to the arrangement points.
In the blockchain-based point transaction settlement method disclosed in the above embodiment, the method includes: generating merchant configuration information according to merchant registration information configuration, storing the merchant configuration information in a verification database, sending the merchant configuration information to a distribution terminal, verifying a calculation request according to the verification database, and executing a settlement request according to an intelligent contract to process matched point transaction data if verification is passed; verifying the consumption request according to the verification database, and executing the consumption request according to the intelligent contract to process the matched point transaction data if the verification is passed; and when the finishing time point is reached, carrying out data finishing on the integrated transaction data according to the intelligent contract. The settlement method can verify the calculation request and the consumption request, automatically synchronize the processing result to the blockchain network after executing the consumption request or the settlement request through the intelligent contract, is suitable for various application scenes and expands the application range, thereby improving the circulation efficiency of the points; meanwhile, the security of the point transaction storage is greatly improved.
The embodiment of the invention also provides a block-chain-based point transaction settlement device which can be arranged in the cloud server and is used for executing any embodiment of the block-chain-based point transaction settlement method. Specifically, referring to fig. 3, fig. 3 is a schematic block diagram of a block-chain-based credit transaction settlement device according to an embodiment of the invention.
As shown in fig. 3, the blockchain-based point transaction settlement device 100 includes a merchant configuration information storage unit 110, a merchant configuration information transmission unit 120, a first verification result acquisition unit 130, a first processing unit 140, a second verification result acquisition unit 150, a second processing unit 160, and a data sort unit 170.
The merchant configuration information storage unit 110 is configured to generate corresponding merchant configuration information according to the input merchant registration information configuration, and store the generated merchant configuration information in a preset verification database.
In a specific embodiment, the merchant configuration information storage unit 110 includes: the merchant verification identifier generating unit is used for generating a corresponding merchant verification identifier according to the merchant information in the merchant registration information; the validity period configuration unit is used for configuring the corresponding validity period for each merchant verification identifier according to the validity duration in the merchant registration information; and the storage unit is used for combining the merchant verification identification configured with the validity period and the merchant information into merchant configuration information and storing the merchant configuration information into the verification database.
And the merchant configuration information sending unit 120 is configured to send the merchant configuration information to the corresponding distribution terminal according to the merchant registration information.
And the first verification result obtaining unit 130 is configured to, if a settlement request from the distribution terminal is received, verify the settlement request according to the verification database, and obtain a verification result of whether to process the settlement request.
In a specific embodiment, the first verification result obtaining unit 130 includes: the format verification unit is used for verifying whether the data format of the settlement request is matched with a preset standard format; the terminal verification unit is used for verifying whether the distribution terminal corresponding to the settlement request is matched with the merchant configuration information in the verification database if the distribution terminal is matched with the preset standard format; the identification verification unit is used for verifying whether the merchant verification identification in the matched merchant configuration information is effective or not if the identification verification unit is matched with the merchant configuration information; and the verification result acquisition unit is used for obtaining a verification result for processing the settlement request if the matched merchant verification identification in the merchant configuration information is valid.
And the first processing unit 140 is configured to execute the settlement request according to a preset intelligent contract if the verification result of the settlement request is processing, process the point transaction data matched with the settlement request to obtain a settlement processing result, synchronize the settlement processing result to the blockchain network, and feed back the settlement processing result to the distribution terminal.
And the second verification result obtaining unit 150 is configured to, if a consumption request from the user terminal or from the distribution terminal is received, verify the consumption request according to the verification database, and obtain a verification result of whether to process the consumption request.
And the second processing unit 160 is configured to execute the consumption request according to the intelligent contract if the verification result of the consumption request is processing, process the point transaction data matched with the consumption request to obtain a consumption processing result, synchronize the consumption processing result to the blockchain network, and feed the consumption processing result back to the corresponding distribution terminal and/or the user terminal.
And the data sorting unit 170 is configured to sort the integrated transaction data according to the intelligent contract if the sorting time point is reached, obtain a corresponding sorting result, synchronize the sorting result to the blockchain network, and feed the result back to the user terminal and the distribution terminal.
The credit transaction settlement device based on the blockchain is applied to the credit transaction settlement method based on the blockchain, merchant configuration information is generated according to merchant registration information configuration and is stored in a verification database, the merchant configuration information is sent to a distribution terminal, a calculation request is verified according to the verification database, and if the verification is passed, a settlement request is executed according to an intelligent contract so as to process matched credit transaction data; verifying the consumption request according to the verification database, and executing the consumption request according to the intelligent contract to process the matched point transaction data if the verification is passed; and when the finishing time point is reached, carrying out data finishing on the integrated transaction data according to the intelligent contract. The settlement method can verify the calculation request and the consumption request, automatically synchronize the processing result to the blockchain network after executing the consumption request or the settlement request through the intelligent contract, is suitable for various application scenes and expands the application range, thereby improving the circulation efficiency of the points; meanwhile, the security of the point transaction storage is greatly improved.
The blockchain-based point transaction settlement device described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a cloud server for performing a blockchain-based point transaction settlement method to enable intelligent settlement of points for transactions and storage through blockchain technology.
Referring to fig. 4, the computer device 500 includes a processor 502, a memory, and a network interface 505, which are connected by a communication bus 501, wherein the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a blockchain-based loyalty transaction settlement method, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a blockchain-based credit transaction settlement method.
The network interface 505 is used for network communication, such as providing for transmission of data information, etc. It will be appreciated by those skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 500 to which the present inventive arrangements may be implemented, and that a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The processor 502 is configured to execute a computer program 5032 stored in a memory to implement the corresponding functions in the blockchain-based credit transaction settlement method.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 4 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 4, and will not be described again.
It should be appreciated that in an embodiment of the invention, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, 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, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium. The computer readable storage medium stores a computer program which when executed by a processor implements the steps included in the blockchain-based point transaction settlement method described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. 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.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or part of what contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The utility model provides a point transaction settlement method based on blockchain, its characterized in that, the method is applied to the cloud server that deploys in the blockchain network, the cloud server carries out data information's transmission through the network connection with many distribution terminals that deploy in the blockchain network simultaneously, and each distribution terminal carries out data information's transmission through the network connection with one or more user terminal, the user terminal all carries out data information's transmission through the network connection with the cloud server, the method includes:
generating corresponding merchant configuration information according to the input merchant registration information configuration and storing the corresponding merchant configuration information into a preset verification database;
sending the merchant configuration information to the corresponding distribution terminal according to the merchant registration information;
If a settlement request from the distribution terminal is received, verifying the settlement request according to the verification database to obtain a verification result of whether to process the settlement request;
if the verification result of the settlement request is processing, executing the settlement request according to a preset intelligent contract to process the point transaction data matched with the settlement request to obtain a settlement processing result, and synchronizing the settlement processing result to the blockchain network and feeding back to the distribution terminal;
if a consumption request from the user terminal or the distribution terminal is received, verifying the consumption request according to the verification database to obtain a verification result of whether to process the consumption request;
if the verification result of the consumption request is processing, executing the consumption request according to the intelligent contract to process the point transaction data matched with the consumption request to obtain a consumption processing result, synchronizing the consumption processing result to the blockchain network and feeding back the consumption processing result to the corresponding distribution terminal and/or the user terminal;
and if the finishing time point is reached, carrying out data finishing on the integral transaction data according to the intelligent contract, and obtaining a corresponding finishing processing result to be synchronized to the blockchain network and fed back to the user terminal and the distribution terminal.
2. The blockchain-based point transaction settlement method of claim 1, wherein the generating corresponding merchant configuration information according to the inputted merchant registration information configuration is stored in a preset verification database, and comprises:
generating a corresponding merchant verification identifier according to the merchant information in the merchant registration information;
configuring a corresponding validity period for each merchant verification identifier according to the validity duration in the merchant registration information;
and combining the merchant verification identification configured with the validity period with the merchant information to form merchant configuration information, and storing the merchant configuration information into the verification database.
3. The blockchain-based point transaction settlement method as in claim 1, wherein verifying the settlement request according to the verification database to obtain a verification result of whether to process the settlement request comprises:
verifying whether the data format of the settlement request is matched with a preset standard format;
if the distribution terminal is matched with the preset standard format, verifying whether the distribution terminal corresponding to the settlement request is matched with the merchant configuration information in the verification database;
If the merchant verification identification is matched with the merchant configuration information, verifying whether the merchant verification identification in the matched merchant configuration information is valid or not;
and if the matched merchant verification identification in the merchant configuration information is valid, obtaining a verification result for processing the settlement request.
4. The blockchain-based point transaction settlement method as in claim 3, wherein verifying the consumption request according to the verification database to obtain a verification result of whether to process the consumption request comprises:
verifying whether the data format of the consumption request is matched with a preset standard format;
if the consumption request is matched with the preset standard format, judging whether the consumption request is a single-side consumption request or not;
if the consumption request is a single-side consumption request, carrying out single-side verification on the consumption request according to the verification database to obtain the verification result;
and if the consumption request is not a single-side consumption request, carrying out multi-side verification on the consumption request according to the verification database to obtain the verification result.
5. A blockchain-based point transaction settlement method according to any one of claims 1 to 3, wherein the performing data sorting on the point transaction data according to the intelligent contract to obtain a corresponding sorting result and feeding back the sorting result to the user terminal includes:
Acquiring historical points in the point transaction data, wherein the historical points correspond to each user verification identifier and each merchant verification identifier in the verification database respectively;
and respectively calculating historical points according to the point arrangement rules in the intelligent contracts to obtain arrangement points respectively corresponding to each user verification identifier and each merchant verification identifier as corresponding arrangement processing results.
6. A blockchain-based point transaction settlement device, wherein the device is configured in a cloud server deployed in a blockchain network, the cloud server simultaneously transmits data information with a plurality of distribution terminals deployed in the blockchain network through network connection, each distribution terminal transmits data information with one or more user terminals through network connection, each user terminal transmits data information with the cloud server through network connection, and the device is configured to perform the blockchain-based point transaction settlement method as claimed in any one of claims 1 to 5, and the device comprises:
the merchant configuration information storage unit is used for generating corresponding merchant configuration information according to the input merchant registration information configuration and storing the corresponding merchant configuration information into a preset verification database;
The merchant configuration information sending unit is used for sending the merchant configuration information to the corresponding distribution terminal according to the merchant registration information;
the first verification result acquisition unit is used for verifying the settlement request according to the verification database if the settlement request from the distribution terminal is received, so as to obtain a verification result of whether the settlement request is processed or not;
the first processing unit is used for executing the settlement request according to a preset intelligent contract if the verification result of the settlement request is processing, processing the integral transaction data matched with the settlement request to obtain a settlement processing result, synchronizing the settlement processing result to the blockchain network and feeding back the settlement processing result to the distribution terminal;
the second verification result acquisition unit is used for verifying the consumption request according to the verification database if the consumption request from the user terminal or the distribution terminal is received, so as to obtain a verification result of whether the consumption request is processed;
the second processing unit is used for executing the consumption request according to the intelligent contract to process the point transaction data matched with the consumption request if the verification result of the consumption request is processing, so that the consumption processing result is synchronized to the blockchain network and fed back to the corresponding distribution terminal and/or the user terminal;
And the data arrangement unit is used for carrying out data arrangement on the integrated transaction data according to the intelligent contract if the arrangement time point is reached, obtaining a corresponding arrangement processing result, synchronizing the arrangement processing result to the blockchain network and feeding back the arrangement processing result to the user terminal and the distribution terminal.
7. The blockchain-based point transaction settlement device as in claim 6, wherein the merchant configuration information storage unit comprises:
the merchant verification identifier generating unit is used for generating a corresponding merchant verification identifier according to the merchant information in the merchant registration information;
the validity period configuration unit is used for configuring the corresponding validity period for each merchant verification identifier according to the validity duration in the merchant registration information;
and the storage unit is used for combining the merchant verification identification configured with the validity period and the merchant information into merchant configuration information and storing the merchant configuration information into the verification database.
8. The blockchain-based point transaction settlement device as in claim 6, wherein the first verification result acquisition unit includes:
the format verification unit is used for verifying whether the data format of the settlement request is matched with a preset standard format;
The terminal verification unit is used for verifying whether the distribution terminal corresponding to the settlement request is matched with the merchant configuration information in the verification database if the distribution terminal is matched with the preset standard format;
the identification verification unit is used for verifying whether the merchant verification identification in the matched merchant configuration information is effective or not if the identification verification unit is matched with the merchant configuration information;
and the verification result acquisition unit is used for obtaining a verification result for processing the settlement request if the matched merchant verification identification in the merchant configuration information is valid.
9. A computer device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the blockchain-based point transaction settlement method of any of claims 1-5 when executing a program stored on a memory.
10. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the blockchain-based points transaction settlement method of any of claims 1-5.
CN202410169675.2A 2024-02-06 2024-02-06 Block chain-based point transaction settlement method, device, equipment and medium Pending CN117710027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410169675.2A CN117710027A (en) 2024-02-06 2024-02-06 Block chain-based point transaction settlement method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410169675.2A CN117710027A (en) 2024-02-06 2024-02-06 Block chain-based point transaction settlement method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117710027A true CN117710027A (en) 2024-03-15

Family

ID=90148418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410169675.2A Pending CN117710027A (en) 2024-02-06 2024-02-06 Block chain-based point transaction settlement method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117710027A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830632A (en) * 2018-04-24 2018-11-16 深圳市轱辘车联数据技术有限公司 A kind of integration managing method, block chain node device and client
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain
US20210103921A1 (en) * 2019-10-08 2021-04-08 Capital One Services, Llc Redemption and Settlement Transactions Via Smart Contracts
CN114331397A (en) * 2021-12-28 2022-04-12 北京百度网讯科技有限公司 Information processing method, device, electronic equipment and storage medium
CN114900536A (en) * 2022-05-18 2022-08-12 华侨大学 Block chain-based point acceptance consensus storage method and system
CN115994824A (en) * 2022-11-17 2023-04-21 昆明电力交易中心有限责任公司 Cross-chain transaction method for digital asset based on cross-trusted alliance chain
KR20240002218A (en) * 2022-06-27 2024-01-04 이호성 Blockchain-based trading system for point coin issued by affiliate
CN117391861A (en) * 2023-12-11 2024-01-12 广州市交通规划研究院有限公司 Low-carbon point accounting transaction method and system based on cloud platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830632A (en) * 2018-04-24 2018-11-16 深圳市轱辘车联数据技术有限公司 A kind of integration managing method, block chain node device and client
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain
US20210103921A1 (en) * 2019-10-08 2021-04-08 Capital One Services, Llc Redemption and Settlement Transactions Via Smart Contracts
CN114331397A (en) * 2021-12-28 2022-04-12 北京百度网讯科技有限公司 Information processing method, device, electronic equipment and storage medium
CN114900536A (en) * 2022-05-18 2022-08-12 华侨大学 Block chain-based point acceptance consensus storage method and system
KR20240002218A (en) * 2022-06-27 2024-01-04 이호성 Blockchain-based trading system for point coin issued by affiliate
CN115994824A (en) * 2022-11-17 2023-04-21 昆明电力交易中心有限责任公司 Cross-chain transaction method for digital asset based on cross-trusted alliance chain
CN117391861A (en) * 2023-12-11 2024-01-12 广州市交通规划研究院有限公司 Low-carbon point accounting transaction method and system based on cloud platform

Similar Documents

Publication Publication Date Title
CN108805656B (en) Supply and demand matching method, platform, system and computer readable storage medium
CN108734028B (en) Data management method based on block chain, block chain link point and storage medium
US20190259024A1 (en) Security electronic file processing system and method based on block chain structure
WO2018228337A1 (en) Service data storage method, computer readable storage medium and electronic device
CN108776929A (en) Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN108701309A (en) A kind of distributed user profile authentication system for security of e-commerce transactions
CN111309745B (en) Virtual resource processing method and device, electronic equipment and storage medium
US11455362B2 (en) System and method for sharing information using a machine-readable code on a mobile device
CN111131412B (en) Method, system, mobile terminal and cloud server for realizing 5G mobile terminal calculation
EP4002786A1 (en) Distributed ledger system
CN109191194B (en) Method, device and system for processing card data and storage medium
US11244153B2 (en) Method and apparatus for processing information
CN111367965B (en) Target object determining method, device, electronic equipment and storage medium
CN111416709B (en) Voting method, device, equipment and storage medium based on block chain system
CN112738253A (en) Data processing method, device and equipment based on block chain and storage medium
CN110910143A (en) Identity identification generation method, device, related node and medium
CN112929257B (en) Multi-scene message sending method, device, server and storage medium
CN112995014B (en) Method and device for mass sending of messages
CN114428661A (en) Mirror image management method and device
CN117710027A (en) Block chain-based point transaction settlement method, device, equipment and medium
CN104123637B (en) A kind of to processing method, system and the equipment that object processes
CN115860741A (en) Block chain data encryption verification method, device and system
CN113343216B (en) Issuer management method, issuer management device, storage medium and server
CN108667647A (en) A kind of setting method of device parameter, equipment and server
CN114422586A (en) Event notification method and device, computer equipment and storage medium

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