WO2021017430A1 - 基于区块链的交易、交易监管方法、装置及设备 - Google Patents

基于区块链的交易、交易监管方法、装置及设备 Download PDF

Info

Publication number
WO2021017430A1
WO2021017430A1 PCT/CN2020/071973 CN2020071973W WO2021017430A1 WO 2021017430 A1 WO2021017430 A1 WO 2021017430A1 CN 2020071973 W CN2020071973 W CN 2020071973W WO 2021017430 A1 WO2021017430 A1 WO 2021017430A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
record information
information
user
blockchain
Prior art date
Application number
PCT/CN2020/071973
Other languages
English (en)
French (fr)
Inventor
贾博岩
李艳鹏
Original Assignee
创新先进技术有限公司
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 创新先进技术有限公司 filed Critical 创新先进技术有限公司
Priority to US16/888,305 priority Critical patent/US20200294124A1/en
Publication of WO2021017430A1 publication Critical patent/WO2021017430A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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

Definitions

  • This application relates to the field of blockchain technology, in particular to a blockchain-based transaction and transaction supervision method, device and equipment.
  • P2P lending person-to-person lending or peer-to-peer lending
  • peer-to-peer network lending is a private micro-lending model that gathers small amounts of funds to lend to people in need of funds. It belongs to the Internet A kind of financial (ITFIN) product.
  • ITFIN Internet A kind of financial
  • centralized P2P credit institutions store loan data, such as loan contracts, etc.
  • loan contracts etc.
  • P2P Credit institutions evade liability or run away, and for investors, there are problems such as difficulty in producing evidence and rights protection.
  • the purpose of one or more embodiments of this specification is to provide a blockchain-based transaction and transaction supervision method, device and equipment, which make the transaction process open, transparent and visible to multiple parties by conducting transactions in a trusted environment of the blockchain , And ensure the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and solving the problems of difficulty in raising evidence and defending rights in the process of resource transfer users; at the same time, it can be based on
  • the transaction record information stored in the blockchain supervises whether resource trading institutions have transaction risks, which effectively reduces the occurrence of resource trading institutions' avoidance of responsibilities and runaways.
  • One or more embodiments of this specification provide a blockchain-based transaction method, including:
  • the first blockchain node receives a resource collection request sent by a terminal device of a resource collection user, where the resource collection request includes resource collection information;
  • the first blockchain node publishes the resource collection information to the blockchain through a first smart contract, so that the terminal device of the resource transfer user obtains the resource collection information from the blockchain;
  • the first blockchain node receives the resource transfer request sent by the terminal device of the resource transfer user, where the resource transfer request includes: the target resource collection user's resource transfer selected based on the resource collection information User information, and resource transfer information for resource transfer of the target resource collection user;
  • the first blockchain node generates resource transfer record information according to the resource transfer request, and writes the resource transfer record information into the blockchain.
  • One or more embodiments of this specification provide a blockchain-based transaction supervision method, including:
  • the second block chain node obtains the transaction record information of the resource trading institution in the block chain, where the transaction record information includes resource collection record information, resource status record information, resource transfer record information, resource extraction record information, first At least one of the information in the registration record, the announcement release record, and the announcement cancellation record;
  • the second blockchain node determines whether the resource trading institution has transaction risk through a second smart contract based on the transaction record information
  • the second blockchain node sends alarm information to the tracking agency through the second smart contract, so that the tracking agency can track the resource trading agency.
  • One or more embodiments of this specification provide a blockchain-based transaction device, including:
  • a receiving module which receives a resource collection request sent by a terminal device of a resource collection user, where the resource collection request includes resource collection information
  • a publishing module which publishes the resource collection information to the blockchain through the first smart contract, so that the terminal device of the resource transfer user can obtain the resource collection information from the blockchain;
  • the receiving module further receives a resource transfer request sent by the terminal device of the resource transfer user, wherein the resource transfer request includes: user information of the resource collection user selected based on the resource collection information to perform the resource transfer target , And resource transfer information for the target resource collection user to transfer resources;
  • a generating module which generates resource transfer record information according to the resource transfer request
  • the writing module writes the resource transfer record information into the blockchain.
  • One or more embodiments of this specification provide a blockchain-based transaction supervision device, including:
  • An acquisition module which acquires transaction record information of resource trading institutions in the blockchain, where the transaction record information includes resource collection record information, resource status record information, resource transfer record information, resource extraction record information, and first registration record At least one piece of information in the information, announcement release record information, and announcement cancellation record;
  • a determining module which determines whether the resource trading institution has a transaction risk based on the transaction record information through a second smart contract
  • the sending module when the determining module determines that the resource trading institution has a transaction risk, sends alarm information to the tracking institution through the second smart contract, so that the tracking institution can track the resource trading institution.
  • One or more embodiments of this specification provide a blockchain-based transaction device, including: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause the The processor implements the steps of the blockchain-based transaction method described above.
  • One or more embodiments of this specification provide a blockchain-based transaction supervision device, including: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause all The processor implements the steps of the blockchain-based transaction supervision method described above.
  • One or more embodiments of this specification provide a storage medium for storing computer-executable instructions that, when executed, implement the steps of the blockchain-based transaction method described above, or implement The steps of the blockchain-based transaction supervision method described above.
  • Violations of regulations and laws have played a deterrent effect; and by storing transaction record information such as resource transfer record information in the blockchain, the immutability and openness of the data on the chain are ensured, which effectively avoids data loss and data
  • Counterfeiting and other issues solve the problems of difficulty in providing evidence and rights protection for resource transfer users in the process of rights protection; at the same time, it can supervise whether resource trading institutions have transaction risks based on the transaction record information stored in the blockchain, effectively reducing resources The occurrence of phenomena such as avoidance of responsibility and runaway by trading institutions.
  • FIG. 1 is a schematic diagram of a scenario of a blockchain-based transaction system provided by one or more embodiments of this specification;
  • FIG. 2 is a schematic diagram of data flow of a blockchain-based transaction method provided by one or more embodiments of this specification;
  • Fig. 3 is a schematic diagram of the first flow of a blockchain-based transaction method provided by one or more embodiments of this specification;
  • FIG. 4 is a schematic diagram of the second flow of a blockchain-based transaction method provided by one or more embodiments of this specification;
  • Figure 5-1 and Figure 5-2 are schematic diagrams of the third process of a blockchain-based transaction method provided by one or more embodiments of this specification;
  • FIG. 6 is a schematic diagram of a scenario of a blockchain-based transaction supervision system provided by one or more embodiments of this specification;
  • FIG. 7 is a schematic flowchart of a blockchain-based transaction supervision method provided by one or more embodiments of this specification.
  • FIG. 8 is a schematic diagram of the module composition of a blockchain-based transaction device provided by one or more embodiments of this specification;
  • FIG. 9 is a schematic diagram of the module composition of a block chain-based transaction monitoring device provided by one or more embodiments of this specification.
  • FIG. 10 is a schematic structural diagram of a blockchain-based transaction device provided by one or more embodiments of this specification.
  • FIG. 11 is a schematic structural diagram of a blockchain-based transaction monitoring device provided by one or more embodiments of this specification.
  • One or more embodiments of this specification provide a blockchain-based transaction and transaction supervision method, device and equipment.
  • the transaction process is open, transparent, and visible to multiple parties.
  • Violations of regulations and laws have played a deterrent effect; and by storing transaction record information such as resource transfer record information in the blockchain, the immutability and openness of the data on the chain are ensured, which effectively avoids data loss and data
  • Counterfeiting and other issues solve the problems of difficulty in providing evidence and rights protection for resource transfer users in the process of rights protection; at the same time, it can supervise whether resource trading institutions have transaction risks based on the transaction record information stored in the blockchain, effectively reducing resources The occurrence of phenomena such as avoidance of responsibility and runaway by trading institutions.
  • the blockchain-based transaction and transaction supervision methods, devices and equipment provided in the embodiments of this specification can not only be applied to the allocation of money, but also can be applied to the allocation of other resources, such as the allocation of resources such as data.
  • Figure 1 is a schematic diagram of an application scenario of a blockchain-based transaction system provided by one or more embodiments of this specification.
  • the system includes: a first blockchain node, and terminal equipment for resource collection users And the terminal equipment of the resource transfer user; among them, the first blockchain node, the terminal equipment of the resource collection user and the terminal equipment of the resource transfer user are all connected to the blockchain, such as accessing the P2P alliance chain, the terminal equipment of the resource collecting user
  • the terminal equipment of the resource transfer user can be a mobile phone, tablet computer, desktop computer, portable notebook computer, etc.
  • the terminal equipment of the resource collection user and the terminal equipment of the resource transfer user are connected to the first blockchain node through the wireless network. .
  • the terminal device of the resource collection user receives the resource collection information sent by the resource collection user, generates a resource collection request based on the resource collection information, and sends the resource collection request to the first blockchain node; the first blockchain The node receives the resource collection request sent by the resource collection user’s terminal device, and publishes the resource collection information included in the resource collection request to the blockchain through the first smart contract, so that the resource transfer user’s terminal device obtains resources from the blockchain Collect information; resource transfer users operate their terminal equipment, browse the resource collection information released by the first blockchain node in the blockchain, select the target resource collection user for resource transfer, and submit the resource transfer information, and the resource transfer user’s The terminal device collects the user's user information and submits the resource transfer information according to the target resource selected by the resource transfer user, and sends the resource transfer request to the first blockchain node; the first blockchain node receives the resource transfer sent by the terminal device of the resource transfer user Request, verify the resource transfer information, and when the verification is passed, generate resource transfer record
  • resource collection users and resource transfer users can be individuals or users designated by enterprises and institutions; resource collection information includes the total amount of resources to be collected, the reason for resource collection, the time of resource issuance, and the time of resource return; The resource transfer information includes information such as the amount of resource transfer; further, the resource issuance time is the time when the resource collecting user requests the resource trading agency to release the collected resources to the resource collecting user.
  • the resource return time can be the resource return time in installments or once. Sex return time.
  • Figure 3 is a schematic flow chart of a blockchain-based transaction method provided by one or more embodiments of this specification.
  • the method in Figure 3 can be executed by the first blockchain node in Figure 1, as shown in Figure 3 ,
  • the method includes:
  • Step S102 the first blockchain node receives a resource collection request sent by the terminal device of the resource collection user, where the resource collection request includes resource collection information;
  • Step S104 the first blockchain node publishes the resource collection information to the blockchain through the first smart contract, so that the terminal device of the resource transfer user obtains the resource collection information from the blockchain;
  • Step S106 The first blockchain node receives the resource transfer request sent by the terminal device of the resource transfer user, where the resource transfer request includes: a resource transfer target selected based on the resource collection information for resource transfer collection user information, and The target resource collects the resource transfer information of the user for resource transfer;
  • Step S108 the first blockchain node generates resource transfer record information according to the resource transfer request, and writes the resource transfer record information into the blockchain.
  • the transaction process by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, which has a deterrent effect on violations of regulations and laws; at the same time, it records information by transferring resources Written in the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other problems, and solves the problems of difficulty in raising evidence and defending rights in the process of resource transfer users. .
  • step S106 the method further includes:
  • Step A1 The first blockchain node receives a first registration request sent by a terminal device of a resource transfer user, where the first registration request includes first registration information;
  • the first registration information includes the identity information of the resource transfer user, the first account information, contact information, etc. Further, if the resource transfer user is an individual, the identity information of the resource transfer user can be the ID number of the resource transfer user. If the resource transfer user is a user designated by an enterprise or institution, the identity information of the resource transfer user is the company where the resource transfer user belongs. The identity information of the institution, such as the industrial and commercial business license of the enterprise or institution, the organization code certificate, the unified social credit code certificate, the tax registration certificate, and the certificate number of any of the certificates.
  • Step A2 If the first blockchain node determines that the first registration information is valid, the user ID of the resource transfer user is determined, and the first registration record is generated based on the first registration information, the user ID of the resource transfer user, and the organization ID of the resource transaction agency , Write the first registration record into the blockchain.
  • the first blockchain node matches the identity information of the resource transfer user with the user's identity information stored in the database of the first designated organization, and compares the first account information with the second designated organization The user’s account information stored in the database is matched.
  • the first registration information is determined to be valid; when the resource transfer user is a user designated by an enterprise or institution, the first blockchain node transfers the resource to the user’s identity information Match with the identity information of the enterprises and institutions stored in the database of the third designated institution, match the first account information with the user's account information stored in the database of the second designated institution, and if the matching is successful, determine the first registration information Valid; and after determining that the first registration information is valid, the first blockchain node allocates the resource transfer user's second account in the resource trading institution for the resource transfer user, and the second account can store the resources of the resource transfer user; and
  • the transferring user randomly assigns a user ID, or uses the resource transferring user's identity information as the resource transferring user's user ID; the first blockchain node assigns the first registration information, the user ID of the resource transferring user, the second account, and the resource transaction agency
  • the organization ID and other information of the organization are associated and recorded, and the recorded information is used as the first registration record information, and the first registration record information
  • the first designated agency, the second designated agency, and the third designated agency are all credible third-party agencies with authority and legitimacy. Taking resources as money as an example, the first designated agency is for example the Public Security Bureau and the second designated agency. The designated agency is, for example, a bank, and the third designated agency is, for example, the Industrial and Commercial Bureau.
  • step S102 it further includes:
  • Step B1 The first blockchain node receives a second registration request sent by the terminal device of the resource collection user, where the second registration request includes second registration information;
  • Step B2 If the first blockchain node determines that the second registration information is valid, the user ID of the resource collection user is determined, and a second registration record is generated based on the second registration information, the user ID of the resource collection user, and the organization ID of the resource transaction agency Information, write the second registration record information into the blockchain.
  • step B1 and step B2 can refer to the implementation methods of step A1 and step A2, and the repetitive points will not be repeated here.
  • each transaction includes multiple transaction stages, such as resource collection initiation stage, resource collection stage, resource issuance stage and resource return stage, etc., there are usually time intervals between different transaction stages, making the same transaction in different stages.
  • the transaction record information of the transaction stage is scattered and stored in multiple blocks of the blockchain; in order to ensure that each transaction is associated with the transaction record information of each transaction stage, in one or more embodiments of this specification, as shown in the figure As shown in 4, after step S102, it further includes:
  • Step S103-2 the first blockchain node generates the resource collection record information of the resource collection user according to the resource collection information, and generates the identifier of the resource collection record information;
  • step S103-4 the first blockchain node writes the resource collection record information, the identification of the resource collection record information, the user identification of the resource collection user, and the institutional identification of the resource transaction agency into the blockchain correspondingly.
  • the identification of the resource collection record information is generated to associate all transaction records of the corresponding transaction according to the identification, and it is convenient for the second blockchain node and the tracking agency to obtain the transaction record of each transaction in the blockchain.
  • the first blockchain node generates resource transfer record information according to the resource transfer request, including:
  • the first blockchain node determines that the current amount of collected resources and the total amount of resource transfers are not greater than the total amount of resources to be collected, the amount of resources transferred, the user identification of the resource transfer user, and the target resource collection user's
  • the identifier of the resource collection record information is associated and recorded, and the recorded information is used as the resource transfer record information for the resource transfer user to the target resource collection user.
  • the first blockchain node when the first blockchain node receives the resource transfer request sent by the resource transfer user, if the corresponding resource transfer record information is found in the blockchain according to the identifier of the resource collection record information of the target resource collection user, then Count the total number of resource transfers included in the found investment transfer record information as the current number of collected resources; if the user's resource collection record information identifier is collected according to the target resource, the corresponding resource is not found in the blockchain Transfer record information, it is determined that the current number of collected resources is zero; the first blockchain node adds the current number of collected resources to the number of resource transfers included in the resource transfer request, if the result of the addition is not greater than the number of resources to be collected For the total amount of resources, the resource transfer request includes the resource transfer quantity, the user identification of the resource transfer user, and the identification of the resource collection record information of the target resource collection user.
  • the recorded information is used as the resource transfer user to the target.
  • the resource collects the resource transfer record information of the user's resource transfer.
  • the first blockchain node receives the resource transfer request sent by the resource transfer user
  • the first blockchain node reads the pre-recorded number of currently collected resources, and compares the read number of currently collected resources with Add the number of resource transfers included in the resource transfer request. If the result of the addition is not greater than the total amount of resources to be collected, the number of resource transfers included in the resource transfer request, the user ID of the resource transfer user, and the resources of the target resource collection user are added.
  • the identification of the collected record information is associated and recorded, and the recorded information is used as the resource transfer record information of the resource transfer user to the target resource collecting user.
  • the first blockchain node in step S108 when it is determined that the total amount of the current amount of collected resources and the amount of resource transfer included in the resource transfer request is equal to the total amount of resources to be collected, the first blockchain node in step S108 generates a resource transfer record according to the resource transfer request After the information, it also includes:
  • Step C If the first blockchain node determines that the resource issuance time specified by the resource collection user is reached, the resource corresponding to the resource transfer amount is regarded as the collected resource, and the current collected resource is provided to the target resource collection user, and generates Resource issuance record information, the resource issuance record information is written into the blockchain; where the resource issuance record information includes the identification of the resource collection record information of the target resource collection user.
  • the first blockchain node determines that the current amount of collected resources and the total amount of resource transfer included in the resource transfer request are equal to the total amount of resources to be collected, that is, the resources to be collected of the resource collection user have been collected. , It is judged whether the current time is the same as the resource issuance time specified by the resource collection user. If so, the resource corresponding to the resource transfer quantity is regarded as the collected resource, and the current collected resource is transferred to the stored target resource collection user’s first 1.
  • the collected resources will be issued to the target resource collection user, and the collected resources will be issued Information such as time, quantity issued, and identification of the resource collection record information of the target resource collection user are associated and recorded, the recorded information is used as the resource issuance record information, and the resource issuance record information is written into the blockchain.
  • the resource usage fee that the resource collection user needs to pay is calculated. Therefore, when the resource issuance time specified by the resource collection user is reached, the collected resources are provided to the resource Collecting users; in practical applications, if the resource collection user’s resources to be collected have been collected and the resource issuance time has not reached, it can also include: sending the resource collection complete information to the resource collection user, and receive whether the resource collection user sent The response message of the resource is issued immediately.
  • the corresponding method also includes:
  • Step D the first blockchain node receives the resource return request sent by the terminal device of the target resource collection user, returns the resource corresponding to the resource return request to the corresponding resource transfer user, generates resource return record information, and returns the resource return record information Write to the blockchain;
  • the resource return record information includes information such as the resource return quantity, return time, and the identification of the resource collection record information of the target resource collection user; further, returning the resource corresponding to the resource return request to the corresponding resource transfer user may be
  • the resource corresponding to the return request is transferred to the resource transfer user's second account of the resource trading institution, and the resource corresponding to the resource return request may also be transferred to the account corresponding to the stored first account information of the resource transfer user.
  • the target resource collection user's identity information and other data can also be provided to the credit agency to alert the target resource collection user.
  • the resource transfer user can follow their needs Extracting the resources stored in the second account to its first account, correspondingly, the method further includes:
  • Step E The first blockchain node receives the resource extraction request sent by the terminal device of the resource transfer user, extracts the resources of the resource transfer user, generates resource extraction record information, and writes the resource extraction record information into the blockchain ;
  • the resource extraction record information includes the resource extraction time, the user identification of the resource transfer user, and the institutional identification of the resource transaction institution.
  • the resource extraction request includes the resource extraction quantity.
  • the first blockchain node receives the resource extraction request sent by the terminal device of the resource transfer user, it determines whether the resource extraction quantity is not greater than the resource transfer user’s second account. If yes, transfer the resources stored in the second account of the resource transfer user to the stored first account of the resource transfer user according to the amount of resource withdrawal; add the amount of resource withdrawal, resource withdrawal time, and resource The user ID of the transferred user and the institutional ID of the resource transaction agency are associated and recorded, the recorded information is used as the resource extraction record information, and the resource extraction record information is written into the blockchain.
  • the resource pool of the resource trading institution will become vacant and difficult to operate normally. That is, the resource trading institution has certain trading risks.
  • the resource extraction record information of the transferred user is written into the blockchain, so that the second blockchain node can discover the potential transaction risk of the resource trading institution in a timely and early manner based on the resource extraction record information, thereby avoiding resource transfer users caused by this risk Economic loss.
  • the resource collection fails .
  • the method also includes:
  • Step F1 When the resource issuance time specified by the resource collection user is reached, if the first blockchain node determines that the current number of collected resources is not zero and is less than the total amount of resources to be collected, it sends resource collection failure information to the resource Collect users and return the currently collected resources to the corresponding resource transfer users;
  • Step F2 The first blockchain node generates resource collection failure record information and resource return record information, and writes the resource collection failure record information and resource return record information into the blockchain;
  • the resource collection failure record information includes information such as the resource collection failure time, the resource collection record information identification of the resource collection user, and the resource return record information includes the number of returned resources, the return time, the user identification of the resource transfer user, and the resource collection user's identification. Information such as the identification of the resource collection record information.
  • Blockchain nodes provide a sufficient data basis to supervise whether there are transaction risks in resource trading institutions. In one or more embodiments of this specification, it also includes:
  • Step G the first blockchain node generates resource state record information according to the state of the resource to be collected, and writes the resource state record information into the blockchain; wherein the resource state record information includes the state of the resource to be collected.
  • the resource state record information includes the state of the resource to be collected.
  • the first blockchain node After the aforementioned step S103-2, the first blockchain node generates first state record information, which includes state information indicating that the resource to be collected is in the state to be collected and the target resource collection user’s information Information such as the identification of the resource collection record information; after step S104, the first blockchain node generates second state record information, which includes state information indicating that the resource to be collected is in the collecting state and the target resource collection user’s information Information such as the identification of the resource collection record information; when it is determined that the total amount of the current collected resources and the resource transfer quantity included in the resource transfer request is equal to the total amount of resources to be collected, the first blockchain node generates the third state record information ,
  • the third status record information includes information indicating the status information that the resource to be collected has been collected and the identification of the resource collection record information of the target resource collection user; when it is determined that the collection of the resource to be collected has been completed but has not reached the resource collection user’s designated At the time of resource issuance, the first blockchain node generates fourth
  • resource trading institutions In order to enhance the goodwill and trust of resource transfer users to resource trading institutions, resource trading institutions often publish announcements about their operating status on their websites or applications (APP), such as various honorary awards and various Transaction data, etc., in order to achieve a kind of advertising benefits, so that the resource transfer user believes that the resource trading institution has a strong background and high security. At the same time, resource trading institutions will also revoke the published announcement information when there are trading risks.
  • APP websites or applications
  • one or more embodiments of this specification further include:
  • the first blockchain node When the user of the resource trading institution publishes the announcement information of the operating status of the resource trading institution on the website or application of the resource trading institution through its terminal device, the first blockchain node generates the announcement record information based on the announcement information, and publishes the announcement The record information is written into the blockchain, where the announcement record information includes the key information of the announcement information and the institutional identification of the resource trading institution; and,
  • the first blockchain node When the user of the resource trading institution revokes the announcement information through its terminal device, the first blockchain node generates the announcement revocation record information according to the revoked announcement information, and writes the announcement revocation record information into the blockchain; among them, the announcement revocation record information Including the cancellation time of the cancellation announcement information and the institutional identification of the resource trading agency.
  • the website or application of the resource trading institution provides a data acquisition interface for the first blockchain node.
  • the user of the resource trading institution publishes the operation of the resource trading institution on the website or application of the resource trading institution through its terminal device
  • the first blockchain node obtains the key information of the published announcement information through the data acquisition interface, and records the obtained key information, the release time of the announcement information, and the institutional identification of the resource trading institution.
  • the node obtains the key information of the cancelled announcement information through the data acquisition interface, and records the acquired key information, the cancellation time of the announcement information, and the institutional identification of the resource trading institution, etc., and uses the recorded information as the announcement cancellation record information.
  • the second blockchain node can release the record information according to the announcement and announce the cancellation of the record information in time and early Discover the potential trading risks of financial institutions.
  • the first blockchain node will also write the registration information of the resource trading institution and the identity information of the person in charge of the resource trading institution into the blockchain.
  • the method includes:
  • Step S202 The first blockchain node receives the first registration request sent by the terminal device of the resource transfer user, and judges whether the first registration information included in the first registration request is valid. If yes, execute step S204, otherwise send registration failure information to the resource Transfer user’s terminal equipment;
  • Step S204 The first blockchain node determines the user ID of the resource transfer user, generates first registration record information based on the first registration information, the user ID of the resource transfer user, and the organization ID of the resource transaction institution, and writes the first registration record information Into the blockchain;
  • Step S206 The first blockchain node receives the second registration request sent by the terminal device of the resource collection user, and judges whether the second registration information included in the second registration request is valid. If yes, execute step S208, otherwise send registration failure information to the resource Collect user's terminal equipment;
  • Step S208 The first blockchain node determines the resource collection user ID of the resource collection user, generates second registration record information based on the second registration information, the resource collection user ID, and the organization ID of the resource transaction agency, and writes the second registration record information Into the blockchain;
  • Step S210 The first blockchain node receives the resource collection request sent by the terminal device of the resource collection user, generates the resource collection record information of the resource collection user according to the resource collection information included in the resource collection request, and generates the identifier of the resource collection record information, Write the resource collection record information, the identifier of the resource collection record information, the user identifier of the resource collection user, and the institutional identifier of the resource transaction agency into the blockchain correspondingly; where the resource collection information includes the total amount of resources to be collected;
  • Step S212 the first blockchain node generates first state record information, and writes the first state record information into the blockchain;
  • Step S214 the first blockchain node publishes the resource collection information to the blockchain through the first smart contract, generates second state record information, and writes the second state record information into the blockchain;
  • Step S216 The first blockchain node receives the resource transfer request sent by the terminal device of the resource transfer user, where the resource transfer request includes the target resource collection user's user information selected based on the resource collection information for resource transfer, and the target The number of resources transferred by resource collection users for resource transfer;
  • Step S218, the first blockchain node obtains the current amount of collected resources of the target resource collection user, and judges whether the total amount of the current collected resources and the resource transfer amount is not greater than the total resources of the target resource collection user to be collected. If yes, perform step S220; otherwise, send request failure information to the terminal device of the resource transfer user;
  • the resource transfer request is regarded as a request failure, and the request failure information is sent to the resource transfer user. Further, when the resource transfer user receives the request failure information, the resource transfer quantity can be adjusted and the resource transfer request can be resent to the first blockchain node.
  • step S220 the first blockchain node associates the number of resource transfers, the user identification of the resource transfer user, and the identification of the resource collection record information of the target resource collection user, and uses the recorded information as the resource transfer user to the target resource collection
  • the resource transfer record information of the user's resource transfer, and the resource transfer record information is written into the blockchain
  • Step S222 The first blockchain node uses the resource corresponding to the amount of resource transfer as the collected resource. If the current amount of collected resources is equal to the total amount of resources to be collected by the target resource collection user, step S224 is executed. The amount of collected resources is less than the total amount of resources to be collected by the target resource collecting user, then step S230 is executed;
  • Step S224 The first blockchain node generates the third status record information, writes the third status record information into the blockchain, and determines whether the resource issuance time specified by the target resource collection user is reached, and if yes, execute step S228, otherwise Go to step S226;
  • Step S228 The first blockchain node provides the collected resources to the target resource collection user, generates resource issuance record information and fifth status record information, and writes the resource issuance record information and fifth status record information into the blockchain ;
  • Step S230 the first blockchain node judges whether the resource issuance time specified by the target resource collection user is reached, if yes, execute step S232, otherwise return to step S216;
  • Step S232 the first blockchain node sends resource collection failure information to the resource collection user, returns the currently collected resources to the corresponding resource transfer user, and generates resource collection failure record information and resource return record information, and the resource collection fails
  • the record information and resource return record information are written into the blockchain.
  • steps S202-S204 can be interchanged with the execution order of step S206-step S208, and can also be executed at the same time; the specific implementation process of step S202 to step S232 can be referred to the aforementioned related descriptions, and the repetitions I won't repeat it here.
  • the resource collection request when the first blockchain node receives the resource collection request sent by the terminal device of the resource collection user, the resource collection request includes resource collection information; the resource collection information is collected through the first smart contract Publish to the blockchain so that the terminal device of the resource transfer user can obtain the resource collection information in the blockchain; and, upon receiving the resource transfer request sent by the terminal device of the resource transfer user, generate the resource transfer according to the resource transfer request The user collects the resource transfer record information of the user's resource transfer from the target resource, and writes the resource transfer record information into the blockchain.
  • transactions are conducted in a trusted environment of the blockchain, making the transaction process open and transparent, visible to multiple parties, and deterring violations of regulations and laws; at the same time, by transferring resources to record information, etc.
  • the transaction record information is stored in the blockchain to ensure the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and solving the difficulty of providing evidence and defending rights in the process of resource transfer users Difficulties and other issues, and provide an effective data basis for transaction supervision.
  • Fig. 6 is a schematic diagram of an application scenario of a blockchain-based transaction supervision system provided by one or more embodiments of this specification.
  • the system includes: a first blockchain node, a second block Chain nodes and tracking agencies.
  • the first block chain node, the second block chain node and the tracking agency are all connected to the block chain, and the tracking agencies such as the Public Security Bureau and the Transportation Bureau.
  • the first blockchain node which writes the transaction record information of the resource trading institution into the blockchain
  • the second blockchain node obtains the transaction record information of the resource trading institution in the blockchain, and based on the acquired transaction record information, determines whether the resource trading institution has transaction risks through the second smart contract, and determines whether the resource trading institution exists When trading risks, send alarm information to the tracking agency through the second smart contract;
  • the tracking agency when it receives the alarm information sent by the second blockchain node, it tracks the resource transaction agency; for example, the public security bureau queries the transaction record information of the resource transaction agency in the blockchain, and the resource transaction agency’s resources Control key information such as margin and unpaid resources, and the Transportation Bureau controls the whereabouts of relevant persons in charge of resource trading agencies to prevent relevant persons in charge of resource trading agencies from escaping to avoid legal liabilities; and when necessary, The Transportation Bureau can also upload the whereabouts of the relevant person in charge of the resource trading agency to the blockchain for the public security bureau to determine the location of the person in charge based on the whereabouts video.
  • the public security bureau queries the transaction record information of the resource transaction agency in the blockchain, and the resource transaction agency’s resources Control key information such as margin and unpaid resources
  • the Transportation Bureau controls the whereabouts of relevant persons in charge of resource trading agencies to prevent relevant persons in charge of resource trading agencies from escaping to avoid legal liabilities; and when necessary, The Transportation Bureau can also upload the whereabouts of the relevant person in charge of the resource trading agency to the
  • Fig. 7 is a schematic flowchart of a blockchain-based transaction supervision method provided by one or more embodiments of this specification.
  • the method in Fig. 7 can be executed by the second blockchain node in Fig. 6, as shown in Fig. 7 As shown, the method includes:
  • Step S302 the second blockchain node obtains the transaction record information of the resource trading institution in the blockchain, where the transaction record information includes resource collection record information, resource status record information, resource transfer record information, resource extraction record information, and 1. At least one piece of information from registration record information, announcement release record information, and announcement cancellation record;
  • Step S304 Based on the transaction record information, the second blockchain node determines whether the resource trading institution has transaction risk through the second smart contract;
  • Step S306 If the resource trading institution has a transaction risk, the second blockchain node sends alarm information to the tracking institution through the second smart contract, so that the tracking institution can track the resource trading institution.
  • the transaction risks of resource trading institutions can be discovered in time and early, and then the resource trading institutions can be tracked in time, which not only realizes the resource
  • the effective supervision of transactions conducted by trading institutions has reduced the occurrence of resource trading institutions’ avoidance of responsibilities and running away.
  • there is no need for resource transfer users to provide too much evidence during the supervision process which reduces the cost of rights protection for resource transfer users. Improve the efficiency of supervision.
  • the resource collection record information includes the resource issuance time
  • the resource extraction record information includes the resource extraction time and the user ID of the resource transfer user
  • the announcement revocation record information includes the revocation time of the revocation announcement information.
  • the second blockchain node calls the second smart contract, and performs at least one of the following operations based on the second smart contract:
  • the resource status is that the resource has been collected but not released, and the number of resources collected exceeds the preset number, then the resource is determined.
  • the resource extraction record information count the first proportion of resource transfer users who perform resource extraction operations among all resource transfer users registered in the resource trading institution within the first preset time period; If the first ratio exceeds the first preset ratio, it is determined that the resource trading institution has trading risks;
  • announcement record information determine whether the announcement information issued by the resource trading institution meets the preset conditions, and if so, determine that the resource trading institution has trading risks;
  • announcement release record information and the announcement cancellation record information count the second proportion of all announcements that have been released by resource trading institutions within the second preset period of time. If the second proportion exceeds the second The preset ratio determines that the resource trading institution has trading risks.
  • the above-mentioned process of determining the transaction risk of a resource trading institution based on the resource collection record information and resource status record information includes: obtaining the target resource collection record information whose resource issuance time is before the current time in the resource collection record information; collecting record information according to the target resource The identification of the resource status record information to obtain the corresponding target resource status record information; if the status information in the target resource status record information indicates that the resource is in a state that has been collected but not sent, and the resource amount of the collected but not sent resource If the amount exceeds the preset amount, it is determined that the resource trading institution has trading risks;
  • the above-mentioned process of determining the transaction risk of the resource trading institution based on the first registration record information and resource extraction record information includes: counting the number of first registration record information included in the transaction record information to obtain all resource transfer users registered with the resource trading institution The first quantity of the resource extraction record information; obtain the target resource extraction record information with the resource extraction time within the first preset time period in the resource extraction record information, and count the number of user identifications of the resource transfer users included in the target resource extraction record to obtain the The second number of resource transfer users who perform resource extraction operations within a preset time period is divided by the second number and the first number to obtain the first proportion of resource transfer users who perform resource extraction operations; The ratio is compared with the first preset ratio, and if the calculated first ratio exceeds the first preset ratio, it is determined that the resource trading institution has trading risks;
  • the above-mentioned process of determining the transaction risk of the resource trading institution based on the announcement release record information includes: obtaining the key information included in the announcement release record information.
  • the key information characterizes the announcement type of the announcement information, if it is determined that the obtained key information represents the preset announcement Type, it is determined that the resource trading institution has trading risks; among them, the preset announcement types such as the type of business that cannot extract resources, the type of operating state that characterizes the difficulty of the resource trading institution, the type of operating state that characterizes the benign exit of the resource trading institution, etc.;
  • the key characterizes the main content of the published announcement information, if it is determined that the key information includes preset fields, it is determined that the resource trading institution has transaction risks; among them, the preset fields such as failure to extract resources, operational difficulties, withdrawal, etc.;
  • the above-mentioned process of determining the transaction risk of the resource trading institution based on the announcement release record information and the announcement cancellation record information includes: obtaining the target announcement cancellation record information with the cancellation time within the second preset time period in the announcement cancellation record information, and statistical target cancellation records The third quantity of information; and the fourth quantity of the announcement record information included in the statistical transaction record information. Divide the third quantity by the fourth quantity to obtain all the announcements issued by the resource trading agency within the second preset time period The second proportion of the cancelled announcement information in the information, if the second proportion obtained exceeds the second preset proportion, it is determined that the resource trading institution has transaction risks.
  • the first preset ratio and the second preset ratio may be the same or different.
  • the first preset time period and the second preset time period may be the same or different.
  • the first preset ratio, the second preset ratio, and the first Both the preset time period and the second preset time period can be set according to actual needs.
  • a complaint module is usually set up in the website or application of a resource trading institution for users to operate and realize complaints about the business or service of the resource trading institution, and the complaints of users are also reflected to a certain extent.
  • Resource trading institutions may have operational problems. Based on this, one or more embodiments of this specification also include:
  • the second blockchain node counts the number of operations performed by the complaint module included in the website or application of the resource trading institution within the preset time period. If the number of operations is greater than the preset number, it is determined that the resource trading institution has trading risks;
  • the second blockchain node sends alarm information to the tracking agency through the second smart contract or the third smart contract.
  • the second smart contract includes the interface information of the complaint module included in the website or application of the resource trading institution, so that the statistical task can count the number of operations triggered by the corresponding complaint module based on the interface information; or, in the block
  • the third smart contract is deployed in the chain.
  • the third smart contract includes the interface information of the complaint module included in the website or application of the resource trading institution, so that the statistical task can count the number of operations triggered by the corresponding complaint module based on the interface information.
  • the second blockchain node obtains the transaction record information of the resource trading institution in the blockchain, where the transaction record information includes resource collection record information, resource status record information, and resource transfer record At least one of information, resource extraction record information, first registration record information, announcement release record information, and announcement cancellation record information; and, based on the acquired transaction record information, determine whether the resource trading institution has transaction risks through the second smart contract ; And when there is a transaction risk, an alert message is sent to the tracking agency through the second smart contract, so that the tracking agency can track the resource trading agency.
  • the transaction record information includes resource collection record information, resource status record information, and resource transfer record At least one of information, resource extraction record information, first registration record information, announcement release record information, and announcement cancellation record information; and, based on the acquired transaction record information, determine whether the resource trading institution has transaction risks through the second smart contract ; And when there is a transaction risk, an alert message is sent to the tracking agency through the second smart contract, so that the tracking agency can track the resource trading agency.
  • FIGS. 2 to 5 Corresponding to the block chain-based transaction method described in the foregoing FIGS. 2 to 5, based on the same technical concept, one or more embodiments of this specification also provide a block chain-based transaction device.
  • Figure 8 is a schematic diagram of the module composition of a blockchain-based transaction device provided by one or more embodiments of this specification. The device is used to execute the blockchain-based transaction method described in Figures 2 to 5, as shown in Figure 8. , The device includes:
  • a receiving module 401 which receives a resource collection request sent by a terminal device of a resource collection user, where the resource collection request includes resource collection information;
  • the publishing module 402 which publishes the resource collection information to the blockchain through the first smart contract, so that the terminal device of the resource transfer user obtains the resource collection information from the blockchain;
  • the receiving module 401 further receives a resource transfer request sent by the terminal device of the resource transfer user, where the resource transfer request includes: user information of the target resource collection user selected for resource transfer based on the resource collection information, And resource transfer information for resource transfer of the target resource collection user;
  • the writing module 404 writes the resource transfer record information into the blockchain.
  • the transaction process by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, which has a deterrent effect on violations of regulations and laws; at the same time, it records information by transferring resources Written in the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other problems, and solves the problems of difficulty in raising evidence and defending rights in the process of resource transfer users. .
  • the resource collection information includes the total amount of resources to be collected, and the resource transfer information includes the amount of resource transfer;
  • the generating module 403 further generates the resource collection record information of the resource collection user according to the resource collection information after the receiving module 401 receives the resource collection request sent by the terminal device of the resource collection user, and generates the resource The identification of the collected record information;
  • the writing module 404 also correspondingly writes the resource collection record information, the identification of the resource collection record information, the user identification of the resource collection user, and the institution identification of the resource transaction agency into the blockchain ;as well as,
  • the resource transfer amount, the user identification of the resource transfer user, and the target The identifier of the resource collection record information of the resource collection user is associated and recorded, and the recorded information is used as the resource transfer record information for the resource transfer user to the target resource collection user.
  • the resource collection information includes resource issuance time
  • the device further includes: a resource issuance module
  • the resource issuance module when the writing module 404 determines that the total amount of the currently collected resources and the amount of resource transfer is equal to the total amount of resources to be collected, and the generation module 403 according to the resource transfer request After generating the resource transfer record information, if it is determined that the resource issuance time is reached, the resource corresponding to the resource transfer quantity is regarded as the collected resource, the current collected resource is provided to the target resource collection user, and the resource issuance is generated Record information, write the resource issuance record information into the blockchain; wherein, the resource issuance record information includes an identifier of the resource collection record information of the target resource collection user.
  • the device further includes: a resource status recording module;
  • a resource status recording module which, after the receiving module 401 receives the resource transfer request sent by the terminal device of the resource transfer user, generates resource status record information according to the state of the resource to be collected, and records the resource status information Written in the blockchain; wherein the resource status record information includes status information that characterizes the status of the resource to be collected, and an identifier of the resource collection record information of the target resource collection user.
  • the device further includes: a resource extraction module;
  • the resource extraction module receives the resource extraction request sent by the terminal device of the resource transfer user, extracts the resources of the resource transfer user according to the resource extraction request; and generates resource extraction record information, and extracts the resource
  • the record information is written in the blockchain, where the resource extraction record information includes the resource extraction time, the user identification of the resource transfer user, and the institution identification of the resource transaction agency.
  • the device further includes: an announcement recording module;
  • the announcement recording module generates an announcement based on the announcement information when the user of the resource trading institution publishes announcement information on the operating status of the resource trading institution on the website or application of the resource trading institution through its terminal device Release record information, write the announcement release record information into the blockchain, wherein the announcement release record information includes the key information of the announcement information and the institutional identification of the resource trading institution; and,
  • the announcement revocation record information is generated according to the revoked announcement information, and the announcement revocation record information is written into the blockchain; wherein, the The announcement revocation record information includes the revocation time of the revocation of the announcement information and the institution identification of the resource trading institution.
  • the device further includes: a registration module;
  • the registration module receives a first registration request sent by the terminal device of the resource transfer user before the receiving module 401 receives the resource transfer request sent by the terminal device of the resource transfer user, where the first registration The request includes the first registration information;
  • the user ID of the resource transfer user is determined based on the first registration information, the user ID of the resource transfer user, and the resource transaction agency’s
  • the organization identifier generates first registration record information, and writes the first registration record information into the blockchain.
  • the blockchain-based transaction device can receive a resource collection request sent by a terminal device of a resource collection user, where the resource collection request includes resource collection information; through the first smart contract Publish the resource collection information to the blockchain so that the terminal device of the resource transfer user can obtain the resource collection information in the blockchain; and, upon receiving the resource transfer request sent by the terminal device of the resource transfer user, according to the resource transfer Request to generate resource transfer record information for resource transfer users to target resource collection users, and write the resource transfer record information into the blockchain.
  • transactions are conducted in a trusted environment of the blockchain, making the transaction process open and transparent, visible to multiple parties, and deterring violations of regulations and laws; at the same time, by transferring resources to record information, etc.
  • the transaction record information is stored in the blockchain to ensure the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and solving the difficulty of providing evidence and defending rights in the process of resource transfer users Difficulties and other issues, and provide an effective data basis for transaction supervision.
  • Fig. 9 is a schematic diagram of the module composition of a block chain-based transaction supervision device provided by one or more embodiments of this specification.
  • the device is used to implement the block chain-based transaction supervision method described in Fig. 7, as shown in Fig. 9,
  • the device includes:
  • Obtaining module 501 which obtains transaction record information of resource trading institutions in the blockchain, where the transaction record information includes resource collection record information, resource status record information, resource transfer record information, resource extraction record information, and first registration At least one of the information in the record information, announcement release record information, and announcement cancellation record;
  • the determining module 502 which determines whether the resource trading institution has a transaction risk through a second smart contract based on the transaction record information
  • the sending module 503 when the determining module determines that the resource trading institution has a transaction risk, sends alarm information to the tracking institution through the second smart contract, so that the tracking institution can track the resource trading institution .
  • the transaction risks of resource trading institutions can be discovered in time and early, and then the resource trading institutions can be tracked in time, which not only realizes the resource
  • the effective supervision of transactions conducted by trading institutions has reduced the occurrence of resource trading institutions’ avoidance of responsibilities and running away.
  • there is no need for resource transfer users to provide too much evidence during the supervision process which reduces the cost of rights protection for resource transfer users. Improve the efficiency of supervision.
  • the resource collection record information includes the resource issuance time
  • the resource extraction record information includes the resource extraction time and the user identifier of the resource transfer user
  • the announcement cancellation record information includes the cancellation time of the cancellation announcement information
  • the resource trading institution has trading risks
  • the resource extraction record information count the first resource transfer users who perform resource extraction operations among all resource transfer users registered with the resource trading institution within the first preset time period. Ratio; if the statistically calculated first ratio exceeds the first preset ratio, it is determined that the resource trading institution has trading risks;
  • announcement release record information determine whether the announcement information issued by the resource trading institution meets preset conditions, and if so, determine that the resource trading institution has trading risks;
  • the announcement release record information and the announcement cancellation record information count the second proportion of the announcement information that has been revoked among all the announcement information that the resource trading institution has released within the second preset time period. If the second ratio exceeds the second preset ratio, it is determined that the resource trading institution has trading risks.
  • the determining module 502 also uses the statistical tasks included in the second smart contract or the third smart contract to count the operations performed by the complaint module included in the website or application of the resource trading institution within a preset time period. If the counted number of operations is greater than the preset number of times, it is determined that the resource trading institution has transaction risks; and,
  • alarm information is sent to the tracking agency.
  • the block chain-based transaction supervision device obtains transaction record information of resource trading institutions in the block chain, where the transaction record information includes resource collection record information, resource status record information, At least one of resource transfer record information, resource extraction record information, first registration record information, announcement release record information, and announcement cancellation record information; and, based on the acquired transaction record information, determine whether the resource transaction agency is There is a transaction risk; and when there is a transaction risk, an alarm message is sent to the tracking agency through the second smart contract, so that the tracking agency can track the resource trading agency.
  • FIG. 10 is a schematic structural diagram of a blockchain-based transaction device provided by an embodiment of this specification.
  • blockchain-based transaction devices may have relatively large differences due to different configurations or performances. They may include one or more processors 601 and memory 602, and the memory 602 may store one or more Store applications or data. Among them, the memory 602 may be short-term storage or persistent storage.
  • the application program stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in a blockchain-based transaction device.
  • the processor 601 may be configured to communicate with the memory 602, and execute a series of computer-executable instructions in the memory 602 on a blockchain-based transaction device.
  • a blockchain-based transaction device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, one or more keyboards 606, and so on.
  • the blockchain-based transaction device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more Modules, and each module may include a series of computer-executable instructions in a blockchain-based transaction device, and is configured to be executed by one or more processors to execute the one or more programs.
  • a resource transfer request sent by a terminal device of the resource transfer user where the resource transfer request includes: a target resource collection user selected for resource transfer based on the resource collection information, and user information of the target resource collection user; Resource collection user resource transfer information for resource transfer;
  • the transaction process by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, which has a deterrent effect on violations of regulations and laws; at the same time, it records information by transferring resources Written in the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other problems, and solves the problems of difficulty in raising evidence and defending rights in the process of resource transfer users. .
  • the resource collection information includes the total amount of resources to be collected, and the resource transfer information includes the amount of resource transfer;
  • the method After receiving the resource collection request sent by the terminal device of the resource collection user, the method further includes:
  • the generating resource transfer record information according to the resource transfer request includes:
  • the resource transfer amount, the user identification of the resource transfer user, and the target The identifier of the resource collection record information of the resource collection user is associated and recorded, and the recorded information is used as the resource transfer record information for the resource transfer user to the target resource collection user.
  • the resource collection information includes the resource issuance time, when it is determined that the total amount of the currently collected resources and the resource transfer amount is equal to the total amount of resources to be collected
  • the resource transfer record information is generated according to the resource transfer request, it further includes:
  • the resource issuance time is reached, the resource corresponding to the amount of resource transfer is taken as the collected resource, the current collected resource is provided to the target resource collection user, and resource issuance record information is generated, and the resource The issuance record information is written into the blockchain; wherein the resource issuance record information includes the identification of the resource collection record information of the target resource collection user.
  • the method further includes:
  • resource state record information is generated, and the resource state record information is written into the blockchain; wherein, the resource state record information includes characterizing where the resource to be collected is located The status information of the status and the identifier of the resource collection record information of the target resource collection user.
  • the computer executable instructions when executed, they also include:
  • Generate resource extraction record information write the resource extraction record information into the blockchain, where the resource extraction record information includes the resource extraction time, the user ID of the resource transfer user, and the organization ID of the resource transaction agency.
  • the computer executable instructions when executed, they also include:
  • the announcement information When the user of the resource trading institution publishes the announcement information of the operation status of the resource trading institution on the website or application of the resource trading institution through its terminal device, the announcement information is generated according to the announcement information, and the The announcement release record information is written into the blockchain, wherein the announcement release record information includes the key information of the announcement information and the institutional identification of the resource trading institution; and,
  • the announcement revocation record information is generated according to the revoked announcement information, and the announcement revocation record information is written into the blockchain; wherein, the The announcement revocation record information includes the revocation time of the revocation of the announcement information and the institution identification of the resource trading institution.
  • the method further includes:
  • the user ID of the resource transfer user is determined, and the first registration record information is generated according to the first registration information, the user ID of the resource transfer user, and the organization ID of the resource transaction agency , Write the first registration record information into the blockchain.
  • the blockchain-based transaction device upon receiving a resource collection request sent by a terminal device of a resource collection user, wherein the resource collection request includes resource collection information;
  • the resource collection information is released to the blockchain so that the terminal device of the resource transfer user can obtain the resource collection information in the blockchain; and, upon receiving the resource transfer request sent by the terminal device of the resource transfer user, according to the resource transfer request Generate resource transfer record information for resource transfer users to target resource collection users, and write the resource transfer record information into the blockchain.
  • the transaction record information is stored in the blockchain to ensure the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and solving the difficulty of providing evidence and defending rights in the process of resource transfer users Difficulties and other issues, and provide an effective data basis for transaction supervision.
  • one or more embodiments of this specification also provide a blockchain-based transaction supervision device, which is used to execute the above-mentioned blockchain-based
  • Figure 11 is a schematic structural diagram of a block chain-based transaction supervision device provided by an embodiment of this specification.
  • a blockchain-based transaction monitoring device can have relatively large differences due to different configurations or performances. It can include one or more processors 701 and a memory 702, and the memory 702 can store one or one The above stores applications or data. Among them, the memory 702 may be short-term storage or persistent storage.
  • the application program stored in the memory 702 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in a blockchain-based transaction monitoring device.
  • the processor 701 may be configured to communicate with the memory 702, and execute a series of computer-executable instructions in the memory 702 on a blockchain-based transaction monitoring device.
  • the blockchain-based transaction monitoring device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706, and so on.
  • the block chain-based transaction supervision device includes a memory and one or more programs, one or more programs are stored in the memory, and one or more programs may include one or more programs.
  • the above modules, and each module may include a series of computer-executable instructions in a blockchain-based transaction supervision device, and configured to be executed by one or more processors.
  • the one or more programs include for performing the following Computer executable instructions:
  • transaction record information of resource trading institutions in the blockchain includes resource collection record information, resource status record information, resource transfer record information, resource extraction record information, first registration record information, and announcement Record information and announce at least one of the information in the cancellation record;
  • the transaction risks of resource trading institutions can be discovered in time and early, and then the resource trading institutions can be tracked in time, which not only realizes the resource
  • the effective supervision of transactions conducted by trading institutions has reduced the occurrence of resource trading institutions’ avoidance of responsibilities and running away.
  • there is no need for resource transfer users to provide too much evidence during the supervision process which reduces the cost of rights protection for resource transfer users. Improve the efficiency of supervision.
  • the resource collection record information includes the resource issuance time
  • the resource extraction record information includes the resource extraction time and the user identification of the resource transfer user
  • the announcement cancellation record information includes the cancellation time of the cancellation announcement information
  • the determining whether the resource trading institution has a transaction risk based on the transaction record information through a second smart contract includes:
  • the resource trading institution has trading risks
  • the resource extraction record information count the first resource transfer users who perform resource extraction operations among all resource transfer users registered with the resource trading institution within the first preset time period. Ratio; if the statistically calculated first ratio exceeds the first preset ratio, it is determined that the resource trading institution has trading risks;
  • announcement release record information determine whether the announcement information issued by the resource trading institution meets preset conditions, and if so, determine that the resource trading institution has trading risks;
  • the announcement release record information and the announcement cancellation record information count the second proportion of the announcement information that has been revoked among all the announcement information that the resource trading institution has released within the second preset time period. If the second ratio exceeds the second preset ratio, it is determined that the resource trading institution has trading risks.
  • the computer executable instructions when executed, they also include:
  • the number of operations performed by the complaint module included in the website or application of the resource trading institution within a preset period of time is counted. If the number of operations is greater than the preset number, it is determined that the resource trading institution has trading risks;
  • alarm information is sent to the tracking agency.
  • the blockchain-based transaction monitoring equipment provided in one or more embodiments of this specification can obtain transaction record information of resource trading institutions in the blockchain, where the transaction record information includes resource collection record information, resource status record information, At least one of resource transfer record information, resource extraction record information, first registration record information, announcement release record information, and announcement cancellation record information; and, based on the acquired transaction record information, determine whether the resource transaction agency is There is a transaction risk; and when there is a transaction risk, an alarm message is sent to the tracking agency through the second smart contract, so that the tracking agency can track the resource trading agency.
  • one or more embodiments of this specification also provide a storage medium for storing computer-executable instructions.
  • the storage medium may be a U disk, an optical disk, a hard disk, etc.
  • the computer executable instructions stored in the storage medium can realize the following process when executed by the processor:
  • a resource transfer request sent by a terminal device of the resource transfer user where the resource transfer request includes: a target resource collection user selected for resource transfer based on the resource collection information, and user information of the target resource collection user; Resource collection user resource transfer information for resource transfer;
  • the transaction process by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, which has a deterrent effect on violations of regulations and laws; at the same time, it records information by transferring resources Written in the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other problems, and solves the problems of difficulty in raising evidence and defending rights in the process of resource transfer users. .
  • the resource collection information includes the total amount of resources to be collected, and the resource transfer information includes the amount of resource transfer;
  • the method After receiving the resource collection request sent by the terminal device of the resource collection user, the method further includes:
  • the generating resource transfer record information according to the resource transfer request includes:
  • the resource transfer amount, the user identification of the resource transfer user, and the target The identifier of the resource collection record information of the resource collection user is associated and recorded, and the recorded information is used as the resource transfer record information for the resource transfer user to the target resource collection user.
  • the resource collection information includes the resource issuance time, and when it is determined that the total amount of the currently collected resources and the resource transfer quantity is equal to the When the total resource amount of the resource to be collected, after the resource transfer record information is generated according to the resource transfer request, the method further includes:
  • the resource issuance time is reached, the resource corresponding to the amount of resource transfer is taken as the collected resource, the current collected resource is provided to the target resource collection user, and resource issuance record information is generated, and the resource The issuance record information is written into the blockchain; wherein the resource issuance record information includes the identification of the resource collection record information of the target resource collection user.
  • the method further includes:
  • resource state record information is generated, and the resource state record information is written into the blockchain; wherein, the resource state record information includes characterizing where the resource to be collected is located The status information of the status and the identifier of the resource collection record information of the target resource collection user.
  • the computer executable instructions stored in the storage medium when executed by the processor, they further include:
  • Generate resource extraction record information write the resource extraction record information into the blockchain, where the resource extraction record information includes the resource extraction time, the user ID of the resource transfer user, and the organization ID of the resource transaction agency.
  • the computer executable instructions stored in the storage medium when executed by the processor, they further include:
  • the announcement information When the user of the resource trading institution publishes the announcement information of the operation status of the resource trading institution on the website or application of the resource trading institution through its terminal device, the announcement information is generated according to the announcement information, and the The announcement release record information is written into the blockchain, wherein the announcement release record information includes the key information of the announcement information and the institutional identification of the resource trading institution; and,
  • the announcement revocation record information is generated according to the revoked announcement information, and the announcement revocation record information is written into the blockchain; wherein, the The announcement revocation record information includes the revocation time of the revocation of the announcement information and the institution identification of the resource trading institution.
  • the method further includes:
  • the user ID of the resource transfer user is determined, and the first registration record information is generated according to the first registration information, the user ID of the resource transfer user, and the organization ID of the resource transaction agency , Write the first registration record information into the blockchain.
  • the computer-executable instructions stored in the storage medium when executed by a processor, receive a resource collection request sent by a terminal device of a resource collection user, where the resource collection request includes resource collection information;
  • a smart contract publishes the resource collection information to the blockchain, so that the terminal device of the resource transfer user can obtain the resource collection information in the blockchain; and, upon receiving the resource transfer request sent by the terminal device of the resource transfer user, According to the resource transfer request, the resource transfer record information of the resource transfer user to the target resource collection user is generated, and the resource transfer record information is written into the blockchain.
  • transactions are conducted in a trusted environment of the blockchain, making the transaction process open and transparent, visible to multiple parties, and deterring violations of regulations and laws; at the same time, by transferring resources to record information, etc.
  • the transaction record information is stored in the blockchain to ensure the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and solving the difficulty of providing evidence and defending rights in the process of resource transfer users Difficulties and other issues, and provide an effective data basis for transaction supervision.
  • one or more embodiments of this specification also provide a storage medium for storing computer-executable instructions.
  • the The storage medium may be a U disk, an optical disk, a hard disk, etc., and the computer executable instructions stored in the storage medium can realize the following processes when executed by the processor:
  • transaction record information of resource trading institutions in the blockchain includes resource collection record information, resource status record information, resource transfer record information, resource extraction record information, first registration record information, and announcement Record information and announce at least one of the information in the cancellation record;
  • the transaction risks of resource trading institutions can be discovered in time and early, and then the resource trading institutions can be tracked in time, which not only realizes the resource
  • the effective supervision of transactions conducted by trading institutions has reduced the occurrence of resource trading institutions’ avoidance of responsibilities and running away.
  • there is no need for resource transfer users to provide too much evidence during the supervision process which reduces the cost of rights protection for resource transfer users. Improve the efficiency of supervision.
  • the resource collection record information includes the resource issuance time
  • the resource extraction record information includes the resource extraction time and the user identification of the resource transfer user
  • the announcement cancellation record information includes the cancellation time of the cancellation announcement information
  • the determining whether the resource trading institution has a transaction risk based on the transaction record information through a second smart contract includes:
  • the resource trading institution has trading risks
  • the resource extraction record information count the first resource transfer users who perform resource extraction operations among all resource transfer users registered with the resource trading institution within the first preset time period. Ratio; if the statistically calculated first ratio exceeds the first preset ratio, it is determined that the resource trading institution has trading risks;
  • announcement release record information determine whether the announcement information issued by the resource trading institution meets preset conditions, and if so, determine that the resource trading institution has trading risks;
  • the announcement release record information and the announcement cancellation record information count the second proportion of the announcement information that has been revoked among all the announcement information that the resource trading institution has released within the second preset time period. If the second ratio exceeds the second preset ratio, it is determined that the resource trading institution has trading risks.
  • the computer executable instructions stored in the storage medium when executed by the processor, they further include:
  • the number of operations performed by the complaint module included in the website or application of the resource trading institution within a preset period of time is counted. If the number of operations is greater than the preset number, it is determined that the resource trading institution has trading risks;
  • alarm information is sent to the tracking agency.
  • the computer-executable instructions stored in the storage medium when executed by the processor, obtain transaction record information of the resource trading institution in the blockchain, where the transaction record information includes resource collection record information , Resource status record information, resource transfer record information, resource extraction record information, first registration record information, announcement release record information, at least one of the information in the announcement cancellation record; and, based on the acquired transaction record information, through the second intelligence
  • the contract determines whether the resource trading institution has transaction risk; and when there is a transaction risk, the second smart contract sends alarm information to the tracking institution, so that the tracking institution can track the resource trading institution.
  • a programmable logic device Programmable Logic Device, PLD
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • Verilog Verilog
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers.
  • controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as a part of the memory control logic.
  • controller in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded The same function can be realized in the form of a microcontroller, etc. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for implementing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • Information can be computer readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This application can also be practiced in distributed computing environments. In these distributed computing environments, remote processing devices connected through a communication network perform tasks.
  • program modules can be located in local and remote computer storage media including storage devices.

