CN110288339B - Second-hand mobile phone transaction information processing system and method based on block chain - Google Patents

Second-hand mobile phone transaction information processing system and method based on block chain Download PDF

Info

Publication number
CN110288339B
CN110288339B CN201910376379.9A CN201910376379A CN110288339B CN 110288339 B CN110288339 B CN 110288339B CN 201910376379 A CN201910376379 A CN 201910376379A CN 110288339 B CN110288339 B CN 110288339B
Authority
CN
China
Prior art keywords
mobile phone
information
contract
transaction
token
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
CN201910376379.9A
Other languages
Chinese (zh)
Other versions
CN110288339A (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.)
Xidian University
Original Assignee
Xidian 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 Xidian University filed Critical Xidian University
Priority to CN201910376379.9A priority Critical patent/CN110288339B/en
Publication of CN110288339A publication Critical patent/CN110288339A/en
Application granted granted Critical
Publication of CN110288339B publication Critical patent/CN110288339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/381Currency conversion
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Technology Law (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention belongs to the technical field of digital information transmission, and discloses a second-hand mobile phone transaction information processing system and method based on a blockchain, wherein a seller carries a mobile phone to a business point to check the mobile phone, and an administrator stores the information of checking the mobile phone to a blockchain network through a mobile phone information contract; and then, the real mobile phone information is stored in the block chain network for the buyer to check. The invention utilizes the block chain shared account to store the second-hand mobile phone information, thereby ensuring the openness, non-tampering property and safety of the information; and solving the trust problem of point-to-point transaction between a buyer and a seller by using a block chain and an intelligent contract. In the aspect of point-to-point transaction of buyers and sellers, the invention is different from a mechanism that the bitcoin is completely decentralized, a token contract is deployed through an administrator account, the authority of managing the account is possessed, and the problem that the transaction cannot be managed on a block chain network is solved to a certain extent.

Description

Second-hand mobile phone transaction information processing system and method based on block chain
Technical Field
The invention belongs to the technical field of digital information transmission, and particularly relates to a second-hand mobile phone transaction information processing system and method based on a block chain.
Background
With the rapid development of the internet industry and the great trend of combining the upgrading of the industrial structure with the internet in the traditional industry, the online transaction of the second-hand mobile phone is more and more popular. Most of the prior second-hand mobile phone transaction industry adopts a centralized software construction mode, so that the second-hand mobile phone transaction industry has the defects of asymmetric information of buyers and sellers, lack of quality guarantee of mobile phones, serious fraud in the transaction process and the like.
Blockchains are a type of distributed ledger that extends the chain by continuously packing up the latest transactions to form blocks. All nodes in the block chain can be connected to the network and effect free routing transactions, common authentication transactions and packaging of new blocks. The block chain technique originates from the foundational paper "bitcoin: a point-to-point electronic cash system, the blockchain technology is a brand new decentralized infrastructure and distributed computing paradigm of using an encrypted chained blockstructure to validate and store data, using a distributed node consensus algorithm to generate and update data, and using script code to program and manipulate data.
Ether house is a decentralized blockchain system. It introduces the function of intelligent contract (smart contract), and greatly expands the thought of bitcoin. Extending blockchains from monetary applications to various application aspects. Ethernet (Ether): ether currency is the currency of Ether, similar to Bite currency, but Ether is really a very large unit, the minimum currency unit of Ether is wei, and their conversion relationship is: 1Ether =10^18wei. Account: in the ether houses, each wallet can create an account without cost, and the transaction is conducted by controlling different accounts, and each account corresponds to a certain address in the ether houses. Trading: each account can broadcast transaction by itself or can carry out transaction by intelligent contract, and the data of transaction is processed by the whole network.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a second-hand mobile phone transaction information processing system and method based on a block chain.
The invention aims to combine the block chain with the transaction of the second-hand mobile phone, thereby solving the problems of asymmetric information of a buyer and a seller in the transaction industry of the second-hand mobile phone, lack of guarantee of the quality of the mobile phone, serious fraud in the transaction process and the like.
In order to achieve the above object, the present invention comprises:
the method comprises the steps that firstly, a seller registers by using a Ethenhouse light client side metamask, and an account address of an Ethenhouse network is obtained after the seller registers; the administrator deploys the mobile phone information contract; the administrator updates the web platform; after having a purchase intention, the buyer registers on the blockchain network; purchasing the ethernet money in the household currency and purchasing the token in the ethernet money by the token contract;
secondly, the buyer accesses the web platform, firstly selects the mobile phone through the mobile phone invariable information, and if the mobile phone variable information is further checked, the IEMI can be input into the web platform to inquire the mobile phone variable information through a mobile phone information contract; a buyer purchases a mobile phone, and after a transaction contract receives a token sent by the buyer to the contract, a state variable isReceiveMoney is changed into true to inform a seller of delivery;
thirdly, after a payment intention is formed, the buyer fills in the information of a goods receiving address of the buyer and sends funds equal to the evaluation value to the transaction contract, at the moment, the seller delivers goods, the funds can be taken out by a seller calling function after specified time, and the transaction contract modifies the owner information into the buyer when the seller takes out the funds; the seller sends a mobile phone to the buyer, a function can be called to take out the token in the contract after the specified time of the transaction contract is passed, and the intelligent contract modifies the owner information into the buyer when the token is taken out;
fourthly, the buyer receives the mobile phone and the transaction is finished; the seller exchanges the token contract for an ethernet token.
Further, the information obtained by the administrator through machine inspection comprises: the IMEI, the historical transaction, the maintenance information, the evaluation information and the owner information are stored to a block chain network through a mobile phone information contract;
the administrator deploys the mobile phone information contract, and only the account address of the contract is deployed and has the authority to call the contract;
the mobile phone information contract comprises 3 functions which are respectively as follows: an addPhoneinfo function to save information to the blockchain network, an updatePhoneinfo function to update the saved information, a getPhoneinfo function to read the saved information.
Further, the web platform includes: the style, memory, color, IEMI of the handset; and the user inputs the unique identification code of the mobile phone.
Further, a state variable isReceiveMoney is set in the transaction contract of the block chain-based used mobile phone transaction information processing method, and if the contract receives a token sent by a buyer, the state variable becomes true;
the seller of the second-hand mobile phone transaction information processing method based on the block chain calls a takeMoney function in a transaction contract to take out the token, and the function calls an updatePhoneinfo function to modify the owner information.
The seller invokes the sell function in the token contract to sell the token to the token contract account for the ethernet currency.
Further, a buyer of the second-hand mobile phone transaction information processing method based on the block chain calls a buy function of a token contract to buy the token in an Tai currency;
calling a getPhoneinfo function of a mobile phone information contract to read mobile phone information;
and adding remark information into the receiving address of the transfer to the transaction contract.
Further, the specific functions of the token contract of the second-hand mobile phone transaction information processing method based on the block chain comprise: a transaction function; a change token contract deployer; freezing an account; increasing the number of tokens; exchange of tokens with ethercoins;
the mobile phone information contract of the block chain-based second-hand mobile phone transaction information processing method comprises the following steps:
storing the mobile phone IEMI and the mobile phone variable information in the storage of the intelligent contract; and inputting the mobile phone IEMI through function call and returning mobile phone variable information.
Another object of the present invention is to provide a second-hand cell phone transaction information processing system based on a blockchain, which executes the second-hand cell phone transaction information processing method based on a blockchain, the second-hand cell phone transaction information processing system based on a blockchain including:
the seller information management module is used for registering a Metablast of the Ether house light client side and obtaining an account address of the Ether house network after registering; deploying a mobile phone information contract; after receiving the token sent by the buyer to the contract, the state variable isReceiveMoney becomes true to inform the seller that the goods can be delivered; sending a mobile phone to a buyer, calling a function to take out a token in a contract after the specified time of a transaction contract is passed, and modifying the owner information of the contract into the buyer by the intelligent contract when the token is taken out; exchanging the token contract for an ethernet token;
a buyer information management module for registering on the blockchain network, purchasing the ethernet money, and purchasing the token with the ethernet money through a token contract; inquiring mobile phone variable information through a mobile phone information contract; filling in the self receiving address information and sending funds equal to the valuation to the transaction contract;
a token contract module to define tokens for platform transactions;
the mobile phone information contract module is used for storing mobile phone information on the block chain and providing variable information for accessing each mobile phone by a function;
and the transaction contract module is used for appointing a transaction flow of the buyer and the seller, calling a transaction contract when the buyer purchases a mobile phone, inputting the IEMI and the receiving address, and paying a token to a contract account.
The invention also aims to provide an information data processing terminal for realizing the second-hand mobile phone transaction information processing method based on the block chain.
Another object of the present invention is to provide a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to execute the method for processing transaction information of a second-hand mobile phone based on a blockchain.
In summary, the advantages and positive effects of the invention are: the buyer and seller information barriers of the existing second-hand mobile phone transaction platform are too high, and the buyer and seller information is seriously asymmetric. The block chain is used as a distributed account book, can be used for recording information acknowledged by the whole network, has the characteristics of decentralization, non-tampering property, programmability, safety and the like, and if real mobile phone information can be stored on the block chain network, the second-hand mobile phone transaction is realized by using an automatic script code (intelligent contract), so that the fairness, the openness and the safety of the second-hand mobile phone transaction industry can be greatly improved.
The invention utilizes the block chain shared account to store the second-hand mobile phone information, thereby ensuring the openness, non-tampering property and safety of the information; and the block chain + intelligent contracts (mobile phone information contracts + token contracts + transaction contracts) are utilized to solve the trust problem of point-to-point transactions of buyers and sellers. In the aspect of point-to-point transaction of buyers and sellers, the invention is different from a mechanism that the bitcoin is completely decentralized, a token contract is deployed through an administrator account, the authority of managing the account is possessed, and the problem that the transaction cannot be managed on a block chain network is solved to a certain extent.
Drawings
Fig. 1 is a schematic structural diagram of a second-hand mobile phone transaction information processing system based on a blockchain according to an embodiment of the present invention;
in the figure: 1. a seller information management module; 2. a buyer information management module; 3. a token contract module; 4. a mobile phone information contract module; 5. a transaction contract module.
Fig. 2 is a flowchart of a second-hand mobile phone transaction information processing method based on a blockchain according to an embodiment of the present invention.
Fig. 3 is a flowchart of an implementation of a second-hand mobile phone transaction information processing method based on a blockchain according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The method aims at the problem of information asymmetry between buyers and sellers in the second-hand mobile phone transaction industry (only the sellers know the quality condition, the use condition and the like of the mobile phone, and the buyers can know the quality condition, the use condition and the like only by consulting the sellers). The invention firstly carries out the machine checking on the mobile phone (the purpose is to obtain the real information of the mobile phone, such as battery use information, mobile phone quality information and historical transaction information) and then stores the real mobile phone information into the block chain network for the buyer to check, thus greatly weakening the information barrier of the second-hand mobile phone transaction industry and promoting the fair and fair public transaction.
The following detailed description of the principles of the invention is provided in connection with the accompanying drawings.
As shown in fig. 1, the second-hand mobile phone transaction information processing system based on the blockchain according to the embodiment of the present invention includes:
the seller information management module 1 is used for registering the Meta-ask of the Ethengfang light client and obtaining the account address of the Ethengfang network after registering; deploying a mobile phone information contract; after receiving the token sent by the buyer to the contract, the state variable isReceiveMoney becomes true to inform the seller that the goods can be delivered; sending a mobile phone to a buyer, calling a function to take out a token in a contract after the specified time of a transaction contract is passed, and modifying the owner information of the contract into the buyer by the intelligent contract when the token is taken out; the token contract is exchanged for ethernet with tokens.
A buyer information management module 2 for registering on the blockchain network, purchasing an ethernet coin, and purchasing a token with the ethernet coin by a token contract; inquiring mobile phone variable information through a mobile phone information contract; fills in its shipping address information and sends funds equal to the valuation to the transaction contract.
A token contract module 3 for defining tokens for platform transactions.
And the mobile phone information contract module 4 is used for storing the mobile phone information on the block chain and providing variable information of function access to each mobile phone.
And the transaction contract module 5 is used for appointing the transaction flow of the buyer and the seller, calling a transaction contract when the buyer purchases the mobile phone, inputting the IEMI and the receiving address, and paying the token to a contract account.
As shown in fig. 2, the method for processing second-hand mobile phone transaction information based on a blockchain according to an embodiment of the present invention includes the following steps:
s201: a seller registers by using a Ethenhouse light client terminal Metamask, and an account address of an Ethenhouse network is obtained after the registration; the administrator deploys the mobile phone information contract; the administrator updates the web platform; after having a purchase intention, the buyer registers on the block chain network; purchasing the ethernet money in the household currency and purchasing the token in the ethernet money by the token contract;
s202: the buyer accesses the web platform, firstly selects the mobile phone through the mobile phone invariable information, and if the mobile phone variable information is further checked, the IEMI can be input into the web platform to inquire the mobile phone variable information through the mobile phone information contract. A buyer purchases a mobile phone, and after a transaction contract receives a token sent by the buyer to the contract, a state variable isReceiveMoney is changed into true to inform a seller that goods can be delivered;
s203: after a payment will is formed, the buyer fills in the information of a receiving address of the buyer and sends funds equal to the valuation to the transaction contract, at the moment, the seller delivers the funds, the funds can be taken out by a function called by the seller after specified time, and the transaction contract modifies the owner information into the buyer when the seller takes out the funds; the seller sends a mobile phone to the buyer, a function can be called to take out the token in the contract after the specified time of the transaction contract is passed, and the intelligent contract modifies the owner information into the buyer when the token is taken out;
s204: the buyer receives the mobile phone and the transaction is finished; the seller exchanges the token contract for the ethernet currency.
The application of the principles of the present invention will now be described in further detail with reference to the accompanying drawings.
As shown in fig. 3, the method for processing second-hand mobile phone transaction information based on a blockchain according to an embodiment of the present invention includes the following steps:
1. seller(s)
After the seller wishes to sell the mobile phone, the seller carries the mobile phone to a business point to check the mobile phone, and can register the block chain network or register in advance under the help of the staff. And the seller registers by using the Ethernet light client side metamask, and the account address of the Ethernet network is obtained after the registration. The administrator needs to maintain the vendor's blockchain network account address.
The administrator checks the machine to obtain the following information: IMEI, historical transaction, maintenance information, evaluation information, owner information and the like are stored to the block chain network through a mobile phone information contract. The administrator makes a contract for signing the mobile phone information and only the account address signing the contract has the right to invoke the contract. The mobile phone information contract mainly comprises 3 functions which are respectively as follows: addPheoneinfo function, updatePheoneinfo function, getPhonenefo function, which respectively store information to the blockchain network, update the stored information, and read the stored information.
The administrator updates the web platform, and the content of the web platform is divided into two parts, namely: the immutable information of each mobile phone, such as: handset style, memory, color, IEMI, etc.; a second part: the variable information inquiry column is characterized in that a user inputs a unique identification code of the mobile phone, a mobile phone information contract is called by clicking an inquiry button, historical transaction information, historical maintenance information, owner information, evaluation information and the like of the specific mobile phone are returned, and the web platform is made of html + css + javascript.
If someone buys a mobile phone, the transaction contract will change to true after receiving the token sent by the buyer to the contract, informing the seller that the goods can be delivered. A state variable isReceiveMoney is set in the transaction contract, which becomes true if the contract receives tokens sent by the buyer.
The seller sends a mobile phone to the buyer, the function can be called to take out the token in the contract after the specified time of the transaction contract, and the intelligent contract modifies the owner information into the buyer when the token is taken out. The seller invokes the takeMoney function in the transaction contract to remove tokens, which internally invokes the updatePhoneinfo function to modify the owner information.
The seller exchanges the token contract for the ethernet currency. The seller invokes the sell function in the token contract to sell the token to the token contract account, thereby obtaining the ethernet currency.
2. Buyer
The buyer registers on the blockchain network after having a purchase intention.
Buying home currency purchases the ethernet currency and the tokens are purchased with the ethernet currency via a token contract. Buyers purchase tokens in the cash by calling the buy function of the token contract.
The buyer accesses the web platform, firstly selects the mobile phone through the mobile phone invariable information, such as style, color, internal memory, IEMI and the like, if the mobile phone variable information is further checked, the IEMI can be input into the web platform to read the mobile phone information by calling the getPhoneinfo function of the mobile phone information contract, and the mobile phone variable information can be inquired.
After the payment will be formed, the buyer fills in the self receiving address information and sends the fund which is equal to the valuation to the transaction contract, the seller delivers the goods, the fund can be taken out by the seller calling function after the specified time, and the transaction contract modifies the owner information into the buyer when the seller takes out the fund.
And adding remark information into the receiving address of the transfer to the transaction contract.
And (5) receiving the mobile phone, and ending the transaction.
3. Token contracts
The token contract is used to define tokens for platform transactions, and includes the following specific functions:
a transaction function;
a change token contract deployer;
freezing an account;
increasing the number of tokens;
exchange of tokens with ethercoins;
necessity of token contract: management by an administrator is facilitated, the administrator can view balance information of all accounts, and violation accounts can be frozen. Each transaction for a buyer to purchase a token is recorded on the blockchain and is not tampered with.
4. Mobile phone information contract
The mobile phone information contract is used for saving mobile phone information to a block chain and providing functions to access variable information of each mobile phone, and the specific functions of the mobile phone information contract comprise:
the mobile phone IEMI and the mobile phone variable information are stored in the storage of the smart contract, namely on the block chain.
The mobile phone IEMI can be input through function calling, and mobile phone variable information is returned.
The necessity of the mobile phone information contract: the second-hand mobile phone information is stored in the block chain, so that the safety and the non-tamper property of data are guaranteed, the mobile phone information is linked, the information asymmetry between buyers and sellers is greatly reduced, and the fair transaction can be promoted.
5. Trade contract
The transaction contract is used for appointing the transaction flow of the buyer and the seller, when the buyer purchases the mobile phone, the transaction contract is called, the IEMI and the receiving address are input, and the token is paid to the contract account. At this point, the transaction contract sends the shipping address to the seller, and the seller is notified of the shipment. When the contract is started, the buyer can take the fund in the contract (cancel the transaction) within the specified time, if and only if the specified time is reached, the seller can call the function to take the fund, and the intelligent contract can modify the mobile phone owner information into the buyer when the fund is taken. The main functions of a transaction contract are: (1) Reading IEMI and evaluation information stored in a mobile phone information contract; (2) And the transaction is carried out according to the content agreed by the contract, so that the transaction safety of the buyer and the seller is protected.
The invention solves the problem of serious asymmetry of the information of the second-hand mobile phone transaction industry by using the block chain and the intelligent contract; the second-hand mobile phone information is stored on the block chain network through an intelligent contract and is read through the intelligent contract; completing a point-to-point transaction of a buyer and a seller through an intelligent contract (a token contract + a transaction contract); in the aspect of point-to-point transaction of buyers and sellers, the invention is different from a mechanism that the bitcoin is completely decentralized, a token contract is deployed through an administrator account, the authority of managing the account is possessed, and the problem that the transaction cannot be managed on a block chain network is solved to a certain extent.
It should be noted that the embodiments of the present invention can be realized by hardware, software, or a combination of software and hardware. The hardware portion may be implemented using dedicated logic; the software portions may be stored in a memory and executed by a suitable instruction execution system, such as a microprocessor or specially designed hardware. It will be appreciated by those skilled in the art that the apparatus and methods described above may be implemented using computer executable instructions and/or embodied in processor control code, for example such code provided on a carrier medium such as a diskette, CD-or DVD-ROM, a programmable memory such as read-only memory (firmware) or a data carrier such as an optical or electronic signal carrier. The apparatus of the present invention and its modules may be implemented by hardware circuits such as very large scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, or software executed by various types of processors, or a combination of hardware circuits and software, e.g., firmware.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (7)

1. A second-hand mobile phone transaction information processing method based on a block chain is characterized in that a seller carries a mobile phone to a business point to check the phone, and an administrator stores information obtained by checking the phone to a block chain network through a mobile phone information contract;
the second-hand mobile phone transaction information processing method based on the block chain specifically comprises the following steps:
the method comprises the steps that firstly, a seller registers by using a Ethenhouse light client side metamask, and an account address of an Ethenhouse network is obtained after the seller registers; the administrator deploys the mobile phone information contract; the administrator updates the web platform; after having a purchase intention, the buyer registers on the blockchain network; purchasing the ethernet money in the household currency and purchasing the token in the ethernet money by the token contract;
secondly, the buyer accesses the web platform, firstly selects the mobile phone through the mobile phone invariable information, and if the mobile phone variable information is further checked, the IEMI can be input into the web platform to inquire the mobile phone variable information through a mobile phone information contract; a buyer purchases a mobile phone, and after a transaction contract receives a token sent by the buyer to the contract, a state variable isReceiveMoney is changed into true to inform a seller of delivery;
thirdly, after a payment will is formed, the buyer fills in the information of the goods receiving address of the buyer and sends funds equal to the valuation to the transaction contract, the seller delivers goods, the funds can be taken out by a seller calling function after specified time, and the transaction contract modifies the owner information into the buyer when the seller takes out the funds; the seller sends a mobile phone to the buyer, a function can be called to take out the token in the contract after the specified time of the transaction contract, and the intelligent contract modifies the owner information into the buyer when the token is taken out;
fourthly, the buyer receives the mobile phone and the transaction is finished; exchanging the tokens contract for ethernet coins by the seller token;
the information obtained by the administrator through machine inspection comprises the following information: the IMEI, the historical transaction, the maintenance information, the evaluation information and the owner information are saved to a block chain network through a mobile phone information contract;
the administrator deploys the mobile phone information contract, and only the account address of the contract is deployed and has the authority to call the contract;
the mobile phone information contract comprises 3 functions which are respectively as follows: an addPhoneinfo function for saving information to a block chain network, an updatePhoneinfo function for updating the saved information, and a getPhoneinfo function for reading the saved information;
the web platform is divided into two parts, namely: the immutable information of each mobile phone comprises: handset style, memory, color, and IEMI; a second part: and the user inputs the unique identification code of the mobile phone, and clicks the query button to call a mobile phone information contract and return the historical transaction information, the historical maintenance information, the owner information and the valuation information of the specific mobile phone.
2. The blockchain-based second-hand mobile phone transaction information processing method according to claim 1, wherein a state variable isreceiveMoney is set in a transaction contract of the blockchain-based second-hand mobile phone transaction information processing method, and the state variable becomes true if the contract receives a token sent by a buyer;
the seller of the second-hand mobile phone transaction information processing method based on the block chain calls a takeMoney function in a transaction contract to take out the token, and the inside of the function calls an updatePhoneinfo function to modify the main information;
the seller invokes the sell function in the token contract to sell the token to the token contract account, resulting in the ethernet currency.
3. The blockchain-based second-hand mobile phone transaction information processing method according to claim 1, wherein a buyer of the blockchain-based second-hand mobile phone transaction information processing method calls a buy function of a token contract for buying a token with a tai-currency;
calling a getPhoneinfo function of a mobile phone information contract to read mobile phone information;
and adding remark information into the receiving address of the transfer to the transaction contract.
4. The method for processing the transaction information of the second-hand mobile phone based on the blockchain as claimed in claim 1, wherein the specific functions of the token contract of the method for processing the transaction information of the second-hand mobile phone based on the blockchain comprise: a transaction function; a change token contract deployer; freezing an account; increasing the number of tokens; exchange of tokens for ethernet coins;
the mobile phone information contract of the block chain-based second-hand mobile phone transaction information processing method comprises the following steps:
storing the mobile phone IEMI and the mobile phone variable information in the storage of the intelligent contract; and inputting the mobile phone IEMI through function call and returning mobile phone variable information.
5. A blockchain-based second-hand mobile phone transaction information processing system for executing the blockchain-based second-hand mobile phone transaction information processing method of claim 1, wherein the blockchain-based second-hand mobile phone transaction information processing system comprises:
the seller information management module is used for registering a Metablast of the Ether house light client side and obtaining an account address of the Ether house network after registering; deploying a mobile phone information contract; after receiving the token sent by the buyer to the contract, the state variable isReceiveMoney becomes true to inform the seller that the goods can be delivered; sending a mobile phone to a buyer, calling a function to take out a token in a contract after the specified time of a transaction contract is passed, and modifying the owner information of the contract into the buyer by the intelligent contract when the token is taken out; exchanging a token contract for an ethernet token;
a buyer information management module for registering on the blockchain network, purchasing the ethernet money, and purchasing the token with the ethernet money through a token contract; inquiring mobile phone variable information through a mobile phone information contract; filling in self receiving address information and sending funds equal to the valuation to the trading contract;
a token contract module to define tokens for platform transactions;
the mobile phone information contract module is used for storing mobile phone information on the block chain and providing variable information for accessing each mobile phone by a function;
and the transaction contract module is used for appointing the transaction flow of the buyer and the seller, calling a transaction contract when the buyer purchases the mobile phone, inputting the IEMI and the receiving address, and paying the token to a contract account.
6. An information data processing terminal for implementing the second-hand mobile phone transaction information processing method based on the blockchain according to any one of claims 1 to 4.
7. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method for processing transaction information of a secondhand cellphone based on a blockchain according to any one of claims 1 to 4.
CN201910376379.9A 2019-05-07 2019-05-07 Second-hand mobile phone transaction information processing system and method based on block chain Active CN110288339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910376379.9A CN110288339B (en) 2019-05-07 2019-05-07 Second-hand mobile phone transaction information processing system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910376379.9A CN110288339B (en) 2019-05-07 2019-05-07 Second-hand mobile phone transaction information processing system and method based on block chain

Publications (2)

Publication Number Publication Date
CN110288339A CN110288339A (en) 2019-09-27
CN110288339B true CN110288339B (en) 2022-11-11

Family

ID=68002695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910376379.9A Active CN110288339B (en) 2019-05-07 2019-05-07 Second-hand mobile phone transaction information processing system and method based on block chain

Country Status (1)

Country Link
CN (1) CN110288339B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110889710B (en) * 2019-12-04 2021-10-22 腾讯科技(深圳)有限公司 Device information management method, server, and storage medium
CN111626857A (en) * 2020-05-28 2020-09-04 中国建设银行股份有限公司 Revenue issuing method and device, electronic equipment and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018128539A1 (en) * 2017-01-08 2018-07-12 Bernard Rene F A method for checking and/or updating information relating to assets
CN109523375A (en) * 2017-09-20 2019-03-26 成都高新信息技术研究院 A kind of decentralization transaction in assets method and system
WO2019227449A1 (en) * 2018-05-31 2019-12-05 深圳市元征科技股份有限公司 Second-hand car trading method, and server
CN109544335B (en) * 2018-10-25 2023-07-07 平安科技(深圳)有限公司 Transaction data processing method, device, equipment and storage medium based on blockchain
CN109523362B (en) * 2018-11-16 2020-08-18 大唐高鸿信息通信研究院(义乌)有限公司 Second-hand house transaction system and method based on 5G architecture and block chain

Also Published As

Publication number Publication date
CN110288339A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
US11695578B2 (en) Systems and methods for storing and sharing transactional data using distributed computer systems
CN106651303B (en) Intelligent contract processing method and system based on template
KR20210024994A (en) Digital asset exchange
CN109816323A (en) Transaction auditing method, calculating equipment, storage medium for block chain network
TW201935299A (en) Blockchain system, node server and method for processing strategy model scripts of financial assets
CN110288339B (en) Second-hand mobile phone transaction information processing system and method based on block chain
CN109859031A (en) A kind of information processing method, node and the storage medium of block chain network
WO2020078095A1 (en) Method and apparatus for issuing digital assets, method and apparatus for transferring digital assets, and method and apparatus for realizing online financing
US20180189880A1 (en) Computer-implemented system and method for clearing a derivative trade involving multiple trading exchanges
CN112767163A (en) Block chain-based digital commodity transaction method and device
CN111260362A (en) Information processing method and device of block chain network and storage medium
CN113674092A (en) Asset dynamic value management system and method based on block chain
CN112883109A (en) Block chain-based digital commodity transaction method and device
KR20210034227A (en) Apparatus and Method for mediating Online deal based on Smart Contract
CN113011879A (en) Associated transaction data processing method and device and server
CN113128998B (en) Service processing method, device and system of block chain system
US11765228B2 (en) Blockchain virtual machine systems and methods
KR102655645B1 (en) A method for generating route between review non fungible token and value-chain using scm code to provide infromation about sellers selling the same product to third party consumers who access review nft for the product
US20240029158A1 (en) Method for real-time data communication, electronic device, and system
TWI724540B (en) Device and method for trading commodity based on block chain system and storage medium
US20240005409A1 (en) Systems, methods, and storage media for managing digital liquidity tokens in a distributed ledger platform
Batcha et al. Customized Creation of ERC 20 Standard Cryptocurrency on the Ethereum Network
Revuelta Design and implementation of a software system for the composition of a database and automated trading system on different cryptocurrency trading markets
Iglesias Introduction to Blockchain, Smart Contracts and Decentralized Applications
CN114445209A (en) Resource conversion method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant