WO2020108126A1 - 一种资源转移事件的记录方法、装置及电子设备 - Google Patents

一种资源转移事件的记录方法、装置及电子设备 Download PDF

Info

Publication number
WO2020108126A1
WO2020108126A1 PCT/CN2019/110879 CN2019110879W WO2020108126A1 WO 2020108126 A1 WO2020108126 A1 WO 2020108126A1 CN 2019110879 W CN2019110879 W CN 2019110879W WO 2020108126 A1 WO2020108126 A1 WO 2020108126A1
Authority
WO
WIPO (PCT)
Prior art keywords
blockchain
record
resource
hand goods
hash value
Prior art date
Application number
PCT/CN2019/110879
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 阿里巴巴集团控股有限公司
Publication of WO2020108126A1 publication Critical patent/WO2020108126A1/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method, device, and electronic device for recording resource transfer events.
  • Embodiments of the present application provide a method, device, and electronic device for recording resource transfer events, to solve the existing online goods recycling method, where the threshold based on the credit mode is high and the transaction efficiency based on the non-credit mode is low problem.
  • a method for recording resource transfer events is proposed.
  • the method is applied to a transaction server.
  • the method includes:
  • the first hash value is obtained by the blockchain based on the payment record processing of the target resource, so that the notary node of the blockchain Able to query the payment record of the target resource corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record processing of the target resource, so that the notary node of the blockchain The transfer record of the target resource corresponding to the second hash value can be found.
  • a method for querying resource transfer events is proposed.
  • the method is applied to a notary node in a blockchain.
  • the method includes:
  • a method for recording second-hand goods transactions is proposed.
  • the method is applied to a second-hand goods transaction server.
  • the method includes:
  • the first hash value is obtained by the blockchain based on the payment record processing of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the payment record of the second-hand goods to be recovered corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the transfer record of the second-hand goods to be recovered corresponding to the second hash value.
  • a query method for second-hand goods recycling transactions is proposed.
  • the method is applied to a notary node in a blockchain.
  • the method includes:
  • the query request for the recycling transaction record of the recycled second-hand goods is downloaded from the blockchain and the recycling transaction corresponding to the hash value carried by the query request is downloaded and read recording.
  • a device for recording resource transfer events including:
  • the first uploading unit uploads the payment record of the target resource to the blockchain through a preset interface of the blockchain based on the payment event of the resource receiver to the target resource;
  • the first obtaining unit obtains and records the first hash value returned by the blockchain, and the first hash value is obtained by processing the payment record of the blockchain based on the target resource, so that the area
  • the notary node of the blockchain can query the payment record of the target resource corresponding to the first hash value;
  • a second uploading unit based on the transfer event of the target resource provided by the resource transfer-out party, uploading the transfer record of the target resource to the blockchain through the preset interface of the blockchain;
  • the second obtaining unit obtains and records the second hash value returned by the blockchain, and the second hash value is obtained by the blockchain based on the transfer record processing of the target resource, so that the area The notary node of the blockchain can query the transfer record of the target resource corresponding to the second hash value.
  • a device for querying resource transfer events including:
  • the obtaining unit obtains the resource receiver and/or the resource transferer's query request for the resource transfer record of the target resource through the preset interface of the blockchain;
  • the downloading unit downloads and reads the hash value carried with the query request from the blockchain based on the query request for the resource transfer record of the target resource by the resource receiver and/or the resource transfer-out party Corresponding resource transfer records.
  • a recording device for second-hand goods recycling transactions including:
  • the first uploading unit uploads the payment record of the second-hand goods to be recovered to the blockchain through the preset interface of the blockchain based on the payment event of the second-hand goods recycling party to recover the second-hand goods;
  • the first acquiring unit acquires and records the first hash value returned by the blockchain, the first hash value is obtained by the blockchain based on the payment record processing of the second-hand goods to be recovered, so that all The notary node of the blockchain can query the payment record of the second-hand goods to be recovered corresponding to the first hash value;
  • a second uploading unit based on the shipment event of the second-hand goods to be recovered provided by the second-hand goods provider, uploading the shipment record of the second-hand goods to be recovered to the blockchain through the preset interface of the blockchain in;
  • the second obtaining unit obtains and records the second hash value returned by the blockchain, and the second hash value is obtained by the blockchain based on the transfer record processing of the second-hand goods to be recovered, so that all The notary node of the blockchain can query the transfer record of the second-hand goods to be recovered corresponding to the second hash value.
  • a query device for second-hand goods recycling transactions including:
  • the obtaining unit obtains the query request of the recycling party of the second-hand goods and/or the second-hand goods provision policy to treat the recovery transaction records of the second-hand goods through the preset interface of the blockchain;
  • a downloading unit based on the second-hand goods recycling party and/or second-hand goods provision policy, to query the query request for the recycling transaction records of the second-hand goods, download and read from the blockchain corresponding to the hash value carried in the query request Of recycling transactions.
  • an electronic device in a ninth aspect, includes:
  • a memory arranged to store computer-executable instructions, which when executed, causes the processor to perform the following operations:
  • the first hash value is obtained by the blockchain based on the payment record processing of the target resource, so that the notary node of the blockchain Able to query the payment record of the target resource corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record processing of the target resource, so that the notary node of the blockchain The transfer record of the target resource corresponding to the second hash value can be found.
  • a computer-readable storage medium which stores one or more programs, which when executed by an electronic device including multiple application programs, causes all The electronic device performs the following operations:
  • the first hash value is obtained by the blockchain based on the payment record processing of the target resource, so that the notary node of the blockchain Able to query the payment record of the target resource corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record processing of the target resource, so that the notary node of the blockchain The transfer record of the target resource corresponding to the second hash value can be found.
  • an electronic device including:
  • a memory arranged to store computer-executable instructions, which when executed, causes the processor to perform the following operations:
  • a computer-readable storage medium which stores one or more programs, which when executed by an electronic device including a plurality of application programs, causes The electronic device performs the following operations:
  • an electronic device in a thirteenth aspect, includes:
  • a memory arranged to store computer-executable instructions, which when executed, causes the processor to perform the following operations:
  • the first hash value is obtained by the blockchain based on the payment record processing of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the payment record of the second-hand goods to be recovered corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the transfer record of the second-hand goods to be recovered corresponding to the second hash value.
  • a computer-readable storage medium which stores one or more programs, which when executed by an electronic device including multiple application programs, causes The electronic device performs the following operations:
  • the first hash value is obtained by the blockchain based on the payment record processing of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the payment record of the second-hand goods to be recovered corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the transfer record of the second-hand goods to be recovered corresponding to the second hash value.
  • an electronic device comprising:
  • a memory arranged to store computer-executable instructions, which when executed, causes the processor to perform the following operations:
  • the query request for the recycling transaction record of the recycled second-hand goods is downloaded, and the recycling transaction corresponding to the hash value carried by the query request is downloaded from the blockchain and read recording.
  • a computer-readable storage medium storing one or more programs, which when executed by an electronic device including multiple application programs, causes The electronic device performs the following operations:
  • the query request for the recycling transaction record of the recycled second-hand goods is downloaded, and the recycling transaction corresponding to the hash value carried by the query request is downloaded from the blockchain and read recording.
  • the payment record of the target resource can be uploaded to the blockchain through the preset interface of the blockchain, and the blockchain can obtain and record the blockchain based on the target
  • the notary node of the chain can query the transfer record of the target resource corresponding to the second hash value, thereby reducing the difficulty of obtaining evidence for disputes in the transaction.
  • the resource receiver and the resource transfer-in party can conduct transactions directly, without the need for third-party credit escrow, it also reduces the transaction threshold for both
  • FIG. 1 is a schematic diagram of an implementation process of a method for recording a resource transfer event provided by an embodiment of the present specification
  • FIG. 2 is a schematic diagram of the application of the method for recording resource transfer events provided by an embodiment of the present specification in an actual scenario
  • FIG. 3 is a schematic flowchart of an implementation method of a resource transfer event query method according to an embodiment of the present specification
  • FIG. 4 is a schematic diagram of an implementation process of a method for recording a second-hand goods recycling transaction provided by an embodiment of the present specification
  • FIG. 5 is a schematic diagram of an implementation process of a query method for second-hand goods recycling transactions provided by an embodiment of the present specification
  • FIG. 6 is a schematic structural diagram of a device for recording resource transfer events according to an embodiment of the present specification
  • FIG. 7 is a schematic structural diagram of a device for querying resource transfer events according to an embodiment of the present specification.
  • FIG. 8 is a schematic structural diagram of a recording device for second-hand goods recycling transactions provided by an embodiment of the present specification
  • FIG. 9 is a schematic structural diagram of an inquiry device for second-hand goods recycling transactions provided by an embodiment of the present specification.
  • FIG. 10 is a schematic structural diagram of a first electronic device provided by an embodiment of this specification.
  • FIG. 11 is a schematic structural diagram of a second electronic device provided by an embodiment of the present specification.
  • FIG. 12 is a schematic structural diagram of a third electronic device provided by an embodiment of this specification.
  • FIG. 13 is a schematic structural diagram of a fourth electronic device according to an embodiment of the present specification.
  • the embodiments of the present specification provide a method for recording resource transfer events.
  • the execution subject of the method provided by the embodiments of the present specification may be, but not limited to, a transaction server or the like, which can be configured to execute at least one of the method devices provided by the embodiments of the present invention.
  • the execution body of the method as a transaction server capable of executing the method as an example to introduce the implementation of the method. It can be understood that the execution subject of the method is a transaction server is only an exemplary description, and should not be understood as a limitation of the method.
  • FIG. 1 a schematic diagram of an implementation process of a method for recording a resource transfer event provided by one or more embodiments of this specification is shown in FIG. 1 and includes:
  • Step 110 Based on the payment event of the resource receiver on the target resource, upload the payment record of the target resource to the blockchain through the preset interface of the blockchain.
  • the valuation of the target resource is variable, that is to say, the valuation of the target resource can be determined based on the negotiation between the resource receiver and the resource-transfer-out party, and Evidence is obtained when a transaction dispute occurs in the later period, and the payment record of the target resource can carry the valuation confirmation information of the target resource by the resource receiver and the resource transfer-out party.
  • the valuation confirmation information may include confirmation information on the final transaction price of the target resource by the resource receiver and the resource transfer-out party, and the specific bargaining process.
  • the payment record of the target resource is uploaded to the blockchain through the preset interface of the blockchain, which may include the following The steps described:
  • the payment record of the target resource is encrypted, specifically, the payment record of the target resource can be encrypted by a hash algorithm such as MD5.
  • Step 120 Obtain and record the first hash value returned by the blockchain.
  • the first hash value is obtained from the payment record processing of the blockchain based on the target resource, so that the notary node of the blockchain can query the first hash The payment record of the target resource corresponding to the hope value.
  • the transaction server may record the correspondence between the first hash value and the payment record of the target resource, such as the status of the order of the target resource.
  • a payment record field is set in the data table to store the first hash value, or the first hash value may also be stored in other ways, as long as it can reflect the correspondence between the first hash value and the payment record of the target resource Relationship.
  • the first hash value may be obtained by the blockchain based on the payment record of the target resource through a hash algorithm.
  • Step 130 based on the transfer event of the target resource provided by the resource transfer-out party, upload the transfer record of the target resource to the blockchain through the preset interface of the blockchain.
  • the transfer record of the target resource is uploaded to the blockchain through the preset interface of the block chain. It includes the following steps:
  • the transfer record of the target resource is encrypted, specifically, the transfer record of the target resource can be encrypted by a hash algorithm such as MD5.
  • the identifier of the receiver and the identifier of the resource transfer-out party may specifically be the real-name authentication identifiers of the resource receiver and the resource transfer-out party.
  • the identification of the resource receiver may be an identification corresponding to the ID number of the resource receiver
  • the identification of the resource transfer-out party may be the identification corresponding to the ID number of the resource transfer-out party.
  • the transaction server can use the resource receiver to pay first, and the resource transfer-out party can only ship after receiving the payment (i.e.
  • the transaction mode of transferring the target resource may also be a transaction mode in which the resource transfer-out party delivers and the resource receiver pays after receiving the goods.
  • the order of occurrence of the payment event of the target resource and the transfer event of the target resource may not be specifically limited, that is, the payment event of the target resource may be before the transfer event of the target resource; or, the target resource The transfer event can also be before the payment event of the target resource.
  • Step 140 Obtain and record the second hash value returned by the blockchain.
  • the second hash value is obtained by the blockchain based on the transfer record of the target resource, so that the notary node of the blockchain can query the second hash value.
  • the transfer record of the target resource corresponding to the hope value.
  • the transaction server may record the correspondence between the second hash value and the transfer records of the target resources, for example, the order status of the related resources
  • a transfer record field is set in the data table to store the second hash value, or the second hash value may also be stored in other ways, as long as it can reflect the correspondence between the second hash value and the transfer record of the target resource Relationship.
  • the second hash value may be obtained by processing the blockchain based on the transfer record of the target resource through a hash algorithm.
  • the following uses the transaction server shown in FIG. 2 as a transaction for second-hand goods as an example to describe in detail the method of recording resource transfer events provided in this manual. As shown in FIG. 2, it includes the following main steps:
  • Step 21 the second-hand goods recycling party negotiates with the second-hand goods provision policy to treat the second-hand goods to be recovered to determine the price of the second-hand goods to be recovered;
  • Step 22 The second-hand goods recovery party pays the second-hand goods provider the second-hand goods to be recovered based on the determined price of the second-hand goods to be recovered;
  • Step 23 The transaction server of the second-hand goods uploads the payment record of the second-hand goods recovery party to the blockchain through the preset interface of the blockchain, and the payment record may include the identification of the second-hand goods recovery party, the second-hand goods provider's identification, The payment direction, the amount of payment, and the price confirmation information of the second-hand goods recovered by the second-hand goods recycling party and the second-hand goods provider;
  • the second-hand goods recycling party's logo and the second-hand goods provider's logo can be obtained when the second-hand cargo recycling party and the second-hand cargo supplier register an account on the second-hand goods trading server.
  • the second-hand goods recycling party’s logo may be the real-name identification information of the second-hand goods recycling party, for example, it may be an identification corresponding to a unique identification such as an ID number.
  • the identification of the provider of the second-hand goods may be the real-name identification information of the recovery party of the second-hand goods, for example, it may also be an identification corresponding to a unique identification such as an ID number.
  • Step 24 The blockchain returns the first hash value to the transaction server of the second-hand goods.
  • the first hash value is obtained by hashing the blockchain based on the payment record of the second-hand goods to be recovered, so that the The notary node can obtain the payment record corresponding to the first hash value based on the first hash value;
  • Step 25 After receiving the payment information of the second-hand goods provision policy for the second-hand goods to be recovered, the second-hand goods recycling party sends and delivers the second-hand goods to be recycled according to the address provided by the second-hand goods recycling party, and sends the The logistics information of the second-hand goods to be recovered, such as the logistics number and logistics company information, are provided to the transaction server of the second-hand goods;
  • Step 26 The transaction server of the second-hand goods uploads the logistics information record of the second-hand goods to be recovered to the blockchain through the preset interface of the blockchain.
  • the logistics information record may include the identification of the second-hand goods recycling party and the second-hand goods provider Information such as the logo, shipping direction, shipping address and receiving address;
  • Step 27 the blockchain returns a second hash value to the transaction server of the second-hand goods, the second hash value is obtained by hashing the blockchain based on the logistics information record of the second-hand goods to be recovered, so that the blockchain The notary node of can obtain logistics information records corresponding to the second hash value based on the second hash value.
  • the payment record of the target resource can be uploaded to the blockchain through the preset interface of the blockchain, and the blockchain can obtain and record the blockchain based on the target
  • the notary node of the chain can query the transfer record of the target resource corresponding to the second hash value, thereby reducing the difficulty of obtaining evidence for disputes in the transaction.
  • the resource receiver and the resource transfer-in party can conduct transactions directly, without the need for third-party credit escrow, it also reduces the transaction threshold for both
  • FIG. 3 is a schematic diagram of an implementation process of a method for querying resource transfer events provided in this specification. Please refer to FIG. 3, the query method of the resource transfer event is applied to the notary nodes in the blockchain, including:
  • Step 310 Obtain a query request for the resource transfer record of the target resource by the resource receiver and/or the resource transferer through the preset interface of the blockchain.
  • the query request may carry a hash value, and the hash value may be obtained by hashing the blockchain based on the resource transfer record.
  • the query request can also be carried
  • the original data of the resource transfer record of the target resource that is, the data before the encryption of the resource transfer record of the target resource.
  • Step 320 based on the query request, download and read the resource transfer record corresponding to the hash value carried in the query request from the blockchain.
  • the resource transfer record corresponding to the hash value carried in the query request includes at least one of the following resource transfer records:
  • the resource transfer record of the target resource uploaded to the blockchain is an encrypted resource transfer record
  • the notary node in the blockchain The original data of the resource transfer record of the target resource carried in the query request can be hashed to obtain a hashed string, and the string can be stored in the blockchain with the target resource Compare the strings corresponding to the resource transfer records; if the two match, the original data of the resource transfer record of the target resource carried in the query request passes the verification, and if the two are inconsistent, it indicates that the target resource carried in the query request
  • the original data of the resource transfer record has been tampered with later, that is, it cannot be verified.
  • the query request for the resource transfer record of the target resource by the resource receiver and/or the resource transfer-out party can be obtained through the preset interface of the blockchain, and based on the query request, download and read the query request from the blockchain
  • the resource transfer record corresponding to the carried hash value can reduce the difficulty of obtaining evidence for disputes in the transaction.
  • FIG. 4 is a schematic diagram of an implementation process of the recording method of second-hand goods transactions provided in this specification. Please refer to Fig. 4, the recording method of the second-hand goods transaction is applied to the second-hand goods transaction server, including:
  • Step 410 Based on the payment event of the second-hand goods recycling party to recycle the second-hand goods, upload the payment record of the second-hand goods to be recycled to the blockchain through the preset interface of the blockchain.
  • upload the payment record of the second-hand goods to be recycled to the blockchain through the preset interface of the blockchain including:
  • the valuation of the second-hand goods to be recycled is variable, and the payment record of the second-hand goods to be recycled carries the confirmation value of the valuation of the second-hand goods to be recycled by the second-hand goods recycler and the second-hand goods provider.
  • Step 420 Obtain and record the first hash value returned by the blockchain.
  • the first hash value is obtained by the blockchain based on the payment record of the second-hand goods to be recovered, so that the notary node of the blockchain can query the A payment record of second-hand goods to be recovered corresponding to a hash value.
  • Step 430 based on the shipment event of the second-hand goods to be recovered provided by the second-hand goods provider, upload the shipment record of the second-hand goods to be recovered to the blockchain through the preset interface of the blockchain.
  • the shipment records of the second-hand goods to be recovered are uploaded to the blockchain through the preset interface of the blockchain, including:
  • Step 440 Obtain and record the second hash value returned by the blockchain.
  • the second hash value is obtained by the blockchain based on the transfer record of the second-hand goods to be recovered, so that the notary node of the blockchain can query the The transfer records of the second-hand goods to be recovered corresponding to the two hashes.
  • the payment event of the second-hand goods to be recovered is before the delivery event of the second-hand goods to be recovered
  • the shipping event of the second-hand goods to be recovered is before the payment event of the second-hand goods to be recovered.
  • the payment record of the second-hand goods to be recycled can be uploaded to the blockchain through the preset interface of the blockchain, and can be obtained and recorded
  • the blockchain returns the first hash value based on the payment record of the second-hand goods to be recovered, so that the notary node of the blockchain can query the payment record of the second-hand goods to be recovered corresponding to the first hash value; it can also Based on the delivery event of the second-hand goods to be recovered provided by the second-hand goods provider, upload the delivery record of the second-hand goods to be recovered to the blockchain through the preset interface of the blockchain, and be able to obtain and record the blockchain based on the The second hash value returned by the delivery record of the second-hand goods to be recovered, so that the notary node of the blockchain can query the delivery record of the second-hand goods to be recovered corresponding to the second hash value, which can reduce the Difficulty in obtaining evidence for transaction
  • FIG. 5 is a schematic diagram of an implementation process of a query method for second-hand goods recycling transactions provided in this specification. Please refer to Figure 5, the query method of second-hand goods recycling transaction is applied to notary nodes in the blockchain, including:
  • Step 510 Obtain a query request for recycling transaction records of second-hand goods to be recycled by the second-hand goods recycling party and/or second-hand goods provision policy through the preset interface of the blockchain.
  • Step 520 Based on the query request, download and read the recovery transaction record corresponding to the hash value carried in the query request from the blockchain.
  • the recycling transaction record corresponding to the hash value carried in the query request includes at least one of the following records:
  • a query request for the recycling transaction records of the second-hand goods to be recycled and based on the query request, download and read
  • the recovery transaction record corresponding to the hash value carried in the query request can reduce the difficulty of obtaining evidence for disputes in the transaction.
  • FIG. 6 is a schematic structural diagram of a resource transfer event recording device 600 provided in this specification.
  • the resource transfer event recording device 600 may include a first upload unit 601, a first acquisition unit 602, a second upload unit 603, and a second acquisition unit 604, where:
  • the first uploading unit 601 uploads the payment record of the target resource to the blockchain through a preset interface of the blockchain based on the payment event of the resource receiver on the target resource;
  • the first obtaining unit 602 obtains and records the first hash value returned by the blockchain, and the first hash value is obtained by processing the payment record of the blockchain based on the target resource, so that the The notary node of the blockchain can query the payment record of the target resource corresponding to the first hash value;
  • the second uploading unit 603 uploads the transfer record of the target resource to the blockchain through the preset interface of the blockchain based on the transfer event of the target resource provided by the resource transfer-out party;
  • the second obtaining unit 604 obtains and records the second hash value returned by the blockchain, and the second hash value is obtained by the blockchain based on the transfer record processing of the target resource, so that the The notary node of the blockchain can query the transfer record of the target resource corresponding to the second hash value.
  • the first upload unit 601 is used to:
  • the second upload unit 603 is used to:
  • the evaluation of the target resource is variable
  • the payment record of the target resource carries the evaluation of the target resource by the resource receiver and the resource transfer-out party Confirm the information.
  • the payment event of the target resource precedes the transfer event of the target resource
  • the transfer event of the target resource is before the payment event of the target resource.
  • the device 600 for recording resource transfer events can implement the method in the method embodiments of FIGS. 1 to 2. For details, reference may be made to the method for recording resource transfer events in the embodiments shown in FIGS. 1 to 2, and details are not described herein.
  • the resource transfer event query device 700 may include an acquisition unit 701 and a download unit 702, where:
  • the obtaining unit 701 obtains a query request for the resource transfer record of the target resource by the resource receiver and/or the resource transferer through the preset interface of the blockchain;
  • the downloading unit 702 downloads and reads the resource transfer record corresponding to the hash value carried by the query request from the blockchain based on the query request.
  • the resource transfer record corresponding to the hash value carried in the query request includes at least one of the following resource transfer records:
  • the device 700 for querying resource transfer events can implement the method of the method embodiment in FIG. 3. For details, refer to the method for querying resource transfer events in the embodiment shown in FIG. 3, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of a recording apparatus 800 for second-hand goods recycling transactions provided in this specification.
  • the recording device 800 for second-hand goods recycling transactions may include a first upload unit 801, a first acquisition unit 802, a second upload unit 803, and a second acquisition unit 804, where:
  • the first uploading unit 801 uploads the payment record of the second-hand goods to be recovered to the blockchain through a preset interface of the blockchain based on the payment event of the second-hand goods recycling party to recover the second-hand goods;
  • the first obtaining unit 802 obtains and records the first hash value returned by the blockchain, the first hash value is obtained by the blockchain based on the payment record processing of the second-hand goods to be recovered, so as to The notary node of the blockchain can query the payment record of the second-hand goods to be recovered corresponding to the first hash value;
  • the second uploading unit 803 based on the shipment event of the second-hand goods to be recovered provided by the second-hand goods provider, uploads the shipment record of the second-hand goods to be recovered to the block through the preset interface of the blockchain In the chain
  • the second obtaining unit 804 obtains and records the second hash value returned by the blockchain, and the second hash value is obtained by the blockchain based on the transfer record processing of the second-hand goods to be recovered, in order to The notary node of the blockchain can query the transfer record of the second-hand goods to be recovered corresponding to the second hash value.
  • the first upload unit 801 is used to:
  • the second upload unit 803 is used to:
  • the price of the second-hand goods to be recovered is variable, and the payment record of the second-hand goods to be recovered carries the second-hand goods provider and the second-hand Price confirmation information for recycling second-hand goods.
  • the payment event of the second-hand goods to be recovered is before the shipment event of the second-hand goods to be recovered
  • the shipping event of the second-hand goods to be recovered is before the payment event of the second-hand goods to be recovered.
  • the apparatus 800 for recording second-hand goods recycling transactions can implement the method of the method embodiment in FIG. 4. For details, reference may be made to the method for recording second-hand goods recycling transactions in the embodiment shown in FIG. 4.
  • FIG. 9 is a schematic structural diagram of a second-hand goods recycling transaction inquiry device 900 provided in this specification. Please refer to FIG. 9.
  • the second-hand goods recycling transaction inquiry device 900 may include an acquisition unit 901 and a download unit 902, where:
  • the obtaining unit 901 obtains a query request for recycling transaction records of recycled second-hand goods and/or second-hand goods provision guidelines through the preset interface of the blockchain;
  • the downloading unit 902 downloads and reads the hash value carried in the query request from the blockchain based on the query request of the recycling transaction record of the recycled second-hand goods and/or the second-hand goods provision policy Corresponding recycling transaction records.
  • the recovery transaction record corresponding to the hash value carried in the query request includes at least one of the following records:
  • the query apparatus 900 for second-hand goods recycling transactions can implement the method of the method embodiment in FIG. 5.
  • the query method for second-hand goods recycling transactions in the embodiment shown in FIG. 5, and details are not described herein.
  • the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory.
  • the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), or may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM Random-Access Memory
  • non-volatile memory such as at least one disk memory.
  • the electronic device may also include hardware required for other services.
  • the processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry, Standard Architecture, extended industry standard structure) bus, etc.
  • the bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only one bidirectional arrow is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the program may include program code, and the program code includes a computer operation instruction.
  • the memory may include memory and non-volatile memory, and provide instructions and data to the processor.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to form a recording device of resource transfer events at a logical level.
  • the processor executes the programs stored in the memory and is specifically used to perform the following operations:
  • the first hash value is obtained by the blockchain based on the payment record processing of the target resource, so that the notary node of the blockchain Able to query the payment record of the target resource corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record processing of the target resource, so that the notary node of the blockchain The transfer record of the target resource corresponding to the second hash value can be found.
  • the above method for recording resource transfer events disclosed in the embodiments shown in FIGS. 1 to 2 of the present specification may be applied to a processor, or implemented by a processor.
  • the processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processor, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with one or more embodiments of this specification can be directly embodied and completed by a hardware decoding processor, or can be performed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, and registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the electronic device can also execute the method for recording resource transfer events of FIGS. 1 to 2, and details are not described herein again.
  • the electronic device of this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each logical unit, It can also be a hardware or logic device.
  • the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory.
  • the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), or may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM Random-Access Memory
  • non-volatile memory such as at least one disk memory.
  • the electronic device may also include hardware required for other services.
  • the processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry, Standard Architecture, extended industry standard structure) bus, etc.
  • the bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only one bidirectional arrow is used in FIG. 11, but it does not mean that there is only one bus or one type of bus.
  • the program may include program code, and the program code includes a computer operation instruction.
  • the memory may include memory and non-volatile memory, and provide instructions and data to the processor.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a query device for resource transfer events at a logical level.
  • the processor executes the programs stored in the memory and is specifically used to perform the following operations:
  • the method for querying resource transfer events disclosed in the embodiment shown in FIG. 3 of the present specification may be applied to a processor, or implemented by a processor.
  • the processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processor, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with one or more embodiments of this specification can be directly embodied and completed by a hardware decoding processor, or can be performed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, and registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the electronic device may also execute the method for querying the resource transfer event of FIG. 3, which will not be repeated here.
  • the electronic device of this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each logical unit, It can also be a hardware or logic device.
  • the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory.
  • the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), or may include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM Random-Access Memory
  • non-volatile memory such as at least one disk memory.
  • the electronic device may also include hardware required for other services.
  • the processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry, Standard Architecture, extended industry standard structure) bus, etc.
  • the bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only one bidirectional arrow is used in FIG. 12, but it does not mean that there is only one bus or one type of bus.
  • the program may include program code, and the program code includes a computer operation instruction.
  • the memory may include memory and non-volatile memory, and provide instructions and data to the processor.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, which forms a recording device of the second-hand goods recycling transaction at a logical level.
  • the processor executes the programs stored in the memory and is specifically used to perform the following operations:
  • the first hash value is obtained by the blockchain based on the payment record processing of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the payment record of the second-hand goods to be recovered corresponding to the first hash value;
  • the second hash value is obtained by the blockchain based on the transfer record of the second-hand goods to be recovered, so that the blockchain
  • the notary node can query the transfer record of the second-hand goods to be recovered corresponding to the second hash value.
  • the recording method of the second-hand goods recycling transaction disclosed in the embodiment shown in FIG. 4 of the present specification may be applied to the processor, or implemented by the processor.
  • the processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processor, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with one or more embodiments of this specification can be directly embodied and completed by a hardware decoding processor, or can be performed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, and registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the electronic device can also perform the recording method of the second-hand goods recycling transaction in FIG. 4, which will not be repeated here.
  • the electronic device of this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each logical unit, It can also be a hardware or logic device.
  • the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory.
  • the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), or may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM Random-Access Memory
  • non-volatile memory such as at least one disk memory.
  • the electronic device may also include hardware required for other services.
  • the processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry, Standard Architecture, extended industry standard structure) bus, etc.
  • the bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only one bidirectional arrow is used in FIG. 13, but it does not mean that there is only one bus or one type of bus.
  • the program may include program code, and the program code includes a computer operation instruction.
  • the memory may include memory and non-volatile memory, and provide instructions and data to the processor.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a query device for second-hand goods recycling transactions at a logical level.
  • the processor executes the programs stored in the memory and is specifically used to perform the following operations:
  • the query method of the second-hand goods recycling transaction disclosed in the embodiment shown in FIG. 5 of the present specification may be applied to the processor, or implemented by the processor.
  • the processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processor, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with one or more embodiments of this specification can be directly embodied and completed by a hardware decoding processor, or can be performed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, and registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the electronic device can also execute the query method of the second-hand goods recycling transaction in FIG. 5, which will not be repeated here.
  • the electronic device of this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each logical unit, It can also be a hardware or logic device.
  • the system, device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or implemented by a product with a certain function.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular 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 A combination of any of these devices.
  • Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
  • the information may be computer readable instructions, data structures, modules of programs, 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 technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape 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.
  • computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

