CN114913013B - House renting transaction system and house renting transaction method based on blockchain - Google Patents

House renting transaction system and house renting transaction method based on blockchain Download PDF

Info

Publication number
CN114913013B
CN114913013B CN202210521331.4A CN202210521331A CN114913013B CN 114913013 B CN114913013 B CN 114913013B CN 202210521331 A CN202210521331 A CN 202210521331A CN 114913013 B CN114913013 B CN 114913013B
Authority
CN
China
Prior art keywords
nodes
information
network
node
checking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210521331.4A
Other languages
Chinese (zh)
Other versions
CN114913013A (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.)
Jiangnan University
Original Assignee
Jiangnan University
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 Jiangnan University filed Critical Jiangnan University
Priority to CN202210521331.4A priority Critical patent/CN114913013B/en
Publication of CN114913013A publication Critical patent/CN114913013A/en
Application granted granted Critical
Publication of CN114913013B publication Critical patent/CN114913013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a block chain network, which consists of a central computing node and n (n > =2) common nodes; the central computing node has the capacity of generating blocks compared with the common node and has the highest security level; the network does not allow unauthorized nodes to join; meanwhile, m nodes (m < n/2) in the n nodes are respectively a group to form a secondary network, the nodes in each secondary network only check the account book with the nodes in the secondary network, and meanwhile, the secondary network randomly selects one node as a main node, and each main node forms a main network to check the account book; and the renting platform and the blockchain can be well combined together by making a communication protocol and standardizing a data interface, and the application optimizes the current POW consensus algorithm and network structure so as to better meet the real requirements of renting and blockchain. The whole network safety interval time is shortened, the whole network can save calculation power, and meanwhile, the safety interval time is shortened and the inquiry time is shortened.

Description

