CN106504094B - Transaction matching method and system of distributed general ledger system based on block chain technology - Google Patents

Transaction matching method and system of distributed general ledger system based on block chain technology Download PDF

Info

Publication number
CN106504094B
CN106504094B CN201611055621.5A CN201611055621A CN106504094B CN 106504094 B CN106504094 B CN 106504094B CN 201611055621 A CN201611055621 A CN 201611055621A CN 106504094 B CN106504094 B CN 106504094B
Authority
CN
China
Prior art keywords
information
ownership transfer
transaction
seller
ledger system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611055621.5A
Other languages
Chinese (zh)
Other versions
CN106504094A (en
Inventor
商建祥
王继武
张国华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201611055621.5A priority Critical patent/CN106504094B/en
Publication of CN106504094A publication Critical patent/CN106504094A/en
Application granted granted Critical
Publication of CN106504094B publication Critical patent/CN106504094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention provides a transaction matching method and system of a distributed general ledger system based on a block chain technology, and relates to the technical field of transaction matching. The method comprises the following steps: the distributed general ledger system receives transaction request information input at a seller terminal; verifying the transaction request information, and outputting the asset information to be transacted and the first ownership transfer condition information after the transaction request information is legal; the distributed general ledger system receives transaction accepting information input at the buyer terminal; judging whether the second ownership transfer certification information meets the first ownership transfer condition or not, and judging whether the third ownership transfer certification information is legal or not; and when the second ownership transfer certification information meets the first ownership transfer condition and the third ownership transfer certification information is legal, outputting the asset information used for transaction by the buyer and the second ownership transfer condition known by the corresponding seller, and outputting the asset information to be transacted and the third ownership transfer condition known by the corresponding buyer.

Description

Transaction matching method and system of distributed general ledger system based on block chain technology
Technical Field
The invention relates to the technical field of transaction matching, in particular to a transaction matching method and a transaction matching system of a distributed general ledger system based on a block chain technology.
Background
Currently, with the development of information technology, the trend of digitalization of assets has become more and more common. Under the current trend of asset digitization, a variety of digital assets, including digital currency, digital tickets, digital equity, digital property rights, etc., are available for trading. For example, people go to stock exchanges to buy and sell digital stock rights, go to banks to buy and sell digital currency, and the like, and the buying and selling behavior is called transaction matching.
At present, the transaction matching mode in the prior art mainly depends on the centralized matching transaction with the exchange, the digital assets and the digital currency are hosted in the exchange, and the exchange has complete control right on the digital assets and the digital currency. This approach has the disadvantage that matching transactions for digital assets may be very insecure if the exchange is attacked or the operator of the exchange is fraudulent. In addition, a distributed general ledger transaction system is adopted for asset transaction matching currently, but a third party is required to intervene in the process, and the third party plays roles of transaction quotation, quotation display, transaction matching, asset hosting and fund hosting in the transaction process. This approach still has the drawback of relying on third parties and the funds cannot be cleared in real time. Relying on third parties not only increases the cost and risk to the transaction, but also makes many business scenarios prohibitive in terms of promotion due to the difficulty of obtaining them from trusted third parties.
Disclosure of Invention
The embodiment of the invention provides a transaction matching method and a transaction matching system of a distributed general ledger system based on a block chain technology, which aim to solve the problem that the transaction matching mode in the prior art generally needs to rely on a third party such as an exchange to control digital assets, digital money and the like, so that the transaction matching process is unsafe.
In order to achieve the purpose, the invention adopts the following technical scheme:
a transaction matching method of a distributed general ledger system based on a block chain technology is applied to the transaction matching system, the transaction matching system comprises a seller terminal, a buyer terminal and the distributed general ledger system, and the distributed general ledger system comprises a plurality of working nodes in different organization ranges; the seller terminal and the buyer terminal are respectively in communication connection with the plurality of working nodes;
the method comprises the following steps:
the distributed general ledger system receives transaction request information input at a seller terminal; the transaction request information comprises first input reference information and first ownership transfer certification information; the first input reference information comprises seller transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system verifies the transaction request information according to the first input citation information and the first ownership transfer certification information, and outputs asset information to be transacted and first ownership transfer condition information after determining that the transaction is legal; recording the transaction request information, the asset information to be transacted and the first ownership transfer condition information in a background database of the distributed general ledger system;
each working node inquires the transaction request information in the background database and displays the asset information to be transacted and the first ownership transfer condition information;
the distributed general ledger system receives transaction accepting information input at the buyer terminal; the transaction accepting information comprises second input reference information, second ownership transfer certification information, third input reference information and third ownership transfer certification information; the second input reference information comprises asset information to be traded and first ownership transfer condition information; the third input reference information comprises buyer transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system judges whether the second ownership transfer certification information meets a first ownership transfer condition or not and judges whether the third ownership transfer certification information is legal or not;
and when the second ownership transfer certification information meets the first ownership transfer condition and the third ownership transfer certification information is legal, the distributed general ledger system outputs the asset information used for transaction by the buyer and the second ownership transfer condition known by the corresponding seller, and outputs the asset information to be transacted and the third ownership transfer condition known by the corresponding buyer.
Specifically, the seller transaction output content recorded in the distributed general ledger system includes a seller owned asset corresponding to the asset to be transacted and an ownership transfer condition of the seller owned asset;
after the distributed general ledger system receives the transaction request information input at the seller terminal, the method comprises the following steps:
the distributed general ledger system judges whether the recorded seller transaction output content is not input and referenced in other transactions;
if the recorded seller transaction output content is not input and referred in other transactions, the distributed general ledger system runs an unlocking script of first ownership transfer certification information; the first ownership transfer certification information comprises a private key signature matched with a public key of a seller;
after the unlocking script of the first ownership transfer certification information is operated successfully, the distributed general ledger system operates the locking script of the ownership transfer condition of the asset owned by the seller; the ownership transfer condition of the asset owned by the seller is to provide a private key signature matched with a public key of the seller;
and if the locking script of the ownership transfer condition of the asset owned by the seller runs successfully, the distributed general ledger system determines that the input of the current transaction of the seller terminal can refer to the recorded seller transaction output content.
Specifically, the buyer transaction output content recorded in the distributed general ledger system includes a buyer owned asset corresponding to the asset used by the buyer for transaction, and ownership transfer conditions of the buyer owned asset;
after the distributed general ledger system receives the acceptance transaction information input at the buyer terminal, the method comprises the following steps:
the distributed general ledger system judges whether the recorded buyer transaction output content is not input and referenced in other transactions;
if the recorded buyer transaction output content is not input and quoted in other transactions, the distributed general ledger system runs an unlocking script of third ownership transfer certification information; the third ownership transfer certification information includes a private key signature matching a public key of the buyer;
after the unlocking script of the third ownership transfer certification information is operated successfully, the distributed general ledger system operates the locking script of the ownership transfer condition of the property owned by the buyer; the ownership transfer condition of the property owned by the buyer is to provide a private key signature matched with the public key of the buyer;
and if the locking script of the ownership transfer condition of the owned asset of the buyer is successfully operated, the distributed general ledger system determines that the input of the current transaction of the buyer terminal can refer to the recorded buyer transaction output content.
Specifically, the step of verifying the transaction request information by the distributed general ledger system according to the first input citation information and the first ownership transfer certification information, and outputting the asset information to be transacted and the first ownership transfer condition information after determining that the transaction is legal includes:
the distributed general ledger system determines whether the seller transaction output content recorded in the distributed general ledger system contains asset information to be transacted, and determines whether a seller terminal inputs a private key signature matched with a public key of a seller;
if the asset information to be transacted exists in the seller transaction output content recorded in the distributed general ledger system and a private key signature matched with a public key of a seller is input by a seller terminal, the distributed general ledger system determines that the transaction is legal;
the first ownership transfer condition information is that an output value for transferring ownership of the asset to be traded is predetermined content, or a private key signature matched with a public key of a seller is provided.
Further, the transaction matching method of the distributed general ledger system based on the blockchain technology further comprises the following steps:
the distributed general ledger system receives transaction revocation request information input at a seller terminal; the transaction revocation request message comprises fourth input reference information and fourth ownership transfer certification information; the fourth input reference information comprises the asset to be traded information and the first ownership transfer condition information; the fourth ownership transfer certification information comprises a private key signature matched with a public key of a seller;
the distributed general ledger system verifies the transaction revocation request information according to the fourth input citation information and the fourth ownership transfer certification information, and outputs to-be-transacted asset information and fourth ownership transfer condition information after determining that the transaction revocation request is legal; the fourth ownership transfer condition information includes providing a private key signature that matches a public key of the seller.
Further, after the distributed general ledger system receives the transaction accepting information input at the buyer terminal, the method further comprises the following steps:
the distributed general ledger system judges whether the second input citation information is input and quoted in other transactions;
and if the second input reference information is input and referenced in other transactions, the distributed general ledger system sends a rejection message to the buyer terminal.
Specifically, the determining, by the distributed general ledger system, whether the second ownership transfer certification information meets a first ownership transfer condition, and determining whether the third ownership transfer certification information is legal includes:
the distributed general ledger system judges whether the second ownership transfer certification information contains an output value of ownership of the transfer to-be-traded asset with predetermined content;
the distributed general ledger system judges whether the private key signature matched with the public key of the buyer is legal or not.
Specifically, the second ownership transfer condition is to provide a private key signature matching a public key of the seller; the third ownership transfer condition is to provide a private key signature matching the public key of the buyer.
A transaction matching system comprises a seller terminal, a buyer terminal and a distributed general ledger system based on a block chain technology, wherein the distributed general ledger system comprises a plurality of working nodes in different organization ranges; the seller terminal and the buyer terminal are respectively in communication connection with the plurality of working nodes;
the distributed general ledger system is used for receiving transaction request information input at the seller terminal; the transaction request information comprises first input reference information and first ownership transfer certification information; the first input reference information comprises seller transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system is also used for verifying the transaction request information according to the first input citation information and the first ownership transfer certification information, and outputting asset information to be transacted and first ownership transfer condition information after determining that the transaction is legal; recording the transaction request information, the asset information to be transacted and the first ownership transfer condition information in a background database of the distributed general ledger system;
each working node is used for inquiring the transaction request information in the background database and displaying the asset information to be transacted and the first ownership transfer condition information;
the distributed general ledger system is also used for receiving transaction accepting information input at the buyer terminal; the transaction accepting information comprises second input reference information, second ownership transfer certification information, third input reference information and third ownership transfer certification information; the second input reference information comprises asset information to be traded and first ownership transfer condition information; the third input reference information comprises buyer transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system is also used for judging whether the second ownership transfer certification information meets a first ownership transfer condition and judging whether the third ownership transfer certification information is legal;
the distributed general ledger system is also used for outputting the asset information used for transaction by the buyer and the second ownership transfer condition known by the corresponding seller when the second ownership transfer certification information meets the first ownership transfer condition and the third ownership transfer certification information is legal, and outputting the asset information to be transacted and the third ownership transfer condition known by the corresponding buyer.
Specifically, the seller transaction output content recorded in the distributed general ledger system includes a seller owned asset corresponding to the asset to be transacted and an ownership transfer condition of the seller owned asset;
the distributed general ledger system is also used for judging whether the recorded seller transaction output content is not input and referenced in other transactions;
if the recorded seller transaction output content is not input and referred in other transactions, the distributed general ledger system is also used for running an unlocking script of the first ownership transfer certification information; the first ownership transfer certification information comprises a private key signature matched with a public key of a seller;
after the unlocking script of the first ownership transfer certification information is successfully operated, the distributed general ledger system is also used for operating a locking script of an ownership transfer condition of the asset owned by the seller; the ownership transfer condition of the asset owned by the seller is to provide a private key signature matched with a public key of the seller;
if the locking script of the ownership transfer condition of the asset owned by the seller runs successfully, the distributed general ledger system is further used for determining that the input of the current transaction of the seller terminal can refer to the recorded seller transaction output content.
Specifically, the buyer transaction output content recorded in the distributed general ledger system includes a buyer owned asset corresponding to the asset used by the buyer for transaction, and ownership transfer conditions of the buyer owned asset;
the distributed general ledger system is also used for judging whether the recorded buyer transaction output content is not input and referenced in other transactions;
if the recorded buyer transaction output content is not input and quoted in other transactions, the distributed general ledger system is also used for running an unlocking script of third ownership transfer certification information; the third ownership transfer certification information includes a private key signature matching a public key of the buyer;
after the unlocking script of the third ownership transfer certification information is operated successfully, the distributed general ledger system is also used for operating the locking script of the ownership transfer condition of the property owned by the buyer; the ownership transfer condition of the property owned by the buyer is to provide a private key signature matched with the public key of the buyer;
if the locking script of the ownership transfer condition of the owned asset of the buyer is successfully operated, the distributed general ledger system is further used for determining that the input of the current transaction of the buyer terminal can refer to the recorded buyer transaction output content.
In addition, the distributed general ledger system is specifically configured to:
determining whether the recorded seller transaction output contents in the distributed general ledger system have asset information to be transacted or not, and determining whether a seller terminal inputs a private key signature matched with a public key of a seller or not;
if the asset information to be transacted exists in the seller transaction output content recorded in the distributed general ledger system and a private key signature matched with a public key of a seller is input by a seller terminal, determining that the transaction is legal;
the first ownership transfer condition information is that an output value for transferring ownership of the asset to be traded is predetermined content, or a private key signature matched with a public key of a seller is provided.
In addition, the distributed general ledger system is further configured to:
receiving transaction revocation request information input at a seller terminal; the transaction revocation request message comprises fourth input reference information and fourth ownership transfer certification information; the fourth input reference information comprises the asset to be traded information and the first ownership transfer condition information; the fourth ownership transfer certification information comprises a private key signature matched with a public key of a seller;
verifying the transaction revocation request information according to the fourth input reference information and the fourth ownership transfer certification information, and outputting asset information to be transacted and fourth ownership transfer condition information after determining that the transaction revocation request is legal; the fourth ownership transfer condition information includes providing a private key signature that matches a public key of the seller.
In addition, the distributed general ledger system is further configured to:
judging whether the second input reference information is input to be referred in other transactions;
and if the second input reference information is input and referred in other transactions, sending a rejection message to the buyer terminal.
In addition, the distributed general ledger system is specifically configured to:
judging whether the second ownership transfer certification information contains an output value of ownership of the transfer to-be-traded asset with predetermined content;
and judging whether the private key signature matched with the public key of the buyer is legal or not.
Specifically, the second ownership transfer condition is to provide a private key signature matching a public key of the seller; the third ownership transfer condition is to provide a private key signature matching the public key of the buyer.
The transaction matching method and the transaction matching system of the distributed general ledger system based on the block chain technology can realize transaction matching in the distributed general ledger system, realize functions of transaction quotation, quotation display, transaction matching transaction and the like under the condition of completely separating from a third-party platform, and synchronously transfer the assets to be traded of a seller and the assets ownership of a buyer for trading in the transaction matching transaction. As a third party is not required to be introduced to carry out quotation display, fund escrow, asset escrow, guarantee, transaction authorization or signature in the whole transaction process, the cost of the third party for the fee transaction can be greatly saved. In addition, due to the fact that synchronous transfer of property ownership can be achieved in the matching process, namely 'money is delivered with one hand and delivery is delivered with one hand', credit risks do not exist in the transaction process, and meanwhile, the credit risks of a third party can be avoided by separating from a third-party platform.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart of a transaction matching method of a distributed general ledger system based on a block chain technology according to an embodiment of the present invention;
FIG. 2 is a diagram of a transaction matching system according to an embodiment of the present invention;
fig. 3 is a flowchart of a second transaction matching method of a distributed general ledger system based on a blockchain technique according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a transaction matching method of a distributed general ledger system based on a blockchain technology, which is applied to a transaction matching system 20 shown in fig. 2, where the transaction matching system 20 includes a seller terminal 201, a buyer terminal 202, and the distributed general ledger system 203 includes a plurality of work nodes 204 in different organizational scopes; the seller terminal 201 and the buyer terminal 202 are respectively connected with the plurality of working nodes 204 in a communication way. The plurality of action nodes in different organizations can be servers of different banks, servers of different exchanges, and the like, because the plurality of working nodes are in different organizations and cannot be controlled by the same organization (such as one exchange) to digital assets, digital currencies, and the like of sellers and buyers, thereby increasing the security of transaction matching.
The method shown in fig. 1 comprises:
step 101, the distributed general ledger system receives transaction request information input at a seller terminal.
Wherein the transaction request information includes first input reference information and first ownership transfer attestation information; the first input reference information includes seller transaction output content that has been recorded in the distributed ledger system.
102, the distributed general ledger system verifies the transaction request information according to the first input citation information and the first ownership transfer certification information, and outputs to-be-transacted asset information and first ownership transfer condition information after determining that the transaction is legal; and recording the transaction request information, the asset information to be transacted and the first ownership transfer condition information in a background database of the distributed general ledger system.
103, inquiring the transaction request information in the background database by each working node, and displaying the asset information to be transacted and the first ownership transfer condition information.
In step 104, the distributed ledger system receives the transaction acceptance information input at the buyer terminal.
Wherein the transaction accepting information comprises second input reference information, second ownership transfer certification information, third input reference information and third ownership transfer certification information; the second input reference information comprises asset information to be traded and first ownership transfer condition information; the third input reference information includes buyer transaction output content that has been recorded in the distributed ledger system.
And 105, the distributed general ledger system judges whether the second ownership transfer certification information meets the first ownership transfer condition and judges whether the third ownership transfer certification information is legal.
And 106, when the second ownership transfer certification information meets the first ownership transfer condition and the third ownership transfer certification information is legal, the distributed general ledger system outputs the asset information used for transaction by the buyer and the second ownership transfer condition known by the corresponding seller, and outputs the asset information to be transacted and the third ownership transfer condition known by the corresponding buyer.
In this way, the seller can obtain the asset information of the buyer for transaction through the second ownership transfer condition known by the seller. Meanwhile, the buyer can obtain the information of the to-be-traded assets of the seller through the known third ownership transfer condition.
The transaction matching method of the distributed general ledger system based on the block chain technology can realize transaction matching in the distributed general ledger system, and under the condition of completely separating from a third-party platform, the functions of transaction quotation, quotation display, transaction matching transaction and the like are realized, and the assets to be traded of a seller and the assets used for trading of a buyer can be synchronously handed over during the transaction matching transaction. As a third party is not required to be introduced to carry out quotation display, fund escrow, asset escrow, guarantee, transaction authorization or signature in the whole transaction process, the cost of the third party for the fee transaction can be greatly saved. In addition, due to the fact that synchronous transfer of property ownership can be achieved in the matching process, namely 'money is delivered with one hand and delivery is delivered with one hand', credit risks do not exist in the transaction process, and meanwhile, the credit risks of a third party can be avoided by separating from a third-party platform.
In order to make those skilled in the art better understand the present invention, the following further describes the present invention with reference to specific examples, and as shown in fig. 3, an embodiment of the present invention provides a transaction matching method of a distributed ledger system based on blockchain technology, including:
step 301, the distributed ledger system receives transaction request information input at the seller terminal.
Wherein the transaction request information includes first input reference information and first ownership transfer attestation information; the first input reference information includes seller transaction output content that has been recorded in the distributed ledger system. Here, the seller transaction output contents that have been recorded in the distributed general ledger system include a seller-owned asset corresponding to the asset to be transacted, and ownership transfer conditions of the seller-owned asset.
The seller transaction output content that has been recorded in the distributed ledger system can be from a transaction X that has been conducted in the distributed ledger system. The output of this transaction X is: the method comprises the steps that a seller corresponding to an asset to be traded owns the asset, and ownership transfer conditions of the asset owned by the seller are met.
For example, a seller already has assets of: a digital asset a. And the ownership transfer condition for the asset that the seller already owns may be providing a private key signature that matches the public key of the seller (referred to herein as seller a). The locking script of the ownership transfer condition that the seller already owns the asset is: DUP HASH160< pubkhush _ A > EQUALVERIFY CHECKSK IG.
The first input reference information references the output of transaction X.
Step 302, the distributed ledger system determines whether the seller transaction output content that has been recorded is not referenced by input in other transactions.
And step 303, if the recorded seller transaction output content is not input and referred in other transactions, the distributed general ledger system runs an unlocking script of the first ownership transfer certification information.
Wherein the first ownership transfer attestation information includes a private key signature that matches a public key of a seller. For example, the unlocking script corresponding to the first ownership transfer certification information may be: < sig _ a > < pubk _ a >.
And step 304, after the unlocking script of the first ownership transfer certification information is successfully operated, the distributed general ledger system operates the locking script of the ownership transfer condition of the asset owned by the seller.
Wherein the ownership transfer condition that the seller has possession of the asset is to provide a private key signature matching a public key of the seller.
And 305, if the locking script of the ownership transfer condition of the asset owned by the seller runs successfully, the distributed general ledger system determines that the input of the current transaction of the seller terminal can refer to the recorded transaction output content of the seller.
Step 306, the distributed general ledger system determines whether the seller transaction output content recorded in the distributed general ledger system has the asset information to be transacted, and determines whether the seller terminal inputs the private key signature matched with the public key of the seller.
And 307, if the asset information to be transacted exists in the seller transaction output content recorded in the distributed general ledger system and the seller terminal inputs a private key signature matched with the public key of the seller, determining that the transaction is legal by the distributed general ledger system.
308, the distributed general ledger system outputs the information of the assets to be traded and the information of the first ownership transfer condition; and recording the transaction request information, the asset information to be transacted and the first ownership transfer condition information in a background database of the distributed general ledger system.
For example, the to-be-traded asset information may be digital asset a;
here, the first ownership transfer condition information is to transfer an output value of ownership of the asset to be traded to predetermined content or to provide a private key signature matching a public key of the seller. For example, the predetermined content may be a preset value, such as < Txout1 >; and the locking script corresponding to the private key signature matching the public key of the seller may be: OUT1< Txout1> EQUAL IF ELSE DUP HASH160< pubkhash _ A > EQUALVERIFY CHECKSIG ENDIF.
The value of the output in the transaction of accepting quotation initiated by the buyer (counterparty) is the value, the content of the output in the transaction initiated by the buyer is the price of the transaction, namely the digital currency b must be synchronously transferred to the name of the seller A.
Alternatively, the operation code OUT1 is not limited to taking the output 1 of the usage transaction, and the operation codes OUT2, OUT3 … … may be defined to take the output 2, output 3 … … of the usage transaction. That is, for one transaction input, multiple transaction outputs may be corresponded.
The first ownership transfer condition information here is to transfer an output value of ownership of the asset to be transacted to predetermined content, or to provide a private key signature matching the public key of the seller, and this is set to achieve the purpose of obtaining ownership of the asset to be transacted when the transaction output value of the buyer B satisfies the predetermined content, or to achieve the purpose of completing the revocation of the transaction by providing the private key signature matching the public key of the seller a by the seller a.
Step 309, each working node queries the transaction request information in the background database, and displays the asset information to be transacted and the first ownership transfer condition information.
After step 309, either step 310 or step 312 may be performed.
In step 310, the distributed ledger system receives transaction cancellation request information input at the seller terminal.
Wherein the transaction revocation request message includes fourth input reference information and fourth ownership transfer attestation information; the fourth input reference information comprises the asset to be traded information and the first ownership transfer condition information; the fourth ownership transfer certification information includes a private key signature that matches a public key of the seller.
Here, the fourth input reference information may be an output in step 308. And the unlocking script corresponding to the fourth ownership transfer certification information may be < sig _ a > < pubk _ a >.
And 311, the distributed general ledger system verifies the transaction revocation request information according to the fourth input citation information and the fourth ownership transfer certification information, and outputs the asset information to be transacted and the fourth ownership transfer condition information after determining that the transaction revocation request is legal.
The information of the assets to be traded can be digital assets a; and the fourth ownership transfer condition information may be a private key signature providing a match with the public key of the seller, and the corresponding locking script is: DUP HASH160< pubkhush _ A > EQUALVERIFY CHECKSK IG.
After step 311, step 312 may also be performed.
The distributed ledger system receives the accepted transaction information entered at the buyer terminal, step 312.
Wherein the transaction accepting information comprises second input reference information, second ownership transfer certification information, third input reference information and third ownership transfer certification information; the second input reference information comprises asset information to be traded and first ownership transfer condition information; the third input reference information includes buyer transaction output content that has been recorded in the distributed ledger system. The buyer transaction output content recorded in the distributed general ledger system comprises a buyer owned asset corresponding to the asset used by the buyer for transaction and ownership transfer conditions of the buyer owned asset.
The output content of the buyer transaction recorded in the distributed general ledger system can be from transaction Y already performed in the distributed general ledger system, and the output of the transaction Y is: the property owned by a buyer and the ownership transfer condition of the property owned by the buyer.
For example, the buyer's owned asset may be digital currency b; the ownership transfer condition for the property that the buyer already owns may be providing a private key signature that matches the public key of the buyer (referred to herein as buyer B). The locking script of the ownership transfer condition of the property owned by the buyer is as follows: DUP HASH160< pubkhush _ B > EQUALVERIFY CHECKSK IG.
Step 313, the distributed ledger system determines whether the second input reference information is referenced by input in another transaction.
For example, the second input reference information may be input-referenced in other transactions (corresponding to other buyers having accepted the transaction of seller a), or be revoked by seller a itself (see steps 310 to 311 above).
And step 314, if the second input reference information is input and referred in other transactions, the distributed general ledger system sends a rejection message to the buyer terminal.
And 315, if the second input reference information is not input and referenced in other transactions, the distributed general ledger system judges whether the recorded buyer transaction output content is not input and referenced in other transactions.
And step 316, if the recorded buyer transaction output content is not input and referred in other transactions, the distributed general ledger system runs an unlocking script of third ownership transfer certification information.
Wherein the third ownership transfer certification information includes a private key signature matching a public key of the buyer; its unlock script may be < sig _ B > < pubk _ B >.
And 317, after the unlocking script of the third ownership transfer certification information is successfully operated, the distributed general ledger system operates the locking script of the ownership transfer condition of the property owned by the buyer.
Wherein the ownership transfer condition that the buyer has possession of the asset is to provide a private key signature matching the buyer's public key. Its locking script is DUP HASH160< pubkhush _ B > EQUALVERIFY CHECKSK IG.
And step 318, if the locking script of the ownership transfer condition of the asset owned by the buyer runs successfully, the distributed general ledger system determines that the input of the current transaction of the buyer terminal can refer to the recorded buyer transaction output content.
Step 319, the distributed ledger system determines whether the second ownership transfer certification information contains an output value of ownership of the transferred asset to be traded with predetermined content, and determines whether a private key signature matched with the public key of the buyer is legal.
Here, in the second ownership transfer certification information in step 319, if the preset value < Txout1> in step 308 is included, and the unlocking script of the second ownership transfer certification is < TRUE >, and the private key signature matched with the public key of the buyer is legal, the transaction matching can be completed.
And step 320, when the second ownership transfer certification information contains the output value of the ownership of the transferred to-be-traded asset with the preset content and the signature of the private key matched with the public key of the buyer is legal, the distributed general ledger system outputs the asset information used for trading by the buyer and the corresponding second ownership transfer condition known by the seller, and outputs the information of the to-be-traded asset and the corresponding third ownership transfer condition known by the buyer.
Specifically, the second ownership transfer condition is to provide a private key signature matching the public key of the seller, for example, the locking script is DUP HASH160< pubkhush _ a > equal value check ksig; the third ownership transfer condition is to provide a private key signature matching the buyer's public key, for example, its locking script is DUP HASH160< pubkhush _ B > equal role check sig.
In this way, the seller can obtain the asset information of the buyer for transaction through the second ownership transfer condition known by the seller. Meanwhile, the buyer can obtain the information of the to-be-traded assets of the seller through the known third ownership transfer condition.
For the specific example of seller a and buyer B, the unlocking script and the locking script may be implemented in a stack-based execution language using an inverse wave notation.
For example, the following operation codes may be preset:
DUP: copying a stack top element;
HASH 160: HASH is carried out on the top of the stack twice, SHA-256 is firstly used, and then RIPEMD-160 is used;
EQUAL: if the two input numbers are equal, returning to 1, otherwise, returning to 0;
EQUALVERIFY: if the two input numbers are equal, the execution is continued, otherwise, 0 is returned, and the transaction is marked invalid;
CHECKSIG: the signature used for the transaction must be a valid signature of the hash value and the public key, if true, 1 is returned, otherwise 0 is returned;
BOOLOR: if one of the two terms is not 0, outputting 1, otherwise outputting 0;
OUT 1: take output 1 of the usage transaction;
the following constants can be preset in this scheme:
< pubk _ A >: a public key;
< pubk _ B >: b public key;
< pubkhash _ A >: the public key of A is subjected to HASH160 operation;
< pubkhash _ B >: the public key of B carries out HASH160 operation result;
< sig _ a >: the hash value of the transaction is signed by using a private key of A to obtain a result;
< sig _ B >: the hash value of the transaction is signed by using a private key of B to obtain a result;
< Txout1 >: the transaction output set by the transaction initiator;
< TRUE >: a constant of 1.
The transaction matching method of the distributed general ledger system based on the block chain technology can realize transaction matching in the distributed general ledger system, and under the condition of completely separating from a third-party platform, the functions of transaction quotation, quotation display, transaction matching transaction and the like are realized, and the assets to be traded of a seller and the assets used for trading of a buyer can be synchronously handed over during the transaction matching transaction. As a third party is not required to be introduced to carry out quotation display, fund escrow, asset escrow, guarantee, transaction authorization or signature in the whole transaction process, the cost of the third party for the fee transaction can be greatly saved. In addition, due to the fact that synchronous transfer of property ownership can be achieved in the matching process, namely 'money is delivered with one hand and delivery is delivered with one hand', credit risks do not exist in the transaction process, and meanwhile, the credit risks of a third party can be avoided by separating from a third-party platform.
As shown in fig. 2, an embodiment of the present invention provides a transaction matching system 20, which includes a seller terminal 201, a buyer terminal 202, and a distributed general ledger system 203 based on a blockchain technique, where the distributed general ledger system 203 includes a plurality of work nodes 204 in different organizational scopes; the seller terminal 201 and the buyer terminal 202 are respectively connected with the plurality of working nodes 204 in a communication way.
The distributed general ledger system 203 is used for receiving transaction request information input at the seller terminal 201; the transaction request information comprises first input reference information and first ownership transfer certification information; the first input reference information comprises seller transaction output content which is recorded in the distributed general ledger system 203;
the distributed general ledger system 203 is further configured to verify the transaction request information according to the first input citation information and the first ownership transfer certification information, and output asset information to be transacted and first ownership transfer condition information after determining that the transaction is legal; recording the transaction request information, the asset information to be transacted and the first ownership transfer condition information in a background database of the distributed general ledger system 203;
each working node is used for inquiring the transaction request information in the background database and displaying the asset information to be transacted and the first ownership transfer condition information;
a distributed general ledger system 203 for receiving acceptance transaction information input at the buyer terminal 202; the transaction accepting information comprises second input reference information, second ownership transfer certification information, third input reference information and third ownership transfer certification information; the second input reference information comprises asset information to be traded and first ownership transfer condition information; the third input reference information includes buyer transaction output contents already recorded in the distributed general ledger system 203;
the distributed general ledger system 203 is further configured to determine whether the second ownership transfer certification information meets a first ownership transfer condition, and determine whether the third ownership transfer certification information is legal;
the distributed general ledger system 203 is further configured to output the asset information used for the transaction by the buyer and the second ownership transfer condition known by the corresponding seller when the second ownership transfer certification information meets the first ownership transfer condition and the third ownership transfer certification information is legal, and output the asset information to be transacted and the third ownership transfer condition known by the corresponding buyer.
Specifically, the seller transaction output content recorded in the distributed general ledger system 203 includes a seller owned asset corresponding to the asset to be transacted and an ownership transfer condition of the seller owned asset;
the distributed general ledger system 203 is further configured to determine whether the recorded seller transaction output content is not referred to by input in other transactions;
if the recorded seller transaction output content is not input and referred in other transactions, the distributed general ledger system 203 is further configured to run an unlocking script of the first ownership transfer certification information; the first ownership transfer certification information comprises a private key signature matched with a public key of a seller;
after the unlocking script of the first ownership transfer certification information is successfully operated, the distributed general ledger system 203 is also used for operating a locking script of an ownership transfer condition of the asset owned by the seller; the ownership transfer condition of the asset owned by the seller is to provide a private key signature matched with a public key of the seller;
if the locking script of the ownership transfer condition of the asset owned by the seller runs successfully, the distributed general ledger system 203 is further configured to determine that the input of the transaction of the seller terminal can refer to the output content of the transaction of the seller, which is already recorded.
Specifically, the buyer transaction output content recorded in the distributed general ledger system 203 includes a buyer owned asset corresponding to the asset used by the buyer for transaction, and ownership transfer conditions of the buyer owned asset;
the distributed general ledger system 203 is also used for judging whether the recorded buyer transaction output content is not input and referenced in other transactions;
if the recorded buyer transaction output content is not input and referred in other transactions, the distributed general ledger system 203 is also used for running an unlocking script of third ownership transfer certification information; the third ownership transfer certification information includes a private key signature matching a public key of the buyer;
after the unlocking script of the third ownership transfer certification information is successfully operated, the distributed general ledger system 203 is also used for operating the locking script of the ownership transfer condition of the property owned by the buyer; the ownership transfer condition of the property owned by the buyer is to provide a private key signature matched with the public key of the buyer;
if the locking script of the ownership transfer condition of the asset owned by the buyer is successfully operated, the distributed general ledger system 203 is further configured to determine that the input of the current transaction of the buyer terminal can refer to the already recorded buyer transaction output content.
In addition, the distributed general ledger system 203 is specifically configured to:
determining whether the seller transaction output content recorded in the distributed general ledger system 203 contains asset information to be transacted, and determining whether a seller terminal inputs a private key signature matched with a public key of a seller;
if the asset information to be transacted exists in the seller transaction output content recorded in the distributed general ledger system 203 and the seller terminal inputs a private key signature matched with the seller's public key, the transaction is determined to be legal;
the first ownership transfer condition information is that an output value for transferring ownership of the asset to be traded is predetermined content, or a private key signature matched with a public key of a seller is provided.
In addition, the distributed general ledger system 203 is further configured to:
receiving transaction revocation request information input at a seller terminal; the transaction revocation request message comprises fourth input reference information and fourth ownership transfer certification information; the fourth input reference information comprises the asset to be traded information and the first ownership transfer condition information; the fourth ownership transfer certification information comprises a private key signature matched with a public key of a seller;
verifying the transaction revocation request information according to the fourth input reference information and the fourth ownership transfer certification information, and outputting asset information to be transacted and fourth ownership transfer condition information after determining that the transaction revocation request is legal; the fourth ownership transfer condition information includes providing a private key signature that matches a public key of the seller.
In addition, the distributed general ledger system 203 is further configured to:
judging whether the second input reference information is input to be referred in other transactions;
and if the second input reference information is input and referred in other transactions, sending a rejection message to the buyer terminal.
In addition, the distributed general ledger system 203 is specifically configured to:
judging whether the second ownership transfer certification information contains an output value of ownership of the transfer to-be-traded asset with predetermined content;
and judging whether the private key signature matched with the public key of the buyer is legal or not.
Specifically, the second ownership transfer condition is to provide a private key signature matching a public key of the seller; the third ownership transfer condition is to provide a private key signature matching the public key of the buyer.
It should be noted that, for a specific implementation manner of the transaction matching system provided in the embodiment of the present invention, reference may be made to the method embodiments corresponding to fig. 1 and fig. 3, and details are not described here again.
The transaction matching system provided by the embodiment of the invention can realize transaction matching in the distributed general ledger system, and under the condition of completely separating from a third-party platform, the functions of transaction quotation, quotation display, transaction matching transaction and the like are realized, and the assets to be traded of a seller and the assets ownership of a buyer for trading can be synchronously handed over when the transaction matching transaction is carried out. As a third party is not required to be introduced to carry out quotation display, fund escrow, asset escrow, guarantee, transaction authorization or signature in the whole transaction process, the cost of the third party for the fee transaction can be greatly saved. In addition, due to the fact that synchronous transfer of property ownership can be achieved in the matching process, namely 'money is delivered with one hand and delivery is delivered with one hand', credit risks do not exist in the transaction process, and meanwhile, the credit risks of a third party can be avoided by separating from a third-party platform.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A transaction matching method of a distributed general ledger system based on a block chain technology is characterized by being applied to a transaction matching system, wherein the transaction matching system comprises a seller terminal, a buyer terminal and the distributed general ledger system, and the distributed general ledger system comprises a plurality of working nodes in different organization ranges; the seller terminal and the buyer terminal are respectively in communication connection with the plurality of working nodes;
the method comprises the following steps:
the distributed general ledger system receives transaction request information input at a seller terminal; the transaction request information comprises first input reference information and first ownership transfer certification information; the first input reference information comprises seller transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system verifies the transaction request information according to the first input citation information and the first ownership transfer certification information, and outputs asset information to be transacted and first ownership transfer condition information after determining that the transaction is legal; recording the transaction request information, the asset information to be transacted and the first ownership transfer condition information in a background database of the distributed general ledger system;
each working node inquires the transaction request information in the background database and displays the asset information to be transacted and the first ownership transfer condition information;
the distributed general ledger system receives transaction accepting information input at the buyer terminal; the transaction accepting information comprises second input reference information, second ownership transfer certification information, third input reference information and third ownership transfer certification information; the second input reference information comprises asset information to be traded and first ownership transfer condition information; the third input reference information comprises buyer transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system judges whether the second ownership transfer certification information meets a first ownership transfer condition or not and judges whether the third ownership transfer certification information is legal or not;
when the second ownership transfer certification information meets the first ownership transfer condition and the third ownership transfer certification information is legal, the distributed general ledger system outputs the asset information used for transaction by the buyer and the second ownership transfer condition known by the corresponding seller, and outputs the asset information to be transacted and the third ownership transfer condition known by the corresponding buyer;
wherein the seller transaction output content recorded in the distributed general ledger system comprises a seller owned asset corresponding to the asset to be transacted and ownership transfer conditions of the seller owned asset;
after the distributed general ledger system receives the transaction request information input at the seller terminal, the method comprises the following steps:
the distributed general ledger system judges whether the recorded seller transaction output content is not input and referenced in other transactions;
if the recorded seller transaction output content is not input and referred in other transactions, the distributed general ledger system runs an unlocking script of first ownership transfer certification information; the first ownership transfer certification information comprises a private key signature matched with a public key of a seller;
after the unlocking script of the first ownership transfer certification information is operated successfully, the distributed general ledger system operates the locking script of the ownership transfer condition of the asset owned by the seller; the ownership transfer condition of the asset owned by the seller is to provide a private key signature matched with a public key of the seller;
if the seller has the locking script of the ownership transfer condition of the asset, the distributed general ledger system determines that the seller terminal inputs the transaction and can refer to the recorded seller transaction output content;
wherein the second ownership transfer certification information contains a private key signature matching a public key of the buyer; the third ownership transfer certification information includes a private key signature that matches the public key of the buyer.
2. The transaction matching method of the distributed general ledger system based on the blockchain technology of claim 1, wherein the buyer transaction output contents that have been recorded in the distributed general ledger system include a buyer owned asset corresponding to an asset that the buyer uses for transaction, and ownership transfer conditions of the buyer owned asset;
after the distributed general ledger system receives the acceptance transaction information input at the buyer terminal, the method comprises the following steps:
the distributed general ledger system judges whether the recorded buyer transaction output content is not input and referenced in other transactions;
if the recorded buyer transaction output content is not input and quoted in other transactions, the distributed general ledger system runs an unlocking script of third ownership transfer certification information; the third ownership transfer certification information includes a private key signature matching a public key of the buyer;
after the unlocking script of the third ownership transfer certification information is operated successfully, the distributed general ledger system operates the locking script of the ownership transfer condition of the property owned by the buyer; the ownership transfer condition of the property owned by the buyer is to provide a private key signature matched with the public key of the buyer;
and if the locking script of the ownership transfer condition of the owned asset of the buyer is successfully operated, the distributed general ledger system determines that the input of the current transaction of the buyer terminal can refer to the recorded buyer transaction output content.
3. The transaction matching method of the distributed general ledger system based on the blockchain technology of claim 2, wherein the distributed general ledger system checks the transaction request information according to the first input reference information and the first ownership transfer certification information, and outputs the asset information to be transacted and the first ownership transfer condition information after determining that the transaction is legal, comprising:
the distributed general ledger system determines whether the seller transaction output content recorded in the distributed general ledger system contains asset information to be transacted, and determines whether a seller terminal inputs a private key signature matched with a public key of a seller;
if the asset information to be transacted exists in the seller transaction output content recorded in the distributed general ledger system and a private key signature matched with a public key of a seller is input by a seller terminal, the distributed general ledger system determines that the transaction is legal;
the first ownership transfer condition information is that an output value for transferring ownership of the asset to be traded is predetermined content, or a private key signature matched with a public key of a seller is provided.
4. The method for matching transactions of a distributed ledger system based on blockchain technology of claim 3, further comprising:
the distributed general ledger system receives transaction revocation request information input at a seller terminal; the transaction revocation request information comprises fourth input reference information and fourth ownership transfer certification information; the fourth input reference information comprises the asset to be traded information and the first ownership transfer condition information; the fourth ownership transfer certification information comprises a private key signature matched with a public key of a seller;
the distributed general ledger system verifies the transaction revocation request information according to the fourth input citation information and the fourth ownership transfer certification information, and outputs to-be-transacted asset information and fourth ownership transfer condition information after determining that the transaction revocation request is legal; the fourth ownership transfer condition information includes providing a private key signature that matches a public key of the seller.
5. The transaction matching method of the distributed general ledger system based on the blockchain technology of claim 4, wherein after the distributed general ledger system receives the acceptance transaction information inputted at the buyer terminal, further comprising:
the distributed general ledger system judges whether the second input citation information is input and quoted in other transactions;
and if the second input reference information is input and referenced in other transactions, the distributed general ledger system sends a rejection message to the buyer terminal.
6. The method as claimed in claim 5, wherein the determining whether the second ownership transfer certification information satisfies the first ownership transfer condition and the determining whether the third ownership transfer certification information is legal comprises:
the distributed general ledger system judges whether the second ownership transfer certification information contains an output value of ownership of the transfer to-be-traded asset with predetermined content;
the distributed general ledger system judges whether the private key signature matched with the public key of the buyer is legal or not.
7. The method for matching transactions of a distributed ledger system based on blockchain technology of claim 6, wherein the second ownership transfer condition is providing a private key signature matching a public key of a seller; the third ownership transfer condition is to provide a private key signature matching the public key of the buyer.
8. A transaction matching system is characterized by comprising a seller terminal, a buyer terminal and a distributed general ledger system based on a block chain technology, wherein the distributed general ledger system comprises a plurality of working nodes in different organization ranges; the seller terminal and the buyer terminal are respectively in communication connection with the plurality of working nodes;
the distributed general ledger system is used for receiving transaction request information input at the seller terminal; the transaction request information comprises first input reference information and first ownership transfer certification information; the first input reference information comprises seller transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system is also used for verifying the transaction request information according to the first input citation information and the first ownership transfer certification information, and outputting asset information to be transacted and first ownership transfer condition information after determining that the transaction is legal; recording the transaction request information, the asset information to be transacted and the first ownership transfer condition information in a background database of the distributed general ledger system;
each working node is used for inquiring the transaction request information in the background database and displaying the asset information to be transacted and the first ownership transfer condition information;
the distributed general ledger system is also used for receiving transaction accepting information input at the buyer terminal; the transaction accepting information comprises second input reference information, second ownership transfer certification information, third input reference information and third ownership transfer certification information; the second input reference information comprises asset information to be traded and first ownership transfer condition information; the third input reference information comprises buyer transaction output contents which are recorded in the distributed general ledger system;
the distributed general ledger system is also used for judging whether the second ownership transfer certification information meets a first ownership transfer condition and judging whether the third ownership transfer certification information is legal;
the distributed general ledger system is also used for outputting the asset information used for transaction by the buyer and the second ownership transfer condition known by the corresponding seller when the second ownership transfer certification information meets the first ownership transfer condition and the third ownership transfer certification information is legal, and outputting the asset information to be transacted and the third ownership transfer condition known by the corresponding buyer;
wherein the seller transaction output content recorded in the distributed general ledger system comprises a seller owned asset corresponding to the asset to be transacted and ownership transfer conditions of the seller owned asset;
the distributed general ledger system is also used for judging whether the recorded seller transaction output content is not input and referenced in other transactions;
if the recorded seller transaction output content is not input and referred in other transactions, the distributed general ledger system is also used for running an unlocking script of the first ownership transfer certification information; the first ownership transfer certification information comprises a private key signature matched with a public key of a seller;
after the unlocking script of the first ownership transfer certification information is successfully operated, the distributed general ledger system is also used for operating a locking script of an ownership transfer condition of the asset owned by the seller; the ownership transfer condition of the asset owned by the seller is to provide a private key signature matched with a public key of the seller;
if the locking script of the ownership transfer condition of the asset owned by the seller runs successfully, the distributed general ledger system is further used for determining that the input of the current transaction of the seller terminal can refer to the recorded seller transaction output content;
wherein the second ownership transfer certification information contains a private key signature matching a public key of the buyer; the third ownership transfer certification information includes a private key signature that matches the public key of the buyer.
9. The transaction matching system according to claim 8, wherein the buyer transaction output contents already recorded in the distributed general ledger system include a buyer owned asset corresponding to an asset that the buyer uses for transaction, and ownership transfer conditions of the buyer owned asset;
the distributed general ledger system is also used for judging whether the recorded buyer transaction output content is not input and referenced in other transactions;
if the recorded buyer transaction output content is not input and quoted in other transactions, the distributed general ledger system is also used for running an unlocking script of third ownership transfer certification information; the third ownership transfer certification information includes a private key signature matching a public key of the buyer;
after the unlocking script of the third ownership transfer certification information is operated successfully, the distributed general ledger system is also used for operating the locking script of the ownership transfer condition of the property owned by the buyer; the ownership transfer condition of the property owned by the buyer is to provide a private key signature matched with the public key of the buyer;
if the locking script of the ownership transfer condition of the owned asset of the buyer is successfully operated, the distributed general ledger system is further used for determining that the input of the current transaction of the buyer terminal can refer to the recorded buyer transaction output content.
10. The transaction matching system of claim 9, wherein the distributed ledger system is specifically configured to:
determining whether the recorded seller transaction output contents in the distributed general ledger system have asset information to be transacted or not, and determining whether a seller terminal inputs a private key signature matched with a public key of a seller or not;
if the asset information to be transacted exists in the seller transaction output content recorded in the distributed general ledger system and a private key signature matched with a public key of a seller is input by a seller terminal, determining that the transaction is legal;
the first ownership transfer condition information is that an output value for transferring ownership of the asset to be traded is predetermined content, or a private key signature matched with a public key of a seller is provided.
11. The transaction matching system of claim 10, wherein the distributed ledger system is further configured to:
receiving transaction revocation request information input at a seller terminal; the transaction revocation request information comprises fourth input reference information and fourth ownership transfer certification information; the fourth input reference information comprises the asset to be traded information and the first ownership transfer condition information; the fourth ownership transfer certification information comprises a private key signature matched with a public key of a seller;
verifying the transaction revocation request information according to the fourth input reference information and the fourth ownership transfer certification information, and outputting asset information to be transacted and fourth ownership transfer condition information after determining that the transaction revocation request is legal; the fourth ownership transfer condition information includes providing a private key signature that matches a public key of the seller.
12. The transaction matching system of claim 11, wherein the distributed ledger system is further configured to:
judging whether the second input reference information is input to be referred in other transactions;
and if the second input reference information is input and referred in other transactions, sending a rejection message to the buyer terminal.
13. The transaction matching system of claim 12, wherein the distributed ledger system is specifically configured to:
judging whether the second ownership transfer certification information contains an output value of ownership of the transfer to-be-traded asset with predetermined content;
and judging whether the private key signature matched with the public key of the buyer is legal or not.
14. The transaction matching system of claim 13, wherein the second ownership transfer condition is providing a private key signature that matches a public key of a seller; the third ownership transfer condition is to provide a private key signature matching the public key of the buyer.
CN201611055621.5A 2016-11-25 2016-11-25 Transaction matching method and system of distributed general ledger system based on block chain technology Active CN106504094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611055621.5A CN106504094B (en) 2016-11-25 2016-11-25 Transaction matching method and system of distributed general ledger system based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611055621.5A CN106504094B (en) 2016-11-25 2016-11-25 Transaction matching method and system of distributed general ledger system based on block chain technology

Publications (2)

Publication Number Publication Date
CN106504094A CN106504094A (en) 2017-03-15
CN106504094B true CN106504094B (en) 2021-06-15

Family

ID=58328847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611055621.5A Active CN106504094B (en) 2016-11-25 2016-11-25 Transaction matching method and system of distributed general ledger system based on block chain technology

Country Status (1)

Country Link
CN (1) CN106504094B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201705749D0 (en) * 2017-04-10 2017-05-24 Nchain Holdings Ltd Computer-implemented system and method
CN107133866A (en) * 2017-04-23 2017-09-05 杭州复杂美科技有限公司 Block chain credit match system
CN107292629A (en) * 2017-05-12 2017-10-24 深圳蜂链科技有限公司 Anti-counterfeit tracking verification method based on block chain and the device using this method
CN107103537B (en) * 2017-06-20 2021-01-22 北京汇通金财信息科技有限公司 Block chain-based digital asset transaction method and system
GB201710176D0 (en) * 2017-06-26 2017-08-09 Nchain Holdings Ltd Computer-implemented system and method
CN107180353B (en) * 2017-06-29 2021-04-06 飞天诚信科技股份有限公司 Method and device for realizing revocable intelligent contract transaction
CN107480987A (en) * 2017-07-25 2017-12-15 浙江大学 Green electric power supply certificate core hair based on block chain technology subscribes method and system
WO2019019134A1 (en) * 2017-07-28 2019-01-31 杭州复杂美科技有限公司 Block chain information matching platform
JP7225208B2 (en) * 2017-08-15 2023-02-20 エヌチェーン ライセンシング アーゲー Pseudorandom Number Generation in Blockchain
CN107909440B (en) * 2017-11-21 2022-03-25 中国银行股份有限公司 Transaction synchronous clearing method and system for distributed general ledger system
CN109961286A (en) * 2017-12-26 2019-07-02 库币科技有限公司 Digital asset method of commerce
CN108647951A (en) * 2018-03-28 2018-10-12 深圳市网心科技有限公司 Digital information method of commerce, system, device and storage device based on block chain
TWI656496B (en) * 2018-08-16 2019-04-11 楊少銘 Weakly centralized fund trading system and method thereof
CN109345251A (en) * 2018-08-24 2019-02-15 深圳壹账通智能科技有限公司 Negotiable block chain method of commerce, device, equipment and storage medium
US20200097966A1 (en) * 2018-09-25 2020-03-26 Mercari, Inc. Information processing method, information processing device, and computer-readable non-transitory storage medium storing program
CN109615516B (en) * 2018-12-05 2021-04-16 腾讯科技(深圳)有限公司 Resource transfer method, device, electronic equipment and storage medium
CN111612453A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN110390528B (en) * 2019-07-22 2022-11-04 中汇信息技术(上海)有限公司 Information matching method and readable storage medium
CN110599143B (en) * 2019-07-31 2021-05-28 腾讯科技(深圳)有限公司 Data processing method, related device and medium
CN111177274B (en) * 2019-12-31 2023-10-27 中国建设银行股份有限公司 Block chain-based item leasing method, device, server and storage medium
CN113781220A (en) * 2021-09-06 2021-12-10 上海卡方信息科技有限公司 Distributed stock transaction matching system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105427104A (en) * 2015-12-08 2016-03-23 布比(北京)网络技术有限公司 Method and method for handling digital assets by means of distributed general ledger
CN105487816A (en) * 2015-11-26 2016-04-13 布比(北京)网络技术有限公司 Data transfer method and apparatus
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN105976232A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset transaction method and device
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487816A (en) * 2015-11-26 2016-04-13 布比(北京)网络技术有限公司 Data transfer method and apparatus
CN105427104A (en) * 2015-12-08 2016-03-23 布比(北京)网络技术有限公司 Method and method for handling digital assets by means of distributed general ledger
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor
CN105976232A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset transaction method and device

Also Published As

Publication number Publication date
CN106504094A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106504094B (en) Transaction matching method and system of distributed general ledger system based on block chain technology
CN111144862B (en) Method, device, equipment and storage medium for realizing digital currency double-off-line payment
US20200258159A1 (en) System and method of providing a contract-creator application
EP3776441B1 (en) Digital asset exchange
US20200175601A1 (en) Systems and methods for transferring digital assets using a de-centralized escrow service
CN109089428B (en) Zero custody transfer of digital assets
JP7112690B2 (en) Digital Wealth Management for Decentralized Transaction Consensus Network
US10354236B1 (en) Methods for preventing front running in digital asset transactions
CN110192216B (en) Computer-implemented method and system
Galal et al. Succinctly verifiable sealed-bid auction smart contract
JP2020071617A (en) Transaction method, program, verifying apparatus and creating method
WO2017007806A1 (en) Systems and methods for trading, clearing and settling securities transactions using blockchain technology
TWM543413U (en) Web lending platform using technology of blockchain for deal
CN107909440B (en) Transaction synchronous clearing method and system for distributed general ledger system
WO2020107033A1 (en) Methods, systems, and devices for on-chain stable transaction in decentralized cryptocurrencies
US20210334809A1 (en) Transaction method and apparatus based on blind signature
CN109523380A (en) Across chain method of commerce and device
US20200242573A1 (en) Cryptographic transactions supporting real world requirements
Li et al. Secure electronic ticketing system based on consortium blockchain
CN111199399A (en) System and method for creating, transferring and invoking transferable commitments
US20220020018A1 (en) Cryptographic encryption protocol for data types and values
US20230419285A1 (en) NFT Enforcement Control System
Kaur et al. Technologies Behind Crypto-Based Decentralized Finance
Prabanand et al. Smart Contract-Based Advanced Financial Security System: A Literature Review
Obaid et al. The Future of Mobile Payments: Blockchain-Based Solutions

Legal Events

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