CN117422416A - Block chain-based business handling method, device, equipment, medium and product - Google Patents
Block chain-based business handling method, device, equipment, medium and product Download PDFInfo
- Publication number
- CN117422416A CN117422416A CN202311476935.2A CN202311476935A CN117422416A CN 117422416 A CN117422416 A CN 117422416A CN 202311476935 A CN202311476935 A CN 202311476935A CN 117422416 A CN117422416 A CN 117422416A
- Authority
- CN
- China
- Prior art keywords
- information
- service
- handling
- flow data
- current
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012795 verification Methods 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 19
- 230000008569 process Effects 0.000 claims description 16
- 230000007246 mechanism Effects 0.000 claims description 10
- 230000008520 organization Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 230000015654 memory Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- RWSOTUBLDIXVET-UHFFFAOYSA-N Dihydrogen sulfide Chemical compound S RWSOTUBLDIXVET-UHFFFAOYSA-N 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Data Mining & Analysis (AREA)
- Human Resources & Organizations (AREA)
- General Engineering & Computer Science (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Accounting & Taxation (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present disclosure provides a business transaction method, device, equipment, medium and product based on a blockchain, which can be applied to the blockchain technical field, the financial science and technology field or other related fields. The business handling method based on the block chain comprises the following steps: under the condition that the client accords with the service handling condition, determining the state information of the current service; calling flow data corresponding to service information from the block chain under the condition that the state information is interrupt handling; performing current business handling based on the flow data; and updating the flow data according to the current business handling result and uploading the flow data to a block chain.
Description
Technical Field
The present disclosure relates to the field of blockchains, and more particularly, to a blockchain-based business transaction method, apparatus, device, medium, and product.
Background
In the prior art, information barriers exist among different banking sites, and clients need to complete business transaction at the same banking site.
If the customer cannot transact the service at the same website due to the self reasons, the service transacting process needs to be restarted at a new website after the website is replaced, and the current service transacting cannot be continued based on the transacting progress of other websites, so that the problem of low service transacting efficiency is caused.
Disclosure of Invention
In view of the foregoing, the present disclosure provides blockchain-based business transaction methods, apparatuses, devices, media, and program products that improve business transaction efficiency.
According to a first aspect of the present disclosure, there is provided a blockchain-based service transacting method, including: under the condition that the client accords with the service handling condition, determining the state information of the current service; under the condition that the state information is interrupt handling, invoking flow data corresponding to the service information from the blockchain; performing current business handling based on the flow data; and updating the flow data according to the current business handling result and uploading the flow data to the block chain.
According to an embodiment of the present disclosure, further comprising: receiving a certification credential and a business transaction request uploaded by a client; the certification certificate is client information encrypted by a zero knowledge certification algorithm; uploading the certification certificate and the current business handling request to a blockchain to verify by utilizing an intelligent contract in the blockchain to obtain a verification result; the verification result is used for indicating whether the user accords with the service handling condition or not; and receiving a verification result sent by the block chain.
According to an embodiment of the present disclosure, determining status information of a current service includes: acquiring a customer history service information set; inquiring whether service information identical with the current service information exists in the historical service information set; acquiring state information of the historical service information from the block chain under the condition that the historical service information which is the same as the current service information exists in the historical service information set; the state information of the current service is determined based on the state information of the historical service information.
According to an embodiment of the present disclosure, acquiring status information of historical service information from a blockchain includes: reading a unique identifier in the historical service information; state information containing the same identifier is looked up in the blockchain based on the unique identifier.
According to an embodiment of the present disclosure, determining state information of a current service based on state information of historical service information includes: reading state information of historical service information; under the condition that the state information of the historical service information is interrupt handling, determining the state information of the current service as interrupt handling; under the condition that the state information of the historical service information is the transaction ending, determining the state information of the current service information as the primary transaction; under the condition that the state information is first transacted, a unique identifier is allocated for the current service information; in the case where the status information is interrupt handling, the unique identifier of the current service information is the same as the unique identifier of the historical service information.
According to an embodiment of the present disclosure, in a case where the status information is interrupt handling, invoking flow data corresponding to service information from a blockchain includes: obtaining flow data from the blockchain based on the unique identifier; the method comprises the steps that flow data are sent to a client side, so that the client decrypts the flow data through a personal private key to obtain first flow data; receiving second flow data transmitted by the client; the second flow data is obtained by encrypting the first flow data by the client side through the public key of the mechanism; and decrypting the second flow data based on the mechanism private key to obtain decrypted flow data.
According to an embodiment of the present disclosure, updating flow data based on current business transaction results and uploading into a blockchain includes: judging whether the current business handling flow is finished; under the condition that the current business handling flow is finished, updating the state information of the current business information into finished handling in a block chain; under the condition that the current business handling flow is not finished, calling a client public key to encrypt flow data of the current business information; uploading the encrypted flow data to the blockchain.
According to embodiments of the present disclosure, a client public key, a client private key, an organization public key, an organization private key are generated when a client and/or an organization registers a blockchain node.
A second aspect of the present disclosure provides a blockchain-based business transaction apparatus, comprising: the determining module is used for acquiring the state information of the current service from the block chain under the condition that the client accords with the service handling condition; the calling module is used for calling flow data corresponding to the service information from the block chain under the condition that the state information is interrupt handling; the business handling module is used for handling the current business based on the flow data; and the updating and uploading module is used for updating the flow data according to the current business handling result and uploading the flow data to the block chain.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the blockchain-based business transaction method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described blockchain-based business transaction method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the blockchain-based business transaction method described above.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a blockchain-based business transaction method, apparatus, device, medium, and program product according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a blockchain-based business transaction method in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of customer business transaction condition verification according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram for obtaining state information of a current service from a blockchain in accordance with embodiments of the present disclosure;
FIG. 5 schematically illustrates a flow chart of determining status information of a current service according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of invoking flow data corresponding to business information according to an embodiment of the disclosure;
FIG. 7 schematically illustrates a flow diagram for registering a node in a blockchain in accordance with embodiments of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a blockchain-based business transaction device in accordance with an embodiment of the present disclosure; and
fig. 9 schematically illustrates a block diagram of an electronic device adapted to implement a blockchain-based business transaction method in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the invention, the related user information (including but not limited to user personal information, user image information, user equipment information, such as position information and the like) and data (including but not limited to data for analysis, stored data, displayed data and the like) are information and data authorized by a user or fully authorized by all parties, and the processing of the related data such as collection, storage, use, processing, transmission, provision, disclosure, application and the like are all conducted according to the related laws and regulations and standards of related countries and regions, necessary security measures are adopted, no prejudice to the public welfare is provided, and corresponding operation inlets are provided for the user to select authorization or rejection.
The embodiment of the disclosure provides a business handling method based on a blockchain, which comprises the following steps: under the condition that the client accords with the service handling condition, acquiring the state information of the current service from the blockchain; under the condition that the state information is interrupt handling, invoking flow data corresponding to the service information from a blockchain; reading flow data, and performing business handling along the last node in the flow data; and updating the flow data based on the current business handling result and uploading the flow data into the blockchain.
Fig. 1 schematically illustrates an application scenario diagram of a blockchain-based business transaction method, apparatus, device, medium, and product according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a website service terminal 101, a portable device 102, a firewall 103, a network 104, a blockchain platform 105, and a server 106. The network 104 is the medium used to provide the communication links between the mesh point service terminal 101, the portable device 102, and the blockchain platform 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc., as well as an in-bank network, public network, etc. The website service terminal 101 is connected with the blockchain platform 105 through a bank intranet, the connection between the portable device 102 and the blockchain platform 105 is connected through a public network, and the firewall 103 is used for screening requests sent by the portable device 102 to the blockchain platform 105 so as to control risks.
A user may interact with blockchain platform 105, server 106, through network 104, using web-site services terminal 101, portable device 102, to receive or send messages, etc. The web site service terminal 101 may include a counter 1011, an intelligent teller machine 1012, etc. for receiving, transmitting, transacting business transaction requests. The portable device 102 may have installed thereon various communication client applications such as banking applications, shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like (by way of example only).
The portable device 102 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, laptop and desktop computers, and the like, for users to log into a cell phone bank and/or an online bank.
The server 106 may be a server providing various services, such as a background management server (by way of example only) that provides support for websites browsed by users using the website service terminal 101, portable device 102, and blockchain platform 105. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the blockchain-based service handling method provided by the embodiments of the present disclosure may be generally executed by the server 106. Accordingly, the blockchain-based business transaction devices provided by embodiments of the present disclosure may be generally disposed in the server 106. The blockchain-based business transaction methods provided by embodiments of the present disclosure may also be performed by servers or server clusters other than server 106 that are capable of communicating with the website service terminal 101, portable device 102, blockchain platform 105, and/or server 106. Accordingly, the blockchain-based service transacting apparatus provided by embodiments of the present disclosure may also be disposed in a server or server cluster that is different from the server 106 and is capable of communicating with the website service terminal 101, the portable device 102, the blockchain platform 105, and/or the server 106.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The block chain based service handling method of the disclosed embodiment will be described in detail with reference to fig. 2 to 7 based on the scenario described in fig. 1.
Fig. 2 schematically illustrates a flow chart of a blockchain-based business transaction method in accordance with an embodiment of the present disclosure.
As shown in fig. 2, the blockchain-based service transaction of this embodiment includes operations S210 to S240.
In operation S210, in case that the client meets the service handling condition, status information of the current service is determined.
In some embodiments, the current client is verified as meeting business process conditions based on intelligent contracts in the blockchain. And under the condition that the current client accords with service handling, acquiring the state information of the current service from the blockchain. To determine whether the current service is a newly initiated service or a continuation of the previous service.
In operation S220, in the case where the status information is interrupt handling, flow data corresponding to the service information is called from the blockchain.
In some embodiments, the status information of the business may include interrupt transactions, initial transactions, and the like. And under the condition that the state information is interrupt handling, acquiring flow data corresponding to the current service information from the block link. For example, when a client handles a service at a node a, the service handling is terminated when the service is not completed due to an emergency, at this time, the node a sends the state information and flow data of the current service to a node corresponding to the node a in the blockchain, and the node corresponding to the node a uploads the state information and flow data of the service to the blockchain network for other nodes to query based on the nodes in the blockchain.
In addition, in order to protect the security of the data and the privacy of the client, the application further proposes that before uploading the flow data, the personal public key of the client is utilized to encrypt the flow data, and the data uploaded to the blockchain is the data encrypted by the personal public key of the client, so that the privacy of the client can be effectively prevented from being revealed.
In operation S230, the current business transaction is performed based on the flow data.
In some embodiments, the historical transaction progress of the current service is determined by reading the flow data, and the service transaction is continued along the historical transaction progress, so that the service transaction time is saved, and the continuous transaction of the same service at different places and at different times is realized.
In operation S240, the flow data is updated based on the current business transaction result and uploaded into the blockchain.
In some embodiments, the current business transaction results may include, for example, that the business transaction process has ended and that the current business transaction process has not ended. And updating the state information of the current business information into the ending transaction in the block under the condition that the current business transaction flow is ended. And under the condition that the current business handling flow is not finished, calling the client public key to encrypt flow data of the current business information, and uploading the encrypted flow data to a blockchain so as to facilitate subsequent calling.
According to the embodiment of the disclosure, the flow data of business handling is stored through the block chain, so that each website can read the historical flow data of the current business to be handled based on the flow data in the block chain, and the business handling is directly continued based on the last step in the historical flow data, so that the business handling is continued after the business is interrupted, the business handling time is saved, the flexibility of business handling is improved, and better business handling experience is provided for customers.
And because the blockchain has the advantages of decentralization and non-falsification, the business transaction is carried out based on the blockchain, any one access channel and node in a banking system can be made to be the center, whether the corresponding node exists in the blockchain, such as a website, a mobile phone bank, an online bank or an intelligent cabinet, the center for executing the business transaction can be made, the problem of low service response efficiency in the traditional mode is effectively solved, the response speed of the system to the business transaction flow is improved, and the business transaction efficiency is further improved.
Fig. 3 schematically illustrates a flow chart of customer business transaction condition verification according to an embodiment of the present disclosure.
As shown in fig. 3, the blockchain-based service transaction of this embodiment includes operations S310 to S330.
Receiving the certification credential and the business transaction request uploaded by the client in operation S310; the certification certificate is client information encrypted by a zero knowledge certification algorithm.
In some embodiments, the customer information includes at least a transactable amount, address, age, etc., and is encrypted by a zero knowledge proof algorithm to obtain a proof credential. For example, when a business is transacted, the client is required to have an asset value of x to transact the business, and the current client has an asset value of y, the proof credential may be, for example, a zero knowledge proof generated based on the equation x-y >0 to prove that the client meets the business transacted conditions without revealing the client specific asset value.
Zero knowledge proof is an encryption protocol that allows one party (the proving party) to prove to the other party (the verifying party) whether a statement is correct without revealing any additional information beyond whether the statement itself is authentic. I.e. the verifier cannot obtain additional information other than the proof results. The certification certificate encrypted by the zero knowledge certification algorithm can be used for completing verification of business handling conditions while hiding the sensitive information of the client so as to ensure the safety of personal information of the client.
In operation S320, uploading the proof credential and the current business transaction request to the blockchain to verify by using the intelligent contract in the blockchain to obtain a verification result; the verification result is used for indicating whether the user accords with the service handling condition.
In some embodiments, the client identity credentials and the current business transaction request are uploaded to the blockchain for verification. The current service handling request at least comprises a service name to be handled, a service category to be handled, an amount to be handled and the like.
The different business handling conditions are different, and the corresponding intelligent contracts in the blockchain are also different. When the block link receives the current business handling request, searching a corresponding intelligent contract based on the current business handling request, verifying the certification certificate provided by the client through the intelligent contract, determining whether the client accords with the business handling condition, and outputting a verification result.
The intelligent contract is used as a digital protocol stored in the blockchain, and can automatically execute verification operation after receiving data and execute corresponding tasks based on the verification result. For example, in the case that the verification result of the smart contract is that the current client meets the business handling condition, the blockchain automatically performs the related operation. Compared with the traditional contracts, the content disclosure of the intelligent contracts is transparent and can not be tampered, and each node in the blockchain can see the content in the intelligent contracts and conduct business handling condition verification through the intelligent contracts. Once the intelligent contract is deployed, the contract content cannot be tampered, and the fairness of verification can be effectively ensured. And because the response speed of the intelligent contract is higher, the intelligent contract is utilized for verification, and the interaction efficiency can be effectively improved, so that the business handling efficiency is improved.
In operation S330, a verification result transmitted by the blockchain is received.
In some embodiments, a validation result sent by a blockchain is received. The verification result comprises two types of verification passing and verification failing, and when the verification result is verification passing, the client is proved to be in accordance with the handling condition of the current service handling request, and the follow-up service handling flow can be continuously executed; when the verification result is that the verification fails, the client is not in accordance with the handling condition of the current service handling request, the current service handling request of the client is returned, the return reason is described for the client, and the subsequent handling flow is not executed.
Before the business handling process starts, the method firstly verifies whether the client accords with business handling conditions. Only if the customer meets the business handling condition, the business handling process is executed. And rejecting the business handling request of the client when the client does not accord with the business handling condition. So as to save business handling resources, reduce unnecessary resource consumption and improve business handling efficiency.
Fig. 4 schematically illustrates a flowchart of determining status information of a current service according to an embodiment of the present disclosure.
As shown in fig. 4, the determining of the status information of the current service of this embodiment includes operations S410 to S440.
In operation S410, a set of customer history service information is acquired.
In some embodiments, a historical business transaction for the customer is queried to obtain a set of historical business information comprised of the customer's historical business information.
In operation S420, current service information is queried in the set of historical service information.
In some embodiments, whether the historical service information set includes current service information is queried, and state information of the current service is determined according to a query result. The current service information may include, for example, a to-be-handled service name, a to-be-handled service category, a to-be-handled amount, and the like in the current service request. And if the historical service information is concentrated and is consistent with each item of information in the current service information, the historical service information is used as a query result of the current service information.
In operation S430, in case that the history service information identical to the current service information exists in the history service information set, status information of the history service information is acquired from the blockchain.
In some embodiments, if the historical service information is the same as the current service information in the historical service information set, the unique identifier in the historical service information is read, and state information containing the same identifier is searched in the blockchain based on the unique identifier so as to acquire the state information of the historical service information in the blockchain. If the historical service information set does not have the same historical service information as the current service information, the state information of the current service information is directly determined to be the primary transaction.
In operation S440, status information of the current service is determined based on the status information of the history service information.
In some embodiments, the status information of the current service is determined based on the status information of the historical service information in the event that the current service information exists with corresponding historical service information. Namely judging whether the current business has interrupt handling conditions according to the state information of the historical business information.
The method and the device for processing the service in the current state determine whether the service which is the same as the current service exists or not by inquiring the historical service information, and determine the state of the current service through the historical service information, so that different service processing flows are adopted for the services in different states, service processing time is saved, and service processing efficiency is improved.
Fig. 5 schematically illustrates a flowchart of determining status information of a current service according to an embodiment of the present disclosure.
As shown in fig. 5, the state information of the current service is determined based on the state information of the history service information of this embodiment, including operations S510 to S530.
In operation S510, status information of the history service information is read.
In operation S520, in the case where the status information of the history service information is the interrupt transaction, it is determined that the status information of the current service is the interrupt transaction.
In some embodiments, if the status information of the history service is interrupt handling, it is indicated that the history service handling process is not finished, so that the current service is considered as continuation of the history service, the status information of the current service is determined to be interrupt handling, and the unique identifier and the status information of the history service are allocated to the current service. Further, after the unique identifier and the state information of the history service are allocated to the current service, the history service can be automatically deleted, and all relevant information of the history service is inherited by the current service, so that storage resources are saved, and service management is facilitated.
In operation S530, in the case where the status information of the history service information is the end transaction, the status information of the current service information is determined to be the initial transaction.
In some embodiments, if the status information of the history service is that the transaction is completed, it is indicated that the transaction flow of the history service is completed, and then, even if there is a history task identical to the service information of the current service, the current task should be considered as a new service, so that the status information of the current service is determined to be the first transaction, and a unique identifier is assigned to the current service.
The present disclosure determines state information of a current service by querying state information of a history service, and assigns unique identifiers in different manners for the current service of different state information. If the state information of the current service is the first transaction, a unique identifier which is generated completely new is allocated for the current service. If the state information of the current service is interrupt handling, the unique identifier of the corresponding history service is directly allocated to the current service (namely, the combination of the history service and the current service is completed), and the combined current service inherits the unique identifier of the history service and all information stored in the blockchain by the history service.
Fig. 6 schematically illustrates a flowchart of invoking flow data corresponding to business information according to an embodiment of the present disclosure.
As shown in fig. 6, the invoking of the flow data corresponding to the service information of this embodiment includes operations S610 to S640.
In operation S610, flow data is obtained from a blockchain.
In operation S620, the flow data is sent to the client, so that the client decrypts the flow data through the private key to obtain the first flow data.
In operation S630, receiving second flow data transferred by the client; the second flow data is obtained by encrypting the first flow data by the client side through the public key of the mechanism.
In operation S640, the second flow data is decrypted based on the organization private key, resulting in decrypted flow data.
In some embodiments, corresponding flow data is obtained in the blockchain based on the unique identifier of the current service, wherein the flow data stored in the blockchain is flow data encrypted with the client's personal public key.
The personal public key of the client is utilized to encrypt the flow data, so that the personal privacy of the client can be effectively protected, the situations of data leakage and the like in the flow data transmission process are avoided, and the safety of the client account is ensured. After the client decrypts the flow data through the personal private key, the public key of the mechanism of the business handling mechanism is called to encrypt the decrypted first flow data for the second time to obtain second flow data, the client sends the encrypted second flow data to the mechanism end through the client end, the mechanism end decrypts the second flow data, and the current business is handled based on the decrypted flow data, so that continuous handling of the intermediate handling business is realized, the business handling flow is simplified, and the business handling time is effectively saved.
The process data is encrypted through the public key of the mechanism, so that the safety of the process data can be further ensured in the data transmission process, and the risk of data leakage is reduced.
In some embodiments, the client public key, the client private key, the facility public key, and the facility private key are all generated when the client and/or the facility registers a node in the blockchain.
Fig. 7 schematically illustrates a flow diagram for registering a node in a blockchain in accordance with an embodiment of the present disclosure.
As shown in fig. 7, the process by which a client and/or organization registers nodes in a blockchain is as follows.
A registration request is submitted to the blockchain by an organization or client to cause the blockchain to verify whether the current organization or client meets node registration criteria based on the registration request.
And under the condition that the verification result of the blockchain meets the registration condition, the organization node and/or the client node is successfully registered, and meanwhile, the blockchain generates an organization key pair and/or a client key pair based on an asymmetric encryption algorithm.
The institution key pair includes an institution private key and an institution public key, and the client key pair includes a client private key and a client public key. The private key of the organization and the private key of the client are sent to the corresponding organization and the client by the blockchain for safe storage. The institution public key and the client public key are published in the blockchain platform for use in the business process.
In some embodiments, the blockchain verifies whether the organization or client meets node registration criteria based on the registration application, including: judging the identity of the applicant, if the applicant is an organization, verifying whether the organization is a bank internal organization, and if the organization is a bank internal organization, passing the verification. If the applicant is a client, an identity authentication instruction is sent to the current website, the current website authenticates the client, the certificate successfully authenticated by the identity authentication uploaded by the current website is received to the blockchain, and after the certificate successfully authenticated by the identity authentication is received, the blockchain judges that the verification is passed.
Based on the service handling method, the disclosure also provides a service handling device based on the block chain. The device will be described in detail below in connection with fig. 8.
Fig. 8 schematically illustrates a block diagram of a blockchain-based business transaction device in accordance with an embodiment of the present disclosure.
As shown in fig. 8, the blockchain-based service handling apparatus 800 of this embodiment includes a determination module 810, a calling module 820, a service handling module 830, and an update upload module 840.
The determining module 810 is configured to obtain status information of a current service from the blockchain if the client meets a service handling condition. In an embodiment, the determining module 810 may be configured to perform the operation S210 described above, which is not described herein.
The calling module 820 is configured to call flow data corresponding to the service information from the blockchain if the status information is interrupt handling. In an embodiment, the calling module 820 may be used to perform the operation S220 described above, which is not described herein.
The business transaction module 830 is configured to perform current business transaction based on the flow data. In an embodiment, the service handling module 830 may be configured to perform the operation S230 described above, which is not described herein.
The update upload module 840 is configured to update the flow data according to the current business transaction result and upload the flow data to the blockchain. In an embodiment, the update upload module 840 may be used to perform the operation S240 described above, which is not described herein.
Any of the determining module 810, the calling module 820, the business handling module 830, and the update uploading module 840 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules, according to embodiments of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the determination module 810, the invocation module 820, the transaction module 830, and the update upload module 840 may be implemented, at least in part, as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the determination module 810, the invocation module 820, the business transaction module 830, and the update upload module 840 may be at least partially implemented as computer program modules that, when executed, perform the corresponding functions.
Fig. 9 schematically illustrates a block diagram of an electronic device adapted to implement a blockchain-based business transaction method in accordance with an embodiment of the present disclosure.
As shown in fig. 9, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. The processor 901 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 901 may also include on-board memory for caching purposes. Processor 901 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. The processor 901 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the program may be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 900 may also include an input/output (I/O) interface 905, the input/output (I/O) interface 905 also being connected to the bus 904. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 902 and/or RAM 903 and/or one or more memories other than ROM 902 and RAM 903 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the item recommendation method provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, via communication portion 909, and/or installed from removable medium 911. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.
Claims (12)
1. A blockchain-based business transaction method, comprising:
under the condition that the client accords with the service handling condition, determining the state information of the current service;
When the state information is interrupt handling, invoking flow data corresponding to the service information from the blockchain;
performing current business handling based on the flow data;
and updating the flow data according to the current business handling result and uploading the flow data to a block chain.
2. The business transaction method of claim 1, further comprising:
receiving a certification credential and a business transaction request uploaded by a client; wherein, the certification certificate is the client information encrypted by the zero knowledge certification algorithm;
uploading the certification certificate and the current business handling request to a blockchain to verify by utilizing an intelligent contract in the blockchain to obtain a verification result; the verification result is used for indicating whether the user accords with the service handling condition or not;
and receiving a verification result sent by the block chain.
3. The service handling method according to claim 1, wherein the determining the status information of the current service includes:
acquiring a customer history service information set;
inquiring whether service information identical with the current service information exists in the historical service information set;
under the condition that the history service information set does not have the same history service information as the current service information, determining the state information of the current service as primary transaction;
Acquiring state information of the historical service information from a block chain under the condition that the historical service information which is the same as the current service information exists in the historical service information set;
and determining the state information of the current service based on the state information of the historical service information.
4. The service handling method according to claim 3, wherein the acquiring the status information of the historical service information from the blockchain includes:
reading a unique identifier in the historical service information;
state information containing the same identifier is looked up in the blockchain based on the unique identifier.
5. The service transacting method of claim 3, wherein the determining the status information of the current service based on the status information of the history service information comprises:
reading state information of historical service information;
under the condition that the state information of the historical service information is interrupt handling, determining the state information of the current service as interrupt handling;
under the condition that the state information of the historical service information is the transaction ending, determining the state information of the current service information as the primary transaction;
under the condition that the state information is first transacted, a unique identifier is allocated for the current service information; in the case where the status information is interrupt handling, the unique identifier of the current service information is the same as the unique identifier of the historical service information.
6. The business transaction method according to claim 1, wherein, in the case that the status information is interrupt transaction, the invoking the flow data corresponding to the business information from the blockchain includes:
obtaining the flow data from the blockchain based on the unique identifier;
the process data is sent to a client so that the client decrypts the process data through a personal private key to obtain first process data;
receiving second flow data transmitted by the client; the second flow data are obtained by encrypting the first flow data by the client side through the public key of the mechanism;
and decrypting the second flow data based on the mechanism private key to obtain decrypted flow data.
7. The business transaction method according to claim 1, wherein the updating the flow data based on the current business transaction result and uploading the flow data into a blockchain comprises:
judging whether the current business handling flow is finished;
under the condition that the current business handling flow is finished, updating the state information of the current business information into finished handling in a block chain;
under the condition that the current business handling flow is not finished, calling a client public key to encrypt flow data of the current business information;
Uploading the encrypted flow data to the blockchain.
8. A business transaction method according to claim 6 or 7, said client public key, client private key, institution public key, institution private key being generated at the time of client and/or institution registration of blockchain nodes.
9. A blockchain-based business transaction device, comprising:
the determining module is used for determining the state information of the current service under the condition that the client accords with the service handling condition;
the calling module is used for calling flow data corresponding to the service information from the block chain under the condition that the state information is interrupt handling;
the business handling module is used for handling the current business based on the flow data; and
and the updating and uploading module is used for updating the flow data according to the current business handling result and uploading the flow data to the block chain.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311476935.2A CN117422416A (en) | 2023-11-08 | 2023-11-08 | Block chain-based business handling method, device, equipment, medium and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311476935.2A CN117422416A (en) | 2023-11-08 | 2023-11-08 | Block chain-based business handling method, device, equipment, medium and product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117422416A true CN117422416A (en) | 2024-01-19 |
Family
ID=89530000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311476935.2A Pending CN117422416A (en) | 2023-11-08 | 2023-11-08 | Block chain-based business handling method, device, equipment, medium and product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117422416A (en) |
-
2023
- 2023-11-08 CN CN202311476935.2A patent/CN117422416A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11451392B2 (en) | Token-based secure data management | |
US11683179B2 (en) | Systems and methods for secure remote identity verification | |
US20230291571A1 (en) | Dynamic management and implementation of consent and permissioning protocols using container-based applications | |
US9191389B2 (en) | Access control of remote communication interfaces based on system-specific keys | |
US9251327B2 (en) | Method and system for providing behavioral bi-directional authentication | |
US11321718B1 (en) | Systems and methods for blockchain based identity assurance and risk management | |
US10176318B1 (en) | Authentication information update based on fraud detection | |
US11983787B2 (en) | Integration of workflow with digital ID | |
CN110120952A (en) | A kind of total management system single-point logging method, device, computer equipment and storage medium | |
CN113572763B (en) | Data processing method and device, electronic equipment and storage medium | |
CN114785560B (en) | Information processing method, device, equipment and medium | |
CN115801317A (en) | Service providing method, system, device, storage medium and electronic equipment | |
CN114491489A (en) | Request response method and device, electronic equipment and storage medium | |
CN117422416A (en) | Block chain-based business handling method, device, equipment, medium and product | |
CN110659476A (en) | Method and apparatus for resetting password | |
CN114553570B (en) | Method, device, electronic equipment and storage medium for generating token | |
CN114697114B (en) | Data processing method, device, electronic equipment and medium | |
CN114844694B (en) | Information processing method, apparatus, device and storage medium | |
CN118157962A (en) | Communication information changing method and device, electronic equipment and medium | |
CN113849791A (en) | Third-party platform registration method, third-party platform registration device, third-party platform registration equipment, third-party platform registration medium and program product | |
CN118432935A (en) | Information authentication method, apparatus, device, medium, and program product | |
CN118449780A (en) | Authentication method, device, equipment, storage medium and program product based on trusted equipment network | |
CN118018265A (en) | Login authentication method and device based on NFT, electronic equipment and storage medium | |
WO2024054781A1 (en) | Entity profile for access control | |
CN118677593A (en) | Information processing method and device, electronic equipment and computer readable 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 |