Nothing Special   »   [go: up one dir, main page]

WO2019051822A1 - 资源交易的方法、节点、装置及存储介质 - Google Patents

资源交易的方法、节点、装置及存储介质 Download PDF

Info

Publication number
WO2019051822A1
WO2019051822A1 PCT/CN2017/102028 CN2017102028W WO2019051822A1 WO 2019051822 A1 WO2019051822 A1 WO 2019051822A1 CN 2017102028 W CN2017102028 W CN 2017102028W WO 2019051822 A1 WO2019051822 A1 WO 2019051822A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
node
resource
contract
payment
Prior art date
Application number
PCT/CN2017/102028
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 CN201780055254.5A priority Critical patent/CN109690599B/zh
Priority to PCT/CN2017/102028 priority patent/WO2019051822A1/zh
Priority to CN201910833595.1A priority patent/CN110866752B/zh
Publication of WO2019051822A1 publication Critical patent/WO2019051822A1/zh
Priority to US16/601,453 priority patent/US11488143B2/en

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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3674Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes involving authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • G06Q20/0658Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash e-cash managed locally
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0637Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • 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
    • G06Q2220/00Business processing using cryptography
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash

Definitions

  • the present application relates to the field of e-commerce transaction technology, and in particular, to a resource transaction method, node, device and storage medium.
  • the e-commerce transaction platform forwards the transaction settlement instruction to the third-party payment node, and then the third-party payment node completes the buyer's acquiring payment service, and
  • the transaction funds are liquidated to the e-commerce trading platform
  • the seller applies to the e-commerce trading platform to settle the payment for the commodity service
  • the e-commerce transaction platform initiates the settlement instruction to the third-party payment node, and finally the third-party payment node completes the settlement, and the account balance is verified. So that the entire transaction process is over.
  • the seller's control over the process in the entire clearing process is entirely dependent on the e-commerce trading platform system and its commitment to integrity management.
  • the third-party payment node can only obtain the transaction settlement instruction of the trader forwarded by the e-commerce trading platform, and the third-party payment node cannot directly obtain the transaction settlement instruction of the buyer and seller.
  • the e-commerce trading platform can also modify trading information and create fake transactions. It can be seen that the transaction process of the existing mechanism cannot trace the information due to lack of supervision, and it is impossible to make a consistent judgment on the same transaction information. There are many hidden dangers caused by the uncertainty of transaction reality.
  • the application provides a method, a node, a device and a storage medium for resource transaction, which can solve the problem of low reliability of transaction information in the e-commerce transaction process in the prior art.
  • the present application provides, in one aspect, a method of resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, and at least one resource request Node, the method includes:
  • the resource requesting node requests a target resource from the resource providing node by using the transaction node;
  • the transaction node creates a transaction contract of the target resource based on the blockchain database
  • the payment node acquires a transaction settlement instruction
  • the payment node queries, from the blockchain database, the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction, and the resource request node exists in the transaction contract When signing the current resource transaction, it is determined that the transaction contract is a real transaction;
  • the payment node sends a transaction payment request to the resource requesting node.
  • the present application provides, on the one hand, a method of resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, and at least one resource Requesting a node, the method comprising:
  • the payment node queries, from the blockchain database, the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction, and the resource request node has a transaction for the current resource in the transaction contract When signing, it is determined that the transaction contract is a real transaction;
  • the payment node sends a transaction payment request to the resource requesting node.
  • the present application provides, on the one hand, a method of resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, and at least one resource Requesting a node, the method comprising:
  • the transaction node After the resource requesting node requests resources from the resource providing node on the transaction node, the transaction node creates a transaction contract in the blockchain database;
  • a transaction contract and after the resource requesting node signs the current resource transaction, the transaction contract is determined to be a real transaction, and a transaction payment request is sent to the resource requesting node.
  • the present application provides, on the one hand, a method of resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, and at least one resource Requesting a node and a supervisory node, the method comprising:
  • the supervisory node acquires a transaction query instruction, and acquires a transaction combination in response to the transaction query instruction a list of the transaction contract created by the transaction node after the resource request node requests a resource transaction from the resource providing node;
  • the supervisory node performs transaction analysis on at least one of the trading contracts in the list of trading contracts
  • the supervision node determines that the target transaction contract is a fraudulent transaction.
  • the present application provides, on the one hand, a method of resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and at least A resource requesting terminal device, the method comprising:
  • the resource requesting terminal device requests a target resource from the resource providing terminal device by using the transaction terminal device;
  • the payment terminal device acquires a transaction settlement instruction
  • the payment terminal device queries, from the blockchain database, the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction, and the resource requesting terminal device has the current resource in the transaction contract
  • the transaction contract is determined to be a real transaction
  • the payment terminal device sends a transaction payment request to the resource requesting terminal device.
  • the present application provides, on the one hand, a method of resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and At least one resource requesting terminal device, the method comprising:
  • the payment terminal device acquires a transaction settlement instruction sent by the transaction terminal device, where the transaction settlement instruction means that after the resource requesting terminal device requests the target resource from the resource providing terminal device on the transaction terminal device, An instruction generated by the transaction terminal device after the transaction chain of the target resource is created in the blockchain database;
  • the payment terminal device queries, from the blockchain database, the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction, and the resource requesting terminal device has the current resource in the transaction contract
  • the transaction contract is determined to be a real transaction
  • the payment terminal device sends a transaction payment request to the resource requesting terminal device.
  • the present application provides, on the one hand, a method for resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and at least A resource requesting terminal device, the method comprising:
  • the transaction terminal device After the resource requesting terminal device requests a resource from the resource providing terminal device on the transaction terminal device, the transaction terminal device creates a transaction contract in the blockchain database;
  • the transaction contract corresponding to the instruction and after the resource requesting terminal device signs the current resource transaction, the transaction contract is determined to be a real transaction, and a transaction payment request is sent to the resource requesting terminal device.
  • the present application provides, on the one hand, a method of resource transaction, the method being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and At least one resource requesting terminal device and a supervisory terminal device, the method comprising:
  • the supervisory terminal device acquires a query instruction, and in response to the query instruction, acquires a transaction contract list, where the transaction contract list is requested by the transaction terminal device after the resource request terminal device requests a resource transaction from the resource providing terminal device create;
  • the supervising terminal device performs transaction analysis on at least one transaction contract in the list of transaction contracts
  • the supervising terminal device determines that the target transaction contract is a fraudulent transaction.
  • the present application provides a blockchain system having functionality to implement a method corresponding to the resource transaction provided above.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more units or modules corresponding to the functions described above, which may be software and/or hardware.
  • the blockchain system includes a blockchain database, a transaction node, and at least A payment node, at least one resource providing node, and at least one resource requesting node.
  • the resource requesting node is configured to request, by the transaction node, a target resource from the resource providing node;
  • the transaction node configured to create a transaction contract of the target resource based on the blockchain database
  • the payment node is configured to acquire a transaction settlement instruction, query, from the blockchain database, the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction, and the resource exists in the transaction contract
  • the requesting node signs the current resource transaction, it determines that the transaction contract is a real transaction; and sends a transaction payment request to the resource requesting node.
  • the present application provides a payment node having a function of implementing a method corresponding to the resource transaction provided above.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above, which may be software and/or hardware.
  • the payment node is applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, and at least one resource requesting node
  • the payment node includes:
  • a transceiver module configured to acquire a transaction settlement instruction sent by the transaction node, where the transaction settlement instruction is that the resource request node requests the target resource from the resource providing node on the transaction node, and the transaction node An instruction generated after the blockchain database creates a transaction contract for the target resource;
  • a processing module configured to query, from the blockchain database, the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction received by the transceiver module, and the resource exists in the transaction contract
  • the requesting node signs the current resource transaction, it determines that the transaction contract is a real transaction; and sends a transaction payment request to the resource requesting node through the transceiver module.
  • the present application provides a transaction node having a function of implementing a method corresponding to the resource transaction provided above.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more units corresponding to the functions described above, which may be software and/or hardware.
  • the transaction node is applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, and at least one resource requesting node
  • the transaction node includes:
  • a processing unit configured to create a transaction contract in the blockchain database after the resource requesting node requests resources from the resource providing node on the transaction node;
  • a transceiver unit configured to send a transaction settlement instruction corresponding to the transaction contract to the payment node, so that the payment node queries from the blockchain database to correspond to the transaction settlement instruction according to the transaction settlement instruction a transaction contract, and after the resource requesting node signs the current resource transaction, the transaction contract is determined to be a real transaction, and a transaction payment request is sent to the resource requesting node.
  • the present application provides a supervisory node having the function of implementing a method corresponding to the resource transaction provided above.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above, which may be software and/or hardware.
  • the supervisory node is applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, at least one resource requesting node, and a supervisory node, the supervisory node includes:
  • a transceiver module configured to obtain a query instruction, in response to the query instruction, obtaining a list of transaction contracts, the transaction contract list being created by the transaction node after the resource request node requests a resource transaction from the resource providing node;
  • a processing submodule for performing transaction analysis on at least one transaction contract in the transaction contract list; not determining a resource request in the target transaction contract after determining that the target transaction contract in the transaction list reaches a transaction confirmation deadline When the node performs transaction confirmation, it is determined that the target transaction contract is a fraudulent transaction.
  • the present application provides a blockchain system having functionality to implement a method corresponding to the resource transaction provided above.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more units or modules corresponding to the functions described above, which may be software and/or hardware.
  • the blockchain system includes a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and at least one resource requesting terminal device.
  • the resource requesting terminal device configured to request, by the transaction terminal device, the target resource from the resource providing terminal device;
  • the transaction terminal device configured to create a transaction contract of the target resource based on the blockchain database
  • the payment terminal device is configured to acquire a transaction settlement instruction, and query, according to the transaction settlement instruction, the transaction contract corresponding to the transaction settlement instruction from the blockchain database, and the transaction contract has the
  • the resource requests the terminal device to sign the current resource transaction, it determines that the transaction contract is a real transaction; and sends a transaction payment request to the resource requesting terminal device.
  • the present application provides a payment terminal device having a function of implementing a method corresponding to the resource transaction provided above.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above, which may be software and/or hardware.
  • the payment terminal device is applied to a blockchain system, and the blockchain system includes a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and at least A resource requesting terminal device, the payment terminal device comprising:
  • a transceiver module configured to acquire a transaction settlement instruction sent by the transaction terminal device, where the transaction settlement instruction means that after the resource requesting terminal device requests the target resource from the resource providing terminal device on the transaction terminal device, An instruction generated by the transaction terminal device after the transaction chain of the target resource is created in the blockchain database;
  • a processing module configured to query, from the blockchain database, the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction received by the transceiver module, and the resource exists in the transaction contract
  • the present application provides a transaction terminal device having a function of implementing a method corresponding to the resource transaction provided above.
  • the function can be implemented by hardware, or can be executed by hardware.
  • the hardware or software includes one or more units corresponding to the functions described above, which may be software and/or hardware.
  • the transaction terminal device is applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and at least A resource requesting terminal device, the transaction terminal device comprising:
  • a processing unit configured to create a transaction contract in the blockchain database after the resource requesting terminal device requests resources from the resource providing terminal device on the transaction terminal device;
  • a transceiver unit configured to send a transaction settlement instruction corresponding to the transaction contract to the payment terminal device, so that the payment terminal device queries from the blockchain database to settle the transaction according to the transaction settlement instruction
  • the transaction contract corresponding to the instruction and after the resource requesting terminal device signs the current resource transaction, the transaction contract is determined to be a real transaction, and a transaction payment request is sent to the resource requesting terminal device.
  • the present application provides a supervisory terminal device having a function of implementing a method corresponding to the resource transaction provided above.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above, which may be software and/or hardware.
  • the supervisory terminal device is applied to a blockchain system, and the blockchain system includes a blockchain database, a transaction terminal device, at least one payment terminal device, at least one resource providing terminal device, and at least one The resource requesting terminal device and the supervisory terminal device, where the supervisory terminal device comprises:
  • a transceiver module configured to obtain a query instruction, in response to the query instruction, obtaining a transaction contract list, where the transaction contract device requests the resource transaction from the resource requesting terminal device to the resource providing terminal device by the transaction terminal device After creation;
  • a processing submodule for performing transaction analysis on at least one transaction contract in the transaction contract list; not determining a resource request in the target transaction contract after determining that the target transaction contract in the transaction list reaches a transaction confirmation deadline When the terminal device performs transaction confirmation, it is determined that the target transaction contract is a fraudulent transaction.
  • An aspect of the present application provides a computer readable storage medium, the computer readable storage medium
  • the firmware stores instructions that, when run on a computer, cause the computer to perform the methods described in the various aspects above.
  • An aspect of the present application provides an apparatus for resource transactions including at least one connected processor, a memory and a transceiver, wherein the memory is for storing program code, and the processor is configured to invoke program code in the memory
  • the payment node may first directly query the blockchain database according to the transaction settlement instruction whether there is a transaction corresponding to the transaction settlement instruction.
  • a contract if there is a corresponding transaction contract, and there is a signature of the resource requesting node on the current resource transaction, the transaction contract is determined to be a real transaction, and the data consistency based on the blockchain is visible.
  • the payment node can judge the authenticity of the transaction or whether it is falsified by the trading node through the judgment of these two layers, improve the authenticity of the resource transaction, and effectively avoid
  • the transaction clearing instruction is falsified or falsely generated by the trading node, thereby reducing the risk of paying false transactions and reducing the risk of financial security caused by the lack of prior supervision.
  • FIG. 1 is a schematic diagram of a network topology structure of a blockchain system according to an embodiment of the present application
  • FIG. 2 is a flow chart of a method for resource transaction in an embodiment of the present application
  • FIG. 3 is a schematic diagram of a logical division of a transaction clearing system in a blockchain system according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a payment node in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a transaction node in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a supervisory node in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a blockchain system in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an apparatus for resource transaction according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a server in an embodiment of the present application.
  • modules may be combined or integrated into another system, or some features may be ignored or not executed, and in addition, displayed or discussed between each other
  • the coupling or direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection between the modules may be electrical or the like, which is not limited in the present application.
  • the modules or sub-modules described as separate components may or may not be physically separated, may not be physical modules, or may be distributed to multiple circuit modules, and some or all of them may be selected according to actual needs.
  • the module implements the purpose of the solution of the embodiments of the present application.
  • the embodiments of the present application provide a method, a node, a device, and a storage medium for resource transactions.
  • the solution provided by this application is mainly used in the field of e-commerce, for example, for business-to-customer (English name: Business-to-Customer, English abbreviation: B2C), consumer-to-consumer (English full name: Customer-to-Customer , English abbreviation: C2C), business-to-business (English name: Business-to-Business, English abbreviation: B2B), etc., the specific application is not limited.
  • FIG. 1 is a schematic diagram of a network topology structure of a blockchain system according to an embodiment of the present application, and is also a schematic diagram of a commodity purchase process.
  • the commodity purchaser, the commodity provider, the payment platform, and the e-commerce transaction platform are all based on the blockchain technology. Deployment, belonging to the same blockchain system.
  • the blockchain system may be based on a private blockchain or a federated blockchain, and the blockchain system may include at least one blockchain database (which may be a private and/or federated blockchain).
  • the commodity purchaser, the commodity provider, the payment platform and the e-commerce transaction platform each have a corresponding blockchain account and a blockchain address in the blockchain system, and the respective rights in the blockchain system can be set as needed, specifically This application is not limited.
  • Commodity purchasers, commodity providers, payment platforms, and e-commerce trading platforms can all query data in the blockchain database.
  • Purchase of goods Behaviors, payment behaviors, liquidation behaviors, and query behaviors between the provider, the commodity provider, the payment platform, and the e-commerce transaction platform can all be performed based on the blockchain system.
  • the commodity purchaser purchases the commodity from the commodity provider on the e-commerce trading platform through the e-commerce trading platform, and the e-commerce trading platform creates a trading contract of the commodity trading, and the trading contract includes the transaction information of the commodity trading, and Synchronize the trading contract to the blockchain database.
  • the e-commerce trading platform sends a transaction settlement instruction to the payment platform. After receiving the transaction settlement instruction, the payment platform can obtain the corresponding transaction contract in the blockchain database, and then query the blockchain of the commodity purchaser and the commodity provider in the transaction contract from the blockchain database.
  • the payment platform After determining that the blockchain identity of the commodity purchaser and the commodity provider in the transaction contract is legal, the payment platform further determines whether there is a signature of the commodity purchaser on the transaction contract in the transaction contract, and if so, the judgment may be The secondary commodity transaction is a real transaction. The payment platform then initiates a transaction payment instruction to the commodity purchaser to cause the purchaser of the commodity to make the payment. After the payment is successful, the payment platform can clear the funds to the e-commerce trading platform, and then the transaction funds are liquidated to the commodity provider by the e-commerce trading platform. The specific liquidation process is not described in the application.
  • the blockchain system in this application is based on blockchain technology and can be decentralized to ensure the consistency of transaction data.
  • the blockchain system may be based on a private blockchain or a federated blockchain.
  • the e-commerce trading platform can create a trading contract based on the blockchain, and the payment platform can check the authenticity of the trading contract generated by each commodity transaction based on the blockchain database.
  • commodity buyers, commodity providers, payment platforms, and e-commerce trading platforms can all check trading contracts based on the blockchain database, ultimately achieving the purpose of multi-party supervision and ensuring the interests of stakeholders in the transaction.
  • Blockchain technology refers to: using blockchain data structures to verify and store data, using distributed node consensus algorithms to generate and update data, using cryptography to ensure data transmission and access security, utilizing automated script code A new distributed infrastructure and computing method that consists of smart contracts to program and manipulate data.
  • a blockchain is a database ledger that records all transaction records and verifies the validity of the information.
  • the blockchain has the characteristics of decentralization, trust, collective maintenance, reliable database, open source, and anonymity.
  • the blockchain of the present application is based on a consensus mechanism, and the data in the blockchain cannot be deleted or modified, and can only be added and traced, thereby reducing the risk of counterfeiting.
  • the embodiment of the present application mainly provides the following technical solutions:
  • Each node participating in the entire resource transaction (including at least one payment node, at least one resource requesting node, at least one resource providing node, and a transaction node, and may also include a supervisory node) are deployed in the blockchain system such that between the nodes The interaction is based on blockchain technology, decentralized to ensure data consistency.
  • the payment node may first directly query the blockchain database according to the transaction settlement instruction whether there is a transaction contract corresponding to the transaction settlement instruction.
  • the payment node can judge the authenticity of the transaction or whether it is falsified by the trading node through the judgment of these two layers, improve the authenticity of the resource transaction, and effectively avoid the transaction.
  • the liquidation order is falsified or falsely generated by the trading node, thereby reducing the risk of paying false transactions and reducing the risk of financial security caused by the lack of prior supervision.
  • the method for resource transaction provided by the embodiment of the present application is exemplified below.
  • the method is applied to a blockchain system, the blockchain system comprising a transaction node, at least one payment node, at least one resource providing node, at least one resource requesting node, and a blockchain database, and may further include a supervisory node, a transaction node Used to provide resource transaction services for resource provisioning nodes and resource requesting nodes.
  • the blockchain database may be deployed separately or deployed to the supervising node.
  • the specific application is not limited. It should be noted that the transaction node, the payment node, the resource providing node, the resource requesting node, and the supervising node in the embodiment of the present application may be logically divided virtual devices or independent physical devices.
  • the transaction node is functionally equivalent to the transaction terminal device, the payment node and the payment terminal device are functionally equivalent, the resource providing node and the resource providing terminal device are functionally equivalent, and the resource requesting node and the resource requesting terminal device are functionally equivalent.
  • the supervisory node is functionally equivalent to the supervisory terminal device, and no distinction is made in the subsequent embodiments.
  • a transaction node, a payment node, a resource providing node, a resource requesting node, and a supervisory node are taken as examples. The following describes the deployment method of the optional blockchain system in the embodiment of the present application:
  • Generate blockchain Generate a blockchain according to the blockchain protocol.
  • each node participating in the resource transaction needs to register the blockchain account in the blockchain database.
  • the resource request node and the resource providing node it may be registered spontaneously in the blockchain database, or may be injected by the transaction node or the payment node in the blockchain database.
  • Book specific registration method This application is not limited. It can be understood that the registration process of each node in the blockchain database essentially means that the node is added to the blockchain system.
  • both the resource requesting node and the resource providing node When registering a blockchain account, both the resource requesting node and the resource providing node will obtain a unique blockchain account for resource transactions at the trading node, so as to identify the identity of the subsequent resource transaction. After the registration is completed, both the resource request node and the resource providing node will get the blockchain account identifier, the node identifier, the blockchain address, the operation password, the account public key, and the account private key.
  • the account private key can be used to sign the transaction contract, and the account public key can be used to authenticate the transaction contract.
  • the blockchain account address and the operation password may be operations for querying, reviewing, and managing the transaction contract for the node (resource request node or resource providing node) to log in the blockchain database.
  • an account management module may be defined in the blockchain database, and the account information of each node may be managed in a secure manner.
  • the specific security mode is not limited in this application.
  • Writing data to the blockchain database When each node in the blockchain system writes data to the blockchain database, it needs to separately send the data to be written to the blockchain system except itself. The other nodes make the other nodes participate in the consensus. After each node receives the consensus result information sent by other nodes, it can judge whether the consensus is reached according to the consensus result information.
  • Each node in the blockchain system can generate data on its own platform and synchronize some or all of the generated data into the blockchain database based on the consensus mechanism.
  • the application may also set the permission of each node to access the data in the blockchain database, or maintain the data in the blockchain database in an encrypted manner.
  • the manner in which each node accesses the data in the blockchain database is not limited in this application.
  • the blockchain system can maintain at least one blockchain database, and the blockchain database can be a private blockchain database or a federated blockchain database.
  • the specific deployment type is not limited in this application.
  • the embodiment of the present application takes a blockchain database as an example.
  • the embodiment of the present application may mainly include the following operations:
  • the resource requesting node requests a target resource from the resource providing node by using the transaction node.
  • the resource request node After the resource request node selects the target resource of interest based on the transaction node, the resource request node enters the acquisition application interface of the target resource, that is, the resource supply node that enters the resource providing node to which the target resource belongs Use the interface.
  • the resource requesting node may initiate a request to the resource providing node on the acquiring application interface of the target resource to obtain the target resource. For example, if the buyer searches for goods on the e-commerce trading platform and searches for the item A of interest, directly click on the item A to enter the details interface of the item A. Then, the buyer can click to purchase in the details interface of the product A, that is, to issue a purchase request to the seller to which the product A belongs.
  • the resource providing node receives a request that the resource requesting node acquires a target resource.
  • the resource providing node may check whether there is a request for acquiring a resource based on the transaction node in real time, and after receiving the request for acquiring the target resource, the corresponding operation may be performed on the request.
  • the seller can view the notification of the purchase request in real time on the e-commerce transaction platform, and the notification may be in the form of a short message, an email, or an instant message.
  • the transaction node creates a transaction contract of the target resource based on a blockchain database.
  • the transaction node may further generate a transaction settlement instruction corresponding to the transaction contract.
  • the transaction contract in the embodiment of the present application includes transaction information of the transaction, and may further include a trigger condition of the plurality of transaction operations, and the transaction node, the payment node, and the The resource providing node and the operation instruction of the transaction operation performed by the resource requesting node corresponding to the transaction contract.
  • the transaction information may include all information related to the transaction, such as related information of the participants of the transaction and transaction status information.
  • the transaction information includes a blockchain address of the resource requesting node, a blockchain address of the resource providing node, transaction element information, and payment clearing bill information.
  • the transaction contract may refer to an ordered set of instructions that automatically determine whether to send an operation instruction of a transaction operation corresponding to the transaction contract according to whether the trigger condition is achievement. For example, when a buyer triggers a business term on a trading contract, or when the life of a trading contract reaches the end point (for example, the buyer finally confirms the receiving time), the corresponding operation instruction can be issued to execute the corresponding operation instruction. , initiated the fund clearing process.
  • the transaction contract may further include a transaction settlement instruction, and set a trigger condition for triggering the sending of the transaction settlement instruction.
  • the transaction node may be automatically triggered to send the transaction settlement instruction to the payment node.
  • the transaction contract is stored to the blockchain database.
  • the method may further include:
  • the transaction node sends a transaction settlement instruction corresponding to the transaction contract to a payment node.
  • the transaction settlement instruction may exist in the transaction contract. After the transaction node completes the creation of the transaction contract, the transaction node may be triggered to be sent to the payment node by a predefined program in the transaction contract.
  • the transaction settlement instruction may also be that after the transaction node creates the transaction contract, the transaction node is separately generated and then sent to the payment node, and the application does not perform the method or source of receiving the transaction settlement instruction by the payment node. limited.
  • an e-commerce trading platform creates a trading contract that can include a series of programs that, when they satisfy the trigger condition of the response, perform the appropriate action. For example, after the transaction contract is defined in the transaction contract and synchronized to the block database for 1 second, the e-commerce transaction platform is automatically triggered to send a payment instruction to the payment platform.
  • the payment node acquires a transaction settlement instruction sent by the transaction node.
  • the transaction settlement instruction may be sent by the transaction node actively, or may be triggered by the transaction node automatically after the relevant program in the transaction contract satisfies the trigger condition.
  • the payment node queries, according to the transaction settlement instruction, the transaction contract corresponding to the transaction settlement instruction from the blockchain database, and the resource request node has the current When the signature of the resource transaction is made, it is determined that the transaction contract is a real transaction.
  • the payment node may further query the data stored in the blockchain database according to the block request account information of the resource request node and the resource providing node disclosed in the transaction contract. Whether the resource request node and the blockchain account of the resource providing node in the transaction contract are legal blockchain accounts.
  • the payment platform may query the buyer and the seller in the blockchain database according to the account information of the buyer and the seller disclosed in the transaction contract whether the buyer and the seller are legal blockchain accounts of the blockchain system, and if not, the The trading contract is forged. If it is legal, it can continue to judge whether there is a buyer's signature in the transaction contract. If there is a signature, it can be determined that the transaction contract is the embodiment of the buyer's real purchase behavior.
  • the application does not check the legality of the resource request node and the blockchain account of the resource providing node, and check whether the signature of the resource requesting node exists in the transaction contract.
  • the order is limited.
  • the payment node sends a transaction payment request to the resource requesting node.
  • the payment platform can send a payment instruction to the buyer in the transaction contract.
  • the resource requesting node receives the transaction payment request, and pays a payment amount of the current resource transaction according to the transaction payment request.
  • the interaction between the nodes is based on the blockchain technology, so that it can be decentralized to ensure data consistency.
  • the payment node may first directly query the blockchain database according to the transaction settlement instruction whether there is a transaction corresponding to the transaction settlement instruction.
  • a contract if there is a corresponding transaction contract, and there is a signature of the resource requesting node on the current resource transaction, the transaction contract is determined to be a real transaction, and the data consistency based on the blockchain is visible.
  • the payment node can judge the authenticity of the transaction or whether it is falsified by the trading node through the judgment of these two layers, improve the authenticity of the resource transaction, and effectively avoid
  • the transaction clearing instruction is falsified or falsely generated by the trading node, thereby reducing the risk of paying false transactions and reducing the risk of financial security caused by the lack of prior supervision.
  • the payment node acts as an executor of the resource transaction, because when the transaction contract is generated, the transaction contract is signed by the resource requesting node using the user's account private key, This means that the transaction contract has been confirmed by the resource request node for this resource transaction.
  • the account private key that is signed by the resource requesting node is only known by the resource requesting node itself, and the transaction node, the resource providing node, and the payment node are all unknown. Therefore, the payment node can consider that the current resource transaction is a real transaction as long as it is found that the transaction contract has been signed by the resource requesting node. In this way, the authenticity of resource transactions can be improved to some extent.
  • the payment node can verify the authenticity of the transaction contract before initiating a transaction payment request to the resource requesting node.
  • the operation of executing the transaction settlement may also be forced to be triggered.
  • the transaction clearing instruction can be effectively prevented from being falsified or falsely generated by the trading node, and the financial security risk caused by the prior supervision is lacking.
  • the trading node creates a trading contract based on the blockchain database, and the buyers and sellers in the trading contract Blockchain accounts can be queried in the blockchain database.
  • the transaction contract is initiated by the buyer, so the payment node cannot simply think that the transaction is a real transaction, but to confirm whether the transaction is signed by the buyer, if it exists.
  • the buyer's signature can be considered as the buyer's actual purchase behavior.
  • the resource transaction that is not confirmed by the resource requesting node may also be set to reduce unnecessary frequency of triggering the pushing of the transaction settlement instruction to the resource requesting node. Specifically, the following steps may be included:
  • the payment node queries, from the blockchain database, a transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction, or queries from the blockchain database to correspond to the transaction settlement instruction If the transaction contract has no signature in the transaction contract for the resource transaction, the transaction contract is determined to be a fraudulent transaction, and a transaction payment rejection response is sent to the transaction node.
  • the method further includes:
  • the resource requesting node may perform the receiving and confirming of the current resource transaction, and correspondingly, the transaction contract also triggers the corresponding transaction operation, and the transaction status of the current resource transaction will also follow. change.
  • the transaction contract in the embodiment of the present application may also be automatically triggered. Confirmation operation for the receipt of this resource transaction. For example, after the buyer receives the seller's goods, if the transaction contract stipulates that the buyer needs to confirm the receipt within 7 days after receiving the goods, the buyer does not take the initiative to confirm the receipt. If the buyer has not received the operation of confirming the receipt for more than 7 days, the transaction contract can automatically trigger the process of confirming the receipt.
  • the payment node may further dynamically track the performance status of the transaction contract according to the transaction status of the transaction contract. Specifically, when the transaction contract is confirmed by the resource requesting node that the current resource transaction is completed, or the payment node determines that the transaction contract reaches a transaction confirmation deadline, the payment node queries the current transaction contract Executing the transaction operation to, and executing the next transaction operation satisfying the trigger condition in the transaction contract according to the transaction operation currently executed by the transaction contract.
  • the transaction operation may include a payment amount transfer, a receipt of a resource, and a notification, where the payment amount transfer refers to transferring a payment amount of the resource requested by the resource requesting node to the resource providing node, the notification And configured to notify the resource requesting node and the resource providing node of a current transaction status of the transaction contract.
  • the contract includes 10 processes (including process 1, process 2, process 10). If the current process is queried to process 9, and the confirmation deadline of the transaction contract is reached, then in the embodiment of the present application, The payment node can directly initiate the transaction confirmation process represented by the process 10.
  • the contract stipulates a 7-day receipt confirmation. If the buyer has not confirmed the receipt on the 7th day, since the payment node of the embodiment of the present application is based on the blockchain system, the payment node can query the blockchain database. The trading contract, then the payment node can directly initiate the automatic confirmation transaction according to the transaction contract, and then the transaction funds of the transaction can be calculated in the fund account of the resource providing node in the transaction contract, compared with the payment of the existing mechanism.
  • the node can not see the specific content of the transaction contract, and can only passively wait for the transaction contract to automatically trigger the confirmation of the receipt process, so as to calculate the funds to the seller.
  • the payment node in the embodiment of the present application can track the progress of the transaction contract in real time, and can judge by itself. , thereby reducing unnecessary waiting.
  • the payment node has a restricted viewing right, and the restricted viewing permission refers to the payment node having only the right to view the transaction disclosure information in the transaction contract.
  • the transaction disclosure information includes part of the information in the transaction contract, the transaction disclosure information is information necessary in the process of making the payment, and the transaction disclosure information may further include a blockchain address of the resource requesting node and a block of the resource providing node. Chain address, transaction element information, and payment clearing document information, and information that the resource requesting node signs the transaction contract.
  • the payment node can query the transaction disclosure information of the current resource transaction from the transaction contract after querying the transaction contract in the blockchain database according to the transaction settlement instruction.
  • the transaction disclosure information query the account information of the resource request node in the transaction contract, the account information of the resource providing node, and the transaction information of the two, so as to check whether the identity of the resource providing node and the resource requesting node in the transaction contract is Be true.
  • the transaction disclosure information can also be used by the payment node for verification work in the event of a change in funds occurring within the payment node, and post-mortem verification work.
  • the payment node may further determine the current resource according to the queried transaction disclosure information. Whether the source transaction is signed by the resource requesting node for the transaction contract. If the payment node determines, according to the transaction disclosure information, that the current resource transaction is signed by the resource requesting node, the transaction contract is determined to be a real transaction.
  • the method further includes:
  • the payment node may further send a confirmation response to the transaction node indicating that the transaction contract payment is successful.
  • a transaction settlement node is created in the blockchain database for the resource providing node, the resource request node, and the The payment node and the supervisory node query the current resource transaction.
  • the sub-account settlement contract refers to a sub-account settlement contract owned by each node based on the consensus mechanism in the blockchain system, each node maintains its own sub-account settlement contract locally, so that it can be checked at any time, and any node Updates to this sub-ledger settlement contract require confirmation from other nodes.
  • the sub-ledger settlement contract is only for nodes participating in the same resource transaction, for example, the transaction node may have made resource transactions with multiple resource providing nodes, or has funds with multiple payment nodes, or one resource request node and multiple resource providing nodes.
  • each node participating in the same resource transaction maintains the same sub-account settlement contract.
  • the resource requesting node A purchases the commodity D at the resource providing node C through the transaction node B, and the resource requesting node A pays the commodity D at the payment node E.
  • the resource requesting node A, the transaction node B, the resource providing node C, and the payment node E all maintain a transaction contract for the commodity D, then the resource requesting node A, the transaction node B, the resource providing node C, and the payment node
  • the transaction contracts maintained by E are called separate transaction contracts.
  • the blockchain system in the embodiment of the present application is based on a consensus mechanism, if any node in the blockchain system (for example, any node participating in the resource transaction) needs to modify any data in the transaction contract, it needs to go through A node with an interest in a trading contract can agree to modify it.
  • the node that has an interest in the transaction contract refers to the resource providing node that provides the resource, the resource requesting node that pays the resource transaction, and the transaction node and the payment node that receive the commission.
  • the transaction contract recorded on the blockchain database can be considered as unilaterally untamperable, based on the number of blockchains in this application. According to the database, it is possible to ensure that the transaction node cannot deny the transaction service provided by the transaction node, thereby protecting the interests of the relevant nodes from infringement.
  • the supervisory node may have some or all of the data in the blockchain database. Then, the supervisory node can also act as a query. Specifically, the supervisory node obtains a query instruction, and in response to the query instruction, acquires a transaction contract list, where the transaction contract list is requested by the transaction node after the resource request node requests a resource transaction from the resource providing node create.
  • the supervisory node performs a transaction analysis on the list of transaction contracts.
  • the supervising node may also perform analysis based on the data in the blockchain database, which is not limited in this application.
  • the supervision node determines that the target transaction contract is a fraudulent transaction.
  • the management of the transaction contract based on the blockchain database mainly includes: creation of a transaction contract, inquiry of a transaction contract, access authorization management of a transaction contract, and life cycle management of a transaction contract. , execution order management of trading contracts, and trigger condition management of trading contracts.
  • Each node can query the new transaction contract and historical transaction contract of the uncollected or received orders in the blockchain database, but for the business and privacy of the resource request node, the resource providing node, the transaction node, and the payment node. Protection requirements also require restrictive management of the authority to query the transaction contract. For example, only the authorized nodes participating in the resource transaction of the same transaction contract can open the query permission of the transaction contract, and the node that does not participate in the resource transaction does not give the query permission.
  • the disclosure of the transaction contract stored in the blockchain database also needs to set corresponding authority, for example, the supervision node and the payment node can query the transaction contract under the specified transaction node or the transaction contract.
  • Relevant information while the resource request node and the resource providing node can only query the transaction contract or the information related to the transaction contract related to the account address.
  • the supervisory node and the transaction node can query the real identity information of the node that performs the resource transaction (ie, the resource request node and/or the resource providing node), such as data information, real name, bank certificate information, industry information, business scope, and business license.
  • the payment node may be restricted to view permission by the supervision node, where the restriction view authority means that the payment node only has the right to view transaction disclosure information in the transaction contract. limit.
  • the transaction disclosure information includes part of the information in the transaction contract, the transaction disclosure information is information necessary in the process of making the payment, and the transaction disclosure information may further include a blockchain address of the resource requesting node and a block of the resource providing node. Chain address, transaction element information, and payment clearing document information, and information that the resource requesting node signs the transaction contract.
  • the transaction element information may include transaction amount, product information, preferential information, logistics information, credit qualification, and the like.
  • the payment clearing slip information may include a payment slip number, a payment time amount, and the like.
  • the payment node can ensure that the fraudulent transaction of the transaction node or the falsification of the real transaction is checked, and the competing payment node can avoid the sensitive resource of the resource request node and the resource providing node in the transaction node. It can be seen that through this restrictive authority, it can ensure that the payment node can check the transaction contract, and can prevent the payment node from using the operation convenience to acquire the sensitive resources in the transaction node, which can improve the supervision power of the resource transaction to a certain extent, and can also reduce Forged or falsified trading contract risk.
  • the resource requesting node may also pass the payment entry before paying the transaction amount to the payment node, or after paying the transaction amount (ie, after the payment node receives the order).
  • the transaction document may be reconciled or checked for the existence of the business document and the transaction document of the transaction node, thereby confirming and reviewing the transaction of the transaction contract created by the transaction node Whether the information is accurate, or you can also check whether your own fund trading behavior is accurate. This can serve to protect the rights of the resource requesting node.
  • the transfer of the transaction payment amount generated in the entire transaction contract fulfillment may also be managed based on the blockchain database. Specifically, after the resource requesting node completes the payment amount transfer to the payment node, the payment node completes the acquiring work of the payment amount agreed by the transaction contract, and the payment amount enters the payment of the payment node. Gold account. Since the payment amount is a transaction payment amount obtained by the resource providing node providing the resource service at the transaction node, the payment amount ownership belongs to the resource providing node. Therefore, the trading node has no actual control over the amount of payment generated by such transactions.
  • the resource providing node creates a sub-account settlement contract, which is a constraint contract between the resource providing node and the resource requesting node that obeys the resource service term, and the node that can participate in the resource transaction of the transaction contract follows When querying.
  • the resource providing node may trigger the execution clause of the sub-divided settlement contract created by the account private key to initiate a settlement request according to the funds to be settled in the sub-account settlement contract.
  • the contract itself automatically performs the check of the precondition, for example, the resource requesting node successfully pays, the resource requesting node receives the resource, the transaction node confirms the success, the contract is valid, etc., and after completing all the preconditions, the user can follow the The terms in the sub-ledger settlement contract are settled and settled.
  • the execution clause of the sub-ledger settlement contract created above is automatically triggered to initiate a settlement request according to the funds to be settled in the sub-ledger settlement contract.
  • the payment node transfers the transaction fund of the resource providing node to the settlement bank card registered at the time of the resident, and the The funds of the payment node's reserve fund account are paid to the resource providing node bank to complete the actual transaction fund settlement.
  • the logic partitioning of the transaction clearing system in a blockchain system shown in FIG. 3 is exemplified below.
  • the present application can be based on the blockchain system shown in FIG.
  • the blockchain system can be logically divided into four layers: the access layer, the service processing layer, the storage layer, and the control layer.
  • the access layer includes seller access, acquiring access, capital access, and reconciliation access.
  • the business processing layer includes a management unit, an acquiring unit, a placing unit, a settlement unit, a dividing unit, a clearing unit, a synchronous information queue, an asynchronous acquiring, an ordering queue, an asynchronous queue, and a synchronous processing queue.
  • the business processing layer is the area shown by the dotted line in Figure 3.
  • the units in the area are responsible for completing the actual business logic, including the seller's information, the seller's real name management, the seller's information docking work, and the user's e-commerce.
  • the billing work of the order placed by the trading platform, and the corresponding billing information in the blockchain that is uniquely associated with the order in the reverse query blockchain.
  • the storage layer includes business data for merchants, acquirers, vouchers, clearing, blockchain databases, and e-commerce trading platforms, such as the slashed cylinders in FIG.
  • the control layer includes three parts. After the first part is used for the e-commerce transaction platform to receive the order, the payment certificate verification and the pending settlement application verification are performed. After the second part is used for capital access, the general control verification and settlement application verification is carried out. The third part is used for clearing verification application, sub-account verification and business source verification after access to the reconciliation.
  • the control layer is responsible for the compliance, authenticity and data consistency of the entire information and funding links. Judgment.
  • the storage layer and access layer in Figure 3 are mainly responsible for interfacing with external e-commerce transaction platform, blockchain platform, identification of service platform, transaction security encryption guarantee, and system network management access.
  • the control logic about the fund settlement process consists of four parts: pending order entry admission control, settlement access control, sub-accounting admission control, and clearing access control.
  • Pending Order Admission Control This part of the logic will use the receiving information inside the payment node as the admission criteria for the pending order, that is, each pending transaction must have a unique associated receipt. And the amount of the pending statement needs to match the total amount in the receipt. If the amount is the same, you can enter the settlement access control section to perform the admission operation of the settlement pending statement.
  • the receipt information refers to the order information that the buyer successfully pays.
  • the transaction to be settled refers to the clearing between the payment node and the seller, and the amount of the transaction amount that the payment node should transfer to the seller is described in the settlement statement, and the action of the transfer is performed by the payment node.
  • Settlement Admission Control It is mainly responsible for controlling the bills to be settled sent by the e-commerce trading platform.
  • the total amount of the actual settlement of the bills to be settled by the bills must be less than the bills to be settled after the deposits are approved through the above-mentioned bills of deposit. .
  • Sub-accounting access control If there are non-acquisition funds to be settled (such as e-commerce trading platform marketing, freight subsidies, etc., which are not included in the pending settlement funds), then the non-acquisition needs to be settled. The funds are matched with the business data provided by the e-commerce trading platform, so that the non-acquisition pending funds are not credited.
  • the sub-accounting access control part also needs to be responsible for the judgment of the corresponding e-commerce trading platform commission deduction ratio category and seller consistency. Specifically, the consistency judgment means that the scope of business of each seller is fixed, and it is limited by the scope of the business license for registration, for example, medicine, clothing, food, etc., each type of business is called a Category.
  • the e-commerce trading platform may perform different commissions and commissions, so it is necessary to increase the verification of relevant business data during the liquidation.
  • Clearing access control After the merchant requests to clear all the pending settlements, the payment node verifies the total balance of the seller's pending settlement in the internal sub-account, and only determines that the amount of the settlement requested by the merchant is less than the transferable amount in the payment node. After that, the merchant's liquidation request can be admitted, thus completing a fund settlement process.
  • the method for resource transaction in the present application is described above.
  • the following describes the payment node, the transaction node, the resource request node, the resource providing node, the supervisory node, and the blockchain system respectively for performing the above resource transaction method.
  • the payment node, the transaction node, the supervising node, the resource requesting node, and the resource providing node in the present application may be devices for resource transactions installed on the terminal device, or terminal devices of devices installed with resource transactions. This application is not limited in any way.
  • the payment node, the transaction node, the supervision node, the resource request node, and the resource providing node are all based on blockchain technology, and are distributed topologies with each other.
  • the supervisory node can maintain data of the entire blockchain system, such as blockchain account information of the resource providing node, blockchain account information of the resource requesting node, blockchain information of the trading node, and resource transactions generated at each trading node. Information such as the corresponding trading contract.
  • the supervisory node may include a blockchain database, in which data generated in the entire blockchain system is stored, and is the payment node, the transaction node, the resource request node, and The resource providing node provides an access port, so that the payment node, the transaction node, the resource requesting node, and the resource providing node can enter the blockchain database for data query, verification, and the like.
  • the blockchain database may be separately deployed from the regulatory organization. The specific deployment is not limited in this application.
  • Payment node 40 includes:
  • the transceiver module 401 is configured to acquire a transaction settlement instruction sent by the transaction node, where the transaction settlement instruction is that the resource requesting node requests the target resource from the resource providing node after the transaction request node An instruction generated by the node after the transaction chain of the target resource is created by the blockchain database.
  • the processing module 402 is configured to query, according to the transaction settlement instruction received by the transceiver module 401, the transaction contract corresponding to the transaction settlement instruction from the blockchain database, and the transaction contract exists in the transaction contract When the resource requesting node signs the current resource transaction, it determines that the transaction is combined About a real transaction; and sending a transaction payment request to the resource requesting node through the transceiver module.
  • the processing module queries the transaction chain settlement database to query the transaction contract corresponding to the transaction settlement instruction according to the transaction settlement instruction, and When there is a signature of the resource requesting node on the current resource transaction, the transaction contract is determined to be a real transaction, and then a transaction payment request is sent to the resource requesting node. In this way, it is possible to judge whether the transaction settlement instruction is forged or falsified by the transaction node, and avoid the risk of paying the false transaction.
  • processing module 402 is further configured to:
  • the transaction contract includes transaction information of the transaction, and may further include a trigger condition of the plurality of transaction operations, and the transaction node is within the life of the transaction contract. And an operation instruction of the transaction operation corresponding to the transaction contract executed by the payment node, the resource providing node, and the resource requesting node.
  • the transaction information may include all information related to the transaction, such as related information of the participants of the transaction and transaction status information.
  • the transaction information includes a blockchain address of the resource requesting node, a blockchain address of the resource providing node, transaction element information, and payment clearing bill information.
  • the processing module is further configured to:
  • the transaction operation includes a payment amount transfer, a resource receipt, and a notification, where the payment amount transfer refers to transferring the payment amount of the resource requested by the resource requesting node to the resource providing node, where the notification is used. And notifying the resource requesting node and the resource providing node of a current transaction status of the transaction contract.
  • the payment node has a restricted viewing right, and the restricted viewing permission refers to the payment node only having the view of the transaction disclosure in the transaction contract.
  • the transaction disclosure information includes part of the information in the transaction contract, the transaction disclosure information is information necessary in the process of making the payment, and the transaction disclosure information may further include a blockchain address of the resource requesting node and a block of the resource providing node. Chain address, transaction element information, and payment clearing document information, and information that the resource requesting node signs the transaction contract.
  • the processing module 402 is specifically configured to:
  • the transaction contract is determined to be a real transaction.
  • a transaction node 50 is illustrated, the transaction node being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, at least one resource providing node, and at least A resource request node.
  • Trading node 50 includes:
  • the processing unit 501 is configured to create a transaction contract in the blockchain database after the resource requesting node requests resources from the resource providing node on the transaction node;
  • the transceiver unit 502 is configured to send a transaction settlement instruction corresponding to the transaction contract to the payment node, so that the payment node queries from the blockchain database to the transaction settlement instruction according to the transaction settlement instruction.
  • the transaction contract is determined to be a real transaction, and a transaction payment request is sent to the resource requesting node.
  • the transaction node creates a transaction contract in the blockchain database based on the blockchain, so that the payment node receiving the transaction settlement instruction can query from the blockchain database according to the transaction settlement instruction.
  • the transaction settlement agreement corresponds to the transaction contract, and the transaction contract has the signature of the resource request node for the current resource transaction, then determining that the transaction contract is a real transaction, and then sending the transaction to the resource request node. Payment request. In this way, it is possible to judge whether the transaction settlement instruction is forged or falsified by the transaction node, and avoid the risk of paying the false transaction.
  • processing unit 502 is further configured to:
  • a clearing account is created at the supervisory node for the resource providing node, the resource requesting node, and the The payment node queries the current resource transaction.
  • a supervisory node 60 is illustrated, the supervisory node being applied to a blockchain system, the blockchain system comprising a blockchain database, a transaction node, at least one payment node, and at least one resource providing node, at least A resource request node and a supervisor node 60.
  • Supervisory node 60 includes:
  • the transceiver sub-module 601 is configured to obtain a query instruction, and in response to the query instruction, obtain a transaction contract list, where the transaction contract list is created by the transaction node after the resource request node requests a resource transaction from the resource providing node. ;
  • a processing sub-module 602 configured to perform transaction analysis on at least one transaction contract in the transaction contract list; when the target transaction contract in the transaction list is determined to reach a transaction confirmation deadline, the resource in the target transaction contract is not
  • the supervisory node determines that the target trading contract is a fraudulent transaction.
  • the supervisory node may check the generated transaction contract at any time.
  • processing submodule 602 is further configured to:
  • the payment node is given a restriction view permission, and the restriction view authority means that the payment node only has the right to view the transaction disclosure information in the transaction contract.
  • the transaction disclosure information includes part of the information in the transaction contract, the transaction disclosure information is information necessary in the process of making the payment, and the transaction disclosure information may further include a blockchain address of the resource requesting node and a block of the resource providing node. Chain address, transaction element information, and payment clearing document information, and information that the resource requesting node signs the transaction contract.
  • the blockchain system 70 includes a blockchain database, at least one payment node as shown in Figure 4, at least one transaction node 50 as shown in Figure 5, at least A resource providing node and at least one resource requesting node.
  • the blockchain system may further include a supervisory node 60 as shown in FIG. 6.
  • the resource requesting node is configured to request, by the transaction node 50, the target resource to the resource providing node;
  • the transaction node 50 is configured to create a transaction contract of the target resource based on the blockchain database
  • the payment node 40 is configured to acquire a transaction settlement instruction, and query, according to the transaction settlement instruction, the transaction contract corresponding to the transaction settlement instruction from the blockchain database, and the transaction contract has the When the resource requesting node signs the current resource transaction, it determines that the transaction contract is a real transaction; and sends a transaction payment request to the resource requesting node.
  • the blockchain system in the present application is a distributed system, and the transaction node, the payment node, the supervision node, the resource request node, and the resource providing node may be logically divided devices, or may be independent terminal devices, respectively.
  • This application is not limited in this application.
  • the foregoing describes the payment node, the transaction node, and the supervision node in the embodiment of the present application from the perspective of the modular or unitized functional entity.
  • the resource transaction node in the embodiment of the present application is described below from the perspective of hardware processing.
  • the embodiment of the present application further provides an apparatus for resource transaction (the structure shown in FIG. 8), which includes at least one connected processor, a memory, and a transceiver, wherein the memory is used to store program code, and the processing
  • the program is used to invoke program code in the memory to perform some or all of the steps of the above-described resource transaction performed by the payment node or the transaction node or the supervisory node in the above embodiments.
  • the apparatus shown in FIG. 8 can be used to implement the functions of the payment node in the present application, which is capable of performing all operations performed by the payment node or the payment terminal device in the embodiments of the present application.
  • the processor described in Figure 8 can be used to perform the following operations:
  • a transaction payment request is sent to the resource requesting node by the transceiver.
  • the apparatus shown in FIG. 8 can be used to implement the functions of the transaction node in the present application, which is capable of performing all operations performed by the transaction node or transaction terminal device in the embodiments of the present application.
  • the processor of Figure 8 can be used to perform the following operations:
  • the transaction contract is determined to be a real transaction, and a transaction payment request is sent to the resource request node.
  • the apparatus shown in FIG. 8 can be used to implement the functions of the supervising node in the present application, which can perform all operations performed by the supervising node or the supervising terminal device in the embodiment of the present application.
  • the processor of Figure 8 can be used to perform the following operations:
  • the target transaction contract in the transaction list reaches the transaction confirmation deadline and is not confirmed by the resource requesting node in the target transaction contract, the target transaction contract is determined to be a fraudulent transaction.
  • the physical device corresponding to the transceiver module, the transceiver unit, and the transceiver module in the embodiments of the present application may be a transceiver, and the processing module.
  • the physical device corresponding to the processing unit and the processing submodule may be a processor.
  • Each of the devices shown in FIG. 4, FIG. 5, and FIG. 6 may have a structure as shown in FIG. 8.
  • the processor and the transceiver in FIG. 8 implement the foregoing.
  • the memory in FIG. 8 stores the program code that the processor needs to invoke when executing the method of resource transaction described above.
  • the embodiment of the present application further provides another terminal device, which can implement the function of the payment node in the present application, and can perform all operations performed by the payment node or the payment terminal device in the embodiment of the present application.
  • the function of the transaction node in the present application can be implemented, which is capable of performing all operations performed by the transaction node or the transaction terminal device in the embodiments of the present application.
  • the function of the supervising node in the present application can be implemented, which can perform all operations performed by the supervising node or the supervising terminal device in the embodiment of the present application. As shown in FIG. 9 , for the convenience of description, only the parts related to the embodiments of the present application are shown.
  • the terminal device may be a mobile phone, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS),
  • PDA Personal Digital Assistant
  • POS Point of Sales
  • any terminal device such as a car computer uses a terminal as a mobile phone as an example:
  • FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided by an embodiment of the present application.
  • the mobile phone includes: radio frequency (English full name: Radio Frequency, English abbreviation: RF) circuit 99, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (English full name: wireless fidelity , English abbreviation: WiFi) module 970, processor 980, and power supply 990 and other components.
  • radio frequency English full name: Radio Frequency, English abbreviation: RF
  • the RF circuit 99 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is processed by the processor 980. In addition, the data designed for the uplink is sent to the base station.
  • the RF circuit 99 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English name: Low Noise Amplifier, LNA for short), a duplexer, and the like.
  • RF circuitry 99 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to the global mobile communication system (English full name: Global System of Mobile communication, English abbreviation: GSM), general packet radio service (English full name: General Packet Radio Service, English Abbreviation: GPRS), code division multiple access (English full name: Code Division Multiple Access, English abbreviation: CDMA), wideband code division multiple access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), long-term evolution (English full name : Long Term Evolution, English abbreviation: LTE), e-mail, short message service (English full name: Short Messaging Service, English abbreviation: SMS).
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state memory. Pieces.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 may include a touch panel 931 and other input devices 932.
  • the touch panel 931 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 931 or near the touch panel 931. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 931 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 980 is provided and can receive commands from the processor 980 and execute them.
  • the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 940 can include a display panel 941.
  • a liquid crystal display (English name: Liquid Crystal Display, English abbreviation: LCD), an organic light emitting diode (English name: Organic Light-Emitting Diode, English abbreviation: OLED), etc.
  • the display panel 941 is configured in a form.
  • the touch panel 931 can cover the display panel 941. When the touch panel 931 detects a touch operation on or near it, the touch panel 931 transmits to the processor 980 to determine the type of the touch event, and then the processor 980 according to the touch event.
  • the type provides a corresponding visual output on display panel 941.
  • the touch panel 931 and the display panel 941 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 9, in some embodiments, the touch panel 931 and the display panel 941 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may close the display panel 941 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes) and can detect when stationary. The size and direction of gravity can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • the gyro that can be configured on the mobile phone
  • Other sensors such as instruments, barometers, hygrometers, thermometers, infrared sensors, etc., will not be described here.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961.
  • the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 99, or outputted to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 9 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the application.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; optionally, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and an application. Etc.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the handset also includes a power supply 990 (such as a battery) that supplies power to the various components.
  • a power supply 990 (such as a battery) that supplies power to the various components.
  • the power supply can be logically coupled to the processor 980 via a power management system to manage charging, discharging, and power management functions through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 980 included in the mobile phone further has a function of controlling a method flow for performing the resource transaction performed by the payment node or the transaction node or the supervision node, the resource requesting node, and the resource providing node, and the mobile phone may As a payment node or transaction node or supervisory node.
  • the processor 980 of Figure 9 can be used to perform the following operations:
  • An instruction generated by the node after the transaction chain of the target resource is created by the blockchain database
  • a transaction payment request is sent to the resource requesting node by the RF circuit 99.
  • the processor 980 in FIG. 9 can be used to perform the following operations:
  • the transaction contract is determined to be a real transaction, and a transaction payment request is sent to the resource requesting node.
  • the processor 980 in FIG. 9 can be used to perform the following operations:
  • the target transaction contract in the transaction list reaches the transaction confirmation deadline and is not confirmed by the resource requesting node in the target transaction contract, the target transaction contract is determined to be a fraudulent transaction.
  • the server 1000 may generate a large difference due to different configurations or performances, and may include one or more central processing units. (English full name: central processing units, English abbreviation: CPU) 1022 (eg, one or more processors) and memory 1032, one or more storage media 1030 storing applications 1042 or data 1044 (eg, one or one in Shanghai Storage device).
  • the memory 1032 and the storage medium 1030 may be short-term storage or persistent storage.
  • the program stored on storage medium 1030 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
  • the central processor 1022 can be configured to communicate with the storage medium 1030 on which a series of instruction operations in the storage medium 1030 are performed.
  • Server 1000 may also include one or more power sources 1026, one or more wired or wireless network interfaces 1050, one or more input and output interfaces 1058, and/or one or more operating systems 1041, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • operating systems 1041 such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • the steps performed by the payment node or the transaction node or the supervisory node, the resource requesting node, and the resource providing node in the above embodiment may be based on the server structure shown in FIG.
  • the central processing unit 1022 in FIG. 10 can be used to perform the following operations:
  • a transaction payment request is sent to the resource requesting node via the wired or wireless network interface 1050.
  • the central processing unit 1022 in FIG. 10 can be used to perform the following operations:
  • the database queries the transaction contract corresponding to the transaction settlement instruction, and after the resource request node signs the current resource transaction, the transaction contract is determined to be a real transaction, and the resource is requested
  • the node sends a transaction payment request.
  • the central processing unit 1022 in FIG. 10 can be used to perform the following operations:
  • the target transaction contract in the transaction list reaches the transaction confirmation deadline and is not confirmed by the resource requesting node in the target transaction contract, the target transaction contract is determined to be a fraudulent transaction.
  • the embodiment of the present application further provides a computer storage medium, where the medium stores a program, the program executes a part of a method including the foregoing payment node or a transaction node or a resource requesting node or a resource requesting node or a resource providing node, or All steps.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, ie may be located in one place, or It can also be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing module or unit, or each module or unit may exist physically separately, or two or more modules or units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • wire eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

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