Abstract

一种基于区块链的交易、交易监管方法、装置及设备,其中交易方法包括:第一区块链节点接收资源收集用户的终端设备发送的资源收集请求(S102),通过第一智能合约将资源收集请求包括的资源收集信息发布至区块链,以使资源转移用户的终端设备从区块链中获取资源收集信息(S104);以及,接收资源转移用户的终端设备发送的资源转移请求(S106),根据资源转移请求生成资源转移记录信息,将资源转移记录信息写入区块链中(S108)。上述方法确保了资源转移记录信息等交易记录信息的不可篡改性以及公开可查性,避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题,同时为交易监管提供了数据基础。

Description

基于区块链的交易、交易监管方法、装置及设备 技术领域
本申请涉及区块链技术领域,尤其涉及一种基于区块链的交易、交易监管方法、装置及设备。
背景技术
P2P借贷(person-to-person lending或peer-to-peer lending),又称点对点网络借贷,是一种将小额资金聚集起来借贷给有资金需求人群的一种民间小额借贷模式,属于互联网金融(ITFIN)产品的一种。当前的P2P借贷模式中,由中心化的P2P信贷机构存储借贷数据,如借贷合同等,然而由于P2P信贷机构对外公布的信息具有非透明性,因此,存在借贷合同丢失、借贷合同被篡改、P2P信贷机构躲避责任或跑路等问题,而且对于投资方来说,还存在举证难、维权难等问题。
发明内容
本说明书一个或多个实施例的目的是提供一种基于区块链的交易、交易监管方法、装置及设备,通过在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,且确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题;同时,能够基于区块链中存储的交易记录信息对资源交易机构是否存在交易风险进行监管,有效的减少了资源交易机构躲避责任、跑路等现象的发生。
为解决上述技术问题,本说明书一个或多个实施例是这样实现的:
本说明书一个或多个实施例提供了一种基于区块链的交易方法,包括:
第一区块链节点接收资源收集用户的终端设备发送的资源收集请求,其中,所述资源收集请求包括资源收集信息;
所述第一区块链节点通过第一智能合约将所述资源收集信息发布至区块链,以使资源转移用户的终端设备从所述区块链中获取所述资源收集信息;
所述第一区块链节点接收所述资源转移用户的终端设备发送的资源转移请求,其中,所述资源转移请求包括:基于所述资源收集信息所选择的进行资源转移的目标资源收集 用户的用户信息,以及对所述目标资源收集用户进行资源转移的资源转移信息;
所述第一区块链节点根据所述资源转移请求生成资源转移记录信息,将所述资源转移记录信息写入所述区块链中。
本说明书一个或多个实施例提供了一种基于区块链的交易监管方法,包括:
第二区块链节点在区块链中获取资源交易机构的交易记录信息,其中,所述交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;
所述第二区块链节点基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险;
若是,则所述第二区块链节点通过所述第二智能合约发送警报信息给追踪机构,以使所述追踪机构对所述资源交易机构进行追踪处理。
本说明书一个或多个实施例提供了一种基于区块链的交易装置,包括:
接收模块,其接收资源收集用户的终端设备发送的资源收集请求,其中,所述资源收集请求包括资源收集信息;
发布模块,其通过第一智能合约将所述资源收集信息发布至区块链,以使资源转移用户的终端设备从所述区块链中获取所述资源收集信息;
所述接收模块,还接收所述资源转移用户的终端设备发送的资源转移请求,其中,所述资源转移请求包括:基于所述资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对所述目标资源收集用户进行资源转移的资源转移信息;
生成模块,其根据所述资源转移请求生成资源转移记录信息;
写入模块,其所述资源转移记录信息写入所述区块链中。
本说明书一个或多个实施例提供了一种基于区块链的交易监管装置,包括:
获取模块,其在区块链中获取资源交易机构的交易记录信息,其中,所述交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;
确定模块,其基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险;
发送模块,其在所述确定模块确定所述资源交易机构存在交易风险时,通过所述第二智能合约发送警报信息给追踪机构,以使所述追踪机构对所述资源交易机构进行追踪处理。
本说明书一个或多个实施例提供了一种基于区块链的交易设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器实现上述所述的基于区块链的交易方法的步骤。
本说明书一个或多个实施例提供了一种基于区块链的交易监管设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器实现上述所述的基于区块链的交易监管方法的步骤。
本说明书一个或多个实施例提供了一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被执行时实现上述所述的基于区块链的交易方法的步骤,或者实现上述所述的基于区块链的交易监管方法的步骤。
本说明书一个或多个实施例中的一种基于区块链的交易、交易监管方法、装置及设备,通过在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;而且通过将资源转移记录信息等交易记录信息保存至区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题;同时,能够基于区块链中存储的交易记录信息对资源交易机构是否存在交易风险进行监管,有效的减少了资源交易机构躲避责任、跑路等现象的发生。
附图说明
为了更清楚地说明本说明书一个或多个实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本说明书一个或多个实施例提供的一种基于区块链的交易系统的场景示意图;
图2为本说明书一个或多个实施例提供的一种基于区块链的交易方法的数据流转示意图;
图3为本说明书一个或多个实施例提供的一种基于区块链的交易方法的第一种流程 示意图;
图4为本说明书一个或多个实施例提供的一种基于区块链的交易方法的第二种流程示意图;
图5-1和图5-2为本说明书一个或多个实施例提供的一种基于区块链的交易方法的第三种流程示意图;
图6为本说明书一个或多个实施例提供的一种基于区块链的交易监管系统的场景示意图;
图7为本说明书一个或多个实施例提供的一种基于区块链的交易监管方法的流程示意图;
图8为本说明书一个或多个实施例提供的一种基于区块链的交易装置的模块组成示意图;
图9为本说明书一个或多个实施例提供的一种基于区块链的交易监管装置的模块组成示意图;
图10为本说明书一个或多个实施例提供的一种基于区块链的交易设备的结构示意图;
图11为本说明书一个或多个实施例提供的一种基于区块链的交易监管设备的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本说明书一个或多个实施例中的技术方案,下面将结合本说明书一个或多个实施例中的附图,对本说明书一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书一个或多个实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请的保护范围。
本说明书一个或多个实施例提供了一种基于区块链的交易、交易监管方法、装置及设备,通过在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;而且通过将资源转移记录信息等交易记录信息保存至区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据 造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题;同时,能够基于区块链中存储的交易记录信息对资源交易机构是否存在交易风险进行监管,有效的减少了资源交易机构躲避责任、跑路等现象的发生。需要指出的是,本说明书实施例提供的基于区块链的交易、交易监管方法、装置及设备,不仅可以应用于金钱的调配,还可以应用于其他资源的调配,如数据等资源的调配。
图1为本说明书一个或多个实施例提供的一种基于区块链的交易系统的应用场景示意图,如图1所示,该系统包括:第一区块链节点、资源收集用户的终端设备和资源转移用户的终端设备;其中,第一区块链节点、资源收集用户的终端设备和资源转移用户的终端设备均接入区块链,如接入P2P联盟链,资源收集用户的终端设备和资源转移用户的终端设备可以为手机、平板电脑、台式计算机、便携笔记本式计算机等,资源收集用户的终端设备和资源转移用户的终端设备均通过无线网络与第一区块链节点进行通信连接。
具体的,参见图2,资源收集用户的终端设备接收资源收集用户发送的资源收集信息,根据资源收集信息生成资源收集请求,并发送资源收集请求给第一区块链节点;第一区块链节点接收资源收集用户的终端设备发送的资源收集请求,并通过第一智能合约将资源收集请求包括的资源收集信息发布至区块链,以使资源转移用户的终端设备从区块链中获取资源收集信息;资源转移用户操作其终端设备,浏览第一区块链节点在区块链中发布的资源收集信息,从中选择进行资源转移的目标资源收集用户,并提交资源转移信息,资源转移用户的终端设备根据资源转移用户选择的目标资源收集用户的用户信息和提交资源转移信息,发送资源转移请求给第一区块链节点;第一区块链节点接收资源转移用户的终端设备发送的资源转移请求,对资源转移信息进行验证,并在验证通过时,根据资源转移请求生成资源转移记录信息,将资源转移记录信息写入区块链中。其中,资源收集用户和资源转移用户可以为个人,也可以为企事业单位所指定的用户;资源收集信息包括待收集资源的资源总量、资源收集缘由、资源发放时间以及资源归还时间等信息;资源转移信息包括资源转移数量等信息;进一步的,资源发放时间为资源收集用户请求资源交易机构将已收集资源发放给资源收集用户的时间,资源归还时间可以为资源分期归还时间,还可以为一次性归还时间。
图3为本说明书一个或多个实施例提供的一种基于区块链的交易方法的流程示意图,图3中的方法能够由图1中的第一区块链节点执行,如图3所示,该方法包括:
步骤S102,第一区块链节点接收资源收集用户的终端设备发送的资源收集请求,其 中,资源收集请求包括资源收集信息;
步骤S104,第一区块链节点通过第一智能合约将资源收集信息发布至区块链,以使资源转移用户的终端设备从区块链中获取资源收集信息;
步骤S106,第一区块链节点接收资源转移用户的终端设备发送的资源转移请求,其中,资源转移请求包括:基于资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对目标资源收集用户进行资源转移的资源转移信息;
步骤S108,第一区块链节点根据资源转移请求生成资源转移记录信息,将资源转移记录信息写入区块链中。
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题。
为了对资源转移用户进行有效的管理,本说明书一个或多个实施例中,步骤S106之前,还包括:
步骤A1,第一区块链节点接收资源转移用户的终端设备发送的第一注册请求,其中,第一注册请求包括第一注册信息;
其中,第一注册信息包括资源转移用户的身份信息、第一账户信息、联系方式等。进一步的,若资源转移用户为个人,则资源转移用户的身份信息可以为资源转移用户的身份证件号码,若资源转移用户为企事业单位指定的用户,则资源转移用户的身份信息为其所在企事业单位的身份信息,如企事业单位的工商营业执照、组织机构代码证、统一社会信用代码证、税务登记证等证件中任一证件的证件号码。
步骤A2,若第一区块链节点确定第一注册信息有效,则确定资源转移用户的用户标识,根据第一注册信息、资源转移用户的用户标识以及资源交易机构的机构标识生成第一注册记录,将第一注册记录写入区块链中。
具体的,当资源转移用户为个人时,第一区块链节点将资源转移用户的身份信息与第一指定机构数据库所存储的用户的身份信息进行匹配、将第一账户信息与第二指定机构数据库所存储的用户的账户信息进行匹配,若均匹配成功,则确定第一注册信息有效;当资源转移用户为企事业单位指定的用户时,第一区块链节点将资源转移用户的身份信息与第三指定机构数据库所存储的企事业单位的身份信息进行匹配、将第一账户信息与 第二指定机构数据库所存储的用户的账户信息进行匹配,若均匹配成功,则确定第一注册信息有效;并在确定第一注册信息有效之后,第一区块链节点为资源转移用户分配资源转移用户在资源交易机构的第二账户,该第二账户可存储资源转移用户的资源;以及为资源转移用户随机分配用户标识,或者,将资源转移用户的身份信息作为资源转移用户的用户标识;第一区块链节点将第一注册信息、资源转移用户的用户标识、第二账户和资源交易机构的机构标识等信息进行关联记录,并将记录的信息作为第一注册记录信息,将第一注册记录信息写入区块链中。其中,第一指定机构、第二指定机构和第三指定机构均为可信的第三方机构,具有权威性和合法性,以资源为金钱为例,第一指定机构例如为公安局、第二指定机构例如为银行、第三指定机构例如为工商局。通过将资源转移用户的第一注册记录信息写入区块链,以在后续根据该第一注册记录信息对资源交易机构是否存在交易风险进行监管,并且避免了在资源交易机构存在交易风险时,资源交易机构推脱与资源转移用户之间的交易合作关系。
相似的,为了对资源收集用户进行有效的管理,本说明书一个或多个实施例中,步骤S102之前,还包括:
步骤B1,第一区块链节点接收资源收集用户的终端设备发送的第二注册请求,其中,第二注册请求包括第二注册信息;
步骤B2,若第一区块链节点确定第二注册信息有效,则确定资源收集用户的用户标识,根据第二注册信息、资源收集用户的用户标识以及资源交易机构的机构标识生成第二注册记录信息,将第二注册记录信息写入区块链中。
其中,步骤B1和步骤B2的实现方法可参见前述步骤A1和步骤A2的实现方法,重复之处这里不再赘述。
考虑到每笔交易包括多个交易阶段,如资源收集的发起阶段、资源收集阶段、资源发放阶段以及资源归还阶段等,而不同的交易阶段之间通常会有时间间隔,使得同一笔交易在不同的交易阶段的交易记录信息是分散的存储于区块链的多个区块中;为了确保每笔交易在各交易阶段的交易记录信息相关联,本说明书一个或多个实施例中,如图4所示,步骤S102之后,还包括:
步骤S103-2,第一区块链节点根据资源收集信息生成资源收集用户的资源收集记录信息,以及生成资源收集记录信息的标识;
步骤S103-4,第一区块链节点将资源收集记录信息、资源收集记录信息的标识、资 源收集用户的用户标识、以及资源交易机构的机构标识对应写入区块链中。
通过生成资源收集记录信息的标识,以根据该标识关联相应交易的所有交易记录,并为第二区块链节点以及追踪机构在区块链中获取每笔交易的交易记录提供了便利。
考虑到当资源收集用户的待收集资源的资源总量较大时,往往一个资源转移用户的资源难以满足该资源收集用户的需求,因而,本说明书一个或多个实施例中,可以有多个资源转移用户同时对同一个资源收集用户进行资源转移,对应的,步骤S108中,第一区块链节点根据资源转移请求生成资源转移记录信息,包括:
若第一区块链节点确定当前已收集资源的数量与资源转移数量的总量不大于待收集资源的资源总量,则将资源转移数量、资源转移用户的用户标识、以及目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为资源转移用户向目标资源收集用户进行资源转移的资源转移记录信息。
具体的,当第一区块链节点接收到资源转移用户发送的资源转移请求时,若根据目标资源收集用户的资源收集记录信息的标识在区块链中查找到对应的资源转移记录信息,则统计查找到的投资转移记录信息所包括的资源转移数量的总量,作为当前已收集资源的数量;若根据目标资源收集用户的资源收集记录信息的标识在区块链中未查找到对应的资源转移记录信息,则确定当前已收集资源的数量为零;第一区块链节点将当前已收集资源的数量与资源转移请求包括的资源转移数量相加,若相加结果不大于待收集资源的资源总量,则将资源转移请求包括的资源转移转移数量、资源转移用户的用户标识、以及目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为资源转移用户向目标资源收集用户进行资源转移的资源转移记录信息。或者,在第一区块链节点接收到资源转移用户发送的资源转移请求时,第一区块链节点读取预先记录的当前已收集资源的数量,将读取的当前已收集资源的数量与资源转移请求包括的资源转移数量相加,若相加结果不大于待收集资源的资源总量,则将资源转移请求包括的资源转移数量、资源转移用户的用户标识、以及目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为资源转移用户对目标资源收集用户进行资源转移的资源转移记录信息。
进一步的,当确定当前已收集资源的数量与资源转移请求包括的资源转移数量的总量等于待收集资源的资源总量时,步骤S108中第一区块链节点根据资源转移请求生成资源转移记录信息之后,还包括:
步骤C,若第一区块链节点确定到达资源收集用户指定的资源发放时间,则将该资源转移数量对应的资源作为已收集资源,将当前的已收集资源提供给目标资源收集用户,并生成资源发放记录信息,将资源发放记录信息写入区块链中;其中,资源发放记录信息包括目标资源收集用户的资源收集记录信息的标识。
具体的,当第一区块链节点确定当前已收集资源的数量与资源转移请求包括的资源转移数量的总量等于待收集资源的资源总量时,即资源收集用户的待收集资源已收集完成,则判断当前时间与资源收集用户指定的资源发放时间是否相同,若是,则将资源转移数量对应的资源作为已收集资源,并将当前的已收集资源转入已存储的目标资源收集用户的第一账户信息所对应的账户中,或者将当前的已收集资源转入目标资源收集用户在资源交易机构的第二账户中,即将已收集资源发放给目标资源收集用户,并将已收集资源的发放时间、发放数量、目标资源收集用户的资源收集记录信息的标识等信息进行关联记录,将记录的信息作为资源发放记录信息,将该资源发放记录信息写入区块链中。
需要指出的是,由于将已收集资源提供给资源收集用户之后,开始计算资源收集用户需支付的资源使用费用,因此,在到达资源收集用户指定的资源发放时间时,将已收集资源提供给资源收集用户;在实际应用中,若资源收集用户的待收集资源已收集完成且未到达资源发放时间时,还可以包括:发送资源已收集完成信息给资源收集用户,并接收资源收集用户发送的是否立即发放资源的应答消息。
在将已收集资源提供给目标资源收集用户之后,目标资源收集用户则需要按照资源收集请求所包括的资源归还时间归还资源,对应的方法还包括:
步骤D,第一区块链节点接收目标资源收集用户的终端设备发送的资源归还请求,将资源归还请求对应的资源归还给对应的资源转移用户,并生成资源归还记录信息,将资源归还记录信息写入区块链中;
其中,资源归还记录信息包括资源归还数量、归还时间、目标资源收集用户的资源收集记录信息的标识等信息;进一步的,将资源归还请求对应的资源归还给对应的资源转移用户,可以为将资源归还请求对应的资源转入资源转移用户在资源交易机构的第二账户中,还可以将资源归还请求对应的资源转入已存储的资源转移用户的第一账户信息所对应的账户中。
通过生成资源归还记录信息,并将资源归还记录信息写入区块链中,确保了目标资源收集用户归还资源操作的有据可查,降低了资源交易机构对目标资源收集用户归还的 资源进行恶意操作,而不及时归还给资源转移用户的风险,以及降低了目标资源收集用户逃废债的风险。
需要指出的是,若目标资源收集用户未按照资源归还时间归还资源,还可以将该目标资源收集用户的身份信息等数据提供给征信机构,以对目标资源收集用户进行警示。
进一步的,在将资源归还请求对应的资源转入资源转移用户在资源交易机构的第二账户中之后,或者,在资源转移用户的第二账户中存有资源时,资源转移用户可以根据其需求将该第二账户中存有的资源提取到其第一账户,对应的,方法还包括:
步骤E,第一区块链节点接收资源转移用户的终端设备发送的资源提取请求,对资源转移用户的资源进行提取处理,并生成资源提取记录信息,将资源提取记录信息写入区块链中;其中,资源提取记录信息包括资源提取时间、资源转移用户的用户标识和资源交易机构的机构标识。
具体的,资源提取请求包括资源提取数量,当第一区块链节点接收到资源转移用户的终端设备发送的资源提取请求时,判断资源提取数量是否不大于资源转移用户的第二账户中所存有的资源的数量,若是,则以资源提取数量将资源转移用户的第二账户中所存有的资源转入已存储的资源转移用户的第一账户中;并将资源提取数量、资源提取时间、资源转移用户的用户标识、以及资源交易机构的机构标识等信息进行关联记录,将记录的信息作为资源提取记录信息,将资源提取记录信息写入区块链中。
通常的,当在预设时段内超过一定比例的资源转移用户均提取资源时,会使资源交易机构的资源池出现空缺而难以正常运作,也即资源交易机构存在一定的交易风险,通过将资源转移用户的资源提取记录信息写入区块链,使得第二区块链节点能够根据该资源提取记录信息及时及早的发现资源交易机构存在的潜在交易风险,从而避免因该风险导致的资源转移用户的经济损失。
在实际应用中,当资源收集用户的资源收集缘由或者其他因素使得在到达资源收集用户指定的资源发放时间时,没能吸引到足够多的资源转移用户对其进行资源转移时,则资源收集失败,对应的,方法还包括:
步骤F1,当到达资源收集用户指定的资源发放时间时,若第一区块链节点确定当前已收集资源的数量不为零且小于待收集资源的资源总量,则发送资源收集失败信息给资源收集用户,并将当前已收集资源返还给对应的资源转移用户;
步骤F2,第一区块链节点生成资源收集失败记录信息和资源返还记录信息,将该资 源收集失败记录信息和资源返还记录信息写入区块链中;
其中,资源收集失败记录信息包括资源收集失败时间、资源收集用户的资源收集记录信息的标识等信息,资源返还记录信息包括返还资源的数量、返还时间、资源转移用户的用户标识、资源收集用户的资源收集记录信息的标识等信息。通过将资源收集失败记录信息和资源返还记录信息写入区块链,确保了资源收集请求所对应的交易数据的完整性,使得具有交易查看权限的用户可以在区块链中看到每个交易的起始点和结束点。
根据前述描述可知,资源收集用户的待收集资源会经历如收集中、收集完成、收集完成而未发放、已发放等多个状态,为了更清楚的体现待收集资源当前所处的状态,为第二区块链节点对资源交易机构是否存在交易风险进行监管提供充分的数据基础,本说明书一个或多个实施例中,还包括:
步骤G,第一区块链节点根据待收集资源所处的状态,生成资源状态记录信息,将资源状态记录信息写入区块链中;其中,资源状态记录信息包括表征待收集资源所处状态的状态信息、目标资源收集用户的资源收集记录信息的标识,以使第二区块链节点根据资源状态记录信息对资源交易机构是否存在交易风险进行监管。
具体而言,在前述步骤S103-2之后,第一区块链节点生成第一状态记录信息,该第一状态记录信息中包括表征待收集资源处于待收集状态的状态信息和目标资源收集用户的资源收集记录信息的标识等信息;在步骤S104之后,第一区块链节点生成第二状态记录信息,该第二状态记录信息包括表征待收集资源处于收集状态的状态信息和目标资源收集用户的资源收集记录信息的标识等信息;在前述确定当前已收集资源的数量与资源转移请求包括的资源转移数量的总额等于待收集资源的资源总额时,第一区块链节点生成第三状态记录信息,该第三状态记录信息包括表征待收集资源已收集完成的状态信息和目标资源收集用户的资源收集记录信息的标识等信息;在确定待收集资源已收集完成,而未到达资源收集用户指定的资源发放时间时,第一区块链节点生成第四状态记录信息,该第四状态记录信息包括表征资源处于已收集完成而未发放状态的状态信息和目标资源收集用户的资源收集记录信息的标识等信息;在步骤D之后,第一区块链节点生成第五状态记录信息,该第五状态记录信息包括表征资源处于已发放状态的状态信息和目标资源收集用户的资源收集记录信息的标识等信息。
为了提升资源转移用户对资源交易机构的好感和信任,资源交易机构常常在其网站或者应用程序(APP)中发布其经营状态的公告信息,如经营过程中所获得的各种荣誉奖项、各种交易数据等,以达到一种广告效益,使得资源转移用户认为该资源交易机构 的背景雄厚、安全性高。同时,资源交易机构也会在存在交易风险的时候,撤销已发布的公告信息,此时也会因资源转移用户大量访问资源交易机构的网站、应用程序而导致服务瘫痪,使得资源转移用户无法在第一时间获取到资源交易机构的公告信息,也就无法掌握更多有关资源交易机构的证明信息,使得投资者维权艰难,甚至为违法者提供了资源转移时间。基于此,本说明书一个或多个实施例中,还包括:
当资源交易机构的用户通过其终端设备在资源交易机构的网站或应用程序中发布资源交易机构的经营状态的公告信息时,第一区块链节点根据公告信息生成公告发布记录信息,将公告发布记录信息写入区块链中,其中,公告发布记录信息包括公告信息的关键信息以及资源交易机构的机构标识;以及,
当资源交易机构的用户通过其终端设备撤销公告信息时,第一区块链节点根据撤销的公告信息生成公告撤销记录信息,将公告撤销记录信息写入区块链中;其中,公告撤销记录信息包括撤销公告信息的撤销时间以及资源交易机构的机构标识。
具体而言,资源交易机构的网站或应用程序为第一区块链节点提供数据获取接口,当资源交易机构的用户通过其终端设备在资源交易机构的网站或应用程序中发布资源交易机构的经营状态的公告信息时,第一区块链节点通过数据获取接口获取发布的公告信息的关键信息,将获取的关键信息、公告信息的发布时间、以及资源交易机构的机构标识等信息进行关联记录,并将记录的信息作为公告发布记录信息,将公告发布记录信息写入区块链中;当资源交易机构的用户通过其终端设备撤销资源交易机构的经营状态的公告信息时,第一区块链节点通过数据获取接口获取撤销的公告信息的关键信息,将获取的关键信息、公告信息的撤销时间、以及资源交易机构的机构标识等信息进行关联记录,并将记录的信息作为公告撤销记录信息,将公告撤销记录信息写入区块链中。由此,通过将公告信息的发布记录信息写入区块链中,使得资源交易机构即使删除了其网站或应用程序中的公告信息,也无法抹除其已发布公告信息的事实,使得资源转移用户不会在资源交易机构产生交易风险的时候,因无法获取到资源交易机构的相关证明信息而处于被动状态,同时使得第二区块链节点能够根据公告发布记录信息以及公告撤销记录信息及时及早的发现金融机构存在的潜在交易风险。
需要指出的,在资源交易机构成立时,第一区块链节点还将资源交易机构的注册信息、资源交易机构负责人的身份信息等写入区块链。
在一个具体的实施例中,如图5-1和图5-2所示,方法包括:
步骤S202,第一区块链节点接收资源转移用户的终端设备发送的第一注册请求,判断第一注册请求包括的第一注册信息是否有效,是则执行步骤S204,否则发送注册失败信息给资源转移用户的终端设备;
步骤S204,第一区块链节点确定资源转移用户的用户标识,根据第一注册信息、资源转移用户的用户标识以及资源交易机构的机构标识生成第一注册记录信息,将第一注册记录信息写入区块链中;
步骤S206,第一区块链节点接收资源收集用户的终端设备发送的第二注册请求,判断第二注册请求包括的第二注册信息是否有效,是则执行步骤S208,否则发送注册失败信息给资源收集用户的终端设备;
步骤S208,第一区块链节点确定资源收集用户的资源收集用户标识,根据第二注册信息、资源收集用户标识以及资源交易机构的机构标识生成第二注册记录信息,将第二注册记录信息写入区块链中;
步骤S210,第一区块链节点接收资源收集用户的终端设备发送的资源收集请求,根据资源收集请求包括的资源收集信息生成资源收集用户的资源收集记录信息,以及生成资源收集记录信息的标识,将资源收集记录信息、资源收集记录信息的标识、资源收集用户的用户标识、以及资源交易机构的机构标识对应写入区块链中;其中,资源收集信息包括待收集资源的资源总量;
步骤S212,第一区块链节点生成第一状态记录信息,将第一状态记录信息写入区块链中;
步骤S214,第一区块链节点通过第一智能合约将资源收集信息发布至区块链,并生成第二状态记录信息,将第二状态记录信息写入区块链中;
步骤S216,第一区块链节点接收资源转移用户的终端设备发送的资源转移请求,其中,资源转移请求包括基于资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对目标资源收集用户进行资源转移的资源转移数量;
步骤S218,第一区块链节点获取关于目标资源收集用户的当前已收集资源的数量,判断当前已收集资源的数量与资源转移数量的总量是否不大于目标资源收集用户待收集资源的资源总量,是则执行步骤S220,否则发送请求失败信息给资源转移用户的终端设备;
其中,当当前已收集资源的数量与资源转移数量的总量大于目标资源收集用户 待收集资源的资源总量时,即超出了目标资源收集用户待收集资源的资源总量,由于超出的部分资源需要目标资源收集用户支付额外的使用费用,因此,资源转移请求视为请求失败,发送请求失败信息给资源转移用户。进一步的,当资源转移用户接收到请求失败信息时,可以调整资源转移数量后,重新发送资源转移请求给第一区块链节点。
步骤S220,第一区块链节点将资源转移数量、资源转移用户的用户标识、以及目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为资源转移用户对目标资源收集用户进行资源转移的资源转移记录信息,将资源转移记录信息写入区块链中;
步骤S222,第一区块链节点将资源转移数量对应的资源作为已收集资源,若当前的已收集资源的数量等于目标资源收集用户待收集资源的资源总量,则执行步骤S224,若当前的已收集资源的数量小于目标资源收集用户待收集资源的资源总量,则执行步骤S230;
步骤S224,第一区块链节点生成第三状态记录信息,将第三状态记录信息写入区块链中,并判断是否到达目标资源收集用户指定的资源发放时间,是则执行步骤S228,否则执行步骤S226;
步骤S226,第一区块链节点生成第四状态记录信息,将第四状态记录信息写入区块链中,并在到达目标资源收集用户指定的资源发放时间时,执行步骤S228;
步骤S228,第一区块链节点将已收集资源提供给目标资源收集用户,生成资源发放记录信息和第五状态记录信息,并将资源发放记录信息和第五状态记录信息写入区块链中;
步骤S230,第一区块链节点判断是否到达目标资源收集用户指定的资源发放时间,是则执行步骤S232,否则返回步骤S216;
步骤S232,第一区块链节点发送资源收集失败信息给资源收集用户,并将当前已收集资源返还给对应的资源转移用户,以及生成资源收集失败记录信息和资源返还记录信息,将资源收集失败记录信息和资源返还记录信息写入区块链中。
需要指出的是,上述步骤S202-步骤S204的执行顺序可以与步骤S206-步骤S208的执行顺序互换,还可以同时执行;步骤S202至步骤S232的具体实现过程可参见前述相关描述,重复之处这里不再赘述。
本说明书一个或多个实施例中,在第一区块链节点接收资源收集用户的终端设 备发送的资源收集请求时,其中,资源收集请求包括资源收集信息;通过第一智能合约将资源收集信息发布至区块链中,以使资源转移用户的终端设备在区块链中获取资源收集信息;以及,在接收到资源转移用户的终端设备发送的资源转移请求时,根据资源转移请求生成资源转移用户对目标资源收集用户进行资源转移的资源转移记录信息,并将资源转移记录信息写入区块链中。可见,通过本说明书中的实施例,在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息等交易记录信息保存至区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题,并为交易的监管提供了有效的数据基础。
附图6为本说明书一个或多个实施例提供的一种基于区块链的交易监管系统的应用场景示意图,如图6所示,该系统包括:第一区块链节点、第二区块链节点和追踪机构,其中,第一区块链节点、第二区块链节点和追踪机构均接入区块链,追踪机构如公安局、交通局等。
第一区块链节点,其将资源交易机构的交易记录信息写入区块链;
第二区块链节点,其在区块链中获取资源交易机构的交易记录信息,基于获取的交易记录信息,通过第二智能合约确定资源交易机构是否存在交易风险,并在确定资源交易机构存在交易风险时,通过第二智能合约发送警报信息给追踪机构;
追踪机构,其在接收到第二区块链节点发送的警报信息时,对资源交易机构进行追踪处理;如公安局在区块链中查询资源交易机构的交易记录信息,对资源交易机构的资源余量、未偿还资源等关键信息进行掌控,交通局对资源交易机构的相关负责人的行踪进行掌控,以避免资源交易机构的相关负责人为躲避法律责任而逃窜等;以及在必要的情况下,交通局还可以将资源交易机构的相关负责人的行踪视频上传至区块链,以供公安局根据该行踪视频确定该负责人所在的位置等。
附图7为本说明书一个或多个实施例提供的一种基于区块链的交易监管方法的流程示意图,图7中的方法能够由图6中的第二区块链节点执行,如图7所示,该方法包括:
步骤S302,第二区块链节点在区块链中获取资源交易机构的交易记录信息,其中,交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少 一个信息;
步骤S304,第二区块链节点基于交易记录信息,通过第二智能合约确定资源交易机构是否存在交易风险;
步骤S306,若资源交易机构存在交易风险,则第二区块链节点通过第二智能合约发送警报信息给追踪机构,以使追踪机构对资源交易机构进行追踪处理。
本说明书一个或多个实施例中,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现象的发生;同时,在监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了监管效率。
考虑到当资源交易机构收集了大量资源而未发送给资源收集用户时,存在资源交易机构利用已收集的资源进行违法操作的可能;并且在一定的时间内,当大量的资源转移用户提取其在资源交易机构的资源时,一方面会导致资源交易机构的资源池出现资源短缺问题,而该资源短缺问题可能导致资源交易机构因运转困难而采取违法违规策略,另一方面可能是资源转移用户听闻了资源交易机构的负面消息,即资源交易机构可能存在经营问题;以及,当资源交易机构发布一些不利于经营的公告消息或者撤销其已发布的大量的公告消息时,资源交易机构可能存在无法偿还资源转移用户的资源或者倒闭等风险。基于此,本说明书一个或多个实施例中,资源收集记录信息包括资源发放时间,资源提取记录信息包括资源提取时间和资源转移用户的用户标识,公告撤销记录信息包括撤销公告信息的撤销时间,步骤S304包括:
第二区块链节点调用第二智能合约,基于第二智能合约执行以下操作中的至少一项:
若根据资源收集记录信息和资源状态记录信息,确定存在资源发放时间位于当前时间之前、资源状态为资源已收集完成而未发放的交易,且已收集资源的资源数量超过预设数量,则确定资源交易机构存在交易风险;
根据第一注册记录信息和资源提取记录信息,统计在第一预设时段内注册于所述资源交易机构的所有资源转移用户中进行资源提取操作的资源转移用户所占的第一比例;若统计的第一比例超过第一预设比例,则确定资源交易机构存在交易风险;
根据公告发布记录信息,确定资源交易机构发布的公告信息是否符合预设条件, 若是,则确定资源交易机构存在交易风险;
根据公告发布记录信息和公告撤销记录信息,统计在第二预设时段内资源交易机构曾发布的所有公告信息中被撤销的公告信息所占的第二比例,若统计的第二比例超过第二预设比例,则确定资源交易机构存在交易风险。
上述基于资源收集记录信息和资源状态记录信息,确定资源交易机构存在交易风险的过程包括:在资源收集记录信息中获取资源发放时间位于当前时间之前的目标资源收集记录信息;根据目标资源收集记录信息的标识,在资源状态记录信息中获取对应的目标资源状态记录信息;若目标资源状态记录信息中的状态信息表征资源处于已收集完成而未发的状态、且已收集而未发资源的资源金额超过预设金额,则确定资源交易机构存在交易风险;
上述基于第一注册记录信息和资源提取记录信息,确定资源交易机构存在交易风险的过程包括:统计交易记录信息所包括的第一注册记录信息的数量,得到注册于资源交易机构的所有资源转移用户的第一数量;在资源提取记录信息中获取资源提取时间在第一预设时段内的目标资源提取记录信息,统计目标资源提取记录中所包括的资源转移用户的用户标识的数量,得到在第一预设时段内进行资源提取操作的资源转移用户的第二数量,将第二数量与第一数量相除,得到进行资源提取操作的资源转移用户所占的第一比例;将计算的第一比例与第一预设比例进行比对,若计算的第一比例超过第一预设比例,则确定资源交易机构存在交易风险;
上述基于公告发布记录信息,确定资源交易机构存在交易风险的过程包括:获取公告发布记录信息包括的关键信息,当该关键信息表征公告信息的公告类型时,若确定获取的关键信息表征预设公告类型,则确定资源交易机构存在交易风险;其中,预设公告类型如无法提取资源的业务类型、表征资源交易机构经营困难的经营状态类型、表征资源交易机构良性退出的经营状态类型等;当关键信息表征发布的公告信息的主要内容时,若确定关键信息包括预设字段,则确定资源交易机构存在交易风险;其中,预设字段如无法提取资源、经营困难、退出等;
上述基于公告发布记录信息和公告撤销记录信息,确定资源交易机构存在交易风险的过程包括:在公告撤销记录信息中获取撤销时间在第二预设时段内的目标公告撤销记录信息,统计目标撤销记录信息的第三数量;以及统计交易记录信息所包括的公告发布记录信息的第四数量,将第三数量与第四数量相除,得到在第二预设时段内资源交易机构曾发布的所有公告信息中被撤销的公告信息所占的第二比例,若得到的第二比例 超过第二预设比例,则确定资源交易机构存在交易风险。
其中,第一预设比例与第二预设比例可以相同也可以不同,第一预设时段与第二预设时段可以相同也可以不同,第一预设比例、第二预设比例、第一预设时段、第二预设时段均可在实际应用中可根据需要自行设定。通过对区块链中存储的交易记录信息进行分析,以评估资源交易机构是否存在交易风险,实现了对资源交易机构所进行的交易的有效监管,极大的减少了资源交易机构躲避责任、跑路等现象的发生。
在实际应用中,资源交易机构的网站或应用程序中通常会设置有投诉模块,以供用户操作实现对资源交易机构的业务或服务等的投诉,而用户的投诉行为也在一定程度上反应了资源交易机构可能存在经营上的问题,基于此,本说明书一个或多个实施例中,还包括:
第二区块链节点通过第二智能合约或第三智能合约所包括的统计任务,统计资源交易机构的网站或应用程序所包括的投诉模块在预设时长内被操作的操作次数,若统计的操作次数大于预设次数,则确定资源交易机构存在交易风险;
第二区块链节点通过第二智能合约或第三智能合约发送警报信息给追踪机构。
具体的,第二智能合约中包括资源交易机构的网站或应用程序所包括的投诉模块的接口信息,以使统计任务根据该接口信息统计对应的投诉模块被触发的操作次数;或者,在区块链中部署第三智能合约,第三智能合约中包括资源交易机构的网站或应用程序所包括的投诉模块的接口信息,以使统计任务根据该接口信息统计对应的投诉模块被触发的操作次数。
本说明书一个或多个实施例中,第二区块链节点通过在区块链中获取资源交易机构的交易记录信息,其中,交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;以及,基于获取的交易记录信息,通过第二智能合约确定资源交易机构是否存在交易风险;并在存在交易风险时,通过第二智能合约发送警报信息给追踪机构,以使追踪机构对资源交易机构进行追踪处理。可见,通过本说明书的实施例,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现象的发生;同时,监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了 监管效率。
对应上述图2至图5描述的基于区块链的交易方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于区块链的交易装置。图8为本说明书一个或多个实施例提供的基于区块链的交易装置的模块组成示意图,该装置用于执行图2至图5描述的基于区块链的交易方法,如图8所示,该装置包括:
接收模块401,其接收资源收集用户的终端设备发送的资源收集请求,其中,所述资源收集请求包括资源收集信息;
发布模块402,其通过第一智能合约将所述资源收集信息发布至区块链,以使资源转移用户的终端设备从所述区块链中获取所述资源收集信息;
接收模块401,还接收所述资源转移用户的终端设备发送的资源转移请求,其中,所述资源转移请求包括:基于所述资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对所述目标资源收集用户进行资源转移的资源转移信息;
生成模块403,其根据所述资源转移请求生成资源转移记录信息;
写入模块404,其将所述资源转移记录信息写入所述区块链中。
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题。
可选地,所述资源收集信息包括待收集资源的资源总量,所述资源转移信息包括资源转移数量;
所述生成模块403,还在所述接收模块401接收资源收集用户的终端设备发送的资源收集请求之后,根据所述资源收集信息生成所述资源收集用户的资源收集记录信息,以及生成所述资源收集记录信息的标识;
所述写入模块404,还将所述资源收集记录信息、所述资源收集记录信息的标识、所述资源收集用户的用户标识、以及资源交易机构的机构标识对应写入所述区块链中;以及,
若确定当前已收集资源的数量与所述资源转移数量的总量不大于所述待收集资 源的资源总量,则将所述资源转移数量、所述资源转移用户的用户标识、以及所述目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为所述资源转移用户向所述目标资源收集用户进行资源转移的资源转移记录信息。
可选地,所述资源收集信息包括资源发放时间,装置还包括:资源发放模块;
资源发放模块,其在写入模块404确定当前已收集资源的数量与所述资源转移数量的总量等于所述待收集资源的资源总量时,且所述生成模块403根据所述资源转移请求生成资源转移记录信息之后,若确定到达所述资源发放时间,则将所述资源转移数量对应的资源作为已收集资源,将当前的已收集资源提供给所述目标资源收集用户,并生成资源发放记录信息,将所述资源发放记录信息写入所述区块链中;其中,所述资源发放记录信息包括所述目标资源收集用户的资源收集记录信息的标识。
可选地,装置还包括:资源状态记录模块;
资源状态记录模块,其在接收模块401接收所述资源转移用户的终端设备发送的资源转移请求之后,根据所述待收集资源所处的状态,生成资源状态记录信息,将所述资源状态记录信息写入所述区块链中;其中,所述资源状态记录信息包括表征所述待收集资源所处状态的状态信息、所述目标资源收集用户的资源收集记录信息的标识。
可选地,装置还包括:资源提取模块;
资源提取模块,接收所述资源转移用户的终端设备发送的资源提取请求,根据所述资源提取请求对所述资源转移用户的资源进行提取处理;以及,生成资源提取记录信息,将所述资源提取记录信息写入所述区块链中,其中,所述资源提取记录信息包括资源提取时间、资源转移用户的用户标识和资源交易机构的机构标识。
可选地,装置还包括:公告记录模块;
所述公告记录模块,其当资源交易机构的用户通过其终端设备在所述资源交易机构的网站或应用程序中发布所述资源交易机构的经营状态的公告信息时,根据所述公告信息生成公告发布记录信息,将所述公告发布记录信息写入所述区块链中,其中,所述公告发布记录信息包括所述公告信息的关键信息以及资源交易机构的机构标识;以及,
当所述资源交易机构的用户通过其终端设备撤销所述公告信息时,根据撤销的公告信息生成公告撤销记录信息,将所述公告撤销记录信息写入所述区块链中;其中,所述公告撤销记录信息包括撤销所述公告信息的撤销时间以及资源交易机构的机构标识。
可选地,装置还包括:注册模块;
所述注册模块,在所述接收模块401接收所述资源转移用户的终端设备发送的资源转移请求之前,接收所述资源转移用户的终端设备发送的第一注册请求,其中,所述第一注册请求包括第一注册信息;以及,
若所述第一区块链节点确定所述第一注册信息有效,则确定所述资源转移用户的用户标识,根据所述第一注册信息、所述资源转移用户的用户标识以及资源交易机构的机构标识生成第一注册记录信息,将所述第一注册记录信息写入所述区块链中。
本说明书一个或多个实施例提供的基于区块链的交易装置,能够在接收到资源收集用户的终端设备发送的资源收集请求时,其中,资源收集请求包括资源收集信息;通过第一智能合约将资源收集信息发布至区块链中,以使资源转移用户的终端设备在区块链中获取资源收集信息;以及,在接收到资源转移用户的终端设备发送的资源转移请求时,根据资源转移请求生成资源转移用户对目标资源收集用户进行资源转移的资源转移记录信息,并将资源转移记录信息写入区块链中。可见,通过本说明书中的实施例,在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息等交易记录信息保存至区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题,并为交易的监管提供了有效的数据基础。
需要说明的是,本申请中关于基于区块链的交易装置的实施例与本申请中关于基于区块链的交易方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易方法的实施,重复之处不再赘述。
对应上述图7描述的基于区块链的交易监管方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于区块链的交易监管装置。图9为本说明书一个或多个实施例提供的基于区块链的交易监管装置的模块组成示意图,该装置用于执行图7描述的基于区块链的交易监管方法,如图9所示,该装置包括:
获取模块501,其在区块链中获取资源交易机构的交易记录信息,其中,所述交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;
确定模块502,其基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险;
发送模块503,其在所述确定模块确定所述资源交易机构存在交易风险时,通过所述第二智能合约发送警报信息给追踪机构,以使所述追踪机构对所述资源交易机构进行追踪处理。
本说明书一个或多个实施例中,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现象的发生;同时,在监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了监管效率。
可选地,资源收集记录信息包括资源发放时间,所述资源提取记录信息包括资源提取时间和资源转移用户的用户标识,所述公告撤销记录信息包括撤销公告信息的撤销时间;
所述确定模块502,
调用第二智能合约,基于所述第二智能合约执行以下操作中的至少一项:
若根据所述资源收集记录信息和所述资源状态记录信息,确定存在所述资源发放时间位于当前时间之前、资源状态为资源已收集完成而未发放的交易,且已收集资源的资源数量超过预设数量,则确定所述资源交易机构存在交易风险;
根据所述第一注册记录信息和所述资源提取记录信息,统计在第一预设时段内注册于所述资源交易机构的所有资源转移用户中进行资源提取操作的资源转移用户所占的第一比例;若统计的所述第一比例超过第一预设比例,则确定所述资源交易机构存在交易风险;
根据所述公告发布记录信息,确定所述资源交易机构发布的公告信息是否符合预设条件,若是,则确定所述资源交易机构存在交易风险;
根据所述公告发布记录信息和所述公告撤销记录信息,统计在第二预设时段内所述资源交易机构曾发布的所有公告信息中被撤销的公告信息所占的第二比例,若统计的所述第二比例超过第二预设比例,则确定所述资源交易机构存在交易风险。
可选地,确定模块502,还通过第二智能合约或第三智能合约所包括的统计任务, 统计所述资源交易机构的网站或应用程序所包括的投诉模块在预设时长内被操作的操作次数,若统计的所述操作次数大于预设次数,则确定所述资源交易机构存在交易风险;以及,
通过所述第二智能合约或所述第三智能合约,发送警报信息给追踪机构。
本说明书一个或多个实施例提供的基于区块链的交易监管装置,通过在区块链中获取资源交易机构的交易记录信息,其中,交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;以及,基于获取的交易记录信息,通过第二智能合约确定资源交易机构是否存在交易风险;并在存在交易风险时,通过第二智能合约发送警报信息给追踪机构,以使追踪机构对资源交易机构进行追踪处理。可见,通过本说明书的实施例,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现象的发生;同时,监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了监管效率。
需要说明的是,本申请中关于基于区块链的交易监管装置的实施例与本申请中关于基于区块链的交易监管方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易监管方法的实施,重复之处不再赘述。
进一步地,对应上述图2至图5所示的方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于区块链的交易设备,该设备用于执行上述的基于区块链的交易方法,图10为本说明书实施例所提供的一种基于区块链的交易设备的结构示意图。
如图10所示,基于区块链的交易设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器601和存储器602,存储器602中可以存储有一个或一个以上存储应用程序或数据。其中,存储器602可以是短暂存储或持久存储。存储在存储器602的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括基于区块链的交易设备中的一系列计算机可执行指令。更进一步地,处理器601可以设置为与存储器602通信,在基于区块链的交易设备上执行存储器602中的一系列计算机可执行指令。基于区块链的交易设备还可以包括一个或一个以上电源603,一个或一个以上有线或无线网络接口604,一个或一个以上输入输出接口605,一个或一个以上 键盘606等。
在一个具体的实施例中,基于区块链的交易设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于区块链的交易设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:
接收资源收集用户的终端设备发送的资源收集请求,其中,所述资源收集请求包括资源收集信息;
通过第一智能合约将所述资源收集信息发布至区块链,以使资源转移用户的终端设备从所述区块链中获取所述资源收集信息;
接收所述资源转移用户的终端设备发送的资源转移请求,其中,所述资源转移请求包括:基于所述资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对所述目标资源收集用户进行资源转移的资源转移信息;
根据所述资源转移请求生成资源转移记录信息,将所述资源转移记录信息写入所述区块链中。
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题。
可选地,计算机可执行指令在被执行时,所述资源收集信息包括待收集资源的资源总量,所述资源转移信息包括资源转移数量;
所述接收资源收集用户的终端设备发送的资源收集请求之后,还包括:
根据所述资源收集信息生成所述资源收集用户的资源收集记录信息,以及生成所述资源收集记录信息的标识;
将所述资源收集记录信息、所述资源收集记录信息的标识、所述资源收集用户的用户标识、以及资源交易机构的机构标识对应写入所述区块链中;
所述根据所述资源转移请求生成资源转移记录信息,包括:
若确定当前已收集资源的数量与所述资源转移数量的总量不大于所述待收集资源的资源总量,则将所述资源转移数量、所述资源转移用户的用户标识、以及所述目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为所述资源转移用户向所述目标资源收集用户进行资源转移的资源转移记录信息。
可选地,计算机可执行指令在被执行时,所述资源收集信息包括资源发放时间,当确定当前已收集资源的数量与所述资源转移数量的总量等于所述待收集资源的资源总量时,根据所述资源转移请求生成资源转移记录信息之后,还包括:
若确定到达所述资源发放时间,则将所述资源转移数量对应的资源作为已收集资源,将当前的已收集资源提供给所述目标资源收集用户,并生成资源发放记录信息,将所述资源发放记录信息写入所述区块链中;其中,所述资源发放记录信息包括所述目标资源收集用户的资源收集记录信息的标识。
可选地,计算机可执行指令在被执行时,所述接收所述资源转移用户的终端设备发送的资源转移请求之后,还包括:
根据所述待收集资源所处的状态,生成资源状态记录信息,将所述资源状态记录信息写入所述区块链中;其中,所述资源状态记录信息包括表征所述待收集资源所处状态的状态信息、所述目标资源收集用户的资源收集记录信息的标识。
可选地,计算机可执行指令在被执行时,还包括:
接收所述资源转移用户的终端设备发送的资源提取请求;
根据所述资源提取请求对所述资源转移用户的资源进行提取处理;
生成资源提取记录信息,将所述资源提取记录信息写入所述区块链中,其中,所述资源提取记录信息包括资源提取时间、资源转移用户的用户标识和资源交易机构的机构标识。
可选地,计算机可执行指令在被执行时,还包括:
当所述资源交易机构的用户通过其终端设备在所述资源交易机构的网站或应用程序中发布所述资源交易机构的经营状态的公告信息时,根据所述公告信息生成公告发布记录信息,将所述公告发布记录信息写入所述区块链中,其中,所述公告发布记录信息包括所述公告信息的关键信息以及资源交易机构的机构标识;以及,
当所述资源交易机构的用户通过其终端设备撤销所述公告信息时,根据撤销的 公告信息生成公告撤销记录信息,将所述公告撤销记录信息写入所述区块链中;其中,所述公告撤销记录信息包括撤销所述公告信息的撤销时间以及资源交易机构的机构标识。
可选地,计算机可执行指令在被执行时,所述接收所述资源转移用户的终端设备发送的资源转移请求之前,还包括:
接收所述资源转移用户的终端设备发送的第一注册请求,其中,所述第一注册请求包括第一注册信息;
若确定所述第一注册信息有效,则确定所述资源转移用户的用户标识,根据所述第一注册信息、所述资源转移用户的用户标识以及资源交易机构的机构标识生成第一注册记录信息,将所述第一注册记录信息写入所述区块链中。
本说明书一个或多个实施例提供的基于区块链的交易设备,在接收到资源收集用户的终端设备发送的资源收集请求时,其中,资源收集请求包括资源收集信息;通过第一智能合约将资源收集信息发布至区块链中,以使资源转移用户的终端设备在区块链中获取资源收集信息;以及,在接收到资源转移用户的终端设备发送的资源转移请求时,根据资源转移请求生成资源转移用户对目标资源收集用户进行资源转移的资源转移记录信息,并将资源转移记录信息写入区块链中。可见,通过本说明书中的实施例,在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息等交易记录信息保存至区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题,并为交易的监管提供了有效的数据基础。
需要说明的是,本说明书中关于基于区块链的交易设备的实施例与本说明书中关于基于区块链的交易方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易方法的实施,重复之处不再赘述。
进一步地,对应上述图7所示的方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于区块链的交易监管设备,该设备用于执行上述的基于区块链的交易监管方法,图11为本说明书实施例所提供的一种基于区块链的交易监管设备的结构示意图。
如图11所示,基于区块链的交易监管设备可因配置或性能不同而产生比较大的 差异,可以包括一个或一个以上的处理器701和存储器702,存储器702中可以存储有一个或一个以上存储应用程序或数据。其中,存储器702可以是短暂存储或持久存储。存储在存储器702的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括基于区块链的交易监管设备中的一系列计算机可执行指令。更进一步地,处理器701可以设置为与存储器702通信,在基于区块链的交易监管设备上执行存储器702中的一系列计算机可执行指令。基于区块链的交易监管设备还可以包括一个或一个以上电源703,一个或一个以上有线或无线网络接口704,一个或一个以上输入输出接口705,一个或一个以上键盘706等。
在一个具体的实施例中,基于区块链的交易监管设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于区块链的交易监管设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:
在区块链中获取资源交易机构的交易记录信息,其中,所述交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;
基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险;
若是,则通过所述第二智能合约发送警报信息给追踪机构,以使所述追踪机构对所述资源交易机构进行追踪处理。
本说明书一个或多个实施例中,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现象的发生;同时,在监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了监管效率。
可选地,计算机可执行指令在被执行时,
所述资源收集记录信息包括资源发放时间,所述资源提取记录信息包括资源提取时间和资源转移用户的用户标识,所述公告撤销记录信息包括撤销公告信息的撤销时间;
所述基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险,包括:
调用第二智能合约,基于所述第二智能合约执行以下操作中的至少一项:
若根据所述资源收集记录信息和所述资源状态记录信息,确定存在所述资源发放时间位于当前时间之前、资源状态为资源已收集完成而未发放的交易,且已收集资源的资源数量超过预设数量,则确定所述资源交易机构存在交易风险;
根据所述第一注册记录信息和所述资源提取记录信息,统计在第一预设时段内注册于所述资源交易机构的所有资源转移用户中进行资源提取操作的资源转移用户所占的第一比例;若统计的所述第一比例超过第一预设比例,则确定所述资源交易机构存在交易风险;
根据所述公告发布记录信息,确定所述资源交易机构发布的公告信息是否符合预设条件,若是,则确定所述资源交易机构存在交易风险;
根据所述公告发布记录信息和所述公告撤销记录信息,统计在第二预设时段内所述资源交易机构曾发布的所有公告信息中被撤销的公告信息所占的第二比例,若统计的所述第二比例超过第二预设比例,则确定所述资源交易机构存在交易风险。
可选地,计算机可执行指令在被执行时,还包括:
通过所述第二智能合约或第三智能合约所包括的统计任务,统计所述资源交易机构的网站或应用程序所包括的投诉模块在预设时长内被操作的操作次数,若统计的所述操作次数大于预设次数,则确定所述资源交易机构存在交易风险;
通过所述第二智能合约或所述第三智能合约,发送警报信息给追踪机构。
本说明书一个或多个实施例提供的基于区块链的交易监管设备,能够在区块链中获取资源交易机构的交易记录信息,其中,交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;以及,基于获取的交易记录信息,通过第二智能合约确定资源交易机构是否存在交易风险;并在存在交易风险时,通过第二智能合约发送警报信息给追踪机构,以使追踪机构对资源交易机构进行追踪处理。可见,通过本说明书的实施例,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现 象的发生;同时,监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了监管效率。
需要说明的是,本说明书中关于基于区块链的交易监管设备的实施例与本说明书中关于基于区块链的交易监管方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易监管方法的实施,重复之处不再赘述。
进一步地,对应上述图2至图5所示的方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种存储介质,用于存储计算机可执行指令,一个具体的实施例中,该存储介质可以为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:
接收资源收集用户的终端设备发送的资源收集请求,其中,所述资源收集请求包括资源收集信息;
通过第一智能合约将所述资源收集信息发布至区块链,以使资源转移用户的终端设备从所述区块链中获取所述资源收集信息;
接收所述资源转移用户的终端设备发送的资源转移请求,其中,所述资源转移请求包括:基于所述资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对所述目标资源收集用户进行资源转移的资源转移信息;
根据所述资源转移请求生成资源转移记录信息,将所述资源转移记录信息写入所述区块链中。
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述资源收集信息包括待收集资源的资源总量,所述资源转移信息包括资源转移数量;
所述接收资源收集用户的终端设备发送的资源收集请求之后,还包括:
根据所述资源收集信息生成所述资源收集用户的资源收集记录信息,以及生成所述资源收集记录信息的标识;
将所述资源收集记录信息、所述资源收集记录信息的标识、所述资源收集用户的用户标识、以及资源交易机构的机构标识对应写入所述区块链中;
所述根据所述资源转移请求生成资源转移记录信息,包括:
若确定当前已收集资源的数量与所述资源转移数量的总量不大于所述待收集资源的资源总量,则将所述资源转移数量、所述资源转移用户的用户标识、以及所述目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为所述资源转移用户向所述目标资源收集用户进行资源转移的资源转移记录信息。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述资源收集信息包括资源发放时间,当确定当前已收集资源的数量与所述资源转移数量的总量等于所述待收集资源的资源总量时,所述根据所述资源转移请求生成资源转移记录信息之后,还包括:
若确定到达所述资源发放时间,则将所述资源转移数量对应的资源作为已收集资源,将当前的已收集资源提供给所述目标资源收集用户,并生成资源发放记录信息,将所述资源发放记录信息写入所述区块链中;其中,所述资源发放记录信息包括所述目标资源收集用户的资源收集记录信息的标识。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述接收所述资源转移用户的终端设备发送的资源转移请求之后,还包括:
根据所述待收集资源所处的状态,生成资源状态记录信息,将所述资源状态记录信息写入所述区块链中;其中,所述资源状态记录信息包括表征所述待收集资源所处状态的状态信息、所述目标资源收集用户的资源收集记录信息的标识。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,还包括:
接收所述资源转移用户的终端设备发送的资源提取请求;
根据所述资源提取请求对所述资源转移用户的资源进行提取处理;
生成资源提取记录信息,将所述资源提取记录信息写入所述区块链中,其中,所述资源提取记录信息包括资源提取时间、资源转移用户的用户标识和资源交易机构的机构标识。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,还包括:
当所述资源交易机构的用户通过其终端设备在所述资源交易机构的网站或应用 程序中发布所述资源交易机构的经营状态的公告信息时,根据所述公告信息生成公告发布记录信息,将所述公告发布记录信息写入所述区块链中,其中,所述公告发布记录信息包括所述公告信息的关键信息以及资源交易机构的机构标识;以及,
当所述资源交易机构的用户通过其终端设备撤销所述公告信息时,根据撤销的公告信息生成公告撤销记录信息,将所述公告撤销记录信息写入所述区块链中;其中,所述公告撤销记录信息包括撤销所述公告信息的撤销时间以及资源交易机构的机构标识。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述接收所述资源转移用户的终端设备发送的资源转移请求之前,还包括:
接收所述资源转移用户的终端设备发送的第一注册请求,其中,所述第一注册请求包括第一注册信息;
若确定所述第一注册信息有效,则确定所述资源转移用户的用户标识,根据所述第一注册信息、所述资源转移用户的用户标识以及资源交易机构的机构标识生成第一注册记录信息,将所述第一注册记录信息写入所述区块链中。
本说明书一个或多个实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,接收资源收集用户的终端设备发送的资源收集请求,其中,资源收集请求包括资源收集信息;通过第一智能合约将资源收集信息发布至区块链中,以使资源转移用户的终端设备在区块链中获取资源收集信息;以及,在接收到资源转移用户的终端设备发送的资源转移请求时,根据资源转移请求生成资源转移用户对目标资源收集用户进行资源转移的资源转移记录信息,并将资源转移记录信息写入区块链中。可见,通过本说明书中的实施例,在区块链的可信环境下进行交易,使得交易过程公开透明、多方可见,对违规违法等行为起到了震慑作用;同时,通过将资源转移记录信息等交易记录信息保存至区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,解决了资源转移用户在维权过程中举证难、维权难等问题,并为交易的监管提供了有效的数据基础。
需要说明的是,本申请中关于存储介质的实施例与本申请中关于基于区块链的交易方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易方法的实施,重复之处不再赘述。
进一步地,对应上述图7所示的方法,基于相同的技术构思,本说明书一个或 多个实施例还提供了一种存储介质,用于存储计算机可执行指令,一个具体的实施例中,该存储介质可以为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:
在区块链中获取资源交易机构的交易记录信息,其中,所述交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;
基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险;
若是,则通过所述第二智能合约发送警报信息给追踪机构,以使所述追踪机构对所述资源交易机构进行追踪处理。
本说明书一个或多个实施例中,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现象的发生;同时,在监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了监管效率。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述资源收集记录信息包括资源发放时间,所述资源提取记录信息包括资源提取时间和资源转移用户的用户标识,所述公告撤销记录信息包括撤销公告信息的撤销时间;
所述基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险,包括:
调用第二智能合约,基于所述第二智能合约执行以下操作中的至少一项:
若根据所述资源收集记录信息和所述资源状态记录信息,确定存在所述资源发放时间位于当前时间之前、资源状态为资源已收集完成而未发放的交易,且已收集资源的资源数量超过预设数量,则确定所述资源交易机构存在交易风险;
根据所述第一注册记录信息和所述资源提取记录信息,统计在第一预设时段内注册于所述资源交易机构的所有资源转移用户中进行资源提取操作的资源转移用户所占的第一比例;若统计的所述第一比例超过第一预设比例,则确定所述资源交易机构存在交易风险;
根据所述公告发布记录信息,确定所述资源交易机构发布的公告信息是否符合预设条件,若是,则确定所述资源交易机构存在交易风险;
根据所述公告发布记录信息和所述公告撤销记录信息,统计在第二预设时段内所述资源交易机构曾发布的所有公告信息中被撤销的公告信息所占的第二比例,若统计的所述第二比例超过第二预设比例,则确定所述资源交易机构存在交易风险。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,还包括:
通过所述第二智能合约或第三智能合约所包括的统计任务,统计所述资源交易机构的网站或应用程序所包括的投诉模块在预设时长内被操作的操作次数,若统计的所述操作次数大于预设次数,则确定所述资源交易机构存在交易风险;
通过所述第二智能合约或所述第三智能合约,发送警报信息给追踪机构。
本说明书一个或多个实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,通过在区块链中获取资源交易机构的交易记录信息,其中,交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;以及,基于获取的交易记录信息,通过第二智能合约确定资源交易机构是否存在交易风险;并在存在交易风险时,通过第二智能合约发送警报信息给追踪机构,以使追踪机构对资源交易机构进行追踪处理。可见,通过本说明书的实施例,基于区块链中的交易记录信息,能够及时及早的发现资源交易机构所存在的交易风险,进而及时的对资源交易机构进行追踪处理,不仅实现了对资源交易机构所进行的交易的有效监管,而且减少了资源交易机构躲避责任、跑路等现象的发生;同时,监管过程中无需资源转移用户提供过多证据,降低了资源转移用户的维权成本,提升了监管效率。
需要说明的是,本申请中关于存储介质的实施例与本申请中关于基于区块链的交易监管方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易监管方法的实施,重复之处不再赘述。
在20世纪70年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如, 可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他 数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (17)

  1. 一种基于区块链的交易方法,包括:
    第一区块链节点接收资源收集用户的终端设备发送的资源收集请求,其中,所述资源收集请求包括资源收集信息;
    所述第一区块链节点通过第一智能合约将所述资源收集信息发布至区块链,以使资源转移用户的终端设备从所述区块链中获取所述资源收集信息;
    所述第一区块链节点接收所述资源转移用户的终端设备发送的资源转移请求,其中,所述资源转移请求包括:基于所述资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对所述目标资源收集用户进行资源转移的资源转移信息;
    所述第一区块链节点根据所述资源转移请求生成资源转移记录信息,将所述资源转移记录信息写入所述区块链中。
  2. 根据权利要求1所述的方法,所述资源收集信息包括待收集资源的资源总量,所述资源转移信息包括资源转移数量;
    所述第一区块链节点接收资源收集用户的终端设备发送的资源收集请求之后,还包括:
    所述第一区块链节点根据所述资源收集信息生成所述资源收集用户的资源收集记录信息,以及生成所述资源收集记录信息的标识;
    所述第一区块链节点将所述资源收集记录信息、所述资源收集记录信息的标识、所述资源收集用户的用户标识、以及资源交易机构的机构标识对应写入所述区块链中;
    所述第一区块链节点根据所述资源转移请求生成资源转移记录信息,包括:
    若所述第一区块链节点确定当前已收集资源的数量与所述资源转移数量的总量不大于所述待收集资源的资源总量,则将所述资源转移数量、所述资源转移用户的用户标识、以及所述目标资源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为所述资源转移用户向所述目标资源收集用户进行资源转移的资源转移记录信息。
  3. 根据权利要求2所述的方法,所述资源收集信息包括资源发放时间,当所述第一区块链节点确定当前已收集资源的数量与所述资源转移数量的总量等于所述待收集资源的资源总量时,所述第一区块链节点根据所述资源转移请求生成资源转移记录信息之后,还包括:
    若所述第一区块链节点确定到达所述资源发放时间,则将所述资源转移数量对应的资源作为已收集资源,将当前的已收集资源提供给所述目标资源收集用户,并生成资源发放记录信息,将所述资源发放记录信息写入所述区块链中;其中,所述资源发放记录信息包括所述目标资源收集用户的资源收集记录信息的标识。
  4. 根据权利要求2所述的方法,所述第一区块链节点接收所述资源转移用户的终端设备发送的资源转移请求之后,还包括:
    所述第一区块链节点根据所述待收集资源所处的状态,生成资源状态记录信息,将所述资源状态记录信息写入所述区块链中;其中,所述资源状态记录信息包括表征所述待收集资源所处状态的状态信息、所述目标资源收集用户的资源收集记录信息的标识。
  5. 根据权利要求1所述的方法,还包括:
    所述第一区块链节点接收所述资源转移用户的终端设备发送的资源提取请求;
    所述第一区块链节点根据所述资源提取请求对所述资源转移用户的资源进行提取处理;
    生成资源提取记录信息,将所述资源提取记录信息写入所述区块链中,其中,所述资源提取记录信息包括资源提取时间、资源转移用户的用户标识和资源交易机构的机构标识。
  6. 根据权利要求1所述的方法,还包括:
    当所述资源交易机构的用户通过其终端设备在所述资源交易机构的网站或应用程序中发布所述资源交易机构的经营状态的公告信息时,所述第一区块链节点根据所述公告信息生成公告发布记录信息,将所述公告发布记录信息写入所述区块链中,其中,所述公告发布记录信息包括所述公告信息的关键信息以及资源交易机构的机构标识;以及,
    当所述资源交易机构的用户通过其终端设备撤销所述公告信息时,所述第一区块链节点根据撤销的公告信息生成公告撤销记录信息,将所述公告撤销记录信息写入所述区块链中;其中,所述公告撤销记录信息包括撤销所述公告信息的撤销时间以及资源交易机构的机构标识。
  7. 根据权利要求1-6任一项所述的方法,所述第一区块链节点接收所述资源转移用户的终端设备发送的资源转移请求之前,还包括:
    所述第一区块链节点接收所述资源转移用户的终端设备发送的第一注册请求,其中,所述第一注册请求包括第一注册信息;
    若所述第一区块链节点确定所述第一注册信息有效,则确定所述资源转移用户的用户标识,根据所述第一注册信息、所述资源转移用户的用户标识以及资源交易机构的机构标识生成第一注册记录信息,将所述第一注册记录信息写入所述区块链中。
  8. 一种基于区块链的交易监管方法,包括:
    第二区块链节点在区块链中获取资源交易机构的交易记录信息,其中,所述交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;
    所述第二区块链节点基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险;
    若是,则所述第二区块链节点通过所述第二智能合约发送警报信息给追踪机构,以使所述追踪机构对所述资源交易机构进行追踪处理。
  9. 根据权利要求8所述的方法,所述资源收集记录信息包括资源发放时间,所述资源提取记录信息包括资源提取时间和资源转移用户的用户标识,所述公告撤销记录信息包括撤销公告信息的撤销时间;
    所述第二区块链节点基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险,包括:
    所述第二区块链节点调用第二智能合约,基于所述第二智能合约执行以下操作中的至少一项:
    若根据所述资源收集记录信息和所述资源状态记录信息,确定存在所述资源发放时间位于当前时间之前、资源状态为资源已收集完成而未发放的交易,且已收集资源的资源数量超过预设数量,则确定所述资源交易机构存在交易风险;
    根据所述第一注册记录信息和所述资源提取记录信息,统计在第一预设时段内注册于所述资源交易机构的所有资源转移用户中进行资源提取操作的资源转移用户所占的第一比例;若统计的所述第一比例超过第一预设比例,则确定所述资源交易机构存在交易风险;
    根据所述公告发布记录信息,确定所述资源交易机构发布的公告信息是否符合预设条件,若是,则确定所述资源交易机构存在交易风险;
    根据所述公告发布记录信息和所述公告撤销记录信息,统计在第二预设时段内所述资源交易机构曾发布的所有公告信息中被撤销的公告信息所占的第二比例,若统计的所述第二比例超过第二预设比例,则确定所述资源交易机构存在交易风险。
  10. 根据权利要求8或9所述的方法,还包括:
    所述第二区块链节点通过所述第二智能合约或第三智能合约所包括的统计任务,统计所述资源交易机构的网站或应用程序所包括的投诉模块在预设时长内被操作的操作次数,若统计的所述操作次数大于预设次数,则确定所述资源交易机构存在交易风险;
    所述第二区块链节点通过所述第二智能合约或所述第三智能合约,发送警报信息给追踪机构。
  11. 一种基于区块链的交易装置,包括:
    接收模块,其接收资源收集用户的终端设备发送的资源收集请求,其中,所述资源收集请求包括资源收集信息;
    发布模块,其通过第一智能合约将所述资源收集信息发布至区块链,以使资源转移用户的终端设备从所述区块链中获取所述资源收集信息;
    所述接收模块,还接收所述资源转移用户的终端设备发送的资源转移请求,其中,所述资源转移请求包括:基于所述资源收集信息所选择的进行资源转移的目标资源收集用户的用户信息,以及对所述目标资源收集用户进行资源转移的资源转移信息;
    生成模块,其根据所述资源转移请求生成资源转移记录信息;
    写入模块,其将所述资源转移记录信息写入所述区块链中。
  12. 根据权利要求11所述的装置,所述资源收集信息包括待收集资源的资源总量,所述资源转移信息包括资源转移数量;
    所述生成模块,还在所述接收模块接收资源收集用户的终端设备发送的资源收集请求之后,根据所述资源收集信息生成所述资源收集用户的资源收集记录信息,以及生成所述资源收集记录信息的标识;
    所述写入模块,还将所述资源收集记录信息、所述资源收集记录信息的标识、所述资源收集用户的用户标识、以及资源交易机构的机构标识对应写入所述区块链中;以及,若确定当前已收集资源的数量与所述资源转移数量的总量不大于所述待收集资源的资源总量,则将所述资源转移数量、所述资源转移用户的用户标识、以及所述目标资 源收集用户的资源收集记录信息的标识进行关联记录,并将记录的信息作为所述资源转移用户向所述目标资源收集用户进行资源转移的资源转移记录信息。
  13. 一种基于区块链的交易监管装置,包括:
    获取模块,其在区块链中获取资源交易机构的交易记录信息,其中,所述交易记录信息包括资源收集记录信息、资源状态记录信息、资源转移记录信息、资源提取记录信息、第一注册记录信息、公告发布记录信息、公告撤销记录中信息的至少一个信息;
    确定模块,其基于所述交易记录信息,通过第二智能合约确定所述资源交易机构是否存在交易风险;
    发送模块,其在所述确定模块确定所述资源交易机构存在交易风险时,通过所述第二智能合约发送警报信息给追踪机构,以使所述追踪机构对所述资源交易机构进行追踪处理。
  14. 根据权利要求13所述的装置,所述资源收集记录信息包括资源发放时间,所述资源提取记录信息包括资源提取时间和资源转移用户的用户标识,所述公告撤销记录信息包括撤销公告信息的撤销时间;
    所述确定模块,调用第二智能合约,基于所述第二智能合约执行以下操作中的至少一项:
    若根据所述资源收集记录信息和所述资源状态记录信息,确定存在所述资源发放时间位于当前时间之前、资源状态为资源已收集完成而未发放的交易,且已收集资源的资源数量超过预设数量,则确定所述资源交易机构存在交易风险;
    根据所述第一注册记录信息和所述资源提取记录信息,统计在第一预设时段内注册于所述资源交易机构的所有资源转移用户中进行资源提取操作的资源转移用户所占的第一比例;若统计的所述第一比例超过第一预设比例,则确定所述资源交易机构存在交易风险;
    根据所述公告发布记录信息,确定所述资源交易机构发布的公告信息是否符合预设条件,若是,则确定所述资源交易机构存在交易风险;
    根据所述公告发布记录信息和所述公告撤销记录信息,统计在第二预设时段内所述资源交易机构曾发布的所有公告信息中被撤销的公告信息所占的第二比例,若统计的所述第二比例超过第二预设比例,则确定所述资源交易机构存在交易风险。
  15. 一种基于区块链的交易设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器实现上述权利要求1至7任一项所述的基于区块链的交易方法的步骤。
  16. 一种基于区块链的交易监管设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器实现上述权利要求8至10任一项所述的基于区块链的交易监管方法的步骤。
  17. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被执行时实现上述权利要求1至7任一项所述的基于区块链的交易方法的步骤,或者实现上述权利要求8至10任一项所述的基于区块链的交易监管方法的步骤。