Landscapes

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

Abstract

本申请公开了一种资源转移事件的记录和查询方法、装置及电子设备,该方法应用于交易服务器,该方法包括:基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的;基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的。

Description

一种资源转移事件的记录方法、装置及电子设备 技术领域
本申请涉及计算机技术领域,尤其涉及一种资源转移事件的记录方法、装置及电子设备。
背景技术
随着资源回收利用观念的越来越普及,二手货物交易市场也随之快速发展壮大。为了便于用户及时发布和接收到二手货物的交易信息,越来越多的二手货物在线交易服务器应运而生。
目前,二手货物的在线回收交易,如果采用基于信用的模式,买卖双方往往要在信用等级大于或等于某个预设等级时,才能进行二手货物的在线交易;如果采用无信用的模式,回收模式是先货后款。
然而,对于很多没有信用积累的用户而言,比如对于没有在线交易记录的新用户,或者信用等级较低的用户来说,现有基于信用模式的在线货物的回收方法的使用门槛较高,这些没有信用积累的用户则不能使用;而基于无信用模式,其交易效率则较低。
发明内容
本申请实施例提供了一种资源转移事件的记录方法、装置及电子设备,以解决现有的在线货物的回收方法中,基于信用模式的使用门槛较高和基于无信用模式的交易效率低的问题。
为解决上述技术问题,本申请实施例是这样实现的:
第一方面,提出了一种资源转移事件的记录方法,所述方法应用于交易服务器,所述方法包括:
基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
第二方面,提出了一种资源转移事件的查询方法,所述方法应用于区块链中的公证节点,所述方法包括:
通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
基于所述资源接收方和/或所述资源转出方针对标的资源的资源转移记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
第三方面,提出了一种二手货物交易的记录方法,所述方法应用于二手货物交易服务器,所述方法包括:
基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
第四方面,提出了一种二手货物回收交易的查询方法,所述方法应用于区块链中的公证节点,所述方法包括:
通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的 查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
第五方面,提出了一种资源转移事件的记录装置,包括:
第一上传单元,基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
第一获取单元,获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
第二上传单元,基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
第二获取单元,获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
第六方面,提出了一种资源转移事件的查询装置,包括:
获取单元,通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
下载单元,基于所述资源接收方和/或所述资源转出方针对标的资源的资源转移记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
第七方面,提出了一种二手货物回收交易的记录装置,包括:
第一上传单元,基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
第一获取单元,获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
第二上传单元,基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
第二获取单元,获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所 述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
第八方面,提出了一种二手货物回收交易的查询装置,包括:
获取单元,通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
下载单元,基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
第九方面,提出了一种电子设备,该电子设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
第十方面,提出了一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所 述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
第十一方面,提出了一种电子设备,该电子设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
基于所述资源接收方和/或所述资源转出方针对标的资源的资源转移记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
第十二方面,提出了一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
基于所述资源接收方和/或所述资源转出方针对标的资源的资源转移记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
第十三方面,提出了一种电子设备,该电子设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传 所述待回收二手货物的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
第十四方面,提出了一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
第十五方面,提出了一种电子设备,该电子设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
第十六方面,提出了一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
本申请实施例采用上述技术方案至少可以达到下述技术效果:
在资源转移过程中,能够基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传该标的资源的支付记录到区块链中,并能够获取并记录区块链基于该标的资源的支付记录返回的第一哈希值,以便区块链的公证节点能够查询到与该第一哈希值相对应的标的资源的支付记录;还能够基于资源转出方提供的标的资源的转移事件,通过区块链的预设接口上传该标的资源的转移记录到区块链中,并能够获取并记录区块链基于该标的资源的转移记录返回的第二哈希值,以便区块链的公证节点能够查询到与该第二哈希值相对应的标的资源的转移记录,从而能够减小了交易发生纠纷的取证难度。同时,由于资源接收方和资源转入方之间可以直接进行交易,无需第三方信用托管,也降低了交易双方的交易门槛。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本说明书一个实施例提供的一种资源转移事件的记录方法的实现流程示意图;
图2为本说明书一个实施例提供的资源转移事件的记录方法应用在实际场景中的示意图;
图3为本说明书一个实施例提供的一种资源转移事件的查询方法的实现流程示意图
图4为本说明书一个实施例提供的一种二手货物回收交易的记录方法的实现流程示意图;
图5为本说明书一个实施例提供的一种二手货物回收交易的查询方法的实现流程示意图;
图6为本说明书一个实施例提供的一种资源转移事件的记录装置的结构示意图;
图7为本说明书一个实施例提供的一种资源转移事件的查询装置的结构示意图;
图8为本说明书一个实施例提供的一种二手货物回收交易的记录装置的结构示意图;
图9为本说明书一个实施例提供的一种二手货物回收交易的查询装置的结构示意图;
图10为本说明书一个实施例提供的第一种电子设备的结构示意图;
图11为本说明书一个实施例提供的第二种电子设备的结构示意图;
图12为本说明书一个实施例提供的第三种电子设备的结构示意图;
图13为本说明书一个实施例提供的第四种电子设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
以下结合附图,详细说明本申请各实施例提供的技术方案。
为解决现有的在线货物的回收方法中,基于信用模式的使用门槛较高和基于无信用模式的交易效率低的问题,本说明书实施例提供一种资源转移事件的记录方法。本说明书实施例提供的方法的执行主体可以但不限于交易服务器等能够被配置为执行本发明实施例提供的该方法装置中的至少一种。
为便于描述,下文以该方法的执行主体为能够执行该方法的交易服务器为例,对该方法的实施方式进行介绍。可以理解,该方法的执行主体为交易服务器只是一种示例性的说明,并不应理解为对该方法的限定。
具体地,本说明书一个或多个实施例提供的一种资源转移事件的记录方法的实现流程示意图如图1所示,包括:
步骤110,基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传标的资源的支付记录到区块链中。
应理解,为便于资源接收方和资源转出方进行交易,标的资源的估值可变,也就是说,标的资源的估值可以依据资源接收方和资源转出方商议来确定,且为了便于后期出现交易纠纷时取证,标的资源的支付记录中可以携带资源接收方和资源转出方对标的资源的估值确认信息。其中,该估值确认信息可以包括资源接收方和资源转出方对标的资源最终的交易价格的确认信息,以及具体的议价过程。
可选地,为了提高标的资源的支付记录的安全性,基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传标的资源的支付记录到区块链中,具体可以包括下述步骤:
基于资源接收方对标的资源的支付事件,获取标的资源的支付记录;
对标的资源的支付记录进行加密处理,以获取加密处理后的标的资源的支付记录;
通过区块链的预设接口上传加密处理后的标的资源的支付记录到区块链中。
其中,对标的资源的支付记录进行加密处理,具体可以将标的资源的支付记录通过MD5等哈希算法来加密。
步骤120,获取并记录区块链返回的第一哈希值,第一哈希值为区块链基于标的资源的支付记录处理得到的,以便区块链的公证节点能够查询到与第一哈希值相对应的标的资源的支付记录。
应理解,为便于查询区块链中记录的标的资源的支付记录,交易服务器中可以记录第一哈希值与标的资源的支付记录之间的对应关系,比如可以在有关标的资源的订单状态的数据表中设置一个支付记录字段用于存储该第一哈希值,或者还可以通过其他方式来存储该第一哈希值,只要能够体现该第一哈希值与标的资源的支付记录的对应关系即可。
其中,该第一哈希值可以是区块链基于标的资源的支付记录通过哈希算法处理得到的。
步骤130,基于资源转出方提供的标的资源的转移事件,通过区块链的预设接口上传标的资源的转移记录到区块链中。
可选地,为了提高标的资源的转移记录的安全性,基于资源转出方提供的标的资源的转移事件,通过区块链的预设接口上传标的资源的转移记录到区块链中,具体可以包括下述步骤:
基于资源转出方提供的标的资源的转移事件,获取标的资源的转移记录;
对标的资源的转移记录进行加密处理,以获取加密处理后的标的资源的转移记录;
通过区块链的预设接口上传加密处理后的所述标的资源的转移记录到区块链中。
其中,对标的资源的转移记录进行加密处理,具体可以将标的资源的转移记录通过MD5等哈希算法来加密。
应理解,为便于后期出现交易纠纷时,获取交易双方的信息,本说明书一个或多个实施例中的资源支付记录和资源转移记录中至少携带下述至少一种内容:标的资源的标识、资源接收方的标识和资源转出方的标识。其中,资源接收方的标识和资源转出方的标识具体可以是资源接收方和资源转出方的实名认证标识。比如,资源接收方的标识可以是与资源接收方的身份证号相对应的身份标识,资源转出方的标识可以是与资源转出方的身份证号相对应的身份标识。
可选地,由于资源接收方和资源转出方在针对标的资源进行交易时,资源接收方的支付记录以及资源转出方的转移记录均被上传至区块链中,因此,整个交易过程中所涉及的信息都能通过区块链的公证节点从区块链中下载查询到,因此,该交易服务器可以采用资源接收方先支付,资源转出方在接收到支付款项之后再发货(即转移标的资源)的交易模式,也可以采用资源转出方发货,资源接收方在接收到货物之后再支付的交易模式。
因此,本说明书一个或多个实施例中对标的资源的支付事件以及标的资源的转移事件的发生顺序可以不作具体限定,即标的资源的支付事件可以在标的资源的转移事件之前;或者,标的资源的转移事件也可以在标的资源的支付事件之前。
步骤140,获取并记录区块链返回的第二哈希值,第二哈希值为区块链基于标的资 源的转移记录处理得到的,以便区块链的公证节点能够查询到与第二哈希值相对应的标的资源的转移记录。
应理解,为便于查询区块链中记录的标的资源的转移记录,交易服务器中可以记录第二哈希值与标的资源的转移记录之间的对应关系,比如可以在有关标的资源的订单状态的数据表中设置一个转移记录字段用于存储该第二哈希值,或者还可以通过其他方式来存储该第二哈希值,只要能够体现该第二哈希值与标的资源的转移记录的对应关系即可。
其中,该第二哈希值可以是区块链基于标的资源的转移记录通过哈希算法处理得到的。
下面以图2所示的交易服务器用于二手货物的交易为例,对本说明书提供的资源转移事件的记录方法进行详细介绍,如图2所示,包括下述主要步骤:
步骤21,二手货物回收方与二手货物提供方针对待回收的二手货物进行议价,以确定该待回收的二手货物的价格;
步骤22,二手货物回收方基于确定的待回收的二手货物的价格,向二手货物提供方支付该待回收的二手货物;
步骤23,二手货物的交易服务器通过区块链的预设接口向区块链上传该二手货物回收方的支付记录,该支付记录中可以包括二手货物回收方的标识、二手货物提供方的标识、支付方向、支付金额、以及二手货物回收方和二手货物提供方对待回收的二手货物的价格确认信息等信息;
其中,二手货物回收方的标识和二手货物提供方的标识,具体可以在该二手货物回收方和该二手货物提供方在该二手货物的交易服务器上注册账号时获取。为便于后期出现交易纠纷时进行取证,该二手货物回收方的标识可以是该二手货物回收方的实名身份信息,比如可以是与身份证号等唯一的标识相对应的身份标识,同样地,该二手货物提供方的标识可以是该二手货物回收方的实名身份信息,比如也可以是与身份证号等唯一的标识相对应的身份标识。
步骤24,区块链向二手货物的交易服务器返回第一哈希值,该第一哈希值为区块链基于待回收的二手货物的支付记录哈希处理得到的,以便区块链中的公证节点能够基于该第一哈希值,获取与该第一哈希值对应的支付记录;
步骤25,二手货物回收方在收到二手货物提供方针对该待回收的二手货物的支付 信息之后,将该待回收的二手货物按照二手货物回收方提供的地址进行寄送发货,并将该待回收的二手货物的物流信息,比如物流单号、物流公司等信息提供给二手货物的交易服务器;
步骤26,二手货物的交易服务器通过区块链的预设接口向区块链上传该待回收的二手货物的物流信息记录,该物流信息记录中可以包括二手货物回收方的标识、二手货物提供方的标识、发货方向、发货地址以及收货地址等信息;
步骤27,区块链向二手货物的交易服务器返回第二哈希值,该第二哈希值为区块链基于待回收的二手货物的物流信息记录哈希处理得到的,以便区块链中的公证节点能够基于该第二哈希值,获取与该第二哈希值对应的物流信息记录。
在资源转移过程中,能够基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传该标的资源的支付记录到区块链中,并能够获取并记录区块链基于该标的资源的支付记录返回的第一哈希值,以便区块链的公证节点能够查询到与该第一哈希值相对应的标的资源的支付记录;还能够基于资源转出方提供的标的资源的转移事件,通过区块链的预设接口上传该标的资源的转移记录到区块链中,并能够获取并记录区块链基于该标的资源的转移记录返回的第二哈希值,以便区块链的公证节点能够查询到与该第二哈希值相对应的标的资源的转移记录,从而能够减小了交易发生纠纷的取证难度。同时,由于资源接收方和资源转入方之间可以直接进行交易,无需第三方信用托管,也降低了交易双方的交易门槛。
图3是本说明书提供的资源转移事件的查询方法的实现流程示意图。请参考图3,该资源转移事件的查询方法应用于区块链中的公证节点,包括:
步骤310,通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求。
应理解,为便于基于该查询请求从区块链中获取到对应的信息,该查询请求中可以携带哈希值,该哈希值可以是区块链基于资源转移记录哈希处理得到的。
若上传到区块链中的标的资源的资源转移记录是经过加密处理后的资源转移记录,为了能够对上传到区块链中的标的资源的资源转移记录进行验证,该查询请求中还可以携带该标的资源的资源转移记录的原始数据,即该标的资源的资源转移记录加密之前的数据。
步骤320,基于查询请求,从区块链中下载并读取与查询请求携带的哈希值相对应 的资源转移记录。
可选地,与上述查询请求携带的哈希值相对应的资源转移记录包括下述至少一种资源转移记录:
标的资源的支付记录;
标的资源的转移记录。
若上传到区块链中的标的资源的资源转移记录是经过加密处理后的资源转移记录,为了能够对上传到区块链中的标的资源的资源转移记录进行验证,区块链中的公证节点可以通过对查询请求中携带的标的资源的资源转移记录的原始数据进行哈希处理,以获取经过哈希处理后的字符串,并将该字符串与区块链中存储的与该标的资源的资源转移记录相对应的字符串进行对比;若两者一致,则查询请求中携带的标的资源的资源转移记录的原始数据通过验证,而若两者不一致,则表明查询请求中携带的标的资源的资源转移记录的原始数据经过后期篡改,即不能通过验证。
由于能够通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求,并基于该查询请求,从区块链中下载并读取与查询请求携带的哈希值相对应的资源转移记录,从而能够减小了交易发生纠纷的取证难度。
图4是本说明书提供的二手货物交易的记录方法的实现流程示意图。请参考图4,该二手货物交易的记录方法应用于二手货物交易服务器,包括:
步骤410,基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传待回收二手货物的支付记录到区块链中。
可选地,基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传待回收二手货物的支付记录到区块链中,包括:
基于二手货物回收方对待回收二手货物的支付事件,获取待回收二手货物的支付记录;
对待回收二手货物的支付记录进行加密处理,以获取加密处理后的待回收二手货物的支付记录;
通过区块链的预设接口上传加密处理后的待回收二手货物的支付记录到区块链中。
可选地,待回收二手货物的估值可变,待回收二手货物的支付记录中携带二手货物回收方和二手货物提供方对待回收二手货物的估值确认信息。
步骤420,获取并记录区块链返回的第一哈希值,第一哈希值为区块链基于待回收二手货物的支付记录处理得到的,以便区块链的公证节点能够查询到与第一哈希值相对应的待回收二手货物的支付记录。
步骤430,基于二手货物提供方提供的待回收二手货物的发货事件,通过区块链的预设接口上传待回收二手货物的发货记录到区块链中。
可选地,基于二手货物提供方提供的待回收二手货物的发货事件,通过区块链的预设接口上传待回收二手货物的发货记录到区块链中,包括:
基于二手货物提供方提供的所述待回收二手货物的发货事件,获取待回收二手货物的发货记录;
对待回收二手货物的发货记录进行加密处理,以获取加密处理后的待回收二手货物的发货记录;
通过所述区块链的预设接口上传所述加密处理后的待回收二手货物的发货记录到所述区块链中。
步骤440,获取并记录区块链返回的第二哈希值,第二哈希值为区块链基于待回收二手货物的转移记录处理得到的,以便区块链的公证节点能够查询到与第二哈希值相对应的待回收二手货物的转移记录。
可选地,上述待回收二手货物的支付事件在待回收二手货物的发货事件之前;
或者,待回收二手货物的发货事件在待回收二手货物的支付事件之前。
图4所示实施例相关步骤的具体实现可参考图1~图2所示实施例中对应的步骤的具体实现,本说明书一个或多个实施例在此不再赘述。
在二手货物交易的过程中,能够基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传该待回收二手货物的支付记录到区块链中,并能够获取并记录区块链基于该待回收二手货物的支付记录返回的第一哈希值,以便区块链的公证节点能够查询到与该第一哈希值相对应的待回收二手货物的支付记录;还能够基于二手货物提供方提供的待回收二手货物的发货事件,通过区块链的预设接口上传该待回收二手货物的发货记录到区块链中,并能够获取并记录区块链基于该待回收二手货物的发货记录返回的第二哈希值,以便区块链的公证节点能够查询到与该第二哈希值相对应的待回收二手货物的发货记录,从而能够减小了交易发生纠纷的取证难度。同时,由于二手 货物回收方和二手货物提供方之间可以直接进行交易,无需第三方信用托管,也降低了二手货物回收交易的门槛。
图5是本说明书提供的二手货物回收交易的查询方法的实现流程示意图。请参考图5,该二手货物回收交易的查询方法应用于区块链中的公证节点,包括:
步骤510,通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求。
步骤520,基于查询请求,从区块链中下载并读取与查询请求携带的哈希值相对应的回收交易记录。
可选地,与查询请求携带的哈希值相对应的回收交易记录包括下述至少一种记录:
待回收二手货物的支付记录;
待回收二手货物的转移记录。
图5所示实施例相关步骤的具体实现可参考图3所示实施例中对应的步骤的具体实现,本说明书一个或多个实施例在此不再赘述。
由于能够通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求,并基于该查询请求,从区块链中下载并读取与查询请求携带的哈希值相对应的回收交易记录,从而能够减小了交易发生纠纷的取证难度。
图6是本说明书提供的资源转移事件的记录装置600的结构示意图。请参考图6,在一种软件实施方式中,资源转移事件的记录装置600可包括第一上传单元601、第一获取单元602、第二上传单元603和第二获取单元604,其中:
第一上传单元601,基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
第一获取单元602,获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
第二上传单元603,基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
第二获取单元604,获取并记录所述区块链返回的第二哈希值,所述第二哈希值为 所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
可选地,在一种实施方式中,所述第一上传单元601,用于:
基于资源接收方对所述标的资源的支付事件,获取所述标的资源的支付记录;
对所述标的资源的支付记录进行加密处理,以获取所述加密处理后的所述标的资源的支付记录;
通过所述区块链的预设接口上传所述加密处理后的所述标的资源的支付记录到区块链中。
可选地,在一种实施方式中,所第二上传单元603,用于:
基于资源转出方提供的所述标的资源的转移事件,获取所述标的资源的转移记录;
对所述标的资源的转移记录进行加密处理,以获取所述加密处理后的所述标的资源的转移记录;
通过所述区块链的预设接口上传所述加密处理后的所述标的资源的转移记录到所述区块链中。
可选地,在一种实施方式中,所述标的资源的估值可变,所述标的资源的支付记录中携带所述资源接收方和所述资源转出方对所述标的资源的估值确认信息。
可选地,在一种实施方式中,所述标的资源的支付事件在所述标的资源的转移事件之前;
或者,所述标的资源的转移事件在所述标的资源的支付事件之前。
资源转移事件的记录装置600能够实现图1~图2的方法实施例的方法,具体可参考图1~图2所示实施例的资源转移事件的记录方法,不再赘述。
图7是本说明书提供的资源转移事件的查询装置700的结构示意图。请参考图7,在一种软件实施方式中,资源转移事件的查询装置700可包括获取单元701和下载单元702,其中:
获取单元701,通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
下载单元702,基于所述查询请求,从所述区块链中下载并读取与所述查询请求携 带的哈希值相对应的资源转移记录。
可选地,在一种实施方式中,与所述查询请求携带的哈希值相对应的资源转移记录包括下述至少一种资源转移记录:
所述标的资源的支付记录;
所述标的资源的转移记录。
资源转移事件的查询装置700能够实现图3的方法实施例的方法,具体可参考图3所示实施例的资源转移事件的查询方法,不再赘述。
图8是本说明书提供的二手货物回收交易的记录装置800的结构示意图。请参考图8,在一种软件实施方式中,二手货物回收交易的记录装置800可包括第一上传单元801、第一获取单元802、第二上传单元803和第二获取单元804,其中:
第一上传单元801,基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
第一获取单元802,获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
第二上传单元803,基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
第二获取单元804,获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
可选地,在一种实施方式中,所述第一上传单元801,用于:
基于二手货物回收方对所述待回收二手货物的支付事件,获取所述待回收二手货物的支付记录;
对所述待回收二手货物的支付记录进行加密处理,以获取所述加密处理后的所述待回收二手货物的支付记录;
通过所述区块链的预设接口上传所述加密处理后的所述待回收二手货物的支付记录到区块链中。
可选地,在一种实施方式中,所述第二上传单元803,用于:
基于二手货物提供方提供的所述待回收二手货物的转移事件,获取所述待回收二手货物的发货记录;
对所述待回收二手货物的发货记录进行加密处理,以获取所述加密处理后的所述待回收二手货物的发货记录;
通过所述区块链的预设接口上传所述加密处理后的所述待回收二手货物的发货记录到所述区块链中。
可选地,在一种实施方式中,所述待回收二手货物的价格可变,所述待回收二手货物的支付记录中携带所述二手货物提供方和所述二手货物回收方对所述待回收二手货物的价格确认信息。
可选地,在一种实施方式中,所述待回收二手货物的支付事件在所待回收二手货物的发货事件之前;
或者,所述待回收二手货物的发货事件在所述待回收二手货物的支付事件之前。
二手货物回收交易的记录装置800能够实现图4的方法实施例的方法,具体可参考图4所示实施例的二手货物回收交易的记录方法,不再赘述。
图9是本说明书提供的二手货物回收交易的查询装置900的结构示意图。请参考图9,在一种软件实施方式中,二手货物回收交易的查询装置900可包括获取单元901和下载单元902,其中:
获取单元901,通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
下载单元902,基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
可选地,在一种实施方式中,与所述查询请求携带的哈希值相对应的回收交易记录包括下述至少一种记录:
所述待回收二手货物的支付记录;
所述待回收二手货物的发货记录。
二手货物回收交易的查询装置900能够实现图5的方法实施例的方法,具体可参考图5所示实施例的二手货物回收交易的查询方法,不再赘述。
图10是本说明书的一个实施例提供的电子设备的结构示意图。请参考图10,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成资源转移事件的记录装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:
基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
上述如本说明书图1~图2所示实施例揭示的资源转移事件的记录方法可以应用于 处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本说明书一个或多个实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本说明书一个或多个实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
该电子设备还可执行图1~图2的资源转移事件的记录方法,本说明书在此不再赘述。
当然,除了软件实现方式之外,本说明书的电子设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
图11是本说明书的一个实施例提供的电子设备的结构示意图。请参考图11,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计 算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成资源转移事件的查询装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:
通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
基于所述查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
上述如本说明书图3所示实施例揭示的资源转移事件的查询方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本说明书一个或多个实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本说明书一个或多个实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
该电子设备还可执行图3的资源转移事件的查询方法,本说明书在此不再赘述。
当然,除了软件实现方式之外,本说明书的电子设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
图12是本说明书的一个实施例提供的电子设备的结构示意图。请参考图12,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可 能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成二手货物回收交易的记录装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:
基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
上述如本说明书图4所示实施例揭示的二手货物回收交易的记录方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、 现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本说明书一个或多个实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本说明书一个或多个实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
该电子设备还可执行图4的二手货物回收交易的记录方法,本说明书在此不再赘述。
当然,除了软件实现方式之外,本说明书的电子设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
图13是本说明书的一个实施例提供的电子设备的结构示意图。请参考图13,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图13中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成二手货物回收交易的查询装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:
通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
基于所述查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
上述如本说明书图5所示实施例揭示的二手货物回收交易的查询方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本说明书一个或多个实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本说明书一个或多个实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
该电子设备还可执行图5的二手货物回收交易的查询方法,本说明书在此不再赘述。
当然,除了软件实现方式之外,本说明书的电子设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
总之,以上所述仅为本说明书的较佳实施例而已,并非用于限定本说明书的保护范围。凡在本说明书一个或多个实施例的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例的保护范围之内。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、 媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。

