Block chain-based property right transaction method and system
By introducing blockchain technology and smart contracts into the property rights trading system, the existing property rights trading system's collaboration and transaction difficulties have been solved, and a more efficient, secure and transparent property rights trading process has been achieved.
Patent Information
- Application Number
- CN202411566071.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-18
AI Technical Summary
The existing property rights trading system has difficulties in collaboration and transactions, including confirming the authenticity of transactions, backtracking and sharing of multi-party data, difficulties in multi-party business collaboration, lack of effective supervision, and difficulty in guaranteeing transactions.
Adopt a blockchain-based property rights trading system, through interconnected property rights trading modules and regional chain modules, and use blockchain distributed consensus and smart contract technology to realize data on the chain, automatic transaction, property rights registration and blockchain certificates. generate.
It improves the standardization and transparency of transactions, increases transaction liquidity, efficiency, security and convenience, reduces financial burdens, and protects users' right to know.
Smart Images

Figure CN119477538A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of property rights transactions, and in particular to a method and system for property rights transactions based on blockchain. Background Art
[0002] In the process of information management of property rights transactions, various types of assets involved in property rights face many problems, including but not limited to confirming transactions, tracing back and sharing the authenticity of multi-party data, difficulties in multi-party business collaboration, lack of effective supervision, and difficulty in guaranteeing transactions. Blockchain is a distributed network data management technology that uses cryptography technology and distributed consensus protocols to ensure the security of network transmission and access. According to its openness, blockchain can be divided into public chains open to the entire network, private chains dedicated to enterprises, and alliance chains shared by multiple organizations. In this case, the use of alliance chains is the best way, because data can be maintained, cross-verified and consistent across multiple parties in the alliance, making it difficult to be tampered with. Smart contracts are program codes deployed on the blockchain that can be automatically executed without human intervention. When specific conditions are met, they will be triggered and automatically executed by the virtual machine on the chain, thereby realizing the automatic matching of transaction bids. During the execution of the contract, all operations will be recorded on the blockchain and cannot be tampered with or deleted. This feature can ensure the fairness and credibility of transactions, thereby reducing the possibility of human intervention and fraud. Summary of the invention
[0003] The main purpose of the present invention is to provide a method and system for property rights trading based on blockchain, aiming to solve the problems of collaboration and transaction difficulties in existing property rights trading systems.
[0004] To achieve the above-mentioned purpose, the blockchain-based property rights transaction system proposed in the present invention includes a property rights transaction module and a regional chain module that are interconnected; the regional chain module includes a digital wallet unit and a transaction unit, the digital wallet unit includes a token contract on the blockchain, and the transaction unit includes a transaction contract on the blockchain; the property rights transaction module includes an automatic transaction unit, a contract data chain unit, a property rights registration unit and a blockchain certificate unit, the automatic transaction unit is used to automatically realize token transfer when the transaction is completed, the contract data chain unit is used to store information related to the transaction contract on the blockchain, the property rights registration unit is used to generate a unique identification code for each registered property right, the identification code is used to obtain historical information of the property right corresponding to the identification code after input, and the blockchain certificate unit is used to automatically generate a blockchain certificate.
[0005] Preferably, the digital wallet unit includes a wallet key generation subunit, a wallet key storage subunit and a wallet key query subunit; the key generation subunit is used to use SM2 to generate a key pair, and use Shamir to generate three secret sharing keys for the user's private key; the wallet key storage subunit uses SM4 to encrypt and store user information locally; the wallet key query subunit is used to use SM3 to generate a wallet address through the user's public key. Through the wallet address, it can communicate with the blockchain node to obtain block information to realize the functions of balance query and bill query.
[0006] Preferably, the SM2 is based on the public key cryptographic algorithm standard of elliptic curve cryptography (ECC), and the digital signature generation algorithm is as follows: define ECDSA domain parameters, digest the message m, generate a random number k, and the final calculated tuple (r, s) is the ECDSA signature:
[0007] D=(q,a,b,G,n,h);
[0008] z=hash(m);
[0009] k∈[1,n);
[0010] (x,y)=k·G;
[0011] r = x%n, (r = 0, reset k);
[0012] (s=0, reset k); 5
[0013] The ECDSA signature verification algorithm is as follows. If the x-coordinate of the calculated result P is equal to R, the signature is valid:
[0014]
[0015] Preferably, the contract data on-chain unit includes a required data sub-unit and an optional data sub-unit, the required data sub-unit is used to store required data elements and required hash values, the optional data sub-unit is used to store optional data elements and optional hash values, the required data elements include transaction number, property number, transaction item name, inflow party, outflow party and delivery time.
[0016] Preferably, the blockchain certificate includes the blockchain, the time of upload, the uploader, the upload date, the block and the hash code of the transaction content.
[0017] Preferably, the token unit includes a token issuance subunit, a token pricing subunit, a token recharge subunit, a token consumption subunit and a token withdrawal subunit. The token issuance subunit is used to call the constructor to initialize the issuer's token account when deploying the token contract; the token pricing subunit is used to link with legal currency; the token recharge subunit is used for users to purchase tokens; the token consumption subunit is used to check whether the user's token quantity is sufficient during the transaction, perform transfer operations in the digital wallets of both parties to the transaction, and update the token balances of both parties; the token withdrawal subunit is used to transfer the tokens in the user's wallet to the issuer's token account; and at the same time, transfer the corresponding currency from the issuer's bank account to the user's bank account.
[0018] Preferably, the token unit further comprises a token issuance sub-unit, and the token issuance sub-unit is used to call a token function for issuance of additional tokens when the number of tokens is insufficient.
[0019] Preferably, the digital wallet unit includes a wallet creation subunit, a backup subunit, a transfer subunit, a recharge and withdrawal subunit, a security subunit and a query subunit. The wallet creation subunit is used to create a new wallet and generate a public and private key pair, and the backup subunit is used to provide wallet backup and recovery functions; the transfer subunit is used to use the wallet to transfer digital assets; the recharge and withdrawal subunit is used to recharge digital assets into the wallet, and can also withdraw digital assets in the wallet to other accounts; the query subunit is used to query transaction records.
[0020] A method for property rights transaction based on blockchain, comprising the following steps:
[0021] Build a regional chain module as described above, build a blockchain multi-node cluster and deploy smart contracts;
[0022] Deploy the blockchain management console, download the organization certificate, import the certificate into the console, and generate the organization certificate, node certificate, and user certificate;
[0023] Building a property rights transaction module as described above;
[0024] Use SDK to complete the deployment and contract calling of the property rights transaction module and the blockchain module;
[0025] It will be put into use after passing the test.
[0026] Preferably, the step of putting the device into use after passing the test comprises:
[0027] The user uses the property rights transaction module to register the user, including digital wallet and property rights registration;
[0028] In the property rights transaction module, the outflow party registers the project, the management personnel conducts project review, the project is listed for trading, the inflow party submits an intention application, the management personnel conducts transaction review, and the automatic transaction unit automatically completes the transaction after the review is successful;
[0029] After the transaction is completed, the property rights transaction module automatically generates and saves the contract data, automatically issues the blockchain certificate, and updates the transaction property rights data.
[0030] In the technical solution of the present invention, blockchain and property rights trading system are combined, and a one-stop service platform for property rights trading is constructed by uploading data to the chain and developing smart contracts, using partition consensus and privacy transaction technology. This platform covers token issuance, data uploading to the chain, project traceability, smart contracts and blockchain certificates, thereby effectively solving the problems of collaboration and transaction difficulties in existing property rights trading systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0032] Figure 1 This is a schematic diagram of the structure of the blockchain-based property rights transaction system of the present invention.
[0033] Figure 2 This is a schematic diagram of the wallet structure of the blockchain-based property rights transaction system of the present invention.
[0034] Figure 3 This is a transaction flow diagram of the method for property rights transaction based on blockchain of the present invention.
[0035] Figure 4 A schematic diagram of the token life cycle of the blockchain-based property rights transaction method of the present invention.
[0036] Figure 5 This is a token ledger transfer details table of one embodiment of the blockchain-based property rights transaction method of the present invention.
[0037] Figure 6 This is a line chart of token ledger transfer details of one of the embodiments of the blockchain-based property rights transaction method of the present invention.
[0038] Figure 7 This is the ER diagram of the on-chain data of the blockchain-based property rights transaction method of the present invention.
[0039] Figure 8This is a schematic diagram of property rights coding rules in one embodiment of the blockchain-based property rights transaction method of the present invention.
[0040] Fig. 9 This is a flowchart of the property rights transaction traceability in one of the embodiments of the blockchain-based property rights transaction method of the present invention.
[0041] Fig.10 This is a schematic diagram of property rights transaction traceability and evidence storage in one of the embodiments of the blockchain-based property rights transaction method of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0045] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0046] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0047] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0048] Please refer to Figure 1-Figure 10 The present invention proposes a system for property rights transaction based on blockchain, including a property rights transaction module and a regional chain module connected to each other; the regional chain module includes a digital wallet unit and a transaction unit, the digital wallet unit includes a token contract on the blockchain, and the transaction unit includes a transaction contract on the blockchain; the property rights transaction module includes an automatic transaction unit, a contract data chain unit, a property rights registration unit and a blockchain certificate unit, the automatic transaction unit is used to automatically realize token transfer when the transaction is completed, the contract data chain unit is used to store information related to the transaction contract on the blockchain, the property rights registration unit is used to generate a unique identification code for each registered property right, the identification code is used to obtain historical information of the property right corresponding to the identification code after input, and the blockchain certificate unit is used to automatically generate a blockchain certificate.
[0049] In the technical solution of the present invention, blockchain and property rights trading system are combined, and a one-stop service platform for property rights trading is constructed by uploading data to the chain and developing smart contracts, using partition consensus and privacy transaction technology. This platform covers token issuance, data uploading to the chain, project traceability, smart contracts and blockchain certificates, thereby effectively solving the problems of collaboration and transaction difficulties in existing property rights trading systems.
[0050] Specifically, 1. Improved the standardization and transparency of transactions: The rural property rights trading platform based on blockchain technology can realize data chain and traceability, ensure the authenticity and integrity of transaction information, avoid fraud in the transaction process, and enhance the standardization and transparency of transactions.
[0051] 2. Increase transaction liquidity, efficiency, security and convenience: Through online auctions and anonymous bidding, and using contracts to achieve automatic transactions, a wider range of transactions can be achieved, transaction liquidity and efficiency can be improved, and the drawbacks of small transaction radius and poor liquidity in traditional trading methods can be avoided. Using tokens for payment and transfer can avoid problems such as data leakage and fraud. At the same time, tokens can also bring lower transaction costs and realize free settlement of cross-border payments.
[0052] 3. Reduce fiscal burden: The application of blockchain technology can improve the operational efficiency of the trading market, expand the scope of transactions, increase transaction volume, and enhance profitability, thereby reducing the fiscal burden of the government and achieving sustainable development.
[0053] 4. Guarantee the user's right to know: The issuance and verification of blockchain certificates can realize the openness and transparency of transaction information, protect the user's right to know, and avoid problems such as non-disclosure, non-standardization, and unreasonable prices in transactions.
[0054] More specifically, it involves two systems, one is the blockchain module, which provides the network and deploys contracts; the other is the property rights transaction module. For the blockchain, the domestic open source Changan Chain or other open source chains can be used as the blockchain engine to deploy smart contracts in Go or Solidity language;
[0055] For the trading system, microservices can be used as the underlying technical architecture for property rights transactions, and interact with smart contracts through Java / Python / C++SDK.
[0056] In another embodiment of the present invention, the digital wallet unit includes a wallet key generation subunit, a wallet key storage subunit and a wallet key query subunit; the key generation subunit is used to use SM2 to generate a key pair, and use Shamir to generate three secret sharing keys for the user's private key; the wallet key storage subunit uses SM4 to encrypt user information and store it locally; the wallet key query subunit is used to use SM3 to generate a wallet address through the user's public key. Through the wallet address, it can communicate with the blockchain node to obtain block information to realize the functions of balance query and bill query.
[0057] Specifically: A digital wallet is a smart contract deployed on the blockchain, which includes Figure 1 The biggest feature of digital wallets based on blockchain technology is decentralization. They do not rely on any central organization or third party, and ensure the security and privacy of digital currency through openness and transparency. Its core design is to store, manage and transfer digital assets through accounts. In order to ensure security, only authenticated and authorized users can perform related operations, so it is necessary to add key pairs or password protection measures to protect them. In addition, a set of standard wallet interfaces needs to be designed to enable the wallet to seamlessly connect with other systems.
[0058] In another embodiment of the present invention, the SM2 is based on the public key cryptographic algorithm standard of the elliptic curve cryptography (ECC), and the digital signature generation algorithm is as follows: define ECDSA domain parameters, summarize the message m, generate a random number k, and the final calculated tuple (r, s) is the ECDSA signature:
[0059] D=(q,a,b,G,n,h);
[0060] z=hash(m);
[0061] k∈[1,n);
[0062] (x,y)=k·G;
[0063] r = x%n, (r = 0, reset k);
[0064] (s=0, reset k);
[0065] The ECDSA signature verification algorithm is as follows. If the x-coordinate of the calculated result P is equal to R, the signature is valid:
[0066]
[0067] Specifically, the generation, storage and transaction query of wallet keys are realized based on the national encryption algorithms SM2, SM3 and SM4, and the Shamir threshold scheme is used to protect the wallet private key.
[0068] When registering, users use SM2 to generate a key pair, namely a public key and a private key. Shamir (2,3) is used to generate three secret shared keys for the user's private key, one of which will be stored in the key file, and the other two keys will be kept by the user. When calling the transfer, recharge, withdrawal and other operations of the token contract, two of the three pairs of shared keys will be used, and the user's private key will be reconstructed through the Lagrange difference formula. The generated transaction will then be signed and submitted to the blockchain node for confirmation.
[0069] Use SM3 to generate a wallet address through the user's public key. Through the wallet address, you can communicate with the blockchain node to obtain block information to realize the functions of balance query and bill query. Use SM4 to encrypt and store user information locally.
[0070] In another embodiment of the present invention, the contract data on-chain unit includes a required data sub-unit and an optional data sub-unit, the required data sub-unit is used to store required data elements and required hash values, the optional data sub-unit is used to store optional data elements and optional hash values, the required data elements include transaction number, property number, transaction item name, inflow party, outflow party and delivery time.
[0071] Please refer to Figure 3 In another embodiment of the present invention, the property rights transaction module includes a bidding transaction unit, and the bidding transaction unit is used to publish bidding items.
[0072] In another embodiment of the present invention, the blockchain certificate includes the blockchain, the time of upload, the uploader, the upload date, the block and the hash code of the transaction content.
[0073] Specifically, after the automatic bidding ends or the registration transaction is reviewed and approved, the property rights trading system will trigger the execution of the "token contract" to realize the transfer of digital account tokens between the two parties to the transaction. There is no need for cash transfers between bank accounts, which greatly increases the convenience and speed of transactions.
[0074] In another embodiment of the present invention, Figure 5 and Figure 6 This is a digital account flow table and statistical chart in this embodiment:
[0075] In the property rights transaction system, after the contract is successfully generated, the execution of the "transaction contract" will be automatically triggered, and the information related to the transaction contract will be stored on the blockchain. There are many data elements in the transaction project contract. In order to save the storage space of the blockchain, they are divided into two categories: required and optional. The data on the chain only stores the required data elements and the required and optional hash values.
[0076] In another embodiment of the present invention, the ER diagram of the uplink data is as follows: Figure 7 , including contract information, transaction information, property information, and user information, among which the required data elements are marked with "M".
[0077] In another embodiment of the present invention, the key code of the transaction contract is as follows, including a `Trade` structure, including the required data elements such as transaction number, property number, transaction project name, inflow party, outflow party, delivery time, and a summary of all data elements. The `saveTrade` function is used to add new transaction information to the contract, and increases the `projectCount` variable by 1 to ensure that each project has a unique project number. The `getTrade` function is used to obtain information about a certain project.
[0078]
[0079] In another embodiment of the present invention, the token unit includes a token issuance subunit, a token pricing subunit, a token recharge subunit, a token consumption subunit and a token withdrawal subunit. The token issuance subunit is used to call the constructor to initialize the issuer's token account when deploying the token contract; the token pricing subunit is used to link with legal currency; the token recharge subunit is used for users to purchase tokens; the token consumption subunit is used to check whether the user's token quantity is sufficient during the transaction, perform transfer operations in the digital wallets of both parties to the transaction, and update the token balances of both parties; the token withdrawal subunit is used to transfer the tokens in the user's wallet to the issuer's token account; and at the same time, transfer the corresponding currency from the issuer's bank account to the user's bank account.
[0080] Specifically, a token is a digital asset issued based on blockchain technology, which can be value-bound with currencies, stocks, commodities, etc., so as to be traded and transferred in the blockchain network. In the bidding process of property rights transactions, after the automatic transaction, the token can realize the automatic transfer between the bidding parties, thus eliminating the possibility of false quotations and malicious bidding. In addition, the token can also be used as a manifestation of rights or access rights. For example, after the project registration and review is successful, a certain number of tokens can be added as a reward, thereby encouraging the outflow party to actively register the project.
[0081] After a registered user applies for an electronic wallet, he must purchase a certain amount of tokens for subsequent transactions. Tokens are jointly issued by all members of the blockchain and can be directly used as a guarantee for transaction defaults, payment of transaction fees, etc. The life cycle of tokens is designed as follows: Figure 4 :
[0082] In another embodiment of the present invention, token issuance: when deploying a token contract, call its constructor to initialize the token account of the issuer, including the initial total amount, name, symbol, balance and other information. When the user scale is small in the early stage, the initial total amount of 100 million can be specified, with the name "Dingbi" and the symbol "DTK";
[0083] Token pricing: Tokens need to be pegged to legal tender (RMB), and their price and exchange rate are determined by the alliance. For example, the purchase price of 1 token is 1 RMB, and the exchange rate is 1:1;
[0084] Token recharge: When a user purchases tokens, he / she pays the currency from his / her bank account to the issuer's bank account. After confirmation, the corresponding number of tokens will be transferred to the user's digital wallet, and the balance of the issuer's token account will be updated;
[0085] Token consumption: When a transaction occurs, the contract checks whether the user has sufficient tokens, and then performs a transfer operation in the digital wallets of both parties to the transaction to update the token balances of both parties;
[0086] Token withdrawal: The contract transfers the tokens in the user's wallet to the issuer's token account, and at the same time transfers the corresponding currency from the issuer's bank account to the user's bank account;
[0087] Token issuance: The initial total amount of tokens is fixed and will not change during the operation of the contract. When the number of users increases and the number of tokens is insufficient, the token function can be called to issue more tokens;
[0088] In another embodiment of the present invention:
[0089] Security: For transfer payments involving monetary funds and tokens, the encryption algorithms and identity authentication mechanisms described in the digital wallet are used to ensure the security of funds and tokens.
[0090] Scalability: To cope with the large number of token transaction requests, asynchronous processing is used to send the requests to a queue to avoid blocking the contract processing and improve the system throughput.
[0091] Transaction speed issue: In order to complete the token transaction within the specified time, the Layer 2 expansion solution II state channel is adopted. The transaction process is as follows:
[0092] The two parties establish a payment channel, put funds on the chain, conduct off-chain IOU transactions, and close the off-chain channel for transaction settlement. The following sample code first defines an IChannel interface for interacting with the token contract. Then a TokenStateChannel contract is defined, which contains a token address, a balance, and a Channel structure for storing channel information, including participant addresses, balances, and expiration times; four functions are also defined: openChannel is used to open a new channel; updateBalance is used to update the balance of a channel; closeChannel is used to close a channel; and settleChannel is used to settle a channel.
[0093]
[0094]
[0095]
[0096] In another embodiment of the present invention, the token unit further includes a token issuance subunit, and the token issuance subunit is used to call a token function for issuance of additional tokens when the number of tokens is insufficient.
[0097] In another embodiment of the present invention, the digital wallet unit includes a wallet creation subunit, a backup subunit, a transfer subunit, a recharge and withdrawal subunit, a security subunit and a query subunit. The wallet creation subunit is used to create a new wallet and generate a public and private key pair, and the backup subunit is used to provide wallet backup and recovery functions; the transfer subunit is used to use the wallet to transfer digital assets; the recharge and withdrawal subunit is used to recharge digital assets into the wallet, and can also withdraw digital assets in the wallet to other accounts; the query subunit is used to query transaction records.
[0098] Specifically, interface design:
[0099] The functional interfaces of digital wallets mainly include the following ones. For details on the input and output of the interfaces, see Figure 3 :
[0100] Wallet creation: Create a new wallet and generate a public and private key pair.
[0101] Wallet backup: Provides wallet backup and recovery functions to prevent users from accidentally deleting or losing them.
[0102] Transfer function: Use the wallet to transfer digital assets to achieve fast, secure and convenient transactions.
[0103] Deposit and Withdrawal: Deposit digital assets into your wallet, or withdraw digital assets from your wallet to other accounts.
[0104] Query transaction records: Query the transaction records in your wallet to understand the changes in your assets.
[0105] More specifically, the implementation algorithm:
[0106] The contract defines a wallet called `EWallet`, which uses a structure to store each user's name and digital account number, and `mapping` to store the mapping between each username and address, as well as the balance of each account.
[0107] The `creating` function is used to create a wallet, receiving a username as a parameter and checking if the username has been registered. Unregistered users are added to the `users` mapping, and the username and address are added to the `usernames` mapping.
[0108] The `recharging` function is used to recharge tokens, and receives the recipient address and the number of tokens as parameters.
[0109] The `transfering` function is used to transfer tokens, and receives the recipient address and the amount of tokens as parameters.
[0110]
[0111]
[0112] A method for property rights transaction based on blockchain, comprising the following steps:
[0113] S100. Build any of the above regional chain modules, build a blockchain multi-node cluster and deploy smart contracts;
[0114] S200, blockchain management console deployment, downloading organization certificates, console importing certificates, generating organization certificates, node certificates and user certificates;
[0115] S300, constructing a property rights transaction module as described above;
[0116] S400, using SDK to complete the deployment of the property rights transaction module and the blockchain module and call the contract;
[0117] It will be put into use after passing the test.
[0118] Specifically, the first step: build the blockchain environment;
[0119] Build a blockchain multi-node cluster and deploy smart contracts through the command line and cmc tools.
[0120] Download the blockchain and certificate management tool source code;
[0121] Compile the source code;
[0122] Generate node certificates;
[0123] Compile and install package production;
[0124] Start the node cluster;
[0125] Check the node status;
[0126] Step 2: Deployment of blockchain management platform;
[0127] Download the organization certificate;
[0128] The console imports the certificate and generates the organization certificate, node certificate, and user certificate.
[0129] Subscription chain:
[0130] Step 3: Building a rural property rights trading system.
[0131] Step 4: Use SDK to deploy and call the contract;
[0132] Deploy the contract:
[0133] Call the "token contract" to claim an electronic wallet;
[0134] Call the "trading contract" to achieve automatic transaction.
[0135] A method for property rights transaction based on blockchain, characterized in that the method includes the following steps after step S400:
[0136] S510, the user uses the property rights transaction module to register the user, including digital wallet and property rights registration;
[0137] S520. On the property rights transaction module, the outflowing party registers the project, the management personnel conducts project review, the project is listed for trading, the inflowing party submits an intention application, the management personnel conducts transaction review, and the automatic transaction unit automatically completes the transaction after the review is successful;
[0138] S530. After the transaction is completed, the property rights transaction module automatically generates and saves the contract data, automatically issues the blockchain certificate, and updates the transaction property rights data.
[0139] Specifically, after combining traditional rural property rights transactions with blockchain technology, the process design has been optimized and innovated, mainly including the following processes:
[0140] User registration process: including user registration, digital wallet, token purchase, and balance inquiry.
[0141] User registration refers to Internet users who use the property rights trading system to conduct online transactions. They must register on the portal website before use. Registered users are divided into inflow and outflow parties during transactions.
[0142] A digital wallet refers to a personal digital account created after a user successfully registers, which is used for token transactions and inquiries.
[0143] Purchasing tokens means that users recharge their digital wallets, and in the early stages only legal tender in bank accounts is supported.
[0144] Query the wallet to check the number of tokens in the wallet.
[0145] Registration and transaction process: The steps of each business node are as follows: the outflow party registers the project, the management personnel reviews the project, the project is listed for trading on the portal website, the inflow party submits an intention application, the management personnel reviews the transaction, and after the review is successful, the smart contract is called to automatically complete the transaction.
[0146] Bidding transaction process: After the outflow project registration is successfully reviewed, the bidding project is published, displayed on the portal website, multiple users quote the project, and after the bidding ends, the smart contract is called to automatically complete the transaction.
[0147] Data on-chain process: After the transaction is automatically completed, a contract is generated and the transaction data is saved to the blockchain, the business rights certificate is processed, the authentication certificate is processed, the blockchain certificate is issued, and the transaction project data is traced.
[0148] In one embodiment:
[0149] In the rural property rights transaction system, in order to track and count the historical transaction data of each property right and achieve true and effective backtracking, we must first solve the problems of data granularity and data identification.
[0150] The granularity of the data is based on the transaction contract as the atomic object and the original data on the chain. The object of traceability is the subject matter of the contract - property rights. The purpose of traceability is to track the historical transfer records of the property rights and provide an effective basis for bank loans, agricultural insurance, and various policy subsidies.
[0151] Data identification is to encode property rights, giving them a unique identification code (including serial number, QR code), which remains unchanged throughout the life cycle of property rights transactions. Figure 8 )as follows:
[0152] It includes a 6-digit county-level segment code, a 3-digit township-level segment code, a 3-digit village-level segment code, a 2-digit group-level segment code and a 5-digit plot sequence code, which are set in sequence.
[0153] When registering property rights in the property rights trading system, a unique number and QR code will be generated for each property right. After that, the data of each property rights transaction project will be recorded on the blockchain to ensure the data is tamper-proof and credible.
[0154] By scanning the QR code of the property or entering the number, users can trace the historical transaction information of the property, providing strong decision-making support for its contract signing and business management.
[0155] Down Fig. 9 When users use mobile devices to scan the QR code of the property right, the basic information of the property right and the historical circulation information can be displayed. The traceability and evidence information of each transaction is attached. Fig.10 "Rural property rights transaction traceability and evidence storage".
[0156] 3.6 Issuance of blockchain certificates:
[0157] After the property rights transaction is successful, you need to apply for a certificate of authentication (confirmation of the legality of the transaction by the Property Rights Transaction Center) and a business rights certificate (confirmation of the legality of the transaction by the Department of Agriculture and Rural Affairs).
[0158] In order to decentralize and reflect the authority and immutability of transactions, the alliance chain automatically generates a blockchain certificate based on the data on the chain, so that both parties to the transaction can query the information of the transaction on the chain.
[0159] The blockchain certificate includes: blockchain, time of upload, uploader, upload date, block, and transaction content hash code. The certificate is called "Dinglian Property Rights Transaction Evidence Chain Certificate".
[0160] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.
Claims
1. A blockchain-based property rights transaction system, characterized in that: It includes a property rights transaction module and a regional chain module that are interconnected; the regional chain module includes a digital wallet unit and a transaction unit, the digital wallet unit includes a token contract on the blockchain, and the transaction unit includes a transaction contract on the blockchain; the property rights transaction module includes an automatic transaction unit, a contract data chain unit, a property rights registration unit and a blockchain certificate unit, the automatic transaction unit is used to automatically realize the transfer of tokens when the transaction is completed, the contract data chain unit is used to store information related to the transaction contract on the blockchain, the property rights registration unit is used to generate a unique identification code for each registered property right, the identification code is used to obtain the historical information of the property right corresponding to the identification code after input, and the blockchain certificate unit is used to automatically generate a blockchain certificate.
2. A blockchain-based property rights transaction system as claimed in claim 1, characterized in that: The digital wallet unit includes a wallet key generation subunit, a wallet key storage subunit and a wallet key query subunit; the key generation subunit is used to use SM2 to generate a key pair, and use Shamir to generate three secret sharing keys for the user's private key; the wallet key storage subunit uses SM4 to encrypt user information and store it locally; the wallet key query subunit is used to use SM3 to generate a wallet address through the user's public key. Through the wallet address, it can communicate with the blockchain node to obtain block information to realize the functions of balance query and bill query.
3. A blockchain-based property rights transaction system as claimed in claim 2, characterized in that: The SM2 is based on the public key cryptographic algorithm standard of the elliptic curve cryptography (ECC). The digital signature generation algorithm is as follows: define the ECDSA domain parameters, digest the message m, generate a random number k, and the final calculated tuple (r, s) is the ECDSA signature: D = (q, a, b, G, n, h); z = hash(m); k∈[1,n); (x,y)=k·G; r = x % n, (r = 0, reset k); , (s = 0, reset k); The ECDSA signature verification algorithm is as follows. If the x-coordinate of the calculated result P is equal to R, the signature is valid: 。 4. A blockchain-based property rights transaction system as claimed in claim 1, characterized in that: The contract data on-chain unit includes a required data sub-unit and an optional data sub-unit. The required data sub-unit is used to store required data elements and required hash values, and the optional data sub-unit is used to store optional data elements and optional hash values. The required data elements include transaction number, property number, transaction item name, inflow party, outflow party and delivery time.
5. A blockchain-based property rights transaction system as claimed in claim 1, characterized in that: The blockchain certificate includes the blockchain, the time of upload, the uploader, the upload date, the block and the hash code of the transaction content.
6. A blockchain-based property rights transaction system as claimed in claim 1, characterized in that: The token unit includes a token issuance subunit, a token pricing subunit, a token recharge subunit, a token consumption subunit and a token withdrawal subunit. The token issuance subunit is used to call the constructor to initialize the issuer's token account when deploying the token contract; the token pricing subunit is used to link with legal currency; the token recharge subunit is used for users to purchase tokens; the token consumption subunit is used to check whether the user's token quantity is sufficient during the transaction, perform transfer operations in the digital wallets of both parties to the transaction, and update the token balances of both parties; the token withdrawal subunit is used to transfer the tokens in the user's wallet to the issuer's token account; and at the same time, transfer the corresponding currency from the issuer's bank account to the user's bank account.
7. A blockchain-based property rights transaction system as claimed in claim 6, characterized in that: The token unit also includes a token issuance subunit, which is used to call a token function for issuance when the number of tokens is insufficient.
8. A blockchain-based property rights transaction system as described in any one of claims 1 to 7, characterized in that: The digital wallet unit includes a wallet creation subunit, a backup subunit, a transfer subunit, a recharge and withdrawal subunit, a security subunit and a query subunit. The wallet creation subunit is used to create a new wallet and generate a public and private key pair. The backup subunit is used to provide wallet backup and recovery functions; the transfer subunit is used to use the wallet to transfer digital assets; the recharge and withdrawal subunit is used to recharge digital assets into the wallet, and can also withdraw digital assets in the wallet to other accounts; the query subunit is used to query transaction records.
9. A method for property rights transaction based on blockchain, characterized in that: The steps include: Build a regional chain module as described above, build a blockchain multi-node cluster and deploy smart contracts; Deploy the blockchain management console, download the organization certificate, import the certificate into the console, and generate the organization certificate, node certificate, and user certificate; Building a property rights transaction module as described above; Use SDK to complete the deployment and contract calling of the property rights transaction module and the blockchain module; It will be put into use after passing the test.
10. A method for property rights transaction based on blockchain as claimed in claim 9, characterized in that: The steps of putting the test into use after passing the test include: The user uses the property rights transaction module to register the user, including digital wallet and property rights registration; In the property rights transaction module, the outflow party registers the project, the management personnel conducts project review, the project is listed for trading, the inflow party submits an intention application, the management personnel conducts transaction review, and the automatic transaction unit automatically completes the transaction after the review is successful; After the transaction is completed, the property rights transaction module automatically generates and saves the contract data, automatically issues the blockchain certificate, and updates the transaction property rights data.