PCT/CN2020/071973 2019-07-30 2020-01-14 基于区块链的交易、交易监管方法、装置及设备 WO2021017430A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/888,305 US20200294124A1 (en) 2019-07-30 2020-05-29 Blockchain-based method, apparatus, and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910696461.XA CN110490728B (zh) 2019-07-30 2019-07-30 基于区块链的交易、交易监管方法、装置及设备
CN201910696461.X 2019-07-30

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/888,305 Continuation US20200294124A1 (en) 2019-07-30 2020-05-29 Blockchain-based method, apparatus, and device

Publications (1)

Publication Number Publication Date
WO2021017430A1 true WO2021017430A1 (zh) 2021-02-04

Family

ID=68548806

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071973 WO2021017430A1 (zh) 2019-07-30 2020-01-14 基于区块链的交易、交易监管方法、装置及设备

Country Status (2)

Country Link
CN (1) CN110490728B (zh)
WO (1) WO2021017430A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883394A (zh) * 2021-02-25 2021-06-01 天津启居安智科技发展有限公司 一种基于区块链的大数据安全处理方法及系统
CN116405334A (zh) * 2023-06-07 2023-07-07 北京中科江南信息技术股份有限公司 基于区块链的算力网络流量处理方法、设备及介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490728B (zh) * 2019-07-30 2021-03-19 创新先进技术有限公司 基于区块链的交易、交易监管方法、装置及设备
CN111125246A (zh) * 2019-12-03 2020-05-08 支付宝(杭州)信息技术有限公司 一种物品转移存证方法及装置
CN111242781A (zh) * 2019-12-27 2020-06-05 立旃(上海)科技有限公司 基于区块链的交易管理方法及装置
CN111340631B (zh) 2020-05-15 2020-12-01 支付宝(杭州)信息技术有限公司 资产转移方法、装置、设备及系统
CN111414436B (zh) * 2020-05-29 2023-08-04 支付宝(杭州)信息技术有限公司 数据推送方法、装置、设备及系统
CN112232795B (zh) * 2020-05-29 2022-07-08 支付宝(杭州)信息技术有限公司 交易处理方法、装置、设备及系统
CN111768303A (zh) * 2020-06-01 2020-10-13 支付宝实验室(新加坡)有限公司 交易处理方法、装置、设备及系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103471A (zh) * 2017-03-28 2017-08-29 上海瑞麒维网络科技有限公司 基于区块链确定交易合法性的方法及装置
CN107133871A (zh) * 2017-04-19 2017-09-05 杭州复杂美科技有限公司 基于区块链技术的互联网金融交易
US20180075453A1 (en) * 2016-09-15 2018-03-15 American Express Travel Related Services Company, Inc. Systems and methods for blockchain based payment networks
CN107944887A (zh) * 2017-12-14 2018-04-20 法信公证云(厦门)科技有限公司 一种基于区块链的民间借贷风险预控方法
CN109064319A (zh) * 2018-09-21 2018-12-21 重庆小雨点小额贷款有限公司 基于区块链的借贷方法、装置、服务器及存储介质
CN109509078A (zh) * 2018-09-19 2019-03-22 平安科技(深圳)有限公司 基于区块链的借贷运行方法、系统、服务器及存储介质
CN110490728A (zh) * 2019-07-30 2019-11-22 阿里巴巴集团控股有限公司 基于区块链的交易、交易监管方法、装置及设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016606A (zh) * 2016-12-08 2017-08-04 阿里巴巴集团控股有限公司 一种资源处理方法及装置
CN108681966B (zh) * 2018-05-11 2020-07-21 阿里巴巴集团控股有限公司 一种基于区块链的信息监管方法及装置
CN108876621A (zh) * 2018-06-29 2018-11-23 杭州云象网络技术有限公司 基于区块链技术的分布自治式投融资平台建设方法
CN110009501B (zh) * 2018-11-14 2023-09-22 创新先进技术有限公司 基于区块链的融资方法、系统、计算设备及存储介质
CN109767336A (zh) * 2018-12-27 2019-05-17 福建省农村信用社联合社 一种基于区块链的p2p理财平台资金银行存管管理方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180075453A1 (en) * 2016-09-15 2018-03-15 American Express Travel Related Services Company, Inc. Systems and methods for blockchain based payment networks
CN107103471A (zh) * 2017-03-28 2017-08-29 上海瑞麒维网络科技有限公司 基于区块链确定交易合法性的方法及装置
CN107133871A (zh) * 2017-04-19 2017-09-05 杭州复杂美科技有限公司 基于区块链技术的互联网金融交易
CN107944887A (zh) * 2017-12-14 2018-04-20 法信公证云(厦门)科技有限公司 一种基于区块链的民间借贷风险预控方法
CN109509078A (zh) * 2018-09-19 2019-03-22 平安科技(深圳)有限公司 基于区块链的借贷运行方法、系统、服务器及存储介质
CN109064319A (zh) * 2018-09-21 2018-12-21 重庆小雨点小额贷款有限公司 基于区块链的借贷方法、装置、服务器及存储介质
CN110490728A (zh) * 2019-07-30 2019-11-22 阿里巴巴集团控股有限公司 基于区块链的交易、交易监管方法、装置及设备

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883394A (zh) * 2021-02-25 2021-06-01 天津启居安智科技发展有限公司 一种基于区块链的大数据安全处理方法及系统
CN116405334A (zh) * 2023-06-07 2023-07-07 北京中科江南信息技术股份有限公司 基于区块链的算力网络流量处理方法、设备及介质
CN116405334B (zh) * 2023-06-07 2023-08-29 北京中科江南信息技术股份有限公司 基于区块链的算力网络流量处理方法、设备及介质