Claims (21)

  1. 一种资源转移事件的记录方法,所述方法应用于交易服务器,所述方法包括:
    基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
    获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
    基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
    获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
  2. 如权利要求1所述的方法,基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到区块链中,包括:
    基于资源接收方对所述标的资源的支付事件,获取所述标的资源的支付记录;
    对所述标的资源的支付记录进行加密处理,以获取所述加密处理后的所述标的资源的支付记录;
    通过所述区块链的预设接口上传所述加密处理后的所述标的资源的支付记录到区块链中。
  3. 如权利要求1所述的方法,基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中,包括:
    基于资源转出方提供的所述标的资源的转移事件,获取所述标的资源的转移记录;
    对所述标的资源的转移记录进行加密处理,以获取所述加密处理后的所述标的资源的转移记录;
    通过所述区块链的预设接口上传所述加密处理后的所述标的资源的转移记录到所述区块链中。
  4. 如权利要求1所述的方法,
    所述标的资源的估值可变,所述标的资源的支付记录中携带所述资源接收方和所述资源转出方对所述标的资源的估值确认信息。
  5. 如权利要求1~4中任一所述的方法,
    所述标的资源的支付事件在所述标的资源的转移事件之前;
    或者,所述标的资源的转移事件在所述标的资源的支付事件之前。
  6. 一种资源转移事件的查询方法,所述方法应用于区块链中的公证节点,所述方法包括:
    通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
    基于所述查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
  7. 如权利要求6所述的方法,
    与所述查询请求携带的哈希值相对应的资源转移记录包括下述至少一种资源转移记录:
    所述标的资源的支付记录;
    所述标的资源的转移记录。
  8. 一种二手货物回收交易的记录方法,所述方法应用于二手货物交易服务器,所述方法包括:
    基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
    获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
    基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
    获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
  9. 一种二手货物回收交易的查询方法,所述方法应用于区块链中的公证节点,所述方法包括:
    通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
    基于所述查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
  10. 一种资源转移事件的记录装置,包括:
    第一上传单元,基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
    第一获取单元,获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
    第二上传单元,基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
    第二获取单元,获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
  11. 一种资源转移事件的查询装置,包括:
    获取单元,通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
    下载单元,基于所述资源接收方和/或所述资源转出方针对标的资源的资源转移记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
  12. 一种二手货物回收交易的记录装置,包括:
    第一上传单元,基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
    第一获取单元,获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
    第二上传单元,基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
    第二获取单元,获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
  13. 一种二手货物回收交易的查询装置,包括:
    获取单元,通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
    下载单元,基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交 易记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
  14. 一种电子设备,该电子设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
    基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
    获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
    基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
    获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
    基于资源接收方对标的资源的支付事件,通过区块链的预设接口上传所述标的资源的支付记录到所述区块链中;
    获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述标的资源的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述标的资源的支付记录;
    基于资源转出方提供的所述标的资源的转移事件,通过所述区块链的预设接口上传所述标的资源的转移记录到所述区块链中;
    获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述标的资源的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述标的资源的转移记录。
  16. 一种电子设备,该电子设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
    通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
    基于所述资源接收方和/或所述资源转出方针对标的资源的资源转移记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
  17. 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
    通过区块链的预设接口获取资源接收方和/或资源转出方针对标的资源的资源转移记录的查询请求;
    基于所述资源接收方和/或所述资源转出方针对标的资源的资源转移记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的资源转移记录。
  18. 一种电子设备,该电子设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
    基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所述待回收二手货物的支付记录到所述区块链中;
    获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
    基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
    获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
  19. 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
    基于二手货物回收方对待回收二手货物的支付事件,通过区块链的预设接口上传所 述待回收二手货物的支付记录到所述区块链中;
    获取并记录所述区块链返回的第一哈希值,所述第一哈希值为所述区块链基于所述待回收二手货物的支付记录处理得到的,以便所述区块链的公证节点能够查询到与所述第一哈希值相对应的所述待回收二手货物的支付记录;
    基于二手货物提供方提供的所述待回收二手货物的发货事件,通过所述区块链的预设接口上传所述待回收二手货物的发货记录到所述区块链中;
    获取并记录所述区块链返回的第二哈希值,所述第二哈希值为所述区块链基于所述待回收二手货物的转移记录处理得到的,以便所述区块链的公证节点能够查询到与所述第二哈希值相对应的所述待回收二手货物的转移记录。
  20. 一种电子设备,该电子设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
    通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
    基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
  21. 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:
    通过区块链的预设接口获取二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求;
    基于二手货物回收方和/或二手货物提供方针对待回收二手货物的回收交易记录的查询请求,从所述区块链中下载并读取与所述查询请求携带的哈希值相对应的回收交易记录。