House renting transaction system and house renting transaction method based on blockchain
Technical Field
The application relates to the technical field of blockchains, in particular to a blockchain-based house renting transaction system, a house renting transaction method, equipment and a computer storage medium.
Background
The chinese rental market is developing rapidly, but the existing rental system has serious problems. The main problems are as follows:
(1) Interactive trust problem exists between consumers and house renting platforms
Since various commercial subjects exist in the house renting market, such as individual homeowners, various renting enterprises and the like, and the information is stored in different forms and operation flows, the information is very fragile to be transmitted between different nodes and is easily influenced, and the situation that the information of the house source actually issued by the homeowner is different from the information received by the tenant is possibly caused, so that the phenomenon of distortion of the renting information is caused. Therefore, a natural information barrier exists between a homeowner and a tenant, the trade between the homeowner and the tenant is realized only through a third party platform, whether the information exchange between the homeowner and the tenant is truly reliable or not only depends on the credibility of the third party platform, and the information exchange is difficult to distinguish for common people, so that the trade has danger and the credibility is poor. Meanwhile, the information authenticity and privacy security of the users of the leasing parties cannot be guaranteed.
(2) The cost of manpower resources is too high
In the general house renting process, there are processes of information collection, information search, information proofreading, contract signing, follow-up execution tracking of the contract and the like, and each link has a complex operation process, so that each party needs to put more effort. At the same time, the intermediary fee paid by the tenant is extremely high.
(3) Difficult to maintain
When the tenant needs to be protected, the tenant needs to search for and search for notarization of all data such as contracts, but the difficulty of data collection is increased in geometric difficulty along with the time, and meanwhile, the problem of data counterfeiting and the like exists.
Currently, in order to solve the above problems to maintain the stability of the rental market, there are the following methods:
(1) The problem of interactive trust is solved by the credit of the third party platform. The larger the scale of the house renting platform, the higher the social confidence of the house renting platform, and enterprises can not make counterfeits even more in consideration of the results of trust and bankruptcy. However, enterprises want to keep their own Gao Gongxin degrees against the driving force of everyone in the enterprise to maintain the enterprise. In addition, personal rights maintenance is also difficult.
(2) An online house renting platform is established to solve the manpower and source tracing problems. The software development system construction company provides traceability system software, hardware and network facilities, inputs data such as house source information and personal information into the system, changes mass paper data into on-line data, and mainly realizes functions such as house source management and inquiry, house renting and the like, so that the inquireability and traceability of the system and the like are realized, the house renting mode is simplified, and the integrity of house traceability information is ensured. However, the data of such a system is stored in a centralized manner, and this manner has the security drawbacks of easy data tampering, easy data operation record erasing, etc., so the obtained tracing information is not necessarily true. Meanwhile, the rented transaction still needs a platform for notarization, and resource waste is also caused.
The above methods all have certain problems, so a way of combining blockchains with a rental room platform to solve the problems is considered. The blockchain is used as a typical distributed account book technology, and the functions of data verification, sharing, calculation, storage and the like are supported through polygonal autonomous technical means such as consensus and the like. The block chain takes blocks as a storage unit and forms a single chain structure from the early to the late according to the time stamp. The information sharing among all nodes in the network is realized by utilizing a consensus mechanism; the integrity, the non-tamper resistance and the security of the information are ensured by using an asymmetric encryption technology; the autonomy of the blockchain is achieved by deploying intelligent contracts on the chain. In general, it constitutes a completely new, autonomous, distributed infrastructure and computing paradigm.
Therefore, the blockchain can effectively solve the problems of trust, human resource waste, reliable tracing and the like.
However, the following problems remain with existing blockchain technologies intended for application on rental-house platforms:
the bottom network technology of the block chain adopts a peer-to-peer network, namely a P2P network. This is a distributed network communication technology, also known as a "peer-to-peer network". Unlike the conventional client/server (C/S) architecture, there is no master-slave partition between nodes in the P2P network, and the roles are peer-to-peer, and each node may be either a server or a client.
Meanwhile, as part of the blockchain network, each node has the capability of generating blocks, but only the first node to solve the problem qualifies for generating new blocks, because of the rewarding nature of the blockchain, the nodes generating the blocks first are motivated, so that competition relations exist among the nodes, and each node strives to increase its own computing power to fight the qualification of generating the blocks.
The PoW works as to how to calculate the target hash value of a block, so that a user can perform a great amount of exhaustive operations, and meanwhile, the hash value must meet some necessary conditions, which are actually a difficulty coefficient value in a blockchain, and finally, the workload proof is achieved by whether the calculated hash value accords with the previous N bits to be 0.
The POW consensus algorithm maintains the aggressiveness of the nodes by rewarding the nodes that generate the blocks, and the nodes are in a competitive relationship. The generation of blocks is necessary for the blockchain applied to the house renting system, and the blocks are of non-rewarding nature (self rewarding is meaningless), so that the competition relationship of the generated blocks among the nodes does not exist, and the system is not in line with the requirements of the system, so that the computational waste is caused.
Disclosure of Invention
Therefore, the technical problem to be solved by the application is to solve the problem that in the prior art, the consensus algorithm rewarding mechanism does not meet the house renting requirement, and the calculation power is wasted.
In order to solve the technical problems, the application provides a block chain-based house renting transaction system, which comprises:
the house renting transaction platform is used for acquiring order information submitted by tenants;
a rental house transaction blockchain network, comprising:
a central computing node for generating blocks from the order summary information multiply signed by the intelligent contract and broadcasting the block information to a plurality of common nodes;
the common nodes are used for authenticating the new area block and carrying out uplink;
all the nodes are used for mutually receiving and transmitting the blockchain information of the respective nodes, and checking the bill after the network synchronization countdown is finished.
Preferably, the common node is divided into a plurality of slave nodes and a plurality of master nodes;
the plurality of master nodes and the central computing node form a master network, each master node and a plurality of slave nodes corresponding to the master nodes form a slave network, and the central computing node has the highest security level.
Preferably, the house renting transaction platform comprises:
the user operation module is used for performing man-machine interaction with a user;
a functional module, comprising:
the house source management and checking module is used for submitting and checking house source information;
the order management and checking module is used for submitting and checking order information;
and the storage module is used for storing the house source information and the order information.
Preferably, the functional module further includes:
and the wish list module is used for collecting house source information.
The application also provides a house renting transaction method of the house renting transaction system, which comprises the following steps:
acquiring order information submitted by a tenant by utilizing a tenant transaction platform;
carrying out multiple digital signatures on tenants and homeowners on the order information by utilizing intelligent contracts;
generating new blocks by using the central computing node and broadcasting the summary information of the orders after the multiple signatures to a plurality of common nodes;
performing new block authentication by using a plurality of common nodes, and completing uplink after more than half of common nodes are confirmed;
and (3) utilizing all nodes to perform network synchronization based on the blockchain information identified by more than half of the nodes when the network synchronization countdown is finished, until all the nodes finish bill checking.
Preferably, the digitally signing the order information by the smart contract comprises:
the intelligent contract is utilized to store order information after the tenant is digitally signed into a database according to the sequence from the morning to the evening;
reading order information items in the database from front to back, and waiting if the transaction time does not reach the preset duration;
and if the transaction time reaches the preset duration, prompting a homeowner to sign.
Preferably, generating, with the central computing node, the new block from the multiply signed order information includes:
determining a difficulty coefficient to determine a target hash, wherein the difficulty coefficient is automatically set by the house renting trading platform according to the number of orders which are full during waiting time in a preset period;
calculating hash of the order information after the multiple signatures by using a hash algorithm to serve as uplink information;
selecting a random number, the uplink information, the hash of the last block of the uplink and the timestamp at the beginning of calculation to splice, so as to obtain complete information;
calculating the hash of the complete information by using the central calculation node, and if the hash is not larger than a target hash, obtaining the hash meeting the difficulty requirement, and generating a new block;
if the random number is larger than the target hash, the random number is added by one and then calculation is continued.
Preferably, using all nodes, performing network synchronization on all nodes based on the blockchain information identified by more than half of the nodes at the end of the network synchronization countdown includes:
checking the current blockchain information by using the master nodes, wherein each master node only checks with other nodes in the master network, and waits after checking without errors;
checking the current blockchain information by using the slave nodes, checking each slave node with the slave node in the corresponding slave network, and transmitting confirmation information to the master node of the corresponding slave network of the current slave node after checking;
after receiving the confirmation information sent by more than one half of slave nodes, the master node synchronizes all the slave nodes by taking the blockchain information confirmed by the more than one half of slave nodes as the reference, and sends the confirmation to other master nodes;
and after receiving the confirmation information, synchronizing all the master nodes by taking the block chain information confirmed by the more than half master nodes as the reference.
Preferably, after the new block is completed, the method includes:
and updating the new block information into a JSON file.
Preferably, the house renting transaction method further comprises:
randomly selecting a master node through the house renting transaction platform, and sending a checking request of order information to a server;
searching a corresponding block from a database by using the server, and verifying;
and returning the verification result information to the client.
Compared with the prior art, the technical scheme of the application has the following advantages:
according to the house renting transaction system provided by the application, the house renting transaction platform and the blockchain network are integrated, wherein the blockchain network directly designates the central computing node through a system administrator, the central computing node has a powerful computing function and the capability of generating blocks, and other nodes only have the function of storing and verifying, so that the blockchain network is of a non-rewarding nature, the competition relationship of generating blocks does not exist among the nodes, the requirements of a house renting transaction mechanism are met, and the waste of computing power is avoided.
Drawings
In order that the application may be more readily understood, a more particular description of the application will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings, in which:
FIG. 1 is a diagram of a house renting transaction system architecture according to the present application;
FIG. 2 is a block chain network block diagram of a house renting transaction;
FIG. 3 is a schematic diagram of an elliptic curve cryptography algorithm;
FIG. 4 is a flow chart of an implementation of the house renting transaction method of the present application;
FIG. 5 is a timing diagram of a smart contract.
Detailed Description
The core of the application is to provide a house renting transaction system based on a blockchain, a house renting transaction method, a house renting transaction device and a computer storage medium, which meet the requirements of house renting transaction and reduce the waste of calculation power.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a schematic diagram of a house renting transaction system according to the present application, which specifically includes:
a house renting trading platform comprising:
the user operation module comprises an information display and software interaction interface, a user can log in and register through the module, click and submit after correctly inputting real personal information, the registration is successful,
after the login is successful, the login can be performed, after the login is successful, the personal center is entered to click the check key,
the PK and SK of the user can be checked;
the function module is realized by a server, carries out corresponding processing according to an operation request transmitted by a client and returns corresponding data, and the related data are stored in a local database, wherein the function module comprises:
a user management module;
the house source management and checking module clicks a 'submitting house source', clicks a 'house source address', perfects related information, clicks a 'house source profile', completes related information, clicks a 'house source introduction', perfects related information and checks a 'user's fibrous knowledge ', wherein the' user's fibrous knowledge' is: the submitted SK is authorized to sign the uploaded information, and click on 'submit', so as to finish house source information submission;
the house information can be checked after searching for houses of interest and entering a house source detailed information interface.
The order management and checking module can be used for reserving in a house source detailed information interface and checking the existing order in transaction details. Clicking the corresponding order item, and checking the order information;
the wish list module searches room sources meeting the conditions, clicks a heart-shaped button corresponding to the room source information item, and can collect the room sources, and clicks to cancel collection again; or enter the interested detailed information interface of the house source, click "collect", collect successfully, click cancel collect again.
Back to the main page, click on the wish list, click on the refresh button, and then check all the collection sources;
and the storage module is a database of house sources, order information and the like.
A rental house transaction blockchain network, comprising:
a central computing node for generating new blocks from the order summary information after multiple signatures by the intelligent contracts and broadcasting the new block information to a plurality of common nodes;
the common nodes are used for authenticating the new area block and carrying out uplink;
all the nodes are used for mutually receiving and transmitting the blockchain information of the respective nodes, and checking the bill after the network synchronization countdown is finished.
The house renting transaction block chain network needs to generate blocks from house source information HASH signed by a house owner and subscription summary information generated by using intelligent contracts and multiple signatures, and then to uplink and broadcast the blocks to other nodes in the network. Meanwhile, the blockchain is also stored through a local database of the node.
The house renting basic service platform is developed by Kotlin and operates on an android mobile phone. Server side, blockchain functions are developed by Java.
The renting platform and the blockchain can be well combined together by making a communication protocol and standardizing a data interface.
The system adopts elliptic curve encryption algorithm, and the flow is shown in figure 2, and is specifically as follows:
step a: user a selects an elliptic curve Ep (a, b) and takes a point on the elliptic curve as the base point G.
Step b: user a selects one private key K and generates a public key k=kg.
Step c: user a communicates Ep (a, B) and point K, G to user B.
Step d: after receiving the information, user B encodes the plaintext to be transmitted to a point M on Ep (a, B) (the encoding method is numerous and will not be discussed here), and generates a random integer r (r < n).
Step e: user B calculates the point c1=m+rk; c2 =rg.
Step f: user B communicates C1, C2 to user a.
Step g: after user A receives the information, C1-kC2 is calculated, and the result is point M. Because of
C1-kC2=M+rK-k(rG)=M+rK-r(kG)=M。
And decoding the point M to obtain the plaintext.
In this encrypted communication, if there is a peeper H, he can only see Ep (a, b), K, G, C, C2 and either k through K, G or r through C2, G is relatively difficult. Therefore, H cannot obtain the plain text information transferred between A, B.
Based on the above embodiments, the present embodiment specifically describes a blockchain network as follows:
the global blockchain network is composed of one central computing node and n (n > =2) common nodes. The central computing node has the capability of generating blocks and has the highest security level compared with the common node.
The common blockchain network is completely open, any node can add and download all the blockinformation, and the complete openness affects the network security performance. Because of the non-rewarding nature, no computational effort or storage stage of the profitability nature is added to the network, and for individuals, the need is merely to query their own related order or house source information, download all node information or add to the network through a complex flow, which is completely contrary to their need for simplicity. Meanwhile, a completely open network may cause an undesirable organization or a person to maliciously join the network to attack the network, affecting network performance and security. If the malicious nodes are too many, the enterprise or organization applying the network has to increase the own calculation power to resist the malicious attack, thereby not only wasting resources, but also greatly increasing the cost.
But the blockchain stores some transaction information that should be kept secret from unrelated personnel. Thus, the present network is not joinable except by an authorized regulatory or third party company. The central computing node is specified by a system administrator and is not distinct from other master nodes except for having powerful computing functions.
Meanwhile, m nodes (m < n/2) in n nodes are respectively in a group to form a secondary network, the nodes in each secondary network only check the account book with the nodes in the secondary network, meanwhile, the secondary network randomly selects one node as a main node, each main node forms a main network to check the account book, and the main nodes in the secondary network randomly reselect after a certain time. The system sets a checking interval Ts according to the current account checking minimum time length T, and all the main and auxiliary networks perform account checking once every Ts. The maximum untrusted time of the ledger within the node is Ts. When checking the account book, only the whole Hash of all block information of each node is checked, so that the checking efficiency is enhanced. And only the Hash which is accepted by more than one half of nodes is considered as the correct Hash, and the rest error nodes start to perform synchronous work of the block chain.
When the user checks the information, the user only needs to randomly link to a certain master node for verification.
The consensus algorithm CPow (Center-Pow) is an improvement of the Pow algorithm according to the real requirement of a house renting platform, and is necessary for the generation of blocks for a blockchain applied to the house renting system. Based on the method, the block chain improved Pow algorithm is a CPow algorithm, the block generation of the CPow algorithm is only responsible for one central computing node, the platform guarantees the enthusiasm of the block generation by the nodes, and other nodes are only responsible for storing and verifying the block, so that the calculation force waste is avoided. Meanwhile, considering the requirement of a user for checking house source information for low delay, the blockchain network applied by the system is a weak centralized network, and the specific structure of the blockchain network is shown in fig. 3. (De-centralized, e.g., P2P networks, where each node is equal, and weakly centralized means that nodes in the network have some relative distinction and hierarchy, 1, the central compute node is not consistent with the other nodes and the security level is highest 2. In each secondary network, the primary node may be considered to be representative, and the secondary networks communicate only through the primary node.
As shown in fig. 4, based on the above embodiment, the present application further provides a house renting transaction method of the house renting transaction system, which specifically includes:
s401: acquiring order information submitted by a tenant by utilizing the tenant transaction platform;
s402: carrying out multiple digital signatures on tenants and homeowners on order information by utilizing intelligent contracts;
the present system uses digital signatures as a means of authorization. The house source information can be identified to be effective through a house owner signature party; the order information needs to be signed by the homeowner and the user respectively and then can be confirmed to be valid.
As shown in fig. 5, the intelligent contract flow used in the transaction process of the system is as follows:
the user acts as the initiator of the transaction, first digitally signing the transaction and pre-paying the lease.
The system stores the transaction information in the transaction information database in the order of transaction time from early to late.
The system reads the information entries in the transaction information database from front to back. If the transaction time is less than 48 hours, the system waits; if the transaction information reaches 48 hours, the system prompts the homeowner to sign so that the transaction can be submitted smoothly, and a new block is generated after the signing is completed.
The system broadcasts the generated block to all nodes for consensus.
In addition, if the user considers the house source information to be unreal or changes the renting plan and the like in 48 hours, the system can apply for canceling the transaction, and the system can place False on the Validity position of the corresponding order, so that when the system reads the order after 48 hours, the order can be automatically discarded, and the rents of the user are returned. The method can effectively protect the rights and interests of the user, and gives the user the opportunity to check the authenticity of the house source and the right to cancel the transaction.
S403: generating new blocks by using the central computing node and broadcasting the order summary information after the multiple signatures to a plurality of common nodes;
determining a difficulty coefficient to determine a target hash, wherein the difficulty coefficient is automatically set by the house renting transaction platform according to the number of orders which are full in waiting period in a preset period of time or according to the number of house source information submissions in a previous period of time;
the blocks consist of the following information: freHash (pre-block Hash), hash (present block Hash), data (uplink information), nonce, timeStamp;
firstly, calculating transaction information or Hash of room source information by utilizing a sha256 algorithm to serve as data content of a block, taking the last block Hash of a chain by FreHash (previous block Hash), randomly taking the time stamp of time stamp when starting calculation by Nounce (random number);
after splicing the information according to a certain format, calculating the Hash which accords with the difficulty for the spliced information, and giving the calculated Hash to the Hash (Hash of the block) after the calculation is complete;
if the hash is smaller than the target hash, obtaining the hash meeting the difficulty requirement, and generating a new block;
if the value is larger than the target hash, the value is calculated continuously after the value is added by one.
S404: generating new blocks by using the central computing node and broadcasting the summary information of the orders after the multiple signatures to a plurality of common nodes;
broadcasting the generated block to all nodes and receiving block return information. If more than one half of the nodes are correctly returned, the uplink is considered successful. Resynchronization is performed for a single node that returns an error. And if the three times of synchronization still fails, temporarily shielding the node from the network, reporting errors and waiting for the processing of a system administrator.
S405: and (3) utilizing all nodes to perform network synchronization based on the blockchain information identified by more than half of the nodes when the network synchronization countdown is finished, until all the nodes finish bill checking.
The system determines a check interval Ts=T+EXT according to the last integral network synchronization time T and the additional synchronization time EXT set by the system;
each node additionally stores all node information into a JSON file, and each time a new block is received, the information is stored into the file;
when the TS countdown is finished, calculating a file HASH through a sha256 algorithm;
each node sends the own abstract to all nodes in the network, receives the abstracts sent by other nodes, and judges the validity of the block information. If the node information is correct, returning to the correct state; and if the information of the node is wrong, information synchronization is carried out and an error is returned.
Based on the above embodiments, this embodiment further describes step S405:
checking the current blockchain information by using the master nodes, wherein each master node only checks with other nodes in the master network, and waits after checking without errors;
checking the current blockchain information by using the slave nodes, checking each slave node with the slave node in the corresponding slave network, and transmitting confirmation information to the master node of the corresponding slave network of the current slave node after checking;
after receiving the confirmation information sent by more than one half of slave nodes, the master node synchronizes all the slave nodes by taking the blockchain information confirmed by the more than one half of slave nodes as the reference, and sends the confirmation to other master nodes;
and after receiving the confirmation information, synchronizing all the master nodes by taking the block chain information confirmed by the more than half master nodes as the reference.
There is a longer safe idle period. Because of technical limitations, checking and synchronizing information for each node requires a significant network resource consumption and a relatively long time. Between network syncs, the information in a single node is not secure. The more nodes, the higher the overall network security, but the longer the information checking time, the longer the security idle period. The general checking algorithm requires each node to send its own information to all other nodes, and receive the information sent by all other nodes and make the processing algorithm complexity o (n 2).
The network performs secondary network check firstly and then performs primary network check, a secondary network is set, each secondary network node is distributed as evenly as possible, b nodes (a is b=n-1) are set on average, and one node is a central computing node, so that the algorithm complexity is a is b+a 2.
The main network and the auxiliary network respectively synchronize the single nodes, so that the information processing quantity is reduced, the abstract of each block is recorded in a file, the hash of the file is calculated in synchronization, whether the block data of the self node are wrong or not is judged by a comparison hash method, and the information quantity of mutual communication is reduced. Meanwhile, the hash is calculated once, so that the speed of reflection after the network node receives the synchronous instruction can be increased.
Based on the above embodiment, the house renting transaction method provided by the present application further includes:
when a User needs to check House source information or Order information, the client randomly selects one main node in the blockchain network and sends an information checking request to the server, wherein the information checking request comprises a Code (operation Code), a house_id (House source number)/order_id (Order number), a user_id (operation User number), a code_id (main node number), a Hash (abstract of a block where the information is located) and a PK (public key).
After receiving the information, the server searches the corresponding block from the database, verifies the house source information/order information, data and PK, and returns verification passing information to the client; the verification failure returns Error information to the client and the server reports System Error to wait for the System administrator to check and solve the Error.
The user randomly selects the master nodes to check information, so that similar workload of each master node is macroscopically ensured, service congestion caused by all connection to one node is avoided, and the master nodes can finish as soon as possible after receiving the request.
According to the application, the third party trust of the platform from the front renting house is converted into the current technical trust through the technical means, so that the user can greatly trust the acquired authenticity integrity of the house source and the transaction information, the awareness of the user is ensured, and the core competitiveness of an enterprise is increased. The application can enable the user to quickly obtain real information of house sources and transactions with legal benefits when maintaining rights. The application can reduce the manpower cost of renting rooms, thereby reducing the intermediary fees paid by users, and the like. The application optimizes the current POW consensus algorithm and network structure, so that the current POW consensus algorithm and network structure better meet the real requirements of house renting and block chain renting. The whole network safety interval time is shortened, and the inquiry time is shortened. The block chain is relatively independent, and can be fused with the existing house renting platform relatively quickly.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations and modifications of the present application will be apparent to those of ordinary skill in the art in light of the foregoing description. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the application.

Claims (1)

1. A house renting transaction system, comprising:
the house renting transaction platform is used for acquiring order information submitted by tenants;
a rental house transaction blockchain network, comprising:
a central computing node for generating new blocks from the order summary information after multiple signatures by the intelligent contracts and broadcasting the new block information to a plurality of common nodes; the generating the new block by the order summary information after the intelligent contract multiple signature comprises the following steps:
determining a difficulty coefficient to determine a target hash, wherein the difficulty coefficient is automatically set by the house renting trading platform according to the number of orders which are full during waiting time in a preset period;
calculating hash of the order information after the multiple signatures by using a hash algorithm to serve as uplink information;
selecting a random number, the uplink information, the hash of the last block of the uplink and the timestamp at the beginning of calculation to splice, so as to obtain complete information;
calculating the hash of the complete information by using the central calculation node, and if the hash is not larger than the target hash, obtaining the hash meeting the difficulty requirement, and generating a new block;
if the random number is larger than the target hash, adding one to the random number, and then continuing to calculate;
the common nodes are used for authenticating the new area block and carrying out uplink;
all the nodes are used for mutually receiving and transmitting the blockchain information of the respective nodes, and checking the bill after the network synchronization countdown is finished;
the common node is divided into a plurality of slave nodes and a plurality of master nodes, wherein the plurality of master nodes and the central computing node form a master network, each master node and the corresponding plurality of slave nodes form a slave network, and the central computing node has the highest security level;
the house renting transaction platform comprises:
the user operation module is used for performing man-machine interaction with a user;
a functional module, comprising:
the house source management and checking module is used for submitting and checking house source information;
the order management and checking module is used for submitting and checking order information;
the storage module is used for storing house source information and order information;
the wish list module is used for collecting house source information;
the method for conducting the house renting transaction by using the house renting transaction system comprises the following steps:
acquiring order information submitted by a tenant by utilizing a tenant transaction platform;
carrying out multiple digital signatures on tenants and homeowners on the order information by utilizing intelligent contracts;
generating new blocks by using the central computing node and broadcasting the summary information of the orders after the multiple signatures to a plurality of common nodes;
performing new block authentication by using a plurality of common nodes, and completing uplink after more than half of common nodes are confirmed;
utilizing all nodes to perform network synchronization based on the blockchain information identified by more than half of the nodes when the network synchronization countdown is finished, until all the nodes complete bill checking;
the digital signature of the tenant and homeowner multiple to the order information by using the intelligent contract comprises:
the intelligent contract is utilized to store order information after the tenant is digitally signed into a database according to the sequence from the morning to the evening;
reading order information items in the database from front to back, and waiting if the transaction time does not reach the preset duration;
if the transaction time reaches the preset duration, prompting a homeowner to sign;
the step of using all nodes to perform network synchronization by taking the blockchain information identified by more than half of the nodes as the standard when the network synchronization countdown is finished includes:
checking the current blockchain information by using the master nodes, wherein each master node only checks with other nodes in the master network, and waits after checking without errors;
checking the current blockchain information by using the slave nodes, checking each slave node with the slave node in the corresponding slave network, and transmitting confirmation information to the master node of the corresponding slave network of the current slave node after checking;
after receiving the confirmation information sent by more than one half of slave nodes, the master node synchronizes all the slave nodes by taking the blockchain information confirmed by the more than one half of slave nodes as the reference, and sends the confirmation to other master nodes;
after receiving the confirmation information, the more than half of the master nodes in the master network synchronize all the master nodes by taking the blockchain information confirmed by the more than half of the master nodes as the reference;
after the new block uplink is completed, the method comprises the following steps:
updating the new block information into a JSON file;
further comprises:
randomly selecting a master node through the house renting transaction platform, and sending a checking request of order information to a server;
searching a corresponding block from a database by using the server, and verifying;
and returning the verification result information to the client.
CN202210521331.4A 2022-05-13 2022-05-13 House renting transaction system and house renting transaction method based on blockchain Active CN114913013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210521331.4A CN114913013B (en) 2022-05-13 2022-05-13 House renting transaction system and house renting transaction method based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210521331.4A CN114913013B (en) 2022-05-13 2022-05-13 House renting transaction system and house renting transaction method based on blockchain

Publications (2)

Publication Number Publication Date
CN114913013A CN114913013A (en) 2022-08-16
CN114913013B true CN114913013B (en) 2023-09-26

Family

ID=82766631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210521331.4A Active CN114913013B (en) 2022-05-13 2022-05-13 House renting transaction system and house renting transaction method based on blockchain

Country Status (1)

Country Link
CN (1) CN114913013B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473895B (en) * 2022-09-01 2023-09-12 北京大数据先进技术研究院 Method and device for dividing digital object warehouse node consensus groups under ubiquitous environment
CN117407164B (en) * 2023-10-19 2024-02-27 苏州元脑智能科技有限公司 Method and device for providing computing power service, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN109064291A (en) * 2018-08-08 2018-12-21 平安科技(深圳)有限公司 House lease method, system, computer equipment and storage medium
CN109784939A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 A kind of house lease information sharing method and relevant device based on block chain
CN109993496A (en) * 2019-01-17 2019-07-09 杭州趣链科技有限公司 A kind of Home-renting platform based on block chain
CN113489681A (en) * 2021-06-08 2021-10-08 湖南大学 Block link point data consistency consensus method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN109064291A (en) * 2018-08-08 2018-12-21 平安科技(深圳)有限公司 House lease method, system, computer equipment and storage medium
CN109784939A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 A kind of house lease information sharing method and relevant device based on block chain
CN109993496A (en) * 2019-01-17 2019-07-09 杭州趣链科技有限公司 A kind of Home-renting platform based on block chain
CN113489681A (en) * 2021-06-08 2021-10-08 湖南大学 Block link point data consistency consensus method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王迎帅.区块链金融.中国铁道出版社有限公司,2020,20-22. *
陈勇.支付方式与支付技术.湖南大学出版社,2018,130-134. *

Also Published As

Publication number Publication date
CN114913013A (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN109559120B (en) Weight-based block chain consensus method, system, storage medium and electronic device
CN110569675B (en) Multi-Agent transaction information protection method based on block chain technology
Yu et al. Blockchain-based solutions to security and privacy issues in the internet of things
WO2022042301A1 (en) Data processing method and apparatus, smart device and storage medium
Maroufi et al. On the convergence of blockchain and internet of things (iot) technologies
CN109327528B (en) Node management method and device based on block chain
CN114913013B (en) House renting transaction system and house renting transaction method based on blockchain
CN110599213B (en) Article management method and device based on blockchain network and electronic equipment
CN108933656B (en) Online work voting method and device, computer equipment and readable storage medium
CN110599147A (en) Ciphertext retrieval fair payment method and system based on block chain
CN108876669B (en) Course notarization system and method applied to multi-platform education resource sharing
EP4351081A2 (en) Blockchain-implemented system and method
US11356258B2 (en) Methods and systems for distributed cryptographically secured data validation
Pillai et al. Burn-to-claim: An asset transfer protocol for blockchain interoperability
Tkachuk et al. A survey on blockchain-based telecommunication services marketplaces
CN111612452A (en) Intellectual property management system and method based on block chain
WO2020212450A1 (en) Methods and systems for identifying anonymized participants of distributed ledger-based networks using zero-knowledge proofs
CN112418851A (en) Digital copyright registration, transaction and protection method and system
CN110941840A (en) Data processing method, system and terminal
CN116015619A (en) Blockchain data sharing protocol with privacy protection and data availability
CN114978893A (en) Decentralized federal learning method and system based on block chain
Xu et al. Blockchain‐Based Trust Auction for Dynamic Virtual Machine Provisioning and Allocation in Clouds
CN112861181A (en) Block chain-based method for developing security mechanism of crowd-sourcing software
CN114499872B (en) Starfire chain crossing method and device based on industrial Internet
CN113852655A (en) Information management method and device and block chain service system

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