Also Published As

Publication number Publication date
CN110490728B (zh) 2021-03-19
CN110490728A (zh) 2019-11-22

Similar Documents

Publication Publication Date Title
WO2021017430A1 (zh) 基于区块链的交易、交易监管方法、装置及设备
TWI694350B (zh) 基於區塊鏈的資訊監管方法及裝置
US11526889B2 (en) Resource transferring monitoring method and device
CN110009337B (zh) 一种基于区块链的数据处理方法和装置
Cohn et al. Smart after all: Blockchain, smart contracts, parametric insurance, and smart energy grids
WO2020155789A1 (zh) 基于区块链的存证方法和装置
Kshetri Big data׳ s impact on privacy, security and consumer welfare
TW202008196A (zh) 基於中心化結算與區塊鏈存證的交易方法及系統
CN110020542B (zh) 数据读写方法及装置、电子设备
TW202008235A (zh) 基於中心化結算與區塊鏈存證的交易方法及系統
US20200294124A1 (en) Blockchain-based method, apparatus, and device
WO2020177478A1 (zh) 一种基于信用的资质信息审核方法、装置及设备
WO2020119293A1 (zh) 内容推送方法及装置、电子设备
CN111815420B (zh) 一种基于可信资产数据的匹配方法、装置及设备
WO2017118338A1 (zh) 一种权限管理和资源控制的方法及装置
TW202025057A (zh) 欄位更新方法及裝置、電子設備
CN107528822B (zh) 一种业务执行方法以及装置
CN110033367A (zh) 基于区块链的合同记录方法及装置、电子设备
CN110610290A (zh) 间联商户风险管控方法及其系统
CN115099926A (zh) 基于区块链的信用数据分析方法、共享方法、装置及设备
Feder Land administration reform: economic rationale and social considerations
TW202230233A (zh) 用於分潤的方法、計算設備及系統
CN114548963A (zh) 支付交互处理方法及装置
CN112511651A (zh) 一种基于区块链的服务准入方法及装置
Foresman Once more unto the [corporate data] breach, dear friends

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20848458

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20848458

Country of ref document: EP

Kind code of ref document: A1