Nothing Special   »   [go: up one dir, main page]

CN111080443A - Service processing method, device, equipment and storage medium based on block chain - Google Patents

Service processing method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN111080443A
CN111080443A CN201911376427.0A CN201911376427A CN111080443A CN 111080443 A CN111080443 A CN 111080443A CN 201911376427 A CN201911376427 A CN 201911376427A CN 111080443 A CN111080443 A CN 111080443A
Authority
CN
China
Prior art keywords
target
mortgage
protocol
target mortgage
information corresponding
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.)
Granted
Application number
CN201911376427.0A
Other languages
Chinese (zh)
Other versions
CN111080443B (en
Inventor
刘攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911376427.0A priority Critical patent/CN111080443B/en
Publication of CN111080443A publication Critical patent/CN111080443A/en
Application granted granted Critical
Publication of CN111080443B publication Critical patent/CN111080443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a service processing method, a device, equipment and a storage medium based on a block chain, and belongs to the technical field of block chains. The method is applied to any first node equipment in a block chain system, and the block chain system stores a target mortgage protocol and target information corresponding to the target mortgage protocol, and comprises the following steps: based on the target mortgage protocol and target information corresponding to the target mortgage protocol, establishing a service processing task corresponding to the target mortgage protocol; sending the service processing task to second node equipment, wherein the second node equipment is used for executing the service processing task and returning execution data of the service processing task; and updating target information corresponding to the target mortgage protocol based on the execution data of the service processing task returned by the second node equipment. Based on the service processing process, the agreement terms in the target mortgage agreement can be ensured to be automatically fulfilled, the success rate of fulfilling the agreement terms is favorably improved, the risk of the mortgage service is reduced, and the processing effect of the mortgage service is better.

Description

Service processing method, device, equipment and storage medium based on block chain
Technical Field
The present disclosure relates to the field of block chain technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a service based on a block chain.
Background
With the development of economy, more and more mortgage businesses acquire funds through mortgage articles, and the processing process of the mortgage businesses is usually dependent on a mortgage platform. Currently, in the process of processing the mortgage service, the working personnel of the mortgage platform supervise and urge the mortgage personnel and the mortgage obligee to voluntarily fulfill the agreement terms in the mortgage agreement according to the paper-version mortgage agreement signed by the mortgage personnel and the mortgage obligee. In this way, the phenomenon that the mortgage persons or the mortgage persons do not fulfill the agreement terms in the mortgage agreement easily occurs, the risk of the mortgage service is high, and the processing effect of the mortgage service is poor.
Disclosure of Invention
The embodiment of the application provides a block chain-based service processing method, a block chain-based service processing device and a storage medium, which can be used for improving the processing effect of a mortgage service. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a service processing method based on a blockchain, where the method is applied to any first node device in a blockchain system, where a target mortgage protocol and target information corresponding to the target mortgage protocol are stored in the blockchain system, and the method includes:
based on the target mortgage protocol and target information corresponding to the target mortgage protocol, creating a service processing task corresponding to the target mortgage protocol;
sending the service processing task to second node equipment, wherein the second node equipment is used for executing the service processing task and returning execution data of the service processing task;
and updating target information corresponding to the target mortgage protocol based on the execution data of the service processing task returned by the second node equipment.
In another aspect, an apparatus for processing a service based on a block chain is provided, where the apparatus includes:
the creating module is used for creating a service processing task corresponding to the target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol;
a sending module, configured to send the service processing task to a second node device, where the second node device is configured to execute the service processing task and return execution data of the service processing task;
and the updating module is used for updating the target information corresponding to the target mortgage protocol based on the execution data of the service processing task returned by the second node equipment.
In a possible implementation manner, the creating module is configured to generate a service processing request corresponding to the target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol; and creating a service processing task corresponding to the service processing request based on the service processing request.
In one possible implementation, the apparatus further includes:
the system comprises an acquisition module, a first application module and a second application module, wherein the acquisition module is used for acquiring a target mortgage protocol and first information corresponding to the target mortgage protocol based on a first signing request of a first object to the target mortgage protocol;
the storage module is used for storing the target mortgage protocol and first information corresponding to the target mortgage protocol in the block chain system;
the updating module is further configured to update first information corresponding to the target mortgage protocol in the block chain system based on a second subscription request of a second object for the target mortgage protocol, and use the updated first information as target information corresponding to the target mortgage protocol.
In one possible implementation manner, the obtaining module includes:
the acquisition unit is used for acquiring a first signing request of the first object to the target mortgage protocol;
the verification unit is used for verifying the validity of the first signing request;
the obtaining unit is further configured to obtain the target mortgage protocol and first information corresponding to the target mortgage protocol in response to the validity verification of the first subscription request passing.
In a possible implementation manner, the block chain system includes a first intelligent contract, and the storage module is configured to store the target mortgage protocol and first information corresponding to the target mortgage protocol in the first intelligent contract;
the updating module is further configured to update first information corresponding to the target mortgage protocol in the first intelligent contract based on a second subscription request of a second object for the target mortgage protocol.
In one possible implementation manner, the first information corresponding to the target mortgage protocol includes identification information of the target mortgage protocol and second information corresponding to the target mortgage protocol; the storage module is used for taking the identification information of the target mortgage protocol as a key word and writing the target mortgage protocol and second information corresponding to the target mortgage protocol into the first intelligent contract as a value.
In one possible implementation manner, the first subscription request carries one or more of identification information of a second smart contract, identification information of an identity certificate of the first object, a public key of the first object, identification information of target mortgage data, identification information of the first object, identification information of target bid data, and identification information of the second object; the verification unit is used for executing one or more of the following verification modes:
performing first validity verification on the first signing request based on the identification information of the second intelligent contract;
performing second validity verification on the first subscription request based on the identification information of the identity certificate of the first object and the public key of the first object;
performing third validity verification on the first signing request based on the identification information of the target mortgage data and the identification information of the first object;
and performing fourth validity verification on the first subscription request based on the identification information of the target bidding data and the identification information of the second object.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement any one of the above-mentioned service processing methods based on a blockchain.
In another aspect, a computer-readable storage medium is provided, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement any one of the above-mentioned service processing methods based on a blockchain.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
and automatically creating a service processing task corresponding to the target mortgage protocol based on the target mortgage protocol stored in the block chain system and target information corresponding to the target mortgage protocol, and further automatically executing the service processing task through the second node equipment. Based on the service processing process, the agreement terms in the target mortgage agreement can be ensured to be automatically fulfilled, the phenomenon that the mortgage persons or the mortgage obligees do not fulfill the agreement terms is reduced, the success rate of fulfilling the agreement terms in the target mortgage agreement is favorably improved, the risk of the mortgage service is reduced, and the processing effect of the mortgage service is better.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a plurality of blocks in a block chain according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a process of generating a new block according to an embodiment of the present application;
fig. 3 is a schematic diagram of an implementation environment of a service processing method based on a blockchain according to an embodiment of the present application;
fig. 4 is a flowchart of a service processing method based on a block chain according to an embodiment of the present application;
fig. 5 is a flowchart of a service processing method based on a block chain according to an embodiment of the present application;
fig. 6 is a schematic diagram of a service processing apparatus based on a block chain according to an embodiment of the present application;
fig. 7 is a schematic diagram of a service processing apparatus based on a block chain according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an acquisition module according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, several terms referred to in the present application will be explained.
The block chain system: refers to a system that employs block chain Technology (Blockchain Technology) to store data. The block chain technology is also called as distributed book technology, is an internet database technology, and is characterized in that centralization and public transparency are achieved, and everyone can participate in database recording. Blockchain technology may be a distributed infrastructure and computing approach that utilizes blockchain data structures to authenticate and store data, utilizes distributed node consensus algorithms to generate and update data, cryptographically secures data transmission and access, and utilizes intelligent contracts composed of automated script code to program and manipulate data. The data stored in the blockchain system has high stability and reliability, and the blockchain system is a non-tampered and trusted database. Therefore, compared with the traditional method of storing the data related to the mortgage service in a centralized manner, the method for storing the data related to the mortgage service by using the block chain system is beneficial to improving the safety and reliability of the data related to the mortgage service.
The blockchain system can comprise a plurality of node devices, and data can be shared between the node devices. Each node device can receive input information during normal operation, and maintain shared data in the blockchain system based on the received input information. In order to ensure information intercommunication in the blockchain system, information connection can exist between each node device in the blockchain system, and information transmission can be carried out between the node devices through the information connection. For example, when any node device in the blockchain system receives input information, other node devices in the blockchain system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored in all the node devices in the blockchain system are consistent.
Each node device in the blockchain system has a node device identifier corresponding thereto, and each node device in the blockchain system can store node device identifiers of other node devices in the blockchain system, so that the generated block is broadcast to other node devices in the blockchain system according to the node device identifiers of the other node devices in the subsequent process. Each node device may maintain a node device identifier list as shown in table 1, and store the node device name and the node device identifier in the node device identifier list correspondingly. The node device identifier may be an IP (internet protocol) address or any other information that can be used to identify the node device, and table 1 only illustrates the IP address as an example.
TABLE 1
Node device name Node device identification
Node device 1 117.114.151.174
Node device 2 117.116.189.145
Node device N 119.123.789.258
Each node device in the blockchain system is configured with an identical blockchain. A block chain is composed of a plurality of blocks, fig. 1 is a schematic diagram of a plurality of blocks in the block chain provided in the embodiment of the present application, referring to fig. 1, a starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When each block in the block chain is generated, referring to fig. 2, when the node device where the block chain is located receives input information, the input information is verified, after the verification is completed, the input information is stored in the memory pool, and the hash tree for recording the input information is updated; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. And then, the node equipment where the block chain is located respectively sends the newly generated blocks to other node equipment in the block chain system according to the node equipment identifications of the other node equipment in the block chain system, the newly generated blocks are verified by the other node equipment, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is finished.
A consensus algorithm: the method refers to a mathematical algorithm for establishing trust and obtaining rights and interests among different node devices in a block chain system. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of the special node devices, and for a transaction, if a plurality of node devices with irrelevant benefits can achieve consensus, all the node devices in the system can also achieve consensus on the transaction.
Intelligent contract: is a computer protocol intended to propagate, validate or execute contracts in an informational manner. The goal of smart contracts is to provide a secure method over traditional contracts and to reduce other transaction costs associated with contracts, smart contracts allow for trusted transactions that are traceable and irreversible without third parties.
Prediction machine: a platform for providing external information. The prediction machine has the function of writing external information into the blockchain system to complete data intercommunication between the blockchain system and the real world.
Mortgage: the method is characterized in that a mortgage person and a mortgage obligee make a contract, the mortgage property is used as a guarantee of the bond without transferring the occupation of the mortgage property. When the mortgage does not fulfill the debt, the mortgage obligee has the right to be paid by the mortgage property with priority, either by discounting the price of the mortgage property or by auctioning, resale the price of the mortgage property.
Fig. 3 is a schematic diagram illustrating an implementation environment of a service processing method based on a block chain according to an embodiment of the present application. The implementation environment may include: the blockchain system 31, where the blockchain system 31 includes a plurality of node devices 310, and any node device 310 may be used as a first node device to execute one or more steps of the service processing method based on blockchain provided in the embodiment of the present application.
A plurality of node devices 310 in the blockchain system 31 may be configured with blockchains for storing mortgage traffic related data and intelligent contracts for processing the mortgage traffic. The block chain is composed of a plurality of blocks, and the adjacent blocks have an incidence relation, so that the information in any block can be detected by the next block when being tampered, the relevant data of the mortgage service can be prevented from being tampered, and the safety and the reliability of the processing process of the mortgage service are ensured. In an actual application scenario, the node device 310 may be a node device corresponding to different mechanisms, different platforms, or different objects. For example, the node device 310 may be a server corresponding to a mortgage platform, or a terminal corresponding to a mortgage service related object.
The node device 310 refers to a computer device, and the computer device may be a terminal or a server, which is not limited in this embodiment of the present application.
It will be understood by those skilled in the art that the blockchain system 31 is merely exemplary and that other existing or future blockchain systems may be used and are included within the scope of the present application and are hereby incorporated by reference.
Based on the implementation environment shown in fig. 3, an embodiment of the present application provides a service processing method based on a blockchain, which is applied to any first node device in a blockchain system as an example. The block chain system stores a target mortgage protocol and target information corresponding to the target mortgage protocol. As shown in fig. 4, the method provided by the embodiment of the present application may include the following steps:
in step 401, a service processing task corresponding to the target mortgage protocol is created based on the target mortgage protocol and target information corresponding to the target mortgage protocol.
The target mortgage protocol refers to a mortgage protocol corresponding to the first object and the second object. The target information corresponding to the target mortgage protocol refers to the information corresponding to the target mortgage protocol after the target mortgage protocol takes effect. The target mortgage agreement being effective means that the first object and the second object both successfully sign a contract for the target mortgage agreement. In the embodiment of the present application, a mortgage person is used as the first object, and a mortgage person is used as the second object.
Before creating a service processing task corresponding to a target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol, the first node device needs to store the target mortgage protocol and the target information corresponding to the target mortgage protocol in the block chain system. In a possible implementation manner, the process of the first node device storing the target mortgage protocol and the target information corresponding to the target mortgage protocol in the blockchain system includes steps 4011 to 4013:
step 4011: the method comprises the steps of obtaining a target mortgage protocol and first information corresponding to the target mortgage protocol based on a first signing request of a first object to the target mortgage protocol.
In one possible implementation manner, the implementation procedure of this step includes steps 4011A to 4011C:
step 4011A, obtain a first subscription request of a first object to a target mortgage protocol.
The first subscription request may carry a target mortgage protocol and identification information of the target mortgage protocol. Illustratively, the identification information of the target mortgage protocol may refer to a protocol number of the target mortgage protocol.
The target mortgage protocol may be generated based on a second intelligent contract, which refers to an intelligent contract used to sign the mortgage protocol. The second intelligent contract comprises mortgage terms, and a mortgage protocol corresponding to the target mortgage data and the target bid data can be generated based on the second intelligent contract and is used as the target mortgage protocol. Wherein the target mortgage data refers to mortgage data of the first object; the target bidding data is bidding data satisfying a condition among a plurality of bidding data for the target mortgage data. The bid data satisfying the condition may be bid data having the highest bid price among the plurality of bid data.
It should be noted that different mortgage items may correspond to different second intelligent contracts because different mortgage items may correspond to different mortgage terms. The second intelligent contract in the embodiment of the present application is an intelligent contract that includes mortgage terms corresponding to the mortgage item of the first object. The mortgage articles of the first object may refer to land use rights, real estate, vehicles, and the like, which are not limited in the embodiments of the present application.
A first subscription request of the first object to the target mortgage protocol may be sent by the third node device to the first node device. And the third node equipment is the node equipment corresponding to the mortgage platform. For example, the third node device is a background server of the mortgage platform, and the like. The first object can log in the mortgage platform, a first signing request for a target mortgage protocol is initiated on the mortgage platform, then the third node device corresponding to the mortgage platform obtains the first signing request, and the first signing request is sent to the first node device. Thereby, the first node device obtains a first subscription request of the first object to the target mortgage protocol.
In one possible implementation, the third node device sends a first sign-on request of the first object to the target mortgage protocol to the first node device in the form of a transaction. After obtaining the first subscription request in the transaction form, the first node device may package the first subscription request in the transaction form into a block.
In a possible implementation manner, to ensure information security during the process of sending the first subscription request to the first node device by the third node device, before the third node device sends the first subscription request to the first node device, the third node device may encrypt the first subscription request according to a public key of the first node device, and then send the obtained encryption request to the first node device. After receiving the encryption request, the first node device may decrypt the encryption request according to the private key of the first node device to obtain a first subscription request. By the method, the first subscription request can be effectively prevented from being tampered, and the transmission security of the first subscription request is improved.
In a possible implementation manner, the first subscription request may carry a digital signature of the first object and a public key of the first object, and the first node device performs validity verification on the first subscription request based on the digital signature of the first object after acquiring the first subscription request; when the validity verification of the first subscription request passes, step 4011B is performed.
The digital signature of the first object is encrypted information obtained by encrypting the summary information of the first subscription request by using a private key of the first object. The summary information of the first subscription request is obtained by calculating the first subscription request by using a hash function. In this case, the process of the first node device performing validity verification on the first subscription request based on the digital signature of the first object is as follows: after receiving the first signing request, the first node calculates the received first signing request by using the same hash function to obtain first summary information, and then decrypts the digital signature of the first object by using the public key of the first object to obtain second summary information; verifying whether the first summary information and the second summary information are the same; when the first summary information is the same as the second summary information, the first node may determine that the validity verification of the first subscription request is passed; when the first summary information is different from the second summary information, the first node may determine that the validity verification of the first subscription request fails.
Step 4011B, performing validity verification on the first subscription request.
In one possible implementation manner, the first subscription request carries one or more of identification information of the second smart contract, identification information of an identity certificate of the first object, a public key of the first object, identification information of the target mortgage data, identification information of the first object, identification information of the target bid data, and identification information of the second object.
The identification information of the second intelligent contract may refer to summary information of the second intelligent contract obtained by calculating the second intelligent contract by using a hash function; the identification information of the identity certificate of the first object may be digest information of the identity certificate of the first object, which is obtained by calculating the identity certificate of the first object by using a hash function; the identification information of the target mortgage data may refer to summary information of the target mortgage data obtained by calculating the target mortgage data by using a hash function; the identification information of the first object may refer to a login account of the first object in the mortgage platform; the identification information of the target bid data may refer to summary information of the target bid data obtained by calculating the target bid data using a hash function; the identification information of the second object may refer to a login account of the second object in the mortgage platform.
In one possible implementation manner, the process of verifying the validity of the first subscription request includes one or more of the following verification manners:
and the verification mode a is used for performing first validity verification on the first signing request based on the identification information of the second intelligent contract.
The verification process of the verification mode comprises the following steps: and inquiring whether the second intelligent contract is deployed or not in the blockchain system based on the identification information of the second intelligent contract. If the second intelligent contract is already deployed, the first validity verification of the first signing request is passed; and if the second intelligent contract is not deployed, the first validity verification of the first subscription request is not passed.
And b, performing second validity verification on the first signing request based on the identification information of the identity certificate of the first object and the public key of the first object in a verification mode b.
The verification process of the verification mode comprises the following steps: and inquiring whether the identity certificate of the first object exists in the first intelligent contract or not based on the identification information of the identity certificate of the first object. And if the identity certificate of the first object does not exist, the second validity verification of the first subscription request is not passed. And if the identity certificate of the first object exists, verifying whether the public key in the identity certificate of the first object stored in the first intelligent contract is consistent with the public key of the first object carried by the first signing request.
If the public key in the identity certificate of the first object stored in the first intelligent contract is inconsistent with the public key of the first object carried by the first signing request, the second validity verification of the first signing request is not passed; and if the public key in the identity certificate of the first object stored in the first intelligent contract is consistent with the public key of the first object carried by the first signing request, the second validity verification of the first signing request is passed.
And c, performing third validity verification on the first signing request based on the identification information of the target mortgage data and the identification information of the first object.
The verification process of the verification mode comprises the following steps: and inquiring whether the target mortgage data exists in the first intelligent contract or not based on the identification information of the target mortgage data. If the target mortgage data does not exist, the third validity verification of the first subscription request is not passed. And if the target mortgage data exists, verifying whether the identification information of the first object corresponding to the target mortgage data stored in the first intelligent contract is consistent with the identification information of the first object carried by the first signing request.
If the identification information of the first object corresponding to the target mortgage data stored in the first intelligent contract is inconsistent with the identification information of the first object carried by the first signing request, the third validity verification of the first signing request is not passed; and if the identification information of the first object corresponding to the target mortgage data stored in the first intelligent contract is consistent with the identification information of the first object carried by the first signing request, the third validity verification of the first signing request is passed.
And d, performing fourth validity verification on the first subscription request based on the identification information of the target bidding data and the identification information of the second object in the verification mode d.
The verification process of the verification mode comprises the following steps: based on the identification information of the targeted bid data, querying the first intelligent contract for the presence of the targeted bid data. If the target bid data does not exist, the fourth validity verification of the first subscription request fails. And if the target bidding data exists, verifying whether the identification information of the second object corresponding to the target bidding data stored in the first intelligent contract is consistent with the identification information of the second object carried by the first signing request.
If the identification information of the second object corresponding to the target mortgage data stored in the first intelligent contract is inconsistent with the identification information of the second object carried by the first signing request, the fourth validity verification of the first signing request is not passed; and if the identification information of the second object corresponding to the target mortgage data stored in the first intelligent contract is consistent with the identification information of the second object carried by the first signing request, the fourth validity verification of the first signing request is passed.
In the process of verifying the validity of the first subscription request, the verification manners may be freely combined, which is not limited in the embodiment of the present application. For example, the process of verifying the validity of the first subscription request may include the verification manner a, the verification manner b, the verification manner c, and the verification manner d. Of course, the process of verifying the validity of the first subscription request may also include only the verification manner a and the verification manner c.
Step 4011C, in response to the validity verification of the first subscription request passing, obtaining the target mortgage protocol and first information corresponding to the target mortgage protocol.
When the validity verification of the first subscription request passes, the first node device obtains a target mortgage protocol and first information corresponding to the target mortgage protocol.
In a possible implementation manner, for a case that the process of verifying the validity of the first subscription request includes a verification manner a, a verification manner b, a verification manner c, and a verification manner d, when all of the first validity verification, the second validity verification, the third validity verification, and the fourth validity verification of the first subscription request pass, it is indicated that the validity verification of the first subscription request passes. At this time, the first node device obtains the target mortgage protocol and the first information corresponding to the target mortgage protocol after the validity verification of the first subscription request is passed.
The target mortgage protocol may be derived directly based on the first subscription request. In one possible implementation manner, the first information corresponding to the target mortgage protocol includes identification information of the target mortgage protocol and second information corresponding to the target mortgage protocol. The second information corresponding to the target mortgage protocol includes, but is not limited to, identification information of the first object, identification information of the second object, identification information of the target mortgage data, identification information of the target bid data, a first subscription state, and identification information of the first subscription request.
In the second information corresponding to the target mortgage protocol, the identification information of the first object, the identification information of the second object, the identification information of the target mortgage data and the identification information of the target bid data can be directly obtained based on the information carried by the first subscription request.
The first subscription state may be a subscription state set for the target mortgage protocol by the first node device in response to the validity verification of the first subscription request. The first subscription status is used to indicate that the first object has subscribed. The identification information of the first subscription request may refer to digest information of the first subscription request, which is obtained by calculating the first subscription request using a hash function.
Step 4012: and storing the target mortgage protocol and first information corresponding to the target mortgage protocol in the block chain system.
After obtaining the target mortgage protocol and the first information corresponding to the target mortgage protocol, the first node device may store the target mortgage protocol and the first information corresponding to the target mortgage protocol in the block chain system. In one possible implementation manner, the blockchain system includes a first intelligent contract, and the storing the target mortgage protocol and first information corresponding to the target mortgage protocol in the blockchain system includes: and storing the target mortgage protocol and first information corresponding to the target mortgage protocol in a first intelligent contract.
For the case that the first information corresponding to the target mortgage protocol includes the identification information of the target mortgage protocol and the second information corresponding to the target mortgage protocol, the process of storing the target mortgage protocol and the first information corresponding to the target mortgage protocol in the first intelligent contract may be: and writing the identification information of the target mortgage protocol as a Key word (Key) and the second information corresponding to the target mortgage protocol and the target mortgage protocol as a Value (Value) into the first intelligent contract.
In one possible implementation manner, after the identification information of the target mortgage protocol is used as a key and the second information corresponding to the target mortgage protocol and the target mortgage protocol is used as a value and written into the first intelligent contract, the execution result of the first subscription request may be obtained. The execution result of the first subscription request includes, but is not limited to, a validity verification result of the first subscription request and an execution state of the above-described process of writing into the first smart contract.
After obtaining the execution result of the first subscription request, the first node device may initiate a consensus process on the execution result of the first subscription request in the blockchain system, so as to determine whether the execution result of the first subscription request is accurate by the node device in the blockchain system.
In one possible implementation manner, the first node device may package an execution result of the first subscription request, and generate the target block. And then respectively sending the target block to other node equipment according to the node equipment identification of other node equipment in the block chain system, wherein the other node equipment can verify the target block and respectively broadcast the verification result in the block chain system. When the number of node devices that pass the verification result in the blockchain system is greater than the reference ratio, the first node device may determine that the consensus of the target block passes, that is, the consensus of the execution result of the first subscription request passes.
The reference proportion refers to a proportion that the number of the node devices passing the verification result accounts for the number of all the node devices in the block chain system, and the reference proportion may be set empirically or may be freely adjusted according to an application scenario, which is not limited in the embodiment of the present application. For example, the reference ratio may be set to 1/3 or the like. The consensus process described above may be implemented based on a consensus mechanism, which may be, for example, a workload proving mechanism, a rights proving mechanism, or the like.
When the consensus of the execution result of the first subscription request passes, the first node device stores the execution result of the first subscription request on the target block chain. The target block chain refers to a block chain for storing the data related to the mortgage service in the block chain system.
After the execution result of the first subscription request is stored in the target block chain, it is effective to explain the process of writing the identification information of the target mortgage protocol as a key word and the second information corresponding to the target mortgage protocol and the target mortgage protocol as a value into the first intelligent contract.
In a possible implementation manner, after the first node device stores the execution result of the first subscription request on the target block chain, the execution result of the first subscription request may be sent to the third node device. And the third node equipment informs the first object and the second object of the execution result of the first signing request through the mortgage platform.
Step 4013: and updating first information corresponding to the target mortgage protocol in the block chain system based on a second signing request of the second object for the target mortgage protocol, and taking the updated first information as target information corresponding to the target mortgage protocol.
In one possible implementation manner, the implementation procedure of this step includes steps 4013A to 4013C:
step 4013A obtains a second subscription request of the second object for the target mortgage protocol.
The second subscription request may be sent by the third node device to the first node device. The mortgage platform can display specific contents of the target mortgage protocol for the login object on the mortgage platform to view. The second object may issue a second subscription request for the target mortgage protocol on the mortgage platform. The third node device then sends the second subscription request to the first node device.
In a possible implementation manner, the second subscription request may carry a digital signature of the second object and a public key of the second object, and the first node device performs validity verification on the second subscription request based on the digital signature of the second object after acquiring the second subscription request; when the validity of the second subscription request is verified, step 4013B is performed again. The process of performing validity verification on the second subscription request based on the digital signature of the second object may refer to step 4011A, which is not described herein again.
Step 4013B, performing validity verification on the second subscription request.
In one possible implementation manner, the second subscription request carries one or more of identification information of the target mortgage protocol, identification information of the second intelligent contract, identification information of an identity certificate of the second object, a public key of the second object, identification information of the target mortgage data, identification information of the target bid data, identification information of the first object, identification information of the second object, and identification information of the first subscription request.
In a possible implementation manner, the process of verifying the validity of the second subscription request by the first node device includes one or more of the following verification manners:
and the verification mode a is used for performing first validity verification on the second signing request based on the identification information of the second intelligent contract.
And b, performing second validity verification on the second signing request based on the identification information of the identity certificate of the second object and the public key of the second object in the verification mode b.
And c, performing third validity verification on the second subscription request based on the identification information of the target mortgage protocol, the identification information of the first subscription request, the identification information of the target mortgage data, the identification information of the target bid data, the identification information of the first object and the identification information of the second object.
The verification process of the verification mode comprises the following steps: and inquiring whether the target mortgage protocol exists in the first intelligent contract or not based on the identification information of the target mortgage protocol. If the target mortgage protocol does not exist, the third validity verification of the second subscription request is not passed;
and if the target mortgage protocol exists, verifying whether the signing state of the target mortgage protocol stored in the first intelligent contract is the first signing state. If the signing state of the target mortgage protocol stored in the first intelligent contract is not the first signing state, the third validity verification of the second signing request is not passed;
if the target mortgage protocol exists and the signing state of the target mortgage protocol stored in the first intelligent contract is the first signing state, whether the target mortgage protocol stored in the first intelligent contract is consistent with the target mortgage protocol carried by the second signing request is verified, and whether the identification information of the first object, the identification information of the second object, the identification information of the target mortgage data, the identification information of the target bidding data, the identification information of the first signing request, the identification information of the first object carried by the second signing request, the identification information of the second object, the identification information of the target mortgage data, the identification information of the target bidding data and the identification information of the first signing request are consistent in the first information corresponding to the target mortgage protocol stored in the first intelligent contract is verified respectively. If any one of the information is inconsistent, the third validity verification of the second subscription request is not passed; and if the information is all consistent, the third validity verification of the second subscription request is passed.
In the process of verifying the validity of the second subscription request, the verification manners may be freely combined, which is not limited in the embodiment of the present application. For example, the process of verifying the validity of the second subscription request may include the verification manner a, the verification manner b, and the verification manner c. Of course, the process of verifying the validity of the second subscription request may also include only the verification manner a and the verification manner c.
Step 4013C, in response to the validity verification of the second subscription request passing, updating the first information corresponding to the target mortgage protocol in the block chain system, and taking the updated first information as the target information corresponding to the target mortgage protocol.
In a possible implementation manner, for a case that the process of verifying the validity of the second subscription request includes a verification manner a, a verification manner b, and a verification manner c, when all of the first validity verification, the second validity verification, and the third validity verification of the second subscription request pass, it is described that the validity verification of the second subscription request passes. At this time, the first node device updates first information corresponding to the target mortgage protocol in the block chain system after the validity verification of the second subscription request is passed, and takes the updated first information as target information corresponding to the target mortgage protocol.
In one possible implementation manner, for a case where the target mortgage protocol and the first information corresponding to the target mortgage protocol are stored in the first intelligent contract, updating the first information corresponding to the target mortgage protocol in the blockchain system includes: and updating first information corresponding to the target mortgage protocol in the first intelligent contract.
The first information corresponding to the target mortgage protocol comprises a first signing state. The process of the first node device updating the first information corresponding to the target mortgage protocol in the first intelligent contract may be: and updating the first signing state in the first information corresponding to the target mortgage protocol in the first intelligent contract into a second signing state, and adding the identification information of the second signing request into the first information corresponding to the target mortgage protocol in the first intelligent contract. The second subscription status is used to indicate that both the first object and the second object are subscribed, that is, the second subscription status indicates that the target mortgage agreement is in effect. And after the updating process, the updated first information is used as the target information corresponding to the target mortgage protocol.
After the first information corresponding to the target mortgage protocol in the first intelligent contract is updated, the execution result of the second signing request can be obtained. The execution result of the second subscription request includes, but is not limited to, a validity verification result of the second subscription request and an execution state of the above-mentioned update procedure.
After obtaining the execution result of the second subscription request, the first node device may initiate a consensus process for the execution result of the second subscription request in the blockchain system. And storing the execution result of the second subscription request on the target block chain in response to the consensus pass of the execution result of the second subscription request. After the execution result of the second subscription request is stored in the target block chain, it is indicated that the updating process of the first information is valid.
In one possible implementation, the first node device may send an execution result of the second subscription request to the third node device. And the third node equipment informs the first object and the second object of the execution result of the second subscription request through the mortgage platform.
Based on the above steps 4011 to 4013, the first node device stores the target mortgage protocol and target information corresponding to the target mortgage protocol in the block chain system. And then, based on the target mortgage protocol in the block chain system and target information corresponding to the target mortgage protocol, creating a business processing task corresponding to the target mortgage protocol. In one possible implementation manner, the process of the first node device creating the service processing task corresponding to the target mortgage protocol based on the target mortgage protocol and the target information corresponding to the target mortgage protocol includes the following two steps:
step 1: and generating a service processing request corresponding to the target mortgage protocol based on the target mortgage protocol in the block chain system and target information corresponding to the target mortgage protocol.
The agreement terms that the first object and the second object should fulfill can be known based on the target mortgage protocol in the blockchain system and the target information corresponding to the target mortgage protocol. The first node device may generate a service processing request corresponding to the target mortgage protocol by invoking the first intelligent contract. The service processing request comprises a service processing task to be executed.
Step 2: and creating a business processing task corresponding to the business processing request based on the business processing request.
The first node device may invoke a predictive-machine intelligence contract based on the service processing request to create a service processing task corresponding to the service processing request. The intelligent contract of the prediction machine is used for creating tasks which need to be executed by the node equipment corresponding to the prediction machine.
The business processing tasks are related to agreement terms in the targeted mortgage agreement. Illustratively, the business process task may be informing a banking institution to transfer a prescribed amount of funds from the account of the second object to the account of the first object; the business processing task can also be that if the mortgage period expires and the first object does not settle the debt according to the agreement of the agreement terms, the mortgage articles are auctioned according to the agreement of the agreement terms, and then funds obtained by the auctioning are transferred to the account of the second object.
It should be noted that, before performing steps 4011 to 4013, the first node device needs to store the second intelligent contract, the target mortgage data, and the target bid data in the blockchain system, and this process is detailed in the embodiment shown in fig. 5, and will not be described herein again.
In step 402, the service processing task is sent to the second node device, and the second node device is configured to execute the service processing task and return to the execution data of the service processing task.
And after the business processing task is created, sending the business processing task to second node equipment outside the block chain system. The second node device is the node device corresponding to the prediction machine. The second node equipment can automatically execute the business processing task, reduce the loss of the rights and interests of the mortgage persons or the mortgage righters caused by not fulfilling the mortgage protocol, and assist the better development of the mortgage industry.
And after receiving the service processing task, the second node equipment can automatically execute the service processing task and acquire the execution data of the service processing task. The execution data of the business processing task refers to related data obtained in the process of executing the business processing task. The execution data of the business process task may refer to bank fund transfer data obtained in the course of executing the business process task informing the banking institution to transfer a prescribed amount of funds from the account of the second object to the account of the first object.
And after acquiring the execution data of the service processing task, the second node equipment returns the execution data of the service processing task to the first node equipment. The first node device receives the execution data of the service processing task returned by the second node device, and then executes step 403.
In a possible implementation manner, after receiving the execution data of the service processing task returned by the second node device, the first node device first adds the execution data of the service processing task to the intelligent contract of the language prediction machine, and then writes the execution data of the service processing task into the first intelligent contract.
In step 403, target information corresponding to the target mortgage protocol is updated based on the execution data of the service processing task returned by the second node device.
After the execution data of the service processing task is written into the first intelligent contract, the first node device may invoke the first intelligent contract according to the execution data of the service processing task, and update the target information corresponding to the target mortgage protocol.
In one possible implementation, the target information corresponding to the target mortgage protocol includes a first fulfillment state. The process of updating the target information corresponding to the target mortgage protocol by the first node device is as follows: and according to the execution data of the service processing task, determining a second fulfillment state and certification information corresponding to the second fulfillment state, updating the first fulfillment state in the target information corresponding to the target mortgage protocol to the second fulfillment state, and adding the certification information corresponding to the second fulfillment state to the target information corresponding to the target mortgage protocol.
Illustratively, a first performance state of the target mortgage is unfulfilled by the second object when the performance data of the business processing task indicates that a prescribed amount of funds have been transferred from the account of the second object into the account of the first object. The attestation information corresponding to the second fulfillment state is bank fund transfer data.
In one possible implementation manner, the first object and the second object may query, in real time, target information corresponding to a target mortgage protocol stored in the blockchain system through the mortgage platform to obtain a performance of the target mortgage protocol by the first object or the second object.
And automatically creating a service processing task corresponding to the target mortgage protocol based on the target mortgage protocol stored in the block chain system and target information corresponding to the target mortgage protocol, and further automatically executing the service processing task through the second node equipment. Based on the service processing process, the agreement terms in the target mortgage agreement can be ensured to be automatically fulfilled, the phenomenon that the mortgage persons or the mortgage obligees do not fulfill the agreement terms is reduced, the success rate of fulfilling the agreement terms in the target mortgage agreement is favorably improved, the risk of the mortgage service is reduced, and the processing effect of the mortgage service is better.
The embodiment of the present application further provides a service processing method based on a block chain, which is applied to any first node device in a block chain system as an example. The block chain system stores a target mortgage protocol and target information corresponding to the target mortgage protocol. As shown in fig. 5, the method provided by the embodiment of the present application may include the following steps:
in step 501, information corresponding to a second intelligent contract and a second intelligent contract is obtained based on the first storage request, and the information corresponding to the second intelligent contract and the second intelligent contract is stored in the blockchain system.
Wherein the second intelligent contract is an intelligent contract for signing a mortgage protocol. In one possible implementation, the implementation process of step 501 includes steps 5011 to 5013:
step 5011: a first storage request is obtained, and the first storage request comprises a second intelligent contract.
The first storage request may be sent by the third node device to the first node device. The mortgage platform corresponding to the third node device may create a second intelligent contract to be stored, and the third node device may generate a first storage request based on the second intelligent contract created by the mortgage platform, and send the first storage request to the first node device in the block chain system.
In a possible implementation manner, the first storage request may carry a digital signature of the mortgage platform and a public key of the mortgage platform, and the first node device performs validity verification on the first storage request based on the digital signature of the mortgage platform after acquiring the first storage request; when the validity of the first storage request is verified, step 5012 is performed. The process of verifying the validity of the first storage request based on the digital signature of the mortgage platform may be referred to as step 4011A, and details are not described here.
In a possible implementation manner, before the first node device obtains the first storage request, the first node device needs to store the qualification certificate of the mortgage platform corresponding to the third node device in the blockchain system. The certification Certificate of the mortgage platform is issued by a CA (Certificate Authority) organization for the mortgage platform, and can prove the legality of a public key and a private key of the mortgage platform and prove that the mortgage platform has the certification for issuing the second intelligent contract.
In one possible implementation, the process of the first node device storing the qualification certificate of the mortgage platform in the blockchain system includes steps 5011A and 5011B:
in step 5011A, a fourth storage request is obtained, where the fourth storage request includes a qualification certificate of the mortgage platform.
Wherein the fourth storage request may be sent by the fourth node device to the first node device. The fourth node device is a node device corresponding to the CA mechanism.
Before the first node device obtains the fourth storage request, the CA organization needs to issue a qualification certificate for the mortgage platform. The process is as follows: the third node equipment sends a certificate acquisition request to a CA (certificate authority), wherein the certificate acquisition request comprises a public key locally generated by the mortgage platform, qualification information of the mortgage platform and a digital signature of the mortgage platform; a CA mechanism receives a certificate acquisition request sent by a third node device; in response to the certificate acquisition request passing the verification, the CA authority issues a qualification certificate for the mortgage platform. The certificate of qualification includes the digital signature of the CA organization.
After the CA organization issues the warranty certificate for the mortgage platform, the fourth node equipment sends a fourth storage request to the first node equipment, so that the warranty certificate of the mortgage platform is stored in the blockchain system. In one possible implementation, the fourth node device may send the fourth storage request to the first node device in the form of a transaction.
After obtaining the fourth storage request, the first node device may perform validity verification on the fourth storage request based on a digital signature of a CA authority in the certificate of qualification. After the validity of the fourth storage request is verified, step 5011B is executed again.
In step 5011B, the warranty certificate of the mortgage platform is stored in the blockchain system.
In one possible implementation manner, the implementation procedure of this step may be: calculating the qualification certificate of the mortgage platform by utilizing a Hash function to obtain the identification information of the qualification certificate of the mortgage platform; and inquiring whether the qualification certificate of the mortgage platform exists in the first intelligent contract according to the identification information of the qualification certificate of the mortgage platform. If the qualification certificate of the mortgage platform already exists, returning a result of execution failure; and if the qualification certificate of the mortgage platform does not exist, using the identification information of the qualification certificate as a keyword, and writing the qualification certificate as a value into a first intelligent contract in the block chain system.
After the identification information of the qualification certificate is used as a keyword and the qualification certificate is used as a value to be written into the first intelligent contract, the execution result of the fourth storage request can be obtained. The execution result of the fourth storage request includes, but is not limited to, the verification result of the fourth storage request and the execution state of the process written to the first smart contract.
In response to the consensus pass of the execution result of the fourth storage request, the first node device stores the execution result of the fourth storage request on the target blockchain. At this time, it is effective to explain the process of writing the identification information of the qualification certificate as a key and the qualification certificate as a value into the first intelligent contract in the blockchain system.
In a possible implementation manner, the execution process of the step 5011B may be implemented by a virtual machine in the first node device.
In one possible implementation, after storing the qualification certificate of the mortgage platform in the blockchain system, the first node device may send an execution result of the fourth storage request to the fourth node device. The fourth node device may send the qualification certificate and the identification information of the qualification certificate to the third node device, so that the third node device stores the qualification certificate and the identification information of the qualification certificate.
Step 5012: and performing validity verification on the first storage request.
In one possible implementation, the first storage request carries identification information of the qualification certificate of the mortgage platform and a public key of the mortgage platform. The process that the first node device carries out validity verification on the first storage request comprises the following steps:
calculating the second intelligent contract by utilizing a hash function to obtain the identification information of the second intelligent contract; and inquiring whether the second intelligent contract exists in the blockchain system based on the identification information of the second intelligent contract. If the second intelligent contract already exists, the validity verification of the first storage request is not passed.
And if the second intelligent contract does not exist, inquiring whether the qualification certificate of the mortgage platform exists in the first intelligent contract based on the identification information of the qualification certificate of the mortgage platform. If the qualification certificate of the mortgage platform does not exist, the validity verification of the first storage request is not passed. If the qualification certificate of the mortgage platform exists, verifying whether a public key in the qualification certificate of the mortgage platform stored in the first intelligent contract is consistent with a public key carried by the first storage request; if the public key in the qualification certificate of the mortgage platform stored in the first intelligent contract is inconsistent with the public key carried by the first storage request, the validity verification of the first storage request is not passed; and if the public key in the qualification certificate of the mortgage platform stored in the first intelligent contract is consistent with the public key carried by the first storage request, the validity verification of the first storage request is passed.
Step 5013: responding to the validity verification of the first storage request, and acquiring a second intelligent contract and information corresponding to the second intelligent contract; and storing the second intelligent contract and information corresponding to the second intelligent contract in the blockchain system.
The information corresponding to the second intelligent contract may refer to identification information of the second intelligent contract. The second intelligent contract can be directly obtained based on the first storage request passing the validity verification, and the identification information of the second intelligent contract can be obtained by calculating the second intelligent contract by using a hash function.
In one possible implementation, the process of storing the second intelligent contract and the information corresponding to the second intelligent contract in the blockchain system is as follows: and taking the identification information of the second intelligent contract as a key word, and writing the second intelligent contract as content into an intelligent contract storage area in the block chain system.
In one possible implementation manner, after the identification information of the second intelligent contract is used as a key and the second intelligent contract is used as content to be written into the intelligent contract storage area in the block chain system, the execution result of the first storage request can be obtained. The execution result of the first storage request includes, but is not limited to, a validity verification result of the first storage request and the execution state of the process written into the intelligent contract storage area in the blockchain system.
In response to the consensus pass of the execution result of the first storage request, the first node device stores the execution result of the first storage request on the target blockchain. After the execution result of the first storage request is stored in the target block chain, it is effective to describe a process of writing the second intelligent contract as content into the intelligent contract storage area in the block chain system, with the identification information of the second intelligent contract as a key.
In one possible implementation manner, after storing the second intelligent contract and the information corresponding to the second intelligent contract in the blockchain system, the first node device may send the identification information of the second intelligent contract and the execution result of the first storage request to the third node device, so that the third node device stores the identification information of the second intelligent contract and the execution result of the first storage request.
In step 502, based on the second storage request, the target mortgage data and the information corresponding to the target mortgage data are obtained, and the target mortgage data and the information corresponding to the target mortgage data are stored in the block chain system.
The target mortgage data refers to data related to the object to be mortgaged, and includes, but is not limited to, detailed information of the object to be mortgaged, the minimum price of the mortgage, the duration of the mortgage, and the like. This step may be implemented by invoking a mortgage data publishing operation in the first intelligent contract. In one possible implementation manner, the implementation process of step 502 includes steps 5021 to 5023:
step 5021: a second storage request is obtained, the second storage request including target mortgage data.
The second storage request may be sent by the third node device to the first node device. The first object can log in the mortgage platform, then target mortgage data is input, the third node device generates a second storage request based on the target mortgage data input by the first object, and the second storage request is sent to the first node device.
Before logging in the mortgage platform to input target mortgage data, the first object needs to perform real-name authentication on the mortgage platform, and then the mortgage platform generates an asymmetric public key and an asymmetric private key for the first object.
In a possible implementation manner, the second request may carry the digital signature of the first object and the public key of the first object, and the first node device performs validity verification on the second storage request based on the digital signature of the first object after acquiring the second request; when the validity of the second request is verified, step 5022 is performed. The process of performing validity verification on the second storage request based on the digital signature of the first object may be referred to in step 4011A, and details are not described here.
In one possible implementation, the first node device needs to store the identity certificate of the first object in the blockchain system before acquiring the second storage request. Wherein the identity certificate of the first object issued by the CA authority for the first object is capable of proving the validity of the public key and the private key of the first object and proving the validity of the identity of the first object.
In a possible implementation manner, the procedure for the first node device to store the identity certificate of the first object in the blockchain system may be referred to as step 5011A and step 5011B, and is not described herein again.
In one possible implementation, after storing the identity certificate of the first object in the blockchain system, the execution result of the storage request of the identity certificate of the first object may be sent to the fourth node device. The fourth node device may send the identity certificate of the first object and the identification information of the identity certificate of the first object to the third node device, so that the third node device stores the identity certificate of the first object and the identification information of the identity certificate of the first object. The third node device may further send the identity certificate of the first object and the identification information of the identity certificate of the first object to the terminal of the first object, and the terminal of the first object stores the identity certificate of the first object and the identification information of the identity certificate of the first object.
Step 5022: and performing validity verification on the second storage request.
In one possible implementation, the second storage request carries one or more of identification information of the first object, identification information of the second smart contract, identification information of an identity certificate of the first object, and a public key of the first object. In one possible implementation, the process of verifying the validity of the second storage request by the first node includes one or more of the following verification methods:
and the verification mode a is used for performing first validity verification on the second storage request based on the identification information of the second intelligent contract.
The verification process of the verification mode comprises the following steps: and inquiring whether the second intelligent contract is deployed or not in the blockchain system based on the identification information of the second intelligent contract. If the second intelligent contract is already deployed, the first validity verification of the second storage request is passed; if the second intelligent contract is not deployed, the first validity verification of the second storage request fails.
And b, performing second validity verification on the second storage request based on the target mortgage data in the second storage request.
The verification process of the verification mode comprises the following steps: calculating the target mortgage data by utilizing a Hash function to obtain the identification information of the target mortgage data; and inquiring whether the target mortgage data exists in the first intelligent contract or not based on the identification information of the target mortgage data. If the target mortgage data exists, the second validity verification of the second storage request is not passed; if the target mortgage data does not exist, the second validity verification of the second storage request is passed.
And c, performing third validity verification on the second storage request based on the identification information of the identity certificate of the first object and the public key of the first object.
The verification process of the verification mode comprises the following steps: and inquiring whether the identity certificate of the first object exists in the first intelligent contract or not based on the identification information of the identity certificate of the first object. If the identity certificate of the first object does not exist, the third validity verification of the second storage request is not passed. And if the identity certificate of the first object exists, verifying whether the public key in the identity certificate of the first object stored in the first intelligent contract is consistent with the public key carried by the second storage request.
If the public key in the identity certificate of the first object stored in the first intelligent contract is inconsistent with the public key carried by the second storage request, the third validity verification of the second storage request is not passed; and if the public key in the identity certificate of the first object stored in the first intelligent contract is consistent with the public key carried by the second storage request, the third validity verification of the second storage request is passed.
In the process of verifying the validity of the second storage request, the verification manners may be freely combined, which is not limited in the embodiment of the present application. Illustratively, the process of verifying the validity of the second storage request may include the verification manner a, the verification manner b, and the verification manner c described above. Of course, the process of verifying the validity of the second storage request may also include only the verification method a and the verification method c.
Step 5023: and responding to the validity verification of the second storage request, acquiring the target mortgage data and information corresponding to the target mortgage data, and storing the target mortgage data and the information corresponding to the target mortgage data in the block chain system.
In a possible implementation manner, for a case that the process of verifying the validity of the second storage request includes a verification manner a, a verification manner b, and a verification manner c, when all of the first validity verification, the second validity verification, and the third validity verification of the second storage request pass, it is described that the validity verification of the second storage request passes. At this time, the target mortgage data and information corresponding to the target mortgage data are acquired.
The information corresponding to the target mortgage data includes, but is not limited to, identification information of the target mortgage data, identification information of the first object, and identification information of the second storage request. The identification information of the first object can be directly obtained based on the information carried by the second storage request; the identification information of the target mortgage data can be obtained by calculating the target mortgage data by utilizing a hash function; the identification information of the second storage request may be calculated by using a hash function for the second storage request.
After the target mortgage data and the information corresponding to the target mortgage data are obtained, the target mortgage data and the information corresponding to the target mortgage data are stored in the block chain system. In one possible implementation, the process of storing the target mortgage data and the information corresponding to the target mortgage data in the block chain system is as follows: and writing the identification information of the target mortgage data as a key word, and the target mortgage data, the identification information of the first object and the identification information of the second storage request as values into a first intelligent contract in the block chain system.
In one possible implementation manner, after the identification information of the target mortgage data is used as a key, and the target mortgage data, the identification information of the first object and the identification information of the second storage request are used as values to be written into the first intelligent contract in the block chain system, the execution result of the second storage request may be obtained. The execution result of the second storage request includes, but is not limited to, a validity verification result of the second storage request and the execution state of the process written to the first smart contract.
The execution result of the second storage request is stored on the target block chain in response to the consensus pass of the execution result of the second storage request. After the execution result of the second storage request is stored in the target block chain, it is effective to describe a process of writing the identification information of the target mortgage data as a key, and the identification information of the target mortgage data, the first object, and the identification information of the second storage request as values into the first intelligent contract in the block chain system.
In step 503, information corresponding to the target bid data and the target bid data is obtained based on the third storage request for the target mortgage data, and the information corresponding to the target bid data and the target bid data is stored in the blockchain system.
The target bidding data is data of the second object bidding for the target mortgage data, and includes but is not limited to bidding price, bidder qualification information and other data. This step may be accomplished by invoking a bidding operation in the first intelligent contract. In one possible implementation manner, the implementation procedure of step 503 includes steps 5031 to 5033:
step 5031: and acquiring a third storage request aiming at the target mortgage data, wherein the third storage request comprises the target bid data.
The third storage request may be sent by the third node device to the first node device. The second object can log in the mortgage platform, target bidding data are input according to the target mortgage data, the third node device generates a third storage request based on the target bidding data input by the second object, and the third storage request is sent to the first node device.
The implementation process of this step can be referred to as step 5021, and is not described here again.
Step 5032: and verifying the validity of the third storage request.
In one possible implementation, the third storage request carries one or more of identification information of the second object, identification information of the second smart contract, identification information of the target mortgage data, identification information of an identity certificate of the second object, and a public key of the second object. In one possible implementation manner, the process of verifying the validity of the third storage request by the first node device includes one or more of the following verification manners:
and the verification mode a is used for performing first validity verification on the third storage request based on the identification information of the second intelligent contract.
The verification process of the verification mode is detailed in step 5022, and is not described herein again.
And b, performing second validity verification on the third storage request based on the identification information of the target mortgage data.
The verification process of the verification mode comprises the following steps: and inquiring whether the target mortgage data exists in the first intelligent contract or not based on the identification information of the target mortgage data. If the target mortgage data does not exist, the second validity verification of the third storage request is not passed; if the target mortgage data exists, the second validity verification of the third storage request fails.
And c, performing third validity verification on the third storage request based on the identification information of the identity certificate of the second object and the public key of the second object.
The verification process of the verification mode is detailed in step 5022, and is not described herein again.
In the process of verifying the validity of the third storage request, the verification manners may be freely combined, which is not limited in the embodiment of the present application. Illustratively, the process of verifying the validity of the third storage request may include the verification manner a, the verification manner b, and the verification manner c described above. Of course, the process of verifying the validity of the third storage request may also include only the verification method a and the verification method c.
Step 5033: and responding to the validity verification of the third storage request, acquiring the target bidding data and the information corresponding to the target bidding data, and storing the target bidding data and the information corresponding to the target bidding data in the block chain system.
The implementation process of this step can be referred to as step 5023, and is not described here again.
It should be noted that, for the same target mortgage data, there may be a plurality of bid data. The plurality of bidding data may correspond to the same second object or different second objects, which is not limited in the embodiments of the present application.
After the first node device stores the target bidding data and the information corresponding to the target bidding data in the block chain system, the first node device can also take the identification information of the target mortgage data as a key word and write the target bidding data as a value into the bidding table so as to conveniently and quickly query the target bidding data corresponding to the target mortgage data in the bidding table.
In step 504, a business processing task corresponding to the target mortgage protocol is created based on the target mortgage protocol and target information corresponding to the target mortgage protocol.
The implementation process of this step is detailed in step 401, and is not described herein again.
In step 505, the service processing task is sent to the second node device, and the second node device is configured to execute the service processing task and return to the execution data of the service processing task.
The implementation process of this step is detailed in step 402, and is not described herein again.
In step 506, the target information corresponding to the target mortgage protocol is updated based on the execution data of the service processing task returned by the second node device.
The implementation process of this step is detailed in step 403, and is not described herein again.
In the embodiment of the application, identity certificates of the first object and the second object are linked up for storage, the signature process of the mortgage data, the bid data and the complete target mortgage protocol is linked up in the form of an intelligent contract, and the second node equipment corresponding to the prediction machine ensures that protocol terms in the target mortgage protocol are automatically fulfilled, so that potential risks of the mortgage industry are solved, the service quality of the mortgage industry is improved, and the better development of the mortgage industry is assisted.
In the embodiment of the application, based on the target mortgage protocol stored in the block chain system and the target information corresponding to the target mortgage protocol, the service processing task corresponding to the target mortgage protocol is automatically created, and then the service processing task is automatically executed through the second node device. Based on the service processing process, the agreement terms in the target mortgage agreement can be ensured to be automatically fulfilled, the phenomenon that the mortgage persons or the mortgage obligees do not fulfill the agreement terms is reduced, the success rate of fulfilling the agreement terms in the target mortgage agreement is favorably improved, the risk of the mortgage service is reduced, and the processing effect of the mortgage service is better.
Based on the same technical concept, referring to fig. 6, an embodiment of the present application provides a service processing apparatus based on a block chain, where the apparatus includes:
the creating module 601 is configured to create a service processing task corresponding to a target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol;
a sending module 602, configured to send the service processing task to a second node device, where the second node device is configured to execute the service processing task and return execution data of the service processing task;
the updating module 603 is configured to update target information corresponding to the target mortgage protocol based on execution data of the service processing task returned by the second node device.
In one possible implementation manner, the creating module 601 is configured to generate a service processing request corresponding to a target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol; and creating a business processing task corresponding to the business processing request based on the business processing request.
In one possible implementation, referring to fig. 7, the apparatus further includes:
the obtaining module 604 is configured to obtain a target mortgage protocol and first information corresponding to the target mortgage protocol based on a first subscription request of a first object to the target mortgage protocol;
a storage module 605, configured to store the target mortgage protocol and first information corresponding to the target mortgage protocol in the block chain system;
the updating module 603 is further configured to update first information corresponding to the target mortgage protocol in the block chain system based on a second subscription request of the second object for the target mortgage protocol, and use the updated first information as target information corresponding to the target mortgage protocol.
In one possible implementation, referring to fig. 8, the obtaining module 604 includes:
an obtaining unit 6041 configured to obtain a first subscription request of a first object to a target mortgage protocol;
a verification unit 6042 configured to perform validity verification on the first subscription request;
the obtaining unit 6041 is further configured to obtain the target mortgage protocol and the first information corresponding to the target mortgage protocol in response to the validity verification of the first subscription request being passed.
In one possible implementation manner, the block chain system includes a first intelligent contract, and the storage module 605 is configured to store the target mortgage protocol and first information corresponding to the target mortgage protocol in the first intelligent contract;
the updating module 603 is further configured to update first information corresponding to the target mortgage protocol in the first intelligent contract based on a second subscription request of the second object for the target mortgage protocol.
In one possible implementation manner, the first information corresponding to the target mortgage protocol includes identification information of the target mortgage protocol and second information corresponding to the target mortgage protocol; the storage module 605 is configured to write the identification information of the target mortgage protocol as a key and the second information corresponding to the target mortgage protocol and the target mortgage protocol as a value into the first intelligent contract.
In one possible implementation manner, the first subscription request carries one or more of identification information of the second intelligent contract, identification information of an identity certificate of the first object, a public key of the first object, identification information of the target mortgage data, identification information of the first object, identification information of the target bid data, and identification information of the second object; an authentication unit 6042 configured to perform one or more of the following authentication manners:
performing first validity verification on the first signing request based on the identification information of the second intelligent contract;
performing second validity verification on the first subscription request based on the identification information of the identity certificate of the first object and the public key of the first object;
performing third validity verification on the first subscription request based on the identification information of the target mortgage data and the identification information of the first object;
and performing fourth validity verification on the first subscription request based on the identification information of the target bidding data and the identification information of the second object.
In the embodiment of the application, based on the target mortgage protocol stored in the block chain system and the target information corresponding to the target mortgage protocol, the service processing task corresponding to the target mortgage protocol is automatically created, and then the service processing task is automatically executed through the second node device. Based on the service processing process, the agreement terms in the target mortgage agreement can be ensured to be automatically fulfilled, the phenomenon that the mortgage persons or the mortgage obligees do not fulfill the agreement terms is reduced, the success rate of fulfilling the agreement terms in the target mortgage agreement is favorably improved, the risk of the mortgage service is reduced, and the processing effect of the mortgage service is better.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The node device related to the above technical solution may be a terminal or a server, for example, fig. 9 is a schematic structural diagram of a terminal provided in the embodiment of the present application. The device may be a terminal, and may be, for example: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. A terminal may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, a terminal includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 902 is used for storing at least one instruction for execution by the processor 901 to implement the blockchain based traffic processing method provided by the method embodiments in the present application.
In some embodiments, the terminal may further include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a touch display screen 905, a camera assembly 906, an audio circuit 907, a positioning assembly 908, and a power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one, disposed on the front panel of the terminal; in other embodiments, the number of the display panels 905 may be at least two, and the two display panels are respectively disposed on different surfaces of the terminal or are in a folding design; in still other embodiments, the display 905 may be a flexible display, disposed on a curved surface or on a folded surface of the terminal. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones can be arranged at different parts of the terminal respectively. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic Location of the terminal to implement navigation or LBS (Location based service). The positioning component 908 may be a positioning component based on the GPS (Global positioning system) of the united states, the beidou system of china, the graves system of russia, or the galileo system of the european union.
The power supply 909 is used to supply power to each component in the terminal. The power source 909 may be alternating current, direct current, disposable or rechargeable. When power source 909 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal also includes one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the touch display 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for acquisition of motion data of a game or a user.
The gyroscope sensor 912 can detect the body direction and the rotation angle of the terminal, and the gyroscope sensor 912 and the acceleration sensor 911 cooperate to acquire the 3D motion of the user on the terminal. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 913 may be disposed at a side frame of the terminal and/or at a lower layer of the touch display 905. When the pressure sensor 913 is disposed on the side frame of the terminal, the user's holding signal to the terminal may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the touch display 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the terminal. When a physical key or vendor Logo is provided on the terminal, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the touch display 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 905 is turned down. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
A proximity sensor 916, also known as a distance sensor, is typically provided on the front panel of the terminal. The proximity sensor 916 is used to collect the distance between the user and the front face of the terminal. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal gradually decreases, the processor 901 controls the touch display 905 to switch from the bright screen state to the dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal gradually becomes larger, the processor 901 controls the touch display 905 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 9 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The node device according to the above technical solution may be a terminal or a server, for example, fig. 10 is a schematic structural diagram of a server provided in this embodiment, where the server may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1001 and one or more memories 1002, where at least one program code is stored in the one or more memories 1002, and the at least one program code is loaded and executed by the one or more processors 1001 to implement the partition chain based service Processing method provided in each method embodiment. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer device is also provided that includes a processor and a memory having at least one program code stored therein. The at least one program code is loaded and executed by one or more processors to implement any of the above-described blockchain-based traffic processing methods.
In an exemplary embodiment, a computer readable storage medium is further provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor of a computer device to implement any of the above-mentioned service processing methods based on a block chain.
Alternatively, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A service processing method based on a block chain is characterized in that the method is applied to any first node device in a block chain system, a target mortgage protocol and target information corresponding to the target mortgage protocol are stored in the block chain system, and the method comprises the following steps:
based on the target mortgage protocol and target information corresponding to the target mortgage protocol, creating a service processing task corresponding to the target mortgage protocol;
sending the service processing task to second node equipment, wherein the second node equipment is used for executing the service processing task and returning execution data of the service processing task;
and updating target information corresponding to the target mortgage protocol based on the execution data of the service processing task returned by the second node equipment.
2. The method of claim 1, wherein creating the traffic processing task corresponding to the target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol comprises:
generating a service processing request corresponding to the target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol;
and creating a service processing task corresponding to the service processing request based on the service processing request.
3. The method of claim 1, wherein before creating the traffic processing task corresponding to the target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol, the method further comprises:
acquiring a target mortgage protocol and first information corresponding to the target mortgage protocol based on a first signing request of a first object to the target mortgage protocol;
storing the target mortgage protocol and first information corresponding to the target mortgage protocol in the block chain system;
and updating first information corresponding to the target mortgage protocol in the block chain system based on a second signing request of a second object for the target mortgage protocol, and taking the updated first information as target information corresponding to the target mortgage protocol.
4. The method of claim 3, wherein the obtaining the target mortgage protocol and the first information corresponding to the target mortgage protocol based on the first subscription request of the first object to the target mortgage protocol comprises:
acquiring a first signing request of the first object to a target mortgage protocol;
performing validity verification on the first subscription request;
and responding to the validity verification of the first subscription request, and acquiring the target mortgage protocol and first information corresponding to the target mortgage protocol.
5. The method according to claim 3 or 4, wherein the blockchain system includes a first intelligent contract, and the storing the target mortgage protocol and the first information corresponding to the target mortgage protocol in the blockchain system includes:
storing the target mortgage protocol and first information corresponding to the target mortgage protocol in the first intelligent contract;
the updating of the first information corresponding to the target mortgage protocol in the block chain system based on the second subscription request of the second object for the target mortgage protocol includes:
and updating first information corresponding to the target mortgage protocol in the first intelligent contract based on a second signing request of a second object for the target mortgage protocol.
6. The method according to claim 5, wherein the first information corresponding to the target mortgage protocol includes identification information of the target mortgage protocol and second information corresponding to the target mortgage protocol; the storing the target mortgage protocol and the first information corresponding to the target mortgage protocol in the first intelligent contract includes:
and writing the identification information of the target mortgage protocol as a key word and the second information corresponding to the target mortgage protocol and the target mortgage protocol as a value into the first intelligent contract.
7. The method of claim 4, wherein the first subscription request carries one or more of identification information of a second smart contract, identification information of an identity certificate of the first object, a public key of the first object, identification information of targeted mortgage data, identification information of the first object, identification information of targeted bid data, and identification information of the second object; the process of verifying the validity of the first subscription request includes one or more of the following verification methods:
performing first validity verification on the first signing request based on the identification information of the second intelligent contract;
performing second validity verification on the first subscription request based on the identification information of the identity certificate of the first object and the public key of the first object;
performing third validity verification on the first signing request based on the identification information of the target mortgage data and the identification information of the first object;
and performing fourth validity verification on the first subscription request based on the identification information of the target bidding data and the identification information of the second object.
8. An apparatus for processing block chain based services, the apparatus comprising:
the creating module is used for creating a service processing task corresponding to the target mortgage protocol based on the target mortgage protocol and target information corresponding to the target mortgage protocol;
a sending module, configured to send the service processing task to a second node device, where the second node device is configured to execute the service processing task and return execution data of the service processing task;
and the updating module is used for updating the target information corresponding to the target mortgage protocol based on the execution data of the service processing task returned by the second node equipment.
9. A computer device, characterized in that the computer device comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the service processing method based on block chains according to any one of claims 1 to 7.
10. A computer-readable storage medium, having at least one program code stored therein, the at least one program code being loaded and executed by a processor to implement the method for blockchain based service processing according to any one of claims 1 to 7.
CN201911376427.0A 2019-12-27 2019-12-27 Block chain-based service processing method, device, equipment and storage medium Active CN111080443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911376427.0A CN111080443B (en) 2019-12-27 2019-12-27 Block chain-based service processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911376427.0A CN111080443B (en) 2019-12-27 2019-12-27 Block chain-based service processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111080443A true CN111080443A (en) 2020-04-28
CN111080443B CN111080443B (en) 2023-06-23

Family

ID=70318513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911376427.0A Active CN111080443B (en) 2019-12-27 2019-12-27 Block chain-based service processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111080443B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348596A (en) * 2020-11-26 2021-02-09 中国联合网络通信集团有限公司 Bidding and quotation method, system, equipment and storage medium based on block chain
CN113595736A (en) * 2021-07-21 2021-11-02 深圳市信安数字科技有限公司 Block chain based information transmission method, system, device and storage medium
CN113672677A (en) * 2020-04-30 2021-11-19 比亚迪汽车工业有限公司 Operation obtaining method, device and equipment based on block chain and storage medium
CN114465817A (en) * 2022-03-22 2022-05-10 暨南大学 Digital certificate system and method based on TEE (text exchange engine) prediction machine cluster and block chain
CN115348262A (en) * 2021-04-27 2022-11-15 腾讯科技(深圳)有限公司 Cross-link operation execution method based on cross-link protocol and network system
CN116915760A (en) * 2023-09-12 2023-10-20 哈尔滨工程大学三亚南海创新发展基地 Full-network data communication packaging method and system based on http
US11848937B2 (en) * 2020-09-18 2023-12-19 Booz Allen Hamilton Inc. Secure communication using blockchain technology

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180113752A1 (en) * 2016-10-20 2018-04-26 International Business Machines Corporation Inter-ledger messaging in a blockchain
CN108346094A (en) * 2018-02-02 2018-07-31 中链科技有限公司 One kind pledging flow management method, system and computer readable storage medium
US20180260888A1 (en) * 2017-03-08 2018-09-13 Factom Validating Mortgage Documents
US20180260889A1 (en) * 2017-03-10 2018-09-13 Factom Sourcing Mortgage Documents via Blockchains
CN109584043A (en) * 2018-10-25 2019-04-05 平安科技(深圳)有限公司 Loan data processing method, device, equipment and storage medium based on block chain
CN110033244A (en) * 2019-03-15 2019-07-19 阿里巴巴集团控股有限公司 Intelligent contract based on block chain executes method and device and electronic equipment
US20190333142A1 (en) * 2018-04-27 2019-10-31 Sarah Apsel THOMAS Systems and methods for processing applicant information and administering a mortgage via blockchain-based smart contracts
WO2019227336A1 (en) * 2018-05-30 2019-12-05 重庆小雨点小额贷款有限公司 Blockchain-based information processing method and device, and blockchain network
CN110570289A (en) * 2019-09-13 2019-12-13 腾讯科技(深圳)有限公司 service processing method, device, equipment and storage medium based on block chain

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180113752A1 (en) * 2016-10-20 2018-04-26 International Business Machines Corporation Inter-ledger messaging in a blockchain
US20180260888A1 (en) * 2017-03-08 2018-09-13 Factom Validating Mortgage Documents
US20180260889A1 (en) * 2017-03-10 2018-09-13 Factom Sourcing Mortgage Documents via Blockchains
CN108346094A (en) * 2018-02-02 2018-07-31 中链科技有限公司 One kind pledging flow management method, system and computer readable storage medium
US20190333142A1 (en) * 2018-04-27 2019-10-31 Sarah Apsel THOMAS Systems and methods for processing applicant information and administering a mortgage via blockchain-based smart contracts
WO2019227336A1 (en) * 2018-05-30 2019-12-05 重庆小雨点小额贷款有限公司 Blockchain-based information processing method and device, and blockchain network
CN109584043A (en) * 2018-10-25 2019-04-05 平安科技(深圳)有限公司 Loan data processing method, device, equipment and storage medium based on block chain
CN110033244A (en) * 2019-03-15 2019-07-19 阿里巴巴集团控股有限公司 Intelligent contract based on block chain executes method and device and electronic equipment
CN110570289A (en) * 2019-09-13 2019-12-13 腾讯科技(深圳)有限公司 service processing method, device, equipment and storage medium based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李绮峰;霍红军;席国录;刘鹏展;: "最高额抵押贷款业务的法律风险及防范", 农业发展与金融, no. 01 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672677A (en) * 2020-04-30 2021-11-19 比亚迪汽车工业有限公司 Operation obtaining method, device and equipment based on block chain and storage medium
US11848937B2 (en) * 2020-09-18 2023-12-19 Booz Allen Hamilton Inc. Secure communication using blockchain technology
CN112348596A (en) * 2020-11-26 2021-02-09 中国联合网络通信集团有限公司 Bidding and quotation method, system, equipment and storage medium based on block chain
CN112348596B (en) * 2020-11-26 2023-08-11 中国联合网络通信集团有限公司 Bid quotation method, system, equipment and storage medium based on blockchain
CN115348262A (en) * 2021-04-27 2022-11-15 腾讯科技(深圳)有限公司 Cross-link operation execution method based on cross-link protocol and network system
CN115348262B (en) * 2021-04-27 2024-02-20 腾讯科技(深圳)有限公司 Cross-link operation execution method and network system based on cross-link protocol
CN113595736A (en) * 2021-07-21 2021-11-02 深圳市信安数字科技有限公司 Block chain based information transmission method, system, device and storage medium
CN113595736B (en) * 2021-07-21 2022-06-14 深圳市信安数字科技有限公司 Block chain based information transmission method, system, device and storage medium
CN114465817A (en) * 2022-03-22 2022-05-10 暨南大学 Digital certificate system and method based on TEE (text exchange engine) prediction machine cluster and block chain
CN114465817B (en) * 2022-03-22 2023-06-16 暨南大学 Digital certificate system and method based on TEE predictor clusters and blockchain
CN116915760A (en) * 2023-09-12 2023-10-20 哈尔滨工程大学三亚南海创新发展基地 Full-network data communication packaging method and system based on http
CN116915760B (en) * 2023-09-12 2023-12-26 哈尔滨工程大学三亚南海创新发展基地 Full-network data communication packaging method and system based on http

Also Published As

Publication number Publication date
CN111080443B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN109615515B (en) Credit right certificate transfer method, device, electronic equipment and storage medium
CN109615516B (en) Resource transfer method, device, electronic equipment and storage medium
CN111080443B (en) Block chain-based service processing method, device, equipment and storage medium
CN111245745B (en) Message sending method, device, node equipment and storage medium
CN108614878B (en) Protocol data management method, device, storage medium and system
CN109598142B (en) Credit right certificate generation method and device, electronic equipment and storage medium
CN110689460B (en) Traffic accident data processing method, device, equipment and medium based on block chain
US12088566B2 (en) User inviting method and apparatus, computer device, and computer-readable storage medium
KR20200003144A (en) Signature generation method, electronic device and storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
WO2020258748A1 (en) Bank card binding system, method and apparatus, and device and storage medium
CN110598482A (en) Block chain-based digital certificate management method, device, equipment and storage medium
CN110933113B (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
WO2021164321A1 (en) Block processing method and apparatus, and data query method and apparatus based on blockchain
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN110826103A (en) Block chain-based document authority processing method, device, equipment and storage medium
CN110942308A (en) Resource transfer method, device, computer equipment and storage medium
CN110598386B (en) Block chain-based data processing method, device, equipment and storage medium
CN110581891A (en) Game data processing method, device, equipment and storage medium based on block chain
CN111212074B (en) Blockchain-based qualification identification method, device, equipment and storage medium
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
CN112036887A (en) Resource transfer method, device, equipment and storage medium
CN111327427B (en) Method, device, node equipment, system and storage medium for submitting alternative blocks
CN112991069A (en) Resource processing method, device, 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
GR01 Patent grant
GR01 Patent grant