Abstract

资源交易的方法、节点、装置及存储介质,所述方法应用于区块链系统,区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点和至少一个资源请求节点,方法包括:资源请求节点在交易节点上向资源提供节点请求目标资源后(201),由交易节点在区块链数据库创建目标资源的交易合约后生成交易结算指令(203),发送给支付节点(204),支付节点根据交易结算指令从区块链数据库查询到与交易结算指令对应的交易合约,且交易合约内存在资源请求节点对本次资源交易的签名时,则确定交易合约为真实交易(206),支付节点向资源请求节点发送交易支付请求(207)。对交易结算指令是否为交易节点伪造或者篡改进行判断,能够避免支付虚假交易的风险。

Description

资源交易的方法、节点、装置及存储介质 技术领域
本申请涉及电商交易技术领域,尤其涉及的是资源交易的方法、节点、装置及存储介质。
背景技术
目前的电商交易流程中,买家在电商交易平台下单后,电商交易平台将交易结算指令转发给第三方支付节点,再由第三方支付节点完成买家的收单支付业务,并将交易资金清算给电商交易平台,卖家向电商交易平台申请结算商品服务款,电商交易平台再向第三方支付节点发起结算指令,最后由第三方支付节点完成结算,账户余额核验等操作,这样整个交易流程结束。
但是,由于整个交易流程的发起,确认和监督都在电商交易平台完成,一方面,卖家在整个清结算过程中,对流程的控制完全依托于电商交易平台的系统和其诚信经营的承诺,也有一定的无监督的单边操作风险;另一方面,第三方支付节点仅能获取电商交易平台转发的买卖家的交易结算指令,第三方支付节点无法直接获取买卖家的交易结算指令,电商交易平台还可以修改交易信息,创建虚假交易。可见,现有机制的交易流程由于缺乏监管,无法追溯信息,更不能多方对同一份交易信息进行一致性的判断。其中存在很多由交易真实性不确定所带来的隐患。
发明内容
本申请提供了资源交易的方法、节点、装置及存储介质,能够解决现有技术中电商交易流程中交易信息可靠性较低的问题。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点和至少一个资源请求节点,所述方法包括:
所述资源请求节点通过所述交易节点向所述资源提供节点请求目标资源;
所述交易节点基于所述区块链数据库创建所述目标资源的交易合约;
所述支付节点获取交易结算指令;
所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点 对本次资源交易的签名时,则确定所述交易合约为真实交易;
所述支付节点向所述资源请求节点发送交易支付请求。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点,所述方法包括:
支付节点获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;
所述支付节点向所述资源请求节点发送交易支付请求。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点,所述方法包括:
当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,所述交易节点在所述区块链数据库创建交易合约;
所述交易节点将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点及监管节点,所述方法包括:
所述监管节点获取交易查询指令,响应于所述交易查询指令,获取交易合 约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
所述监管节点对所述交易合约列表中的至少一个交易合约进行交易分析;
当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,所述监管节点确定所述目标交易合约为虚假交易。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备和至少一个资源请求终端设备,所述方法包括:
所述资源请求终端设备通过所述交易终端设备向所述资源提供终端设备请求目标资源;
所述交易终端设备基于所述区块链数据库创建所述目标资源的交易合约;
所述支付终端设备获取交易结算指令;
所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易;
所述支付终端设备向所述资源请求终端设备发送交易支付请求。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备、以及至少一个资源请求终端设备,所述方法包括:
支付终端设备获取所述交易终端设备发送的交易结算指令,所述交易结算指令是指所述资源请求终端设备在所述交易终端设备上向所述资源提供终端设备请求目标资源后,由所述交易终端设备在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易;
所述支付终端设备向所述资源请求终端设备发送交易支付请求。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备以及至少一个资源请求终端设备,所述方法包括:
当所述资源请求终端设备在所述交易终端设备上向所述资源提供终端设备请求资源后,所述交易终端设备在所述区块链数据库创建交易合约;
所述交易终端设备将所述交易合约对应的交易结算指令发送给所述支付终端设备,以使所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求终端设备发送交易支付请求。
本申请一方面提供资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备、以及至少一个资源请求终端设备和监管终端设备,所述方法包括:
所述监管终端设备获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易终端设备在所述资源请求终端设备向所述资源提供终端设备请求资源交易后创建;
所述监管终端设备对所述交易合约列表中的至少一个交易合约进行交易分析;
当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求终端设备进行交易确认时,所述监管终端设备确定所述目标交易合约为虚假交易。
本申请一方面提供一种区块链系统,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的单元或模块,所述单元或模块可以是软件和/或硬件。
一种可能的设计中,所述区块链系统包括区块链数据库、交易节点、至少 一个支付节点、至少一个资源提供节点和至少一个资源请求节点。
所述资源请求节点,用于通过所述交易节点向所述资源提供节点请求目标资源;
所述交易节点,用于基于所述区块链数据库创建所述目标资源的交易合约;
所述支付节点,用于获取交易结算指令,根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;以及向所述资源请求节点发送交易支付请求。
本申请一方面提供一种支付节点,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。
一种可能的设计中,所述支付节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点,所述支付节点包括:
收发模块,用于获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
处理模块,用于根据所述收发模块接收到的所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;并通过所述收发模块向所述资源请求节点发送交易支付请求。
本申请一方面提供一种交易节点,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的单元,所述单元可以是软件和/或硬件。
一种可能的设计中,所述交易节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点,所述交易节点包括:
处理单元,用于当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,在所述区块链数据库创建交易合约;
收发单元,用于将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
本申请一方面提供一种监管节点,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。
一种可能的设计中,所述监管节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、至少一个资源请求节点和监管节点,所述监管节点包括:
收发子模块,用于获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
处理子模块,用于对所述交易合约列表中的至少一个交易合约进行交易分析;当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,确定所述目标交易合约为虚假交易。
本申请一方面提供一种区块链系统,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的单元或模块,所述单元或模块可以是软件和/或硬件。
一种可能的设计中,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备和至少一个资源请求终端设备。
所述资源请求终端设备,用于通过所述交易终端设备向所述资源提供终端设备请求目标资源;
所述交易终端设备,用于基于所述区块链数据库创建所述目标资源的交易合约;
所述支付终端设备,用于获取交易结算指令,根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易;以及向所述资源请求终端设备发送交易支付请求。
本申请一方面提供一种支付终端设备,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。
一种可能的设计中,所述支付终端设备应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备、以及至少一个资源请求终端设备,所述支付终端设备包括:
收发模块,用于获取所述交易终端设备发送的交易结算指令,所述交易结算指令是指所述资源请求终端设备在所述交易终端设备上向所述资源提供终端设备请求目标资源后,由所述交易终端设备在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
处理模块,用于根据所述收发模块接收到的所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易;并通过所述收发模块向所述资源请求终端设备发送交易支付请求。
本申请一方面提供一种交易终端设备,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软 件实现。硬件或软件包括一个或多个与上述功能相对应的单元,所述单元可以是软件和/或硬件。
一种可能的设计中,所述交易终端设备应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备、以及至少一个资源请求终端设备,所述交易终端设备包括:
处理单元,用于当所述资源请求终端设备在所述交易终端设备上向所述资源提供终端设备请求资源后,在所述区块链数据库创建交易合约;
收发单元,用于将所述交易合约对应的交易结算指令发送给所述支付终端设备,以使所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求终端设备发送交易支付请求。
本申请一方面提供一种监管终端设备,具有实现对应于上述提供的资源交易的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。
一种可能的设计中,所述监管终端设备应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备、至少一个资源请求终端设备和监管终端设备,所述监管终端设备包括:
收发子模块,用于获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易终端设备在所述资源请求终端设备向所述资源提供终端设备请求资源交易后创建;
处理子模块,用于对所述交易合约列表中的至少一个交易合约进行交易分析;当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求终端设备进行交易确认时,确定所述目标交易合约为虚假交易。
本申请的一方面提供了一种计算机可读存储介质,所述计算机可读存储介 质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
本申请的一方面提供资源交易的装置,其包括至少一个连接的处理器、存储器和收发器,其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码来执行上述各方面所述的方法。
工业实用性
采用本申请实施例提供的方案,由于各节点之间的交互是基于区块链技术,所以能够去中心化,保证数据的一致性。使得在任意一次交易流程中,支付节点获取所述交易节点发送的交易结算指令后,首先可直接根据所述交易结算指令从所述区块链数据库查询是否存在与所述交易结算指令对应的交易合约,若存在对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易,可见,基于区块链的数据一致性的特性,以及在多方监督的环境下触发的资源交易,支付节点通过这两层的判断,就能够判断出交易的真伪或是否被交易节点篡改,提高资源交易的真实性,进而有效的避免交易清算指令被交易节点篡改或者虚假生成的情况,从而降低支付虚假交易的风险,以及降低缺乏事前监督所带来的资金安全风险。
附图说明
图1为本申请实施例中区块链系统的一种网络拓扑结构示意图;
图2为本申请实施例中资源交易的方法的一种流程图;
图3为本申请实施例中区块链系统中交易清算系统的一种逻辑划分示意图;
图4为本申请实施例中支付节点的一种结构示意图;
图5为本申请实施例中交易节点的一种结构示意图;
图6为本申请实施例中监管节点的一种结构示意图;
图7为本申请实施例中区块链系统的一种结构示意图;
图8为本申请实施例中资源交易的装置的一种结构示意图;
图9为本申请实施例中终端设备一种结构示意图;
图10为本申请实施例中服务器的一种结构示意图。
具体实施方式
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他地包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块,本申请中所出现的模块的划分,仅仅是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个模块可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块之间的间接耦合或通信连接可以是电性或其他类似的形式,本申请中均不作限定。并且,作为分离部件说明的模块或子模块可以是也可以不是物理上的分离,可以是也可以不是物理模块,或者可以分布到多个电路模块中,可以根据实际的需要选择其中的部分或全部模块来实现本申请实施例方案的目的。
本申请实施例提供了资源交易的方法、节点、装置及存储介质。本申请所提供的方案主要用于电子商务领域,例如用于企业对消费者(英文全称:Business-to-Customer,英文简称:B2C)、消费者对消费者(英文全称:Customer-to-Customer,英文简称:C2C)、企业对企业(英文全称:Business-to-Business,英文简称:B2B)等,具体本申请不作限定。
图1为本申请实施例中的区块链系统的一种网络拓扑结构示意图,也是一种商品购买流程示意图,商品购买者、商品提供者、支付平台和电商交易平台都基于区块链技术部署,属于同一个区块链系统。该区块链系统可基于一个私有区块链或者联盟区块链,该区块链系统可包括至少一个区块链数据库(可以是私有和/或联盟区块链)。商品购买者、商品提供者、支付平台和电商交易平台各自在区块链系统中具有对应的区块链账户和区块链地址,各自在区块链系统中的权限可按需设置,具体本申请不作限定。商品购买者、商品提供者、支付平台和电商交易平台都可以查询区块链数据库中具备权限的数据。商品购买 者、商品提供者、支付平台和电商交易平台之间的交易行为、支付行为、清算行为和查询行为等行为都可以基于该区块链系统进行。
具体来说,商品购买者通过电商交易平台向电商交易平台上的商品提供者购买商品,电商交易平台创建本次商品交易的交易合约,交易合约包括本次商品交易的交易信息,并将交易合约同步至区块链数据库。电商交易平台向支付平台发送交易结算指令。支付平台接收到交易结算指令后,可以去所在区块链数据库中获取到对应的交易合约,然后可以从所在的区块链数据库中查询交易合约中的商品购买者和商品提供者的区块链身份信息。当确定交易合约中的商品购买者和商品提供者的区块链身份合法后,支付平台再判断该交易合约中是否存在该商品购买者对本次交易合约的签名,若存在,则可判断本次商品交易为真实交易。支付平台再向商品购买者发起交易支付指令,使得该商品购买者进行支付。支付成功之后,支付平台可以将资金清算给电商交易平台,然后由电商交易平台将交易资金清算给商品提供者,具体的清算过程本申请不作赘述。
本申请中的区块链系统是基于区块链技术,能够去中心化,保证交易数据的一致性。其中,区块链系统可以是基于私有区块链或联盟区块链。电商交易平台可基于区块链创建交易合约,支付平台可基于区块链数据库查验每次商品交易产生的交易合约的真伪。此外,商品购买者、商品提供者、支付平台和电商交易平台都可基于区块链数据库查验交易合约,最终达到多方监督的目的,保证交易的利益相关方的权益。
区块链技术是指:利用区块链式数据结构来验证与存储数据、利用分布式节点共识算法来生成和更新数据、利用密码学的方式保证数据传输和访问的安全、利用由自动化脚本代码组成的智能合约来编程和操作数据的一种全新的分布式基础架构与计算方式。
区块链是指:数据库账本,其可以记录所有的交易记录,以及验证信息的有效性。区块链具备去中心化、去信任、集体维护、可靠数据库、开源、匿名性等特征。本申请的区块链基于共识机制,区块链中的数据无法删除、修改,只能新增和追溯,从而减少伪造风险。
为解决上述技术问题,本申请实施例主要提供以下技术方案:
将参与整个资源交易的各节点(包括至少一个支付节点、至少一个资源请求节点、至少一个资源提供节点和交易节点,还可以包括监管节点)均部署到区块链系统中,使得这些节点之间的交互是基于区块链技术,去中心化的,能够保证数据的一致性。在任意一次交易流程中,支付节点获取所述交易节点发送的交易结算指令后,首先可直接根据所述交易结算指令从所述区块链数据库查询是否存在与所述交易结算指令对应的交易合约,若存在对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易,可见,基于区块链的数据一致性的特性,以及在多方监督的环境下触发的资源交易,支付节点通过这两层的判断,就能够判断出交易的真伪或是否被交易节点篡改,提高资源交易的真实性,进而有效的避免交易清算指令被交易节点篡改或者虚假生成的情况,从而降低支付虚假交易的风险,以及降低缺乏事前监督所带来的资金安全风险。
请参照图2,以下对本申请实施例提供的资源交易的方法进行举例说明。所述方法应用于区块链系统,所述区块链系统包括交易节点、至少一个支付节点、至少一个资源提供节点、至少一个资源请求节点和区块链数据库,还可以包括监管节点,交易节点用于为资源提供节点和资源请求节点提供资源交易服务。其中,区块链数据库可以单独部署,也可以部署到监管节点中,具体的部署本申请不作限定。需要说明的是,本申请实施例中的交易节点、支付节点、资源提供节点、资源请求节点以及监管节点可以是逻辑划分的虚拟设备,也可以是独立的实体设备。可以认为交易节点与交易终端设备在功能上等同、支付节点与支付终端设备在功能上等同、资源提供节点与资源提供终端设备在功能上等同、资源请求节点与资源请求终端设备在功能上等同,以及监管节点与监管终端设备在功能上等同,后续实施例中,均不作区分。为便于表述,以交易节点、支付节点、资源提供节点、资源请求节点以及监管节点为例。下面首先介绍本申请实施例中可选的区块链系统的部署方式:
生成区块链:按照区块链协议生成一个区块链。
部署区块链:部署区块链时,参与资源交易的各节点都需要在区块链数据库中注册区块链账号。对于资源请求节点和资源提供节点而言,可以自发的在区块链数据库注册,也可以由交易节点或者支付节点为其在区块链数据库注 册,具体的注册方式本申请不作限定。可以理解的是,各节点在区块链数据库中的注册过程实质上就是指将该节点加入到该区块链系统中。
在注册区块链账号时,资源请求节点和资源提供节点都会得到在交易节点进行资源交易的唯一区块链账号,以便后续进行资源交易时的身份识别。在注册完成后,资源请求节点和资源提供节点都会得到区块链账号标识、节点标识、区块链地址、操作密码、账号公钥和账号私钥。
其中,账号私钥可用来对交易合约进行签名,账号公钥可用来对交易合约进行认证。区块链账号地址和操作密码可以是用于节点(资源请求节点或资源提供节点)登录区块链数据库进行交易合约的查询、复核、管理等操作。
可见,基于区块链数据库,能够避免交易节点有意或无意的挟持信息入口的风险,同时对区块链数据库的底层实现对于用户来说是0感知。一些实施方式中,可以在区块链数据库中划分出一个账户管理模块,其可采用安全的方式来托管各个节点的账户信息,具体采用的安全方式本申请不作限定。
向区块链数据库写入数据:区块链系统中的各节点在向区块链数据库中写入数据时,需要将待写入的数据分别发送至该区块链系统中除自身之外的的其他各节点,使得其他各节点参与共识。当各节点收到其他节点发送的各共识结果信息后,可根据各共识结果信息来判断是否达成共识。
区块链系统中的各节点都可以在自己的平台生成数据,并基于共识机制将生成的部分或全部数据同步到区块链数据库中。本申请还可以设置每个节点访问区块链数据库中数据的权限,或者以加密的方式维护区块链数据库中的数据,具体各节点访问区块链数据库中的数据的方式本申请不作限定。
该区块链系统可维护至少一个区块链数据库,该区块链数据库可以是私有区块链数据库或者联盟区块链数据库,具体部署类型本申请不作限定。为便于表述,本申请实施例以一个区块链数据库为例。
基于上述区块链系统的部署,本申请实施例主要可包括以下操作:
201、所述资源请求节点通过所述交易节点向所述资源提供节点请求目标资源。
所述资源请求节点基于交易节点选择感兴趣的目标资源后,进入目标资源的获取应用界面,也就是进入了该目标资源所属的资源提供节点的资源提供应 用界面。所述资源请求节点可在该目标资源的所述获取应用界面向所述资源提供节点发起请求,以获取该目标资源。例如,买家在电商交易平台搜索商品,搜索到感兴趣的商品A后,直接点击商品A即可进入该商品A的详情界面。然后,买家可在该商品A的详情界面点击购买,也就是向该商品A所属的卖家发出购买请求。
202、所述资源提供节点接收所述资源请求节点获取目标资源的请求。
所述资源提供节点可基于交易节点实时查看是否有获取资源的请求,当收到获取目标资源的请求后,即可对该请求进行相应的操作。例如,卖家在电商交易平台实时查看是否有购买请求的通知,该通知的方式可以是短信、邮件或即时消息等,具体本申请不作限定。
203、所述交易节点基于区块链数据库创建所述目标资源的交易合约。
可选的,所述交易节点还可以生成与所述交易合约对应的交易结算指令。
其中,本申请实施例中的交易合约包括交易的交易信息,还可以包括多个交易操作的触发条件、以及在所述交易合约的生命期限内由所述交易节点、所述支付节点、所述资源提供节点和所述资源请求节点执行的与所述交易合约对应的交易操作的操作指令。交易信息可以包括交易的参与者的相关信息以及交易状态信息等与交易相关的所有信息。例如,交易信息包括资源请求节点的区块链地址、资源提供节点的区块链地址、交易要素信息和支付清算单据信息等。
具体来说,交易合约可以是指一系列指令的有序集合,自动根据触发条件是否成就来判断是否发送与所述交易合约对应的交易操作的操作指令。例如在买家对某个交易合约触发了业务条款时,或者某个交易合约的生命期限到达终点时(例如买家最后确认收货时间),即可发出相应的操作指令,执行相应的操作指令,主动发起资金清算流程。
可选的,该交易合约还可包括交易结算指令,并设置触发发送该交易结算指令的触发条件,当满足设置的触发条件时,可以自动的触发交易节点将该交易结算指令发送给支付节点。
所述交易节点创建所述目标资源的交易合约后,将所述交易合约存储至区块链数据库。
可选的,在本申请的一些发明实施例中,还可以包括:
204、所述交易节点向支付节点发送与所述交易合约对应的交易结算指令。
需要说明的是,该交易结算指令可以存在于所述交易合约中,待交易节点完成所述交易合约的创建后,可通过交易合约中预定义的程序触发交易节点发送给支付节点。
该交易结算指令也可以是交易节点创建完所述交易合约后,所述交易节点单独生成,然后发送给所述支付节点,具体本申请不对所述支付节点接收该交易结算指令的方式或者来源进行限定。
例如,电商交易平台创建一个交易合约,该交易合约中可包括一系列的程序,这些程序满足响应的触发条件时,就会执行相应的操作。例如可在该交易合约中定义交易合约同步到区块数据库1秒后,自动触发电商交易平台向支付平台发送支付指令。
205、所述支付节点获取所述交易节点发送的交易结算指令。
该交易结算指令可以是由所述交易节点主动发送的,也可以是当所述交易合约中相关的程序满足触发条件后自动触发所述交易节点发送的。
206、所述支付节点根据所述交易结算指令从所述区块链数据库中查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易。
可选的,所述支付节点还可以进一步的根据所述交易合约中所披露的所述资源请求节点和所述资源提供节点的区块链账户信息,去区块链数据库中存储的数据中查询该交易合约中所述资源请求节点和所述资源提供节点的区块链账户是否为合法的区块链账户。例如,支付平台可以根据交易合约中披露的买家和卖家的账户信息去区块链数据库中查询买家和卖家是否为区块链系统的合法区块链账户,若不合法,则可判断该交易合约为伪造。若合法,则可以继续判断该交易合约中是否有买家的签名,若有签名,则可确定该交易合约是该买家的真实购买行为的体现。
需要说明的是,本申请不对所述支付节点查验所述资源请求节点和所述资源提供节点的区块链账户的合法性,以及查验所述交易合约中是否存在所述资源请求节点的签名的顺序进行限定。
207、所述支付节点向所述资源请求节点发送交易支付请求。
例如,支付平台确定本次交易合约为真实的交易合约后,就可以向该交易合约中的买家发送支付指令。
208、所述资源请求节点接收所述交易支付请求,根据所述交易支付请求支付本次资源交易的支付金额。
相较于现有技术,本申请实施例提供的方案中,各节点之间的交互是基于区块链技术,所以能够去中心化,保证数据的一致性。使得在任意一次交易流程中,支付节点获取所述交易节点发送的交易结算指令后,首先可直接根据所述交易结算指令从所述区块链数据库查询是否存在与所述交易结算指令对应的交易合约,若存在对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易,可见,基于区块链的数据一致性的特性,以及在多方监督的环境下触发的资源交易,支付节点通过这两层的判断,就能够判断出交易的真伪或是否被交易节点篡改,提高资源交易的真实性,进而有效的避免交易清算指令被交易节点篡改或者虚假生成的情况,从而降低支付虚假交易的风险,以及降低缺乏事前监督所带来的资金安全风险。
一方面中,具体来说,所述支付节点作为资源交易的执行方,由于在产生交易合约时,所述交易合约由所述资源请求节点使用用户的账号私钥对该交易合约进行了签名,也就表明该交易合约已经由资源请求节点对本次资源交易进行了真实、有效的确认。由于所述资源请求节点进行签名的账号私钥只有资源请求节点自己知道,而所述交易节点、所述资源提供节点以及所述支付节点都是不知道的。所以,所述支付节点只要查询到该交易合约中已被资源请求节点进行了签名,就可以认为本次资源交易是真实交易。这样,就可在一定程度上提高资源交易的真实性。可见,与现有机制相比,支付节点在向资源请求节点发起交易支付请求之前,可以先去验证该交易合约的真实性。此外,在该交易合约触发了交易结算条件时,还可以强制触发执行交易结算的操作。通过本申请的这种多方监督的环境所触发的资源交易,能够有效避免交易清算指令被交易节点篡改或者虚假生成,以及缺乏事前监督所带来的资金安全风险。
另一方面中,举例来说,即使交易合约中的买/卖家都能在区块链中查到,但也不能表明该交易合约就是买家发起的,只有买家签名了才可认为是买家在进行真实的购买行为。若买家和卖家之间没有发生真实的交易行为,而交易节点基于区块链数据库创建了一个交易合约,且这个交易合约中的买家和卖家的 区块链账户都能在区块链数据库中查询到。对于这种情况,并不能表明该交易合约就是买家发起的,所以支付节点不能简单的就认为本次交易为真实交易,而是要去确认该交易合约中是否由该买家签名,若存在买家的签名,则可认为是买家在进行真实的购买行为。本申请实施例的方案可以很好的杜绝这类虚假交易。
可选的,在一些申请实施例中,还可以针对未被所述资源请求节点确认的资源交易进行设置,以减少不必要的触发向资源请求节点推送交易结算指令的频率。具体可包括以下步骤:
所述支付节点根据所述交易结算指令从所述区块链数据库中未查询到与所述交易结算指令对应的交易合约时,或者从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内不存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为虚假交易,并向所述交易节点发送交易支付拒绝响应。
可选的,在本申请的一些发明实施例中,所述方法还包括:
所述资源请求节点在获取到资源提供节点提供的目标资源后,可以对本次资源交易进行收讫确认,相应的,交易合约也会触发相应的交易操作,本次资源交易的交易状态也会跟随改变。当然,若所述资源请求节点收到所述目标资源后,未能在交易合约设定的收讫确认时间内对本次资源交易进行收讫确认,本申请实施例中的交易合约也可以自动的触发针对本次资源交易的收讫确认操作。例如,买家收到卖家的货品后,若交易合约约定买家收货后需要在7天之内确认收货,但买家并没有主动去确认收货。若买家收货超过7天还未进行确认收货的操作,那么,所述交易合约就可以自动的触发确认收货的流程操作。
本申请实施例中,所述支付节点还可以根据所述交易合约的交易状态来动态追踪所述交易合约的履行状态。具体来说,当所述交易合约由所述资源请求节点确认本次资源交易完成,或者所述支付节点确定所述交易合约达到交易确认截止时间时,所述支付节点查询所述交易合约中当前执行到的交易操作,并根据所述交易合约当前执行到的交易操作执行下一个满足所述交易合约中触发条件的交易操作。
其中,所述交易操作可以包括支付量转移、资源的收讫和通知,所述支付量转移是指将所述资源请求节点支付所请求的资源的支付量转移给所述资源提供节点,所述通知用于通知所述资源请求节点和所述资源提供节点所述交易合约当前的交易状态。
举例来说,合约中包括10个流程(包括流程1、流程2…流程10),若查询到当前的流程到流程9时,且到了该交易合约的确认截止时间,那么,本申请实施例中的支付节点就可以直接去发起流程10所表示的交易确认流程的。例如合约规定7天收货确认,若到了第7天,买家还没确认收货,由于本申请实施例的支付节点是基于区块链系统的,所以该支付节点能够查询区块链数据库中的交易合约,那么支付节点可以直接根据交易合约去发起自动确认交易,然后就可以把本次交易的交易资金计算在该交易合约中资源提供节点的资金账户了,相较于现有机制的支付节点无法看到交易合约的具体内容,只能被动的等待交易合约自动触发确认收货流程,才可以算资金给卖家,本申请实施例的支付节点则能够实时跟踪交易合约的进展,可自行判断,从而减少不必要的等待。
可选的,在本申请的一些发明实施例中,所述支付节点具备限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权限。交易披露信息包括交易合约中的部分信息,该交易披露信息是在进行支付的过程中所必须的信息,所述交易披露信息还可以包括资源请求节点的区块链地址、资源提供节点的区块链地址、交易要素信息和支付清算单据信息以及资源请求节点对所述交易合约进行签名的信息。
这样,所述支付节点就可以根据所述交易结算指令在所述区块链数据库中查询到所述交易合约后,从所述交易合约中查询本次资源交易的所述交易披露信息。
然后,根据所述交易披露信息查询交易合约中的资源请求节点的账户信息、资源提供节点的账户信息,以及二者的交易信息,以便查验交易合约中的资源提供节点和资源请求节点的身份是否为真实。该交易披露信息还可用于支付节点对在支付节点内所发生的资金变动做事中的核验工作、以及事后的核验工作。
可选的,所述支付节点还可以根据查询到的所述交易披露信息确定本次资 源交易是否由所述资源请求节点对所述交易合约进行签名。若所述支付节点根据所述交易披露信息确定本次资源交易由所述资源请求节点对所述交易合约进行签名,则确定所述交易合约为真实交易。
可选的,在本申请的一些发明实施例中,所述方法还包括:
在资源请求节点完成本次资源交易的支付后,所述支付节点还可以向交易节点发送用于指示所述交易合约支付成功的确认响应。
所述交易节点接收所述支付节点发送的指示所述交易合约支付成功的确认响应后,在所述区块链数据库创建分账结算合约,以供所述资源提供节点、所述资源请求节点、所述支付节点和监管节点查询本次资源交易。
其中,分账结算合约是指区块链系统中的基于共识机制的各节点各自所拥有的一个分账结算合约,每个节点都在本地维护自身的分账结算合约,以便随时查账,并且,任一节点针对该分账结算合约的更新都需要其它节点的确认。分账结算合约仅针对参与相同资源交易的节点,例如交易节点可能与多个资源提供节点进行过资源交易,或者与多个支付节点有过资金结算,又或者一个资源请求节点与多个资源提供节点有过资源交易等,这样,对于每个节点来说,都会维护多个不同类型的分账结算合约,但参与同一个资源交易的各节点均会维护一个相同的分账结算合约。例如资源请求节点A通过交易节点B,在资源提供节点C购买了商品D,并且该资源请求节点A是在支付节点E支付该商品D。那么,资源请求节点A、交易节点B、资源提供节点C和支付节点E就都会维护一个关于商品D的交易合约,那么,可以将资源请求节点A、交易节点B、资源提供节点C和支付节点E分别维护的交易合约称为分账交易合约。
由于本申请实施例中的区块链系统基于共识机制,所以,若区块链系统中的任意节点(例如可以是参与资源交易的任一方节点)要修改交易合约中的任意数据,都需要经过与交易合约中具备利益关系的节点一致同意才可修改。其中,与交易合约有利益相关的节点是指提供资源的资源提供节点、支付资源交易的资源请求节点和收取佣金的交易节点及支付节点。可见,在该区块链数据库上所记录的交易合约可以认为是单方面不可篡改的,基于本申请的区块链数 据库,就能可以确保交易节点无法对其所提供的交易服务进行抵赖,因而能保护相关节点的利益不受侵犯。
可选的,在本申请的一些发明实施例中,若所述区块链系统中部署了监管节点,所述监管节点中可以拥有区块链数据库中的部分或全部数据。那么,所述监管节点还可以充当查询的角色。具体来说,所述监管节点获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建。
所述监管节点对所述交易合约列表进行交易分析。当然,所述监管节点也可以直接基于所述区块链数据库中的数据进行分析,具体本申请不作限定。
当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,所述监管节点确定所述目标交易合约为虚假交易。
可选的,在本申请的一些发明实施例中,基于区块链数据库对交易合约的管理主要包括:交易合约的创建、交易合约的查询、交易合约的访问授权管理、交易合约的生命期限管理、交易合约的执行指令管理以及交易合约的触发条件管理等。各个节点都可以对区块链数据库中的未收单或已收单的新交易合约、历史交易合约进行查询,但出于对资源请求节点、资源提供节点、交易节点、支付节点的商业和隐私保护要求,还需要对交易合约的查询的权限进行限制性管理。例如仅能对授权的参与同一个交易合约的资源交易的节点开放查询该交易合约的查询权限,没有参与的资源交易的节点就不赋予其查询权限。
也就是说,本申请实施例中,区块链数据库中对其存储的交易合约的公开性还需要设置相应的权限,例如监管节点、支付节点能够查询指定交易节点下的交易合约或者与交易合约相关的信息,而资源请求节点和资源提供节点则仅能查询与自己账号地址相关的交易合约或者与交易合约相关的信息。监管节点和交易节点则可以查询进行资源交易的节点(即资源请求节点和/或资源提供节点)的真实身份信息,例如资料信息,实名、银证资料、行业信息、经营范围和营业证照等。
具体来说,可由所述监管节点赋予所述支付节点限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权 限。交易披露信息包括交易合约中的部分信息,该交易披露信息是在进行支付的过程中所必须的信息,所述交易披露信息还可以包括资源请求节点的区块链地址、资源提供节点的区块链地址、交易要素信息和支付清算单据信息以及资源请求节点对所述交易合约进行签名的信息。其中,交易要素信息可包括交易金额、商品信息、优惠信息、物流信息、授信资质等。支付清算单据信息可包括支付单号、支付时间金额等。这样既可以保证支付节点对交易节点的伪造虚假交易或对真实交易是否进行篡改进行查验,又可以避免有竞争关系的支付节点窃取交易节点中的资源请求节点和资源提供节点的敏感资源,由此可见,通过这种限制性权限,能够保证支付节点查验交易合约的前提下,还能防止支付节点利用经营便利获取交易节点中的敏感资源,一定程度上能够提高资源交易的监督力量,也能降低伪造或篡改的交易合约风险。
可选的,在本申请的一些发明实施例中,所述资源请求节点在向所述支付节点支付交易金额之前,或支付交易金额之后(即支付节点收单之后),还可以通过支付入口处指向所述区块链数据库的入口去查询该交易合约,可以对业务单据的存在性和交易节点的业务单据进行对账或检查,从而确认和复核由所述交易节点所创建的交易合约的交易信息是否准确,或者还可以复核自身的本次资金交易行为是否准确无误。这样就能起到保护所述资源请求节点的权益的作用。
可选的,在本申请的一些发明实施例中,还可以基于上述区块链数据库来对整个交易合约履行中所产生的交易支付量的转移进行管理。具体来说,资源请求节点在向所述支付节点完成支付量转移后,所述支付节点便完成该交易合约所约定的支付量的收单工作,该笔支付量进入所述支付节点的备付金账户。由于该笔支付量为资源提供节点在所述交易节点提供资源服务所获得的交易支付量,因此,该笔支付量所有权属于资源提供节点。因此所述交易节点对这类交易所产生的支付量没有实际的控制权。而所述支付节点完成交易资金收单后,支付节点会通知所述交易节点,然后所述交易节点在获得所述支付节点反馈的支付成功通知后,则会在上述区块链数据库中为所述资源提供节点创建一个分账结算合约,该分账结算合约为该资源提供节点和所述资源请求节点之间服从资源服务条款的约束合约,其可供参与本次交易合约的资源交易的节点随 时查询。
其次,在分账结算合约创建成功后,所述资源提供节点可通过自己的账号私钥触发上面创建的分账结算合约的执行条款,以根据分账结算合约中的待结算资金发起结算请求。首先合约本身自动的执行前置条件的检查,例如所述资源请求节点支付成功、所述资源请求节点收到资源在交易节点确认成功、合约有效等,完成所有前置条件判断后即可按照所述分账结算合约中的条款进行分账结算。也可以是在执行前置条件实现时,自动触发上面创建的所述分账结算合约的执行条款,以根据分账结算合约中的待结算资金发起结算请求。
最后,当所述资源提供节点在所述交易节点的交易资金达到一定的付款条件后,所述支付节点将该资源提供节点的交易资金转入其入驻时注册的结算银行卡中,将所述支付节点的备付金账户的资金付款给资源提供节点银行,完成实际的交易资金交收。
为便于理解,下面以图3所示的一种区块链系统中关于交易清算系统的逻辑划分进行举例说明,本申请可基于图3给出的区块链系统执行资源交易的方法。区块链系统在逻辑上可被划分为四层:接入层、业务处理层、存储层和控制层。
其中,接入层包括卖家接入、收单接入、资金接入和对账接入。
业务处理层包括管理单元、收单单元、下单单元、结算单元、分账单元、清算单元、同步信息队列、异步收单、下单队列、异步队列和同步处理队列。业务处理层如图3中虚线方框所示的区域,该区域中的各单元负责完成实际的业务逻辑,包括对卖家的信息、卖家的实名进行管理、卖家的信息对接工作、用户在电商交易平台下单的收单工作、以及反向查询区块链中的相应的与收单一致唯一关联的待结算信息。
存储层包括商家、收单、凭证、清算、区块链数据库和电商交易平台的业务数据,如图3中斜线阴影的各圆柱体。
控制层包括三个部分,第一部分用于电商交易平台收单接入后,进行支付凭证校验和待结算申请核验。第二部分用于资金接入后,进行总控核验和结算申请核验。第三部分用于对账接入后,进行清算校验申请、分账核验和业务源核验。控制层主要负责整个信息、资金链路的合规性、真实性以及数据一致性 的判断。
图3中的存储层和接入层主要负责与外部的电商交易平台、区块链平台对接、业务平台的识别、交易安全加密保障、系统网管接入等工作。
基于图3所示的区块链系统的架构,下面针对买家完成支付后的资金结算流程进行说明。关于资金结算流程的控制逻辑包含4部分:待结算单下单准入控制、结算准入控制、分账准入控制以及清算准入控制。
待结算单下单准入控制:本部分逻辑将支付节点内部的收单信息作为待结算单下单的准入判断标准,也就是每笔待结算交易必须有唯一一笔关联的收单,且待结算单的金额需要与收单中的总金额一致。若金额一致,则可以进入结算准入控制部分进行结算待结算单的准入操作。其中,收单信息是指是指买家成功支付的订单信息。其中,待结算交易是指支付节点与卖家之间的清算,待结算单中描述了支付节点应向卖家转账的交易款金额信息,而转账的动作是由支付节点执行。
结算准入控制:主要负责控制电商交易平台发送的待结算单,待结算单所发起实际结算分账的总金额必须小于经由上述待结算单下单准入控制认证准入后登记的待结算单。
分账准入控制:如果有非收单的待结算资金(例如电商交易平台营销、运费补助等优惠,均不计入收单的待结算资金中)时,则需要将非收单的待结算资金与电商交易平台提供的业务数据相匹配,以将非收单的待结算资金不记入分账。同时分账准入控制部分也需要负责相应的电商交易平台佣金扣款比例类目和卖家一致性的判断。具体来说,一致性判断是指对于每一个卖家其经营范围是固定的,由其注册申请的经营执照范围所限制,例如:医药、服装、食品等等,每一种经营类型我们称为一个类目。
针对不同的类目,电商交易平台可能会执行不同的手续费佣金比例,所以在清算时还需要增加相关的业务数据的校验。
清算准入控制:商家请求清算所有待结算款后,支付节点在内部子账户对卖家的待结算款的总余额进行验证,仅当确定商家请求的待结算款金额小于支付节点内可划转金额后,才可以准入商家的清算请求,这样就完成了一次资金结算流程。
上述图1-图3所对应的实施例中的所有特征也同样适用于本申请中的图4-图10任一所对应的实施例,后续类似之处不再赘述。
以上对本申请中资源交易的方法进行说明,以下对执行上述资源交易的方法的支付节点、交易节点、资源请求节点、资源提供节点、监管节点及区块链系统分别进行描述。需要说明的是,本申请中的支付节点、交易节点、监管节点、资源请求节点和资源提供节点可以是安装在终端设备上的资源交易的装置,或者是安装了资源交易的装置的终端设备,具体本申请均不作限定。本申请实施例中,支付节点、交易节点、监管节点、资源请求节点和资源提供节点都是基于区块链技术,彼此之间为分布式拓扑结构。监管节点可以维护整个区块链系统的数据,例如资源提供节点的区块链账号信息、资源请求节点的区块链账号信息、交易节点的区块链信息、以及在各个交易节点产生的资源交易所对应的交易合约等信息。
本申请实施例中,所述监管节点可以包括一个区块链数据库,将整个区块链系统中产生的数据存储于其中,并为所述支付节点、所述交易节点、所述资源请求节点和所述资源提供节点提供接入端口,使得所述支付节点、所述交易节点、所述资源请求节点和所述资源提供节点能够进入该区块链数据库进行数据查询、校验等操作。在本申请的一些发明实施例中,还可将所述区块链数据库与所述监管机构分离部署,具体的部署本申请不作限定。
参照图4,对支付节点40进行说明,所述支付节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点。支付节点40包括:
收发模块401,用于获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令。
处理模块402,用于根据所述收发模块401接收到的所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合 约为真实交易;并通过所述收发模块向所述资源请求节点发送交易支付请求。
本申请中,在收发模块401获取所述交易节点发送的交易结算指令后,处理模块根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易,再向所述资源请求节点发送交易支付请求。这样可以对交易结算指令是否为交易节点伪造或者篡改进行判断,避免支付虚假交易的风险。
可选的,在本申请的一些发明实施例中,所述处理模块402还用于:
根据所述交易结算指令从所述区块链数据库未查询到与所述交易结算指令对应的交易合约时,或者从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内不存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为虚假交易,并通过所述收发模块401向所述交易节点发送交易支付拒绝响应。
可选的,在本申请的一些发明实施例中,所述交易合约包括交易的交易信息,还可以包括多个交易操作的触发条件、以及在所述交易合约的生命期限内由所述交易节点、所述支付节点、所述资源提供节点和所述资源请求节点执行的与所述交易合约对应的交易操作的操作指令。交易信息可以包括交易的参与者的相关信息以及交易状态信息等与交易相关的所有信息。例如,交易信息包括资源请求节点的区块链地址、资源提供节点的区块链地址、交易要素信息和支付清算单据信息等。所述处理模块还用于:
当所述交易合约由所述资源请求节点确认本次资源交易完成,或者所述支付节点确定所述交易合约达到交易确认截止时间时,查询所述交易合约中当前执行到的交易操作,并根据所述交易合约当前执行到的交易操作执行下一个满足所述交易合约中触发条件的交易操作;
其中,所述交易操作包括支付量转移、资源的收讫和通知,所述支付量转移是指将所述资源请求节点支付所请求的资源的支付量转移给所述资源提供节点,所述通知用于通知所述资源请求节点和所述资源提供节点所述交易合约当前的交易状态。
可选的,在本申请的一些发明实施例中,所述支付节点具备限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露 信息的权限。交易披露信息包括交易合约中的部分信息,该交易披露信息是在进行支付的过程中所必须的信息,所述交易披露信息还可以包括资源请求节点的区块链地址、资源提供节点的区块链地址、交易要素信息和支付清算单据信息以及资源请求节点对所述交易合约进行签名的信息。
可选的,在本申请的一些发明实施例中,所述处理模块402具体用于:
根据所述交易结算指令在所述区块链数据库中查询到所述交易合约后,从所述交易合约中查询本次资源交易的所述交易披露信息;
若根据所述交易披露信息确定本次资源交易由所述资源请求节点对所述交易合约进行签名,则确定所述交易合约为真实交易。
参照图5,对交易节点50进行说明,所述交易节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点。交易节点50包括:
处理单元501,用于当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,在所述区块链数据库创建交易合约;
收发单元502,用于将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
本申请实施例中,交易节点基于区块链,在所述区块链数据库创建交易合约,使得接收到交易结算指令的支付节点能够根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易,再向所述资源请求节点发送交易支付请求。这样可以对交易结算指令是否为交易节点伪造或者篡改进行判断,避免支付虚假交易的风险。
可选的,在本申请的一些发明实施例中,所述处理单元502还用于:
通过所述收发单元502接收所述支付节点发送的指示所述交易合约支付成功的确认响应后,在所述监管节点创建分账结算合约,以供所述资源提供节点、所述资源请求节点和所述支付节点查询本次资源交易。
参照图6,对监管节点60进行说明,所述监管节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、以及至少一个资源提供节点、至少一个资源请求节点和监管节点60。监管节点60包括:
收发子模块601,用于获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
处理子模块602,用于对所述交易合约列表中的至少一个交易合约进行交易分析;当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,所述监管节点确定所述目标交易合约为虚假交易。
本申请实施例中,监管节点可随时对已产生的交易合约进行查验。
可选的,在一些申请实施例中,所述处理子模块602还用于:
赋予所述支付节点限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权限。交易披露信息包括交易合约中的部分信息,该交易披露信息是在进行支付的过程中所必须的信息,所述交易披露信息还可以包括资源请求节点的区块链地址、资源提供节点的区块链地址、交易要素信息和支付清算单据信息以及资源请求节点对所述交易合约进行签名的信息。
参照图7,对区块链系统70进行说明,所述区块链系统70包括区块链数据库、至少一个如图4所示的支付节点、至少一个如图5所示的交易节点50、至少一个资源提供节点和至少一个资源请求节点。可选的,所述区块链系统还可包括如图6所示的监管节点60。
所述资源请求节点,用于通过所述交易节点50向所述资源提供节点请求目标资源;
所述交易节点50,用于基于所述区块链数据库创建所述目标资源的交易合约;
所述支付节点40,用于获取交易结算指令,根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;以及向所述资源请求节点发送交易支付请求。
需要说明的是,本申请中的区块链系统为分布式系统,交易节点、支付节点和监管节点、资源请求节点和资源提供节点可以是逻辑划分的装置,也可以分别是独立的终端设备,具体本申请不作限定。
上面从模块化或单元化功能实体的角度对本申请实施例中的支付节点、交易节点和监管节点分别进行了描述,下面从硬件处理的角度分别对本申请实施例中的资源交易节点进行描述。本申请实施例还提供一种资源交易的装置(如图8所示的结构),其包括至少一个连接的处理器、存储器和收发器,其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码来执行上述实施例中由支付节点或交易节点或监管节点所执行的上述资源交易的方法中的部分或者全部步骤。
在本申请的一些发明实施例中,图8所示的装置可用于实现本申请中支付节点的功能,其能够执行由支付节点或支付终端设备在本申请实施例中执行的所有操作。图8中所述处理器可用于执行以下操作:
通过所述收发器获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;
通过所述收发器向所述资源请求节点发送交易支付请求。
在本申请的一些发明实施例中,图8所示的装置可用于实现本申请中交易节点的功能,其能够执行由交易节点或交易终端设备在本申请实施例中执行的所有操作。图8中的所述处理器可用于执行以下操作:
当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,在所述区块链数据库创建交易合约;
通过所述收发器将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对 本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
在本申请的一些发明实施例中,图8所示的装置可用于实现本申请中监管节点的功能,其能够执行由监管节点或监管终端设备在本申请实施例中执行的所有操作。图8中的所述处理器可用于执行以下操作:
通过所述收发器获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
对所述交易合约列表中的至少一个交易合约进行交易分析;
当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,确定所述目标交易合约为虚假交易。
需要说明的是,在本申请各实施例(包括图4、图5以及图6所示的各实施例)中的收发模块、收发单元、收发子模块对应的实体设备可以为收发器,处理模块、处理单元、处理子模块对应的实体设备可以为处理器。图4、图5以及图6所示的各装置均可以具有如图8所示的结构,当其中一种装置具有如图8所示的结构时,图8中的处理器和收发器实现前述对应该装置的装置实施例提供的功能,图8中的存储器存储处理器执行上述资源交易的方法时需要调用的程序代码。
本申请实施例还提供了另一种终端设备,该终端设备可以实现本申请中支付节点的功能,其能够执行由支付节点或支付终端设备在本申请实施例中执行的所有操作。或者可以实现本申请中交易节点的功能,其能够执行由交易节点或交易终端设备在本申请实施例中执行的所有操作。或者可以实现本申请中监管节点的功能,其能够执行由监管节点或监管终端设备在本申请实施例中执行的所有操作。如图9所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该终端设备可以为包括手机、平板电脑、个人数字助理(英文全称:Personal Digital Assistant,英文简称:PDA)、销售终端(英文全称:Point of Sales,英文简称:POS)、 车载电脑等任意终端设备,以终端为手机为例:
图9示出的是与本申请实施例提供的终端设备相关的手机的部分结构的框图。参考图9,手机包括:射频(英文全称:Radio Frequency,英文简称:RF)电路99、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(英文全称:wireless fidelity,英文简称:WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图9中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图9对手机的各个构成部件进行具体的介绍:
RF电路99可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器980处理;另外,将设计上行的数据发送给基站。通常,RF电路99包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(英文全称:Low Noise Amplifier,英文简称:LNA)、双工器等。此外,RF电路99还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文全称:Global System of Mobile communication,英文简称:GSM)、通用分组无线服务(英文全称:General Packet Radio Service,英文简称:GPRS)、码分多址(英文全称:Code Division Multiple Access,英文简称:CDMA)、宽带码分多址(英文全称:Wideband Code Division Multiple Access,英文简称:WCDMA)、长期演进(英文全称:Long Term Evolution,英文简称:LTE)、电子邮件、短消息服务(英文全称:Short Messaging Service,英文简称:SMS)等。
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器 件。
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控面板931以及其他输入设备932。触控面板931,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板931上或在触控面板931附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板931可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器980,并能接收处理器980发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板931。除了触控面板931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示面板941,可选的,可以采用液晶显示器(英文全称:Liquid Crystal Display,英文简称:LCD)、有机发光二极管(英文全称:Organic Light-Emitting Diode,英文简称:OLED)等形式来配置显示面板941。进一步的,触控面板931可覆盖显示面板941,当触控面板931检测到在其上或附近的触摸操作后,传送给处理器980以确定触摸事件的类型,随后处理器980根据触摸事件的类型在显示面板941上提供相应的视觉输出。虽然在图9中,触控面板931与显示面板941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板931与显示面板941集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板941的亮度,接近传感器可在手机移动到耳边时,关闭显示面板941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出 重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路99以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;可选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
手机还包括给各个部件供电的电源990(比如电池),可选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
在本申请实施例中,该手机所包括的处理器980还具有控制执行以上由支付节点或交易节点或监管节点、资源请求节点和资源提供节点执行的资源交易的方法流程的功能,该手机可以作为支付节点或交易节点或监管节点。
例如,图9所示的终端设备用于实现本申请实施例中支付节点的功能时, 图9中的所述处理器980可用于执行以下操作:
通过所述输入单元930获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;
通过所述RF电路99向所述资源请求节点发送交易支付请求。
又例如,图9所示的终端设备用于实现本申请实施例中交易节点的功能时,图9中的所述处理器980可用于执行以下操作:
当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,在所述区块链数据库创建交易合约;
通过所述RF电路99将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
又例如,图9所示的终端设备用于实现本申请实施例中监管节点的功能时,图9中的所述处理器980可用于执行以下操作:
通过所述输入单元930获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
对所述交易合约列表中的至少一个交易合约进行交易分析;
当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,确定所述目标交易合约为虚假交易。
图10是本申请实施例提供的一种服务器结构示意图,该服务器1000可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器 (英文全称:central processing units,英文简称:CPU)1022(例如,一个或一个以上处理器)和存储器1032,一个或一个以上存储应用程序1042或数据1044的存储介质1030(例如一个或一个以上海量存储设备)。其中,存储器1032和存储介质1030可以是短暂存储或持久存储。存储在存储介质1030的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1022可以设置为与存储介质1030通信,在服务器1000上执行存储介质1030中的一系列指令操作。
服务器1000还可以包括一个或一个以上电源1026,一个或一个以上有线或无线网络接口1050,一个或一个以上输入输出接口1058,和/或,一个或一个以上操作系统1041,例如Windows Server,Mac OS X,Unix,Linux,FreeBSD等等。
上述实施例中由支付节点或交易节点或监管节点、资源请求节点和资源提供节点所执行的步骤可以基于该图10所示的服务器结构。
例如,图10所示的服务器用于实现本申请实施例中支付节点的功能时,图10中的所述中央处理器1022可用于执行以下操作:
通过所述输入输出接口1058获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;
通过所述有线或无线网络接口1050向所述资源请求节点发送交易支付请求。
又例如,图10所示的服务器用于实现本申请实施例中交易节点的功能时,图10中的所述中央处理器1022可用于执行以下操作:
当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,在所述区块链数据库创建交易合约;
通过所述有线或无线网络接口1050将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链 数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
又例如,图10所示的服务器用于实现本申请实施例中监管节点的功能时,图10中的所述中央处理器1022可用于执行以下操作:
通过所述输入输出接口1058获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
对所述交易合约列表中的至少一个交易合约进行交易分析;
当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,确定所述目标交易合约为虚假交易。
本申请实施例还提供一种计算机存储介质,该介质存储有程序,该程序执行包括上述支付节点或交易节点或监管节点或资源请求节点或资源提供节点执行的上述资源交易的方法中的部分或者全部步骤。
上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者 也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块或单元中,也可以是各个模块或单元单独物理存在,也可以两个或两个以上模块或单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上对本申请所提供的技术方案进行了详细介绍,本申请中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (40)

  1. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点和至少一个资源请求节点,所述方法包括:
    所述资源请求节点通过所述交易节点向所述资源提供节点请求目标资源;
    所述交易节点基于所述区块链数据库创建所述目标资源的交易合约;
    所述支付节点获取交易结算指令;
    所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;
    所述支付节点向所述资源请求节点发送交易支付请求。
  2. 根据权利要求1所述的方法,所述方法还包括:
    所述支付节点根据所述交易结算指令从所述区块链数据库中未查询到与所述交易结算指令对应的交易合约时,或者从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内不存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为虚假交易,并向所述交易节点发送交易支付拒绝响应。
  3. 根据权利要求1或2所述的方法,所述交易合约包括多个交易操作的触发条件、以及在所述交易合约的生命期限内由所述交易节点、所述支付节点、所述资源提供节点和所述资源请求节点执行的与所述交易合约对应的交易操作的操作指令,所述方法还包括:
    当所述交易合约由所述资源请求节点确认本次资源交易完成,或者所述支付节点确定所述交易合约达到交易确认截止时间时,所述支付节点查询所述交易合约中当前执行到的交易操作,并根据所述交易合约当前执行到的交易操作执行下一个满足所述交易合约中触发条件的交易操作。
  4. 根据权利要求3所述的方法,所述支付节点具备限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权限。
  5. 根据权利要求4所述的方法,所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合 约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易,包括:
    所述支付节点根据所述交易结算指令在所述区块链数据库查询到所述交易合约后,从所述交易合约中查询本次资源交易的所述交易披露信息;
    若所述支付节点根据所述交易披露信息确定本次资源交易由所述资源请求节点对所述交易合约进行签名,则确定所述交易合约为真实交易。
  6. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点,所述方法包括:
    支付节点获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
    所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;
    所述支付节点向所述资源请求节点发送交易支付请求。
  7. 根据权利要求6所述的方法,所述方法还包括:
    所述支付节点根据所述交易结算指令从所述区块链数据库中未查询到与所述交易结算指令对应的交易合约时,或者从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内不存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为虚假交易,并向所述交易节点发送交易支付拒绝响应。
  8. 根据权利要求6或7所述的方法,所述交易合约包括多个交易操作的触发条件、以及在所述交易合约的生命期限内由所述交易节点、所述支付节点、所述资源提供节点和所述资源请求节点执行的与所述交易合约对应的交易操作的操作指令,所述方法还包括:
    当所述交易合约由所述资源请求节点确认本次资源交易完成,或者所述支付节点确定所述交易合约达到交易确认截止时间时,所述支付节点查询所述交易合约中当前执行到的交易操作,并根据所述交易合约当前执行到的交易操作 执行下一个满足所述交易合约中触发条件的交易操作。
  9. 根据权利要求8所述的方法,所述支付节点具备限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权限。
  10. 根据权利要求9所述的方法,所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易,包括:
    所述支付节点根据所述交易结算指令在所述区块链数据库查询到所述交易合约后,从所述交易合约中查询本次资源交易的所述交易披露信息;
    若所述支付节点根据所述交易披露信息确定本次资源交易由所述资源请求节点对所述交易合约进行签名,则确定所述交易合约为真实交易。
  11. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点以及至少一个资源请求节点,所述方法包括:
    当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,所述交易节点在所述区块链数据库创建交易合约;
    所述交易节点将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
  12. 根据权利要求11所述的方法,所述方法还包括:
    所述交易节点接收所述支付节点发送的指示所述交易合约支付成功的确认响应后,在所述区块链数据库创建分账结算合约,以供所述资源提供节点、所述资源请求节点、所述支付节点查询本次资源交易。
  13. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点和监管节点,所述方法包括:
    所述监管节点获取查询指令,响应于所述查询指令,获取交易合约列表, 所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
    所述监管节点对所述交易合约列表中的至少一个交易合约进行交易分析;
    当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,所述监管节点确定所述目标交易合约为虚假交易。
  14. 根据权利要求13所述的方法,所述方法还包括:
    所述监管节点赋予所述支付节点限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权限。
  15. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备和至少一个资源请求终端设备,所述方法包括:
    所述资源请求终端设备通过所述交易终端设备向所述资源提供终端设备请求目标资源;
    所述交易终端设备基于所述区块链数据库创建所述目标资源的交易合约;
    所述支付终端设备获取交易结算指令;
    所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易;
    所述支付终端设备向所述资源请求终端设备发送交易支付请求。
  16. 根据权利要求15所述的方法,所述方法还包括:
    所述支付终端设备根据所述交易结算指令从所述区块链数据库中未查询到与所述交易结算指令对应的交易合约时,或者从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内不存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为虚假交易,并向所述交易终端设备发送交易支付拒绝响应。
  17. 根据权利要求15或16所述的方法,所述交易合约包括多个交易操作的触发条件、以及在所述交易合约的生命期限内由所述交易终端设备、所述支付终端设备、所述资源提供终端设备和所述资源请求终端设备执行的与所述交易合约对应的交易操作的操作指令,所述方法还包括:
    当所述交易合约由所述资源请求终端设备确认本次资源交易完成,或者所述支付终端设备确定所述交易合约达到交易确认截止时间时,所述支付终端设备查询所述交易合约中当前执行到的交易操作,并根据所述交易合约当前执行到的交易操作执行下一个满足所述交易合约中触发条件的交易操作。
  18. 根据权利要求17所述的方法,所述支付终端设备具备限制查看权限,所述限制查看权限是指所述支付终端设备仅具备查看所述交易合约中的交易披露信息的权限。
  19. 根据权利要求18所述的方法,所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易,包括:
    所述支付终端设备根据所述交易结算指令在所述区块链数据库查询到所述交易合约后,从所述交易合约中查询本次资源交易的所述交易披露信息;
    若所述支付终端设备根据所述交易披露信息确定本次资源交易由所述资源请求终端设备对所述交易合约进行签名,则确定所述交易合约为真实交易。
  20. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备、以及至少一个资源请求终端设备,所述方法包括:
    支付终端设备获取所述交易终端设备发送的交易结算指令,所述交易结算指令是指所述资源请求终端设备在所述交易终端设备上向所述资源提供终端设备请求目标资源后,由所述交易终端设备在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
    所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易;
    所述支付终端设备向所述资源请求终端设备发送交易支付请求。
  21. 根据权利要求20所述的方法,所述方法还包括:
    所述支付终端设备根据所述交易结算指令从所述区块链数据库中未查询到与所述交易结算指令对应的交易合约时,或者从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内不存在所述资源请求终 端设备对本次资源交易的签名时,则确定所述交易合约为虚假交易,并向所述交易终端设备发送交易支付拒绝响应。
  22. 根据权利要求20或21所述的方法,所述交易合约包括多个交易操作的触发条件、以及在所述交易合约的生命期限内由所述交易终端设备、所述支付终端设备、所述资源提供终端设备和所述资源请求终端设备执行的与所述交易合约对应的交易操作的操作指令,所述方法还包括:
    当所述交易合约由所述资源请求终端设备确认本次资源交易完成,或者所述支付终端设备确定所述交易合约达到交易确认截止时间时,所述支付终端设备查询所述交易合约中当前执行到的交易操作,并根据所述交易合约当前执行到的交易操作执行下一个满足所述交易合约中触发条件的交易操作。
  23. 根据权利要求22所述的方法,所述支付终端设备具备限制查看权限,所述限制查看权限是指所述支付终端设备仅具备查看所述交易合约中的交易披露信息的权限。
  24. 根据权利要求23所述的方法,所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名时,则确定所述交易合约为真实交易,包括:
    所述支付终端设备根据所述交易结算指令在所述区块链数据库查询到所述交易合约后,从所述交易合约中查询本次资源交易的所述交易披露信息;
    若所述支付终端设备根据所述交易披露信息确定本次资源交易由所述资源请求终端设备对所述交易合约进行签名,则确定所述交易合约为真实交易。
  25. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备以及至少一个资源请求终端设备,所述方法包括:
    当所述资源请求终端设备在所述交易终端设备上向所述资源提供终端设备请求资源后,所述交易终端设备在所述区块链数据库创建交易合约;
    所述交易终端设备将所述交易合约对应的交易结算指令发送给所述支付终端设备,以使所述支付终端设备根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求终端设备对本次资源交易的签名后,确定所述交易合约为真实交易,并向 所述资源请求终端设备发送交易支付请求。
  26. 根据权利要求25所述的方法,所述方法还包括:
    所述交易终端设备接收所述支付终端设备发送的指示所述交易合约支付成功的确认响应后,在所述区块链数据库创建分账结算合约,以供所述资源提供终端设备、所述资源请求终端设备、所述支付终端设备查询本次资源交易。
  27. 一种资源交易的方法,所述方法应用于区块链系统,所述区块链系统包括区块链数据库、交易终端设备、至少一个支付终端设备、至少一个资源提供终端设备、以及至少一个资源请求终端设备和监管终端设备,所述方法包括:
    所述监管终端设备获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易终端设备在所述资源请求终端设备向所述资源提供终端设备请求资源交易后创建;
    所述监管终端设备对所述交易合约列表中的至少一个交易合约进行交易分析;
    当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求终端设备进行交易确认时,所述监管终端设备确定所述目标交易合约为虚假交易。
  28. 根据权利要求27所述的方法,所述方法还包括:
    所述监管终端设备赋予所述支付终端设备限制查看权限,所述限制查看权限是指所述支付终端设备仅具备查看所述交易合约中的交易披露信息的权限。
  29. 一种支付节点,所述支付节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点,所述支付节点包括:
    收发模块,用于获取所述交易节点发送的交易结算指令,所述交易结算指令是指所述资源请求节点在所述交易节点上向所述资源提供节点请求目标资源后,由所述交易节点在所述区块链数据库创建所述目标资源的交易合约后生成的指令;
    处理模块,用于根据所述收发模块接收到的所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的所述交易合约,且所述交易合约内存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为真实交易;并通过所述收发模块向所述资源请求节点发送交易支付请求。
  30. 根据权利要求29所述的支付节点,所述处理模块还用于:
    根据所述交易结算指令从所述区块链数据库中未查询到与所述交易结算指令对应的交易合约时,或者从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内不存在所述资源请求节点对本次资源交易的签名时,则确定所述交易合约为虚假交易,并通过所述收发模块向所述交易节点发送交易支付拒绝响应。
  31. 根据权利要求29或30所述的支付节点,所述交易合约包括多个交易操作的触发条件、以及在所述交易合约的生命期限内由所述交易节点、所述支付节点、所述资源提供节点和所述资源请求节点执行的与所述交易合约对应的交易操作的操作指令,所述处理模块还用于:
    当所述交易合约由所述资源请求节点确认本次资源交易完成,或者所述支付节点确定所述交易合约达到交易确认截止时间时,查询所述交易合约中当前执行到的交易操作,并根据所述交易合约当前执行到的交易操作执行下一个满足所述交易合约中触发条件的交易操作。
  32. 根据权利要求31所述的支付节点,所述支付节点具备限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权限。
  33. 根据权利要求32所述的支付节点,所述处理模块用于:
    根据所述交易结算指令在所述区块链数据库查询到所述交易合约后,从所述交易合约中查询本次资源交易的所述交易披露信息;
    若根据所述交易披露信息确定本次资源交易由所述资源请求节点对所述交易合约进行签名,则确定所述交易合约为真实交易。
  34. 一种交易节点,所述交易节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、以及至少一个资源请求节点,所述交易节点包括:
    处理单元,用于当所述资源请求节点在所述交易节点上向所述资源提供节点请求资源后,在所述区块链数据库创建交易合约;
    收发单元,用于将所述交易合约对应的交易结算指令发送给所述支付节点,以使所述支付节点根据所述交易结算指令从所述区块链数据库查询到与所述交易结算指令对应的交易合约,且所述交易合约内存在所述资源请求节点对 本次资源交易的签名后,确定所述交易合约为真实交易,并向所述资源请求节点发送交易支付请求。
  35. 根据权利要求34所述的交易节点,所述处理单元还用于:
    通过所述收发单元接收所述支付节点发送的指示所述交易合约支付成功的确认响应后,在所述区块链数据库创建分账结算合约,以供所述资源提供节点、所述资源请求节点和所述支付节点查询本次资源交易。
  36. 一种监管节点,所述监管节点应用于区块链系统,所述区块链系统包括区块链数据库、交易节点、至少一个支付节点、至少一个资源提供节点、至少一个资源请求节点和监管节点,所述监管节点包括:
    收发子模块,用于获取查询指令,响应于所述查询指令,获取交易合约列表,所述交易合约列表由所述交易节点在所述资源请求节点向所述资源提供节点请求资源交易后创建;
    处理子模块,用于对所述交易合约列表中的至少一个交易合约进行交易分析;当确定所述交易列表中的目标交易合约达到交易确认截止时间后未被所述目标交易合约中的资源请求节点进行交易确认时,确定所述目标交易合约为虚假交易。
  37. 根据权利要求36所述的监管节点,所述处理子模块还用于:
    赋予所述支付节点限制查看权限,所述限制查看权限是指所述支付节点仅具备查看所述交易合约中的交易披露信息的权限。
  38. 一种区块链系统,所述区块链系统包括如权利要求29-33中的任一项所述的支付节点、以及如权利要求34或35所述的交易节点。
  39. 一种计算机可读存储介质,其特征在于,其包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-5中的任一项所述的方法,或者执行如权利要求6-10中的任一项所述的方法,或者执行如权利要求11或12所述的方法,或者执行如权利要求13或14所述的方法。
  40. 一种资源交易的装置,其包括至少一个连接的处理器、存储器和收发器,其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码来执行如权利要求1-5中的任一项所述的方法,或者执行如权利要求6-10中的任一项所述的方法,或者执行如权利要求11或12所述的方法,或者执行如权利要求13或14所述的方法,或者执行如权利要求15-19中的任 一项所述的方法,或者执行如权利要求20-24中的任一项所述的方法,或者执行如权利要求25或26所述的方法,或者执行如权利要求27或28所述的方法。