PCT/CN2019/110879 2018-11-28 2019-10-12 一种资源转移事件的记录方法、装置及电子设备 WO2020108126A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811431168.2A CN109582673A (zh) 2018-11-28 2018-11-28 一种资源转移事件的记录方法、装置及电子设备
CN201811431168.2 2018-11-28

Publications (1)

Publication Number Publication Date
WO2020108126A1 true WO2020108126A1 (zh) 2020-06-04

Family

ID=65925073

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/110879 WO2020108126A1 (zh) 2018-11-28 2019-10-12 一种资源转移事件的记录方法、装置及电子设备

Country Status (3)

Country Link
CN (1) CN109582673A (zh)
TW (1) TW202025024A (zh)
WO (1) WO2020108126A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582673A (zh) * 2018-11-28 2019-04-05 阿里巴巴集团控股有限公司 一种资源转移事件的记录方法、装置及电子设备
CN110175831B (zh) * 2019-04-23 2023-09-29 创新先进技术有限公司 一种基于区块链的信用转移方法、装置及电子设备
CN110163594A (zh) * 2019-04-29 2019-08-23 阿里巴巴集团控股有限公司 基于区块链的缴费方法及装置和电子设备
CN110599170B (zh) * 2019-09-16 2021-06-25 腾讯科技(深圳)有限公司 基于区块链的交易信息处理方法和系统、存储介质
CN110930151A (zh) * 2019-11-29 2020-03-27 中国工商银行股份有限公司 基于区块链的交易处理方法、装置、计算设备以及介质
CN110751448B (zh) * 2019-12-20 2020-06-05 北京京邦达贸易有限公司 基于区块链的签单返还方法、装置、设备和可读存储介质
CN112783971B (zh) * 2020-12-30 2023-03-24 杭州趣链科技有限公司 交易记录方法、交易查询方法、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956923A (zh) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 资产交易平台以及资产的数字化认证和交易方法
CN107135661A (zh) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 数据处理方法、装置、系统及信息采集设备
CN107273556A (zh) * 2017-08-23 2017-10-20 上海点融信息科技有限责任公司 区块链数据索引方法和设备
WO2018189597A1 (en) * 2017-04-12 2018-10-18 Akuon Peter Mobile bank account management systems
CN108876610A (zh) * 2018-05-31 2018-11-23 深圳市零度智控科技有限公司 智能合约实施方法、用户设备、存储介质及装置
CN109582673A (zh) * 2018-11-28 2019-04-05 阿里巴巴集团控股有限公司 一种资源转移事件的记录方法、装置及电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183959B (zh) * 2017-12-29 2021-09-07 深圳市轱辘车联数据技术有限公司 一种基于区块链的车辆共享方法、服务器及可读存储介质
CN108615195B (zh) * 2018-04-28 2021-12-07 腾讯科技(深圳)有限公司 资源转移信息的传输方法和装置、存储介质、电子装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956923A (zh) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 资产交易平台以及资产的数字化认证和交易方法
CN107135661A (zh) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 数据处理方法、装置、系统及信息采集设备
WO2018189597A1 (en) * 2017-04-12 2018-10-18 Akuon Peter Mobile bank account management systems
CN107273556A (zh) * 2017-08-23 2017-10-20 上海点融信息科技有限责任公司 区块链数据索引方法和设备
CN108876610A (zh) * 2018-05-31 2018-11-23 深圳市零度智控科技有限公司 智能合约实施方法、用户设备、存储介质及装置
CN109582673A (zh) * 2018-11-28 2019-04-05 阿里巴巴集团控股有限公司 一种资源转移事件的记录方法、装置及电子设备

Also Published As

Publication number Publication date
CN109582673A (zh) 2019-04-05
TW202025024A (zh) 2020-07-01

Similar Documents

Publication Publication Date Title
WO2020108126A1 (zh) 一种资源转移事件的记录方法、装置及电子设备
WO2020211462A1 (zh) 一种基于区块链的业务数据上链方法及其系统
WO2020233140A1 (zh) 一种基于区块链的侵权存证方法、装置及电子设备
US11138345B2 (en) Method, apparatus, and electronic device for blockchain-based infringement evidence storage
WO2020119294A1 (zh) 数据共享方法、装置及系统、电子设备
WO2020119264A1 (zh) 基于区块链的录屏取证方法、系统和电子设备
WO2020228365A1 (zh) 一种基于联盟链的对账方法、装置及电子设备
US20180137507A1 (en) Performing verification on the blockchain for non-blockchain transactions
WO2020108110A1 (zh) 基于区块链的物流信息溯源方法及装置和电子设备
US20180114261A1 (en) Verifying reviews on a blockchain
WO2020108105A1 (zh) 一种账单分期事件的记录和查询方法、装置及电子设备
CN109391480A (zh) 一种数据存储方法、装置及电子设备
CN108154050B (zh) 一种车况数据管理方法及装置
CN114553515B (zh) 基于区块链的nft资产的检验方法、业务处理方法及硬件
CN111936995A (zh) 海关清关数据的分布式存储
CN111989707A (zh) 管理基于区块链的海关清关服务的用户权限
CN112348717A (zh) 一种基于区块链的知识上链与获取方法及系统
CN111989663A (zh) 基于区块链的智能合约池
US20220366486A1 (en) Decentralized auction platform
CN111868725A (zh) 基于区块链处理进口海关清关数据
US11151228B2 (en) Blockchain-based image transaction system, method, apparatus, and electronic device
CN107239994A (zh) 订单处理方法、装置、计算机设备及计算机可读存储介质
CN111683082A (zh) 一种基于区块链的数据共享方法、系统及电子设备
US9378338B1 (en) System, method, and computer program for validating receipt of digital content by a client device
CN111936994A (zh) 用于海关清关的基于区块链的文档注册

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: 19890804

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: 19890804

Country of ref document: EP

Kind code of ref document: A1