PCT/CN2017/102028 2017-09-18 2017-09-18 资源交易的方法、节点、装置及存储介质 WO2019051822A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201780055254.5A CN109690599B (zh) 2017-09-18 2017-09-18 资源交易的方法、节点、装置及存储介质
PCT/CN2017/102028 WO2019051822A1 (zh) 2017-09-18 2017-09-18 资源交易的方法、节点、装置及存储介质
CN201910833595.1A CN110866752B (zh) 2017-09-18 2017-09-18 资源交易的方法、节点、装置及存储介质
US16/601,453 US11488143B2 (en) 2017-09-18 2019-10-14 Resource transaction method, node, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/102028 WO2019051822A1 (zh) 2017-09-18 2017-09-18 资源交易的方法、节点、装置及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/601,453 Continuation US11488143B2 (en) 2017-09-18 2019-10-14 Resource transaction method, node, device and storage medium

Publications (1)

Publication Number Publication Date
WO2019051822A1 true WO2019051822A1 (zh) 2019-03-21

Family

ID=65722347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102028 WO2019051822A1 (zh) 2017-09-18 2017-09-18 资源交易的方法、节点、装置及存储介质

Country Status (3)

Country Link
US (1) US11488143B2 (zh)
CN (2) CN109690599B (zh)
WO (1) WO2019051822A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263092A (zh) * 2019-05-23 2019-09-20 阿里巴巴集团控股有限公司 基于区块链的租赁方法和装置
CN111198922A (zh) * 2020-01-02 2020-05-26 腾讯科技(深圳)有限公司 基于区块链的游戏资源管理方法及装置
WO2020220751A1 (zh) * 2019-04-28 2020-11-05 创新先进技术有限公司 消费合约处理方法及其系统
WO2020238250A1 (zh) * 2019-05-24 2020-12-03 创新先进技术有限公司 资金链信息追溯方法、系统、服务器和可读存储介质
US11120513B2 (en) 2019-05-24 2021-09-14 Advanced New Technologies Co., Ltd. Capital chain information traceability method, system, server and readable storage medium

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110210732A (zh) * 2019-05-20 2019-09-06 平安银行股份有限公司 资源转移方法、装置、计算机设备和存储介质
CN110221919B (zh) * 2019-05-31 2023-08-01 创新先进技术有限公司 基于区块链的虚拟资源分配方法和装置
CN110348836B (zh) * 2019-06-21 2023-07-21 中信百信银行股份有限公司 基于区块链的支付方法、装置及电子设备
CN110599201A (zh) * 2019-09-11 2019-12-20 腾讯科技(深圳)有限公司 信息处理方法、装置、区块链网络的节点设备及存储介质
CN110599146B (zh) * 2019-09-16 2023-12-19 腾讯科技(深圳)有限公司 数据处理方法、装置、终端、节点设备及存储介质
US11842346B2 (en) * 2019-09-26 2023-12-12 Discover Financial Services Payments federated directory
US12002043B2 (en) * 2019-10-02 2024-06-04 Telefonaktiebolaget Lm Ericsson (Publ) Method for enabling efficient evaluation of transactions in a distributed ledger network
CN110580417B (zh) * 2019-11-08 2020-04-07 支付宝(杭州)信息技术有限公司 基于智能合约的隐私数据查询方法及装置
JP7102459B2 (ja) 2020-02-28 2022-07-19 株式会社リコー 提供者端末、ネットワークシステム、サービス提供方法およびプログラム
CN111507699A (zh) * 2020-04-03 2020-08-07 浙江省新华书店集团信息技术有限公司 一种供货商平台付款系统
CN111461839B (zh) * 2020-04-05 2021-03-26 来值购电子商务有限公司 基于区块链和5g的电商大数据智能处理传输平台及方法
CN111681109A (zh) * 2020-05-27 2020-09-18 山东星云环境科技有限公司 一种基于区块链技术的资源指标交易方法
CN112232795B (zh) * 2020-05-29 2022-07-08 支付宝(杭州)信息技术有限公司 交易处理方法、装置、设备及系统
CN111695857A (zh) * 2020-06-09 2020-09-22 南京云链智运科技有限公司 一种去中心化可信物流交易系统及其构建方法
CN111815444B (zh) * 2020-06-23 2023-09-01 深圳市先河系统技术有限公司 区块链的交易方法、电子设备和存储介质
CN111784510B (zh) * 2020-07-07 2021-03-19 北京开科唯识技术股份有限公司 一种对账方法及装置
CN112037068B (zh) * 2020-09-17 2024-04-23 广州运通链达金服科技有限公司 资源转移方法、系统、装置、计算机设备和存储介质
CN112184429A (zh) * 2020-11-06 2021-01-05 上海优扬新媒信息技术有限公司 用户信息的处理方法以及区块链节点
CN112508567A (zh) * 2020-12-10 2021-03-16 上海玳鸽信息技术有限公司 基于区块链的清洁能源系统以及交易方法
CN112633865B (zh) * 2020-12-28 2024-09-20 杭州趣链科技有限公司 一种跨机构数字货币账户零余额交易方法、系统与装置
CN114154980B (zh) * 2021-07-15 2023-05-12 北京天德科技有限公司 一种基于智能合约的多方竞合数字资产交易系统及方法
CN113792070A (zh) * 2021-08-04 2021-12-14 北京优炫软件股份有限公司 一种具有较高分析效率的fmea数据库访问方法
CN113743936B (zh) * 2021-08-26 2023-12-15 泰康保险集团股份有限公司 分组结算方法、装置、设备及存储介质
CN114567366B (zh) * 2022-02-17 2024-02-23 北京电信规划设计院有限公司 基于区块链的车载卫星通信资源共享方法
CN117556471B (zh) * 2024-01-12 2024-05-03 广东通莞科技股份有限公司 基于区块链的结算数据处理方法及系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488665A (zh) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 一种去中心化的交易方法
CN105976232A (zh) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 资产交易方法和装置
US20160358161A1 (en) * 2015-06-05 2016-12-08 Peertracks Inc. Systems and methods for an online music marketplace
CN106357644A (zh) * 2016-09-21 2017-01-25 江苏通付盾科技有限公司 基于区块链网络的身份认证方法、系统及服务器
CN106529946A (zh) * 2016-11-01 2017-03-22 北京金股链科技有限公司 基于区块链实现用户身份数字化的方法
CN106971302A (zh) * 2017-04-17 2017-07-21 北京工商大学 一种基于区块链技术的三维模型确权与交易方法
CN107038578A (zh) * 2017-04-19 2017-08-11 浙江数秦科技有限公司 基于区块链的数据交易平台中多重签名交易信息处理方法

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7676406B2 (en) * 2003-01-24 2010-03-09 Kinnear Kirk P Method and system for consolidating commodity futures contracts having guaranteed physical delivery
EP1522937A1 (en) * 2003-10-09 2005-04-13 Deutsche Börse Ag Apparatus, method and computer-program product for the clearing of transactions stemming from exchanges
CN103208151B (zh) 2013-04-03 2016-08-03 天地融科技股份有限公司 处理操作请求的方法及系统
US11164164B2 (en) * 2014-05-15 2021-11-02 Uphold Global Foundation System and method for converting cryptocurrency to virtual assets whose value is substantiated by a reserve of assets
CN107408253B (zh) * 2015-01-19 2021-08-06 加拿大皇家银行 电子支付的安全处理
US9870562B2 (en) * 2015-05-21 2018-01-16 Mastercard International Incorporated Method and system for integration of market exchange and issuer processing for blockchain-based transactions
CN105681301B (zh) * 2016-01-16 2019-03-12 杭州复杂美科技有限公司 区块链上的结算方法
CN106228446B (zh) * 2016-05-12 2019-09-13 北京众享比特科技有限公司 基于私有区块链的资产交易平台系统及方法
CN106326771A (zh) * 2016-08-25 2017-01-11 联动优势科技有限公司 一种保存方法和清算系统
CN106548330B (zh) * 2016-10-27 2018-03-16 上海亿账通区块链科技有限公司 基于区块链的交易验证方法及系统
US11468439B2 (en) * 2017-01-12 2022-10-11 American Express Travel Related Services Company, Inc. Systems and methods for blockchain based proof of payment
CN106845960B (zh) * 2017-01-24 2018-03-20 上海壹账通区块链科技有限公司 基于区块链的安全交易方法及系统
CN106940866A (zh) * 2017-02-22 2017-07-11 深圳市喜悦智慧实验室有限公司 一种基于多账户管理的资产管理系统
US11651358B2 (en) * 2017-07-25 2023-05-16 Mastercard International Incorporated Method and system for transaction processing with complete cryptographic auditability

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160358161A1 (en) * 2015-06-05 2016-12-08 Peertracks Inc. Systems and methods for an online music marketplace
CN105488665A (zh) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 一种去中心化的交易方法
CN105976232A (zh) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 资产交易方法和装置
CN106357644A (zh) * 2016-09-21 2017-01-25 江苏通付盾科技有限公司 基于区块链网络的身份认证方法、系统及服务器
CN106529946A (zh) * 2016-11-01 2017-03-22 北京金股链科技有限公司 基于区块链实现用户身份数字化的方法
CN106971302A (zh) * 2017-04-17 2017-07-21 北京工商大学 一种基于区块链技术的三维模型确权与交易方法
CN107038578A (zh) * 2017-04-19 2017-08-11 浙江数秦科技有限公司 基于区块链的数据交易平台中多重签名交易信息处理方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020220751A1 (zh) * 2019-04-28 2020-11-05 创新先进技术有限公司 消费合约处理方法及其系统
CN110263092A (zh) * 2019-05-23 2019-09-20 阿里巴巴集团控股有限公司 基于区块链的租赁方法和装置
WO2020238250A1 (zh) * 2019-05-24 2020-12-03 创新先进技术有限公司 资金链信息追溯方法、系统、服务器和可读存储介质
US11120513B2 (en) 2019-05-24 2021-09-14 Advanced New Technologies Co., Ltd. Capital chain information traceability method, system, server and readable storage medium
CN111198922A (zh) * 2020-01-02 2020-05-26 腾讯科技(深圳)有限公司 基于区块链的游戏资源管理方法及装置
CN111198922B (zh) * 2020-01-02 2023-04-18 腾讯科技(深圳)有限公司 基于区块链的游戏资源管理方法及装置

Also Published As

Publication number Publication date
CN110866752A (zh) 2020-03-06
CN110866752B (zh) 2023-04-14
US20200042992A1 (en) 2020-02-06
CN109690599B (zh) 2020-06-05
US11488143B2 (en) 2022-11-01
CN109690599A (zh) 2019-04-26

Similar Documents

Publication Publication Date Title
US11488143B2 (en) Resource transaction method, node, device and storage medium
US20210174314A1 (en) Seller transaction management system and method generating a universal digital receipt that is independent of the seller and payment means and non-identifiable buyer
US10915906B2 (en) System and method for facilitating secure self payment transactions of retail goods
CN111373429B (zh) 使用数字令牌和安全账本数据库的安全离线交易系统
TWI530893B (zh) 使用於通訊群組的線上支付方法、支付系統及伺服器系統
KR102639135B1 (ko) 암호화방식으로 싸인된 레코드들의 안전한 교환
CN112119416B (zh) 提供访问信息的方法、系统和计算机可读介质
US20130036000A1 (en) Financial transaction system and method
US20210049579A1 (en) Multi-factor identity authentication
US20130036051A1 (en) Non-near field communication point of sale experience
US20160042351A1 (en) Merchant item and service return processing using wireless beacons
US20180053162A1 (en) On-line payment system
KR102282345B1 (ko) 간소화되고 주도적인 구조를 가진 결제 트랜잭션 처리
JP6446499B2 (ja) 決済を処理する方法およびシステム
US11783330B2 (en) System and method for processing secure transactions using account-transferable transaction cards
KR102664346B1 (ko) 블록체인 메인넷 토큰 운영 플랫폼 서비스 제공 장치 및 방법
KR102383017B1 (ko) 블록체인 기반의 모바일 무기명 비화폐 결제를 위한 방법 및 시스템
KR20170050590A (ko) 오프라인 대리결제 처리 시스템, 사전 승인조건을 이용한 오프라인 대리결제 처리 방법 및 이를 이용한 장치
KR20230033617A (ko) 온라인 임대차 조사 시스템 및 방법
KR20160128979A (ko) 컴퓨터 실행 가능한 판매자 및 구매자의 상호 협력형 결제 방법, 이를 수행하는 결제 서버 및 이를 저장하는 기록매체

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

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

Country of ref document: EP

Kind code of ref document: A1