CN111292183A - Certificate exchange method based on public chain and block chain system - Google Patents

Certificate exchange method based on public chain and block chain system Download PDF

Info

Publication number
CN111292183A
CN111292183A CN201811496949.XA CN201811496949A CN111292183A CN 111292183 A CN111292183 A CN 111292183A CN 201811496949 A CN201811496949 A CN 201811496949A CN 111292183 A CN111292183 A CN 111292183A
Authority
CN
China
Prior art keywords
exchange
certificate
chain
public chain
public
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.)
Pending
Application number
CN201811496949.XA
Other languages
Chinese (zh)
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.)
Aowei Information Technology Jiangsu Co ltd
Original Assignee
Aowei Information Technology Jiangsu Co 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 Aowei Information Technology Jiangsu Co ltd filed Critical Aowei Information Technology Jiangsu Co ltd
Priority to CN201811496949.XA priority Critical patent/CN111292183A/en
Priority to PCT/CN2019/119532 priority patent/WO2020114241A1/en
Priority to NL2024395A priority patent/NL2024395B1/en
Publication of CN111292183A publication Critical patent/CN111292183A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/381Currency conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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
    • 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/3827Use of message hashing

Abstract

The application provides a certificate exchange method based on a public chain and a block chain system. In the method, an exchange initiating chain firstly initiates a query transaction to a public chain, so that the public chain calculates a real-time exchange rate according to an initial evidence type and an exchange supply amount in the query transaction, or acquires the real-time exchange rate from an exchange rate table; and then the real-time exchange rate is sent to an exchange initiating chain. The exchange initiating chain initiates an exchange transaction to the public chain according to the real-time exchange rate; namely, the preset number of initial certificate certificates are transferred to the public chain, so that the public chain initiates the exchange certificate certificates with the value such as chain transfer, initial certificate amount and the like to the exchange according to the exchange transaction and the real-time exchange rate, and the exchange transaction is completed. The method determines the exchange rate through the supply amount of the initial certificate and the exchange certificate, ensures the exchange rights and interests of both exchange parties, improves the exchange efficiency, and avoids the problem of low exchange efficiency caused by a centralized exchange platform.

Description

Certificate exchange method based on public chain and block chain system
Technical Field
The application relates to the technical field of network transaction, in particular to a certificate exchange method and a blockchain system based on a public chain.
Background
Blockchain technology is a way to create a relatively objective anti-repudiation digital environment based on decentralized system application architecture and public consensus. Based on the block chain technology, the authenticity of network information can be ensured, for example, a transaction occurs in the block chain network, the nodes in the block chain network can generate block data for recording transaction contents according to the transaction information, the block data is broadcasted in the whole network, and other nodes in the network simultaneously store the block data to form an unalterable block chain. The transaction is generalized, and does not refer to the traditional meaning of "commodity buying and selling" or "commodity exchange", but refers to some data operation content or operation result on the blockchain network, for example, a blockchain node a on the network initiates a query request a for the performance of a communication device of some model, and the query request a is a transaction for a blockchain node B which undertakes a query service. The same is true. The node B sends the performance table B of the communication equipment of the model obtained by query to the node A, and the transaction is also carried out. Information A, a and information B, b may be written as transaction information in data blocks of a block chain.
Generally, a digital certificate (token) is used as a marker for network transactions in a blockchain network, and is used to measure the attention or value of transaction operations or calibration transaction data, for example, bitcoin of bitcoin network, Ether of Ether network. Typically, different blockchain networks use different types of credentials. As a marker of network transaction, different types of certificates need to be exchanged, so that the information or value transmission between the two blockchain networks is realized by using the blockchain network A of the certificate A and the blockchain network B of the certificate B through the certificate A and the certificate B.
The traditional certificate exchange operation is completed by using a certificate exchange, namely a transaction center is provided in a network in the form of the exchange, and the transaction center provides an exchange platform for different certificate exchanges, so that two parties participating in exchange can exchange 1 number of A certificates for 2 numbers of B certificates according to a certain exchange ratio.
In the existing exchange method, the exchange operation between the two types of certificates depends on the traditional exchange platform or a third party platform, and the exchange ratio also depends on the exchange platform or the third party platform (such as a bank gate). Because the exchange platform or the third-party platform is a centralized platform in nature, the exchange platform or the third-party platform is easy to be attacked by a network, and the security is difficult to guarantee. In addition, the traditional exchange platform needs to determine an exchange opponent, when the exchange object of an exchange party is a relatively cold certificate, the exchange opponent needs to be searched for a long time, and the exchange proportion among the certificate is determined, so that the exchange process consumes a long time, the exchange cannot be completed in time, more network resources are consumed, and the exchange efficiency is reduced.
Disclosure of Invention
The application provides a certificate exchange method and a block chain system based on a public chain, which aim to solve the problems that the traditional certificate exchange method is controlled by a centralized program and the exchange efficiency is low.
In a first aspect, the present application provides a public-link-based certificate redemption method, comprising:
a transaction node in the exchange initiation chain initiates an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initiation certificate type and an exchange certificate type;
inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate;
the public chain calculates the real-time exchange rate according to the certificate and account supply amount and sends the real-time exchange rate to the transaction node;
the transaction node initiates an exchange transaction to the public chain according to the real-time exchange rate; transferring a preset number of initial certificates to the public chain;
and the public chain transfers the exchange certificate certificates with the value such as the initial certificate certificates of the preset quantity to the transaction nodes according to the exchange transaction and the real-time exchange rate.
Optionally, the step of transferring the exchange certificates and the certificates with the value such as the initial certificates and the certificates of the preset number to the transaction node by the public chain according to the exchange transaction and the real-time exchange rate includes:
the public link receives an initial certificate of the transaction node transfer, and calculates the exchange rate of the initial certificate and the public link certificate according to the initial certificate supply amount in the current public link network;
issuing a public chain certificate with the value of the initial certificate with the preset quantity by the public chain, and extracting the exchange rate of the public chain certificate and the exchange certificate at the current time;
the public chain acquires the exchange certificate certificates with the value such as the number of the public chain certificate certificates from the supplied exchange certificate certificates;
and the public chain transfers the acquired exchange certificate to an exchange initiating chain.
Optionally, before the step of exchanging the transaction node in the initiation chain to initiate the query transaction to the public chain, the method further includes:
in a supply chain accessed to a public chain network, initiating a supply transaction to the public chain by a supply node, wherein the supply transaction comprises a supply certificate type and a supply certificate quantity transferred to the public chain;
the public chain calculates the exchange rate between the supply certificate and the public chain certificate according to the supply amount of the supply certificate in the public chain network;
and the public chain transfers the public chain certificate to the supply node according to the exchange rate between the supply certificate and the public chain certificate, wherein the value of the public chain certificate is the number of the supply certificate.
Optionally, the method further includes:
accessing into a supply chain of a public chain network, and initiating a selling transaction to the public chain by a supply node; the method comprises the following steps: the supply chain transfers a preset number of public chain certificates to the public chain;
the public chain extracts the exchange rate between the public chain certificate and the exchange certificate corresponding to the supply chain at the current time;
and the public chain transfers the exchange certificate of the value such as the money to the supply node according to the exchange rate of the public chain certificate and the exchange certificate.
Optionally, the step of inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate in the public chain network comprises:
if the exchange certificate type is not inquired in the public chain network, the public chain extracts the exchange rate of the initial certificate and the public chain certificate at the current time;
the public chain generates a query result according to the exchange rate of the initial certificate and the public chain certificate, and sends the query result to the transaction node;
the transaction node determines whether to initiate conversion transaction to the public chain according to the query result;
and after the exchange transaction is initiated at the transaction node, the public chain transfers the public chain certificate of preset quantity and other values to the transaction node according to the exchange ratio of the initial certificate and the public chain certificate.
Optionally, the step of inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate in the public chain network further comprises:
if the exchange certificate type is not inquired in the public chain network, the public chain inquires an exchange target chain capable of supplying the exchange certificate type in the public chain network;
the public chain sends a query result to the transaction node, wherein the query result comprises address information and exchange conditions of the exchange target chain;
and the transaction node initiates the exchange transaction of the appointed exchange target chain to the public chain according to the received query result.
In a second aspect, the present application further provides a certificate exchange method based on public chain, comprising:
a transaction node in the exchange initiation chain initiates an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initiation certificate type and an exchange certificate type;
the public link inquires the current exchange rate of the initial certificate and the exchange certificate in the exchange rate table according to the exchange certificate type and sends the current exchange rate to the transaction node;
the transaction node initiates an exchange transaction to the public chain according to the current exchange rate; transferring a preset number of initial certificates to the public chain;
and the public chain transfers the exchange certificate certificates with the value such as the initial certificate certificates of the preset quantity to the transaction nodes according to the exchange transaction and the current exchange rate.
Optionally, before the step of exchanging the transaction node in the initiation chain to initiate the query transaction to the public chain, the method further includes:
in a supply chain accessing a public chain network, initiating, by a supply node, a supply transaction to the public chain, the supply transaction including a type of supply certificate and a quantity of supply certificate transferred to the public chain;
the public chain inquires the exchange rate between the supply certificate and the public chain certificate in the exchange rate table according to the type of the supply certificate;
and the public chain transfers the public chain certificate to the supply node according to the exchange rate between the supply certificate and the public chain certificate, wherein the value of the public chain certificate is equal to the value of the number of the supply certificate.
Optionally, the method further includes:
accessing into a supply chain of a public chain network, and initiating a selling transaction to the public chain by a supply node; the sell transaction includes: the number of the public chain certificate exchanges accounts to the public chain and the type of the buyback certificate;
inquiring the exchange ratio between the public chain certificate and the buyback certificate in the exchange ratio table according to the buyback certificate type by the public chain;
and the public chain transfers the buyback certificate exchanges with the supply node according to the exchange rate between the public chain certificate exchange and the buyback certificate exchange, and the buyback certificate exchange has the value of the quantity of the public chain certificate exchange and the like.
Optionally, the exchange ratio table is a dynamic parameter list stored in a public link network, and the method further includes:
the public link configures an intelligent contract for a supply chain accessed to a public link network;
the supply chain provides a preset number of supply certifications and public chain certifications through an intelligent contract;
the public chain calculates an initial exchange rate according to the preset number of the supply certificate and the public chain certificate, and adds the initial exchange rate to the exchange rate table;
and the public chain updates the exchange rate in real time according to the exchange content each time the intelligent contract is called.
In a third aspect, the present application further provides a public chain-based blockchain system, including an exchange initiating chain and a public chain, where the exchange initiating chain and the public chain are both in a point-to-point network structure, and part of nodes of the exchange initiating chain are accessed to a public chain network;
the transaction initiation chain is configured to: initiating an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initial certificate type and an exchange certificate type, and initiating an exchange transaction to the public chain according to a real-time exchange rate; the method comprises the steps of transferring a preset number of initial certificates to a public chain;
the male chain is configured to: inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate; calculating a real-time exchange rate according to the supply amount of the initial certificate and the exchange certificate, and sending the real-time exchange rate to an exchange initiating chain; and exchanging the transaction and the real-time exchange rate, and transferring the exchange certificate of the value such as the chain transfer and the starting certificate of the preset quantity to the exchange.
In a fourth aspect, the application further provides a public chain-based blockchain system, which includes an exchange initiating chain and a public chain, wherein the exchange initiating chain and the public chain are both in a point-to-point network structure, and part of nodes of the exchange initiating chain are accessed to a public chain network; the exchange rate table is stored in the public link network;
the transaction initiation chain is configured to: initiating an inquiry transaction to a public chain, wherein the inquiry transaction comprises an initial certificate type and a conversion certificate type; and initiating an exchange transaction to the public chain according to the current exchange rate; transferring a preset number of initial certificates to the public chain;
the male chain is configured to: inquiring the current exchange rate of the initial certificate and the exchange certificate in the exchange rate table according to the type of the exchange certificate, and sending the current exchange rate to a transaction node; and transferring the exchange certificates and other valuable exchange certificates with the preset number of the initial certificates and other value to the transaction nodes according to the exchange transaction and the current exchange rate.
According to the technical scheme, the application provides a certificate exchange method and a block chain system based on a public chain. In practical application, the exchange initiating chain initiates a query transaction to the public chain, so that the public chain calculates the real-time exchange rate according to the initial evidence type and the exchange supply amount in the query transaction, or acquires the real-time exchange rate from the exchange rate table; and then the real-time exchange rate is sent to an exchange initiating chain. The exchange initiating chain initiates an exchange transaction to the public chain according to the real-time exchange rate; namely, the preset number of initial certificate certificates are transferred to the public chain, so that the public chain initiates the exchange certificate certificates with the value such as chain transfer, initial certificate amount and the like to the exchange according to the exchange transaction and the real-time exchange rate, and the exchange transaction is completed. The method determines the exchange rate through the supply amount of the initial certificate and the exchange certificate, ensures the exchange rights and interests of both exchange parties, improves the exchange efficiency, and avoids the problem of low exchange efficiency caused by a centralized exchange platform.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a certificate redemption method based on public chaining;
FIG. 2 is a schematic flow chart illustrating a supply transaction completed by the supply chain of the present application;
FIG. 3 is a schematic diagram illustrating a supply chain for completing a sale transaction according to the present application;
FIG. 4 is a schematic flow chart illustrating transfer of an exchange certificate to a transaction node according to the present application;
FIG. 5 is a block chain system for certificate exchange based on public chain according to the present application;
FIG. 6 is a schematic flow chart of another method for converting a certificate based on a public chain according to the present application;
FIG. 7 is a schematic flow chart illustrating the generation of a conversion ratio table according to the present application;
FIG. 8 is a schematic flow chart illustrating a supply transaction completed by another supply chain according to the present application;
FIG. 9 is a schematic diagram illustrating another embodiment of the present application for completing a sell transaction in a supply chain;
FIG. 10 is a schematic diagram of a redemption process for the present application without querying a redemption certificate;
figure 11 is a schematic illustration of an alternative redemption process for the present application without requiring a redemption of the redemption certificate;
fig. 12 is a block diagram of another public-chain-based certificate redemption system according to the present application.
Detailed Description
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following examples do not represent all embodiments consistent with the present application. But merely as exemplifications of systems and methods consistent with certain aspects of the application, as recited in the claims.
In the technical solution provided by the present application, the blockchain network refers to a peer-to-peer (P2P) network with decentralized application architecture, and the blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification. I.e., the blockchain network is a transaction platform that encompasses distributed technology, cryptography, P2P network architecture, and various consensus algorithms that may be applied. The blockchain data or blockchain information refers to accounting information generated according to transaction information when transactions occur in a blockchain network, namely, a plurality of specific transactions form a blockchain, and the plurality of blocks form a blockchain. The blockchain network comprises nodes which establish point-to-point network connection with each other, and each node is configured with a corresponding consensus mechanism, such as an intelligent contract, and has enough computing power to perform transaction verification and accounting procedures. The nodes also have interface specifications that conform to some uniform standard to enable access to more nodes or other types of blockchain networks through the interface specifications.
In this application, references to a public chain, a redemption initiation chain, a supply chain, and a parallel chain refer to different blockchain networks that conform to blockchain technology. Unless otherwise stated in the present application, the public chain, the exchange initiation chain, the supply chain and the parallel chain all refer to corresponding networks, namely, a public chain network, an exchange initiation chain network, a supply chain network and a parallel chain network. The public link network is used as a basic platform arranged in the whole network, and node interfaces of the public link network are accessed into a plurality of block link networks, such as an industry chain, a alliance chain, a private chain and a third-party block link network which are built based on public link interface specifications. Each blockchain network can be used as an independent development platform and provides corresponding services for the inside of the network. The public link definition and specification has a standard interface way to facilitate network interfacing with other blockchains. The public chain in the application has the capability of supporting cross-chain intermediary and also has the capabilities of storing certificates, decentralized application and intelligent contractual.
The exchange initiation chain and the supply chain are respectively one of block chain networks accessed to a public chain network, namely in the application, the public chain provides a basic platform, and the exchange initiation chain and the supply chain are used as the accessed block chain networks and have respective functions and services. The redemption initiation chain and the supply chain may be block chain networks built based on the public chain network standards and interface specifications, i.e., the redemption initiation chain and the supply chain may directly interface with the public chain network for communication and services. The exchange initiation chain and the supply chain can also be independent networks, and have respective proprietary interface specifications, such as the existing block chain network bitcoin, ether house and the like, or industry chains and alliance chains developed by some industries, even private chains built for meeting certain service requirements. These existing blockchains, industry chains, alliance chains, and private chains are due to their proprietary network interface specifications. Generally, the public link and other networks can be connected through parallel links because the public link and other networks cannot directly trade with each other or even trade with the public link network.
The parallel chain can be composed of partial nodes in a public chain network, and the public chain and other networks which cannot directly trade can be bridged through the parallel chain. In the application, for networks which cannot directly transact, each block chain network corresponds to a parallel chain, the parallel chains are set to have the complete function of the corresponding block chain network, and can synchronously convert transactions in the block chain network and transmit the transactions to a public chain network. Therefore, in the technical solution provided in the present application, the parallel chain may be determined as a mirror image of the corresponding blockchain network, and for convenience of description, the corresponding blockchain network is referred to as a parent chain. In the present application, the parallel chain is composed of partial nodes in the public chain network, and the nodes are also nodes in the mother chain to carry out the transmission of the transaction information.
Based on the components, the public chain can provide cross-chain relay in practical application, and work such as transaction verification, data certification, asset transfer, intelligent contract execution and the like is completed. The public link unifies external interface specifications, so that other block link networks can be rapidly accessed into the public link network. The public link also provides basic blockchain platform capability, namely, rapidly completing scheme deployment and verification and completing distributed storage and billing programs in the public link network. In addition, as a basic platform, the public chain can also provide a public development function, so that the cooperative development and deployment of a plurality of parallel chain intelligent contracts can be completed at one time.
The public link can be used for storing the information summary of the corresponding cross-link transaction, namely the transaction summary, besides recording the block chain information of the public link. Related content of cross-chain transaction is recorded through the formatted transaction data. Meanwhile, in order to reduce the occupation of the distributed storage space on the public link, when the public link records certain information, the third-party blockchain information can be recorded through a specific compression algorithm. Illustratively, the chunk data formed and stored in the public chain may include the following: block id (e.g., sequence number, timestamp, block hash value, and previous block hash value), block attribution (i.e., block generator), block other information (e.g., random value, difficulty value, and additional information), block weight, message digest (e.g., transaction tree, status tree, receipt tree, and data tree), transaction cost, reward, size, etc.
Referring to fig. 1, a schematic flow chart of a certificate exchange method based on public chain is shown. As shown in fig. 1, in practical application, the method for exchanging certificates and certificates between different blockchain networks provided by the present application includes the following steps:
s11: a transaction node in the exchange initiation chain initiates an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initiation certificate type and an exchange certificate type;
s12: inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate;
s13: the public chain calculates the real-time exchange rate according to the certificate and account supply amount and sends the real-time exchange rate to the transaction node;
s14: the transaction node initiates an exchange transaction to the public chain according to the real-time exchange rate; transferring a preset number of initial certificates to the public chain;
s15: and the public chain transfers the exchange certificate certificates with the value such as the initial certificate certificates of the preset quantity to the transaction nodes according to the exchange transaction and the real-time exchange rate.
In the technical scheme provided by the application, the exchange initiation chain can be any blockchain network accessing a public chain network, such as a third-party public chain, an industry chain, a alliance chain or a private chain network. Due to the different blockchain networks being of different sizes, the party initiating the redemption may be to redeem the initiating chain, or to redeem one or more nodes in the initiating chain, i.e. transaction nodes. Before initiating the formal exchange transaction, the transaction node may first initiate an inquiry transaction to trigger the public chain to determine the exchange rate for the two types of vouchers. Therefore, the inquiry transaction needs to include an initial credential type and an exchange credential type, wherein the initial credential is a credential used for payment in the exchange initiation chain, and may be a credential circulating in the exchange initiation chain network or other types of credentials; the exchange certificate is the certificate which the exchange initiating chain wants to obtain, and can be any legal certificate which passes the public chain authentication.
For example, the public link network P is commonly connected to the networks a to F, and in the 6 blockchain networks, the respective certificate types (or certificate types supporting outward exchange transactions) distributed in the networks a to F are Ta, Tb, Tc, Td, Te, and Tf, respectively. When the certification is required to be exchanged in the accessed blockchain network, if the transaction node D12 in the network D wants to exchange Tf with values such as 100 Td certificates and the like, the transaction node D12 initiates an inquiry transaction as required, where the initiated inquiry transaction includes the initial certification type Td and the exchange certification type Tf. The transaction node sends the query transaction to the public link network.
According to the technical scheme, the exchange initiation chain and the public chain are both blockchain networks, so that when a transaction node initiates an inquiry transaction to the public chain, the transaction node generates blockchain data containing the inquiry transaction and broadcasts in the exchange initiation chain and the public chain networks simultaneously. On one hand, after receiving the block data broadcasted by the transaction node, other nodes in the exchange initiation chain verify the query transaction in the block data and respectively store the block data to form a complete block chain, on the other hand, when the transaction node broadcasts the block data to the public chain, the block data is firstly broadcast to an interface node connected with the exchange initiation chain and the public chain, after the block data is verified and stored by the interface node, the block data is continuously broadcast to the nodes in the public chain, and the block data is verified by other nodes (or partial nodes participating in maintenance) in the public chain to form a complete block chain in the public chain network. Therefore, in the application, for one query transaction, two complete blockchain information can be formed in the exchange initiation chain and the public chain respectively, and distributed storage is performed, so that a better anti-repudiation effect is achieved. It should be noted that the inquiry transaction may be an agreed-upon transaction, such as a transaction with a transaction amount of 0, or a transaction with a form specified by the smart contract.
After the public link receives the query transaction, the execution nodes can be allocated for the query transaction, namely when the number of nodes in the public link is large, only part of the nodes are needed to execute the query transaction, and all the nodes are not needed to participate in the query transaction, so that large-scale high-concurrency operation in a public link network is avoided. The execution node extracts a starting certificate type Td and a conversion certificate type Tf in the inquiry transaction, determines supply quantities of the inquiry starting certificate and the conversion certificate in various certificate supply quantities stored in the public chain, and calculates a conversion ratio between the starting certificate and the conversion certificate according to the supply quantities. And then the calculated conversion rate is used as a query result and fed back to the conversion initiation chain or the transaction node to complete the query transaction.
In the technical scheme provided by the application, the specific way of calculating the exchange ratio between the starting certificate Td and the exchange certificate Tf according to the supply amount can be a public chain agreed calculation way, or a value exchange protocol which is known to be well known, such as a bancor protocol. In practical applications, for the exchange initiation chain, the initial credential type of the exchange may be in various different forms, for example, for the exchange chain network a, the initial credential type used for exchange may be circulation credential Ta in the network a, public chain credential Tp, or even credential Tb, Te, or Tf circulating in other block chains. Therefore, for different types of initial certificate certificates, the public chain cannot directly determine the exchange rate between the initial certificate certificates and the exchange certificate certificates, so that before the actual exchange rate is calculated, the type of the initial certificate certificates can be judged according to the inquiry transaction, namely whether the initial certificate certificates are the public chain certificate certificates or not can be judged.
For example, if the originating cert is a communal chain cert, i.e., the redemption chain network D uses 100 communal chain cert tps to redeem the cert Tf, the communal chain only needs to obtain the supply of the redemption cert, i.e., the cert Tf. And then, calculating the exchange ratio between the exchange certificate Tf and the public chain certificate Tp according to the supply amount of the exchange certificate Tp. If the originating certificate authority is not the public chain certificate authority, that is, the redemption chain network D uses 100 certificate authorities Td to redeem the certificate authority Tf, the public chain needs to query the supply of both the originating certificate authority Td and the redemption certificate authority Tf, and then calculate the redemption rate between the originating certificate authority Td and the public chain certificate authority Tp and the redemption rate between the redemption certificate authority Tf and the public chain certificate authority Tp, respectively, and determine the redemption rate between the originating certificate authority Td and the redemption certificate authority Tf according to the two calculated redemption rates.
After the public chain returns the query result to the exchange initiating chain, the transaction node determines whether to carry out exchange transaction according to the real-time exchange rate between the initial certificate and the exchange certificate in the returned result. And after the transaction node receives the real-time exchange rate and determines to start to carry out the exchange transaction, the transaction node initiates formal exchange transaction to the public chain, namely, transfers the initial evidence of the preset quantity to the public chain. Also, to trigger a public chain to perform a transfer operation, the redemption transaction should include the number of initial passes transferred to the public chain and the type of redemption pass required.
Still taking the above example as an example, the transaction node D12 in the redemption initiation chain network D receives a redemption ratio between the starter certificate Td and the redemption certificate Tf, and accepts the redemption ratio to initiate a redemption transaction to the public chain P, wherein the redemption transaction includes the transfer of 100 starter certificate Td to the public chain, and the redemption certificate type is Tf.
Similarly, when the transaction node initiates the exchange transaction to the public chain, the transaction node generates block data containing the exchange transaction, and broadcasts the block data in the exchange initiation chain and the public chain network simultaneously. The same as the broadcast mode of inquiring transaction, after other nodes in the exchange initiating chain receive the block data broadcast by the transaction node, the exchange transaction in the block data is verified and stored respectively to form a complete block chain. When the transaction node broadcasts the block data to the public link, the block data is firstly broadcast to an interface node connected with the exchange initiation chain and the public link, the interface node continuously broadcasts the block data to the nodes in the public link after verifying and storing the block data, and other nodes in the public link verify the block data to form a complete block link in a public link network.
After receiving the exchange transaction initiated by the transaction node, the public chain can determine the number of equivalent value exchange certificate certificates which can be exchanged by the initial certificate certificates according to the number of the initial certificate certificates and the exchange rate between the initial certificate certificates and the exchange certificate certificates in the exchange transaction, extract the corresponding number of exchange certificate certificates from the exchange certificate certificates stored in the public chain, and transfer the exchange certificate certificates to the transaction node. For example, the redemption ratio between the start certificate Td and the redemption certificate Tf calculated by the public chain P is 3: 2, after receiving 100 initial certificate passes Td, the public chain P extracts 66.7 certificate passes Tf from the stored certificate passes Tf, and transfers the 66.7 certificate passes Tf to the transaction node D12, thereby completing the exchange transaction.
According to the technical scheme, the mode of certificate and certificate exchange is realized through the public chain, the inquiry transaction is initiated through the exchange initiating chain, and then the supply quantity of the initiating certificate and the exchange certificate is inquired through the public chain. In this application, the supply of the starter and redemption vouchers is an important parameter in determining real-time redemption rates. Therefore, in some embodiments of the present application, as shown in fig. 2, before the step of the transaction node in the redemption initiation chain initiating a query transaction to the public chain, the method further comprises the steps of:
s101: in a supply chain accessed to a public chain network, initiating a supply transaction to the public chain by a supply node, wherein the supply transaction comprises a supply certificate type and a supply certificate quantity transferred to the public chain;
s102: the public chain calculates the exchange rate between the supply certificate and the public chain certificate according to the supply amount of the supply certificate in the public chain network;
s103: and the public chain transfers the public chain certificate to the supply node according to the exchange rate between the supply certificate and the public chain certificate, wherein the value of the public chain certificate is the number of the supply certificate.
As can be seen from the above steps, in this embodiment, each blockchain network that the public-link network needs to access before the certificate exchange occurs supplies various types of certificates, and stores the certificates in the public-link network for later exchange. In this embodiment, the certificate of supply of each block chain is referred to as a supply certificate. Therefore, in practical application, the blockchain network accessing the public chain is used as a supply chain, and a supply node in the supply chain initiates a supply transaction to the public chain, wherein the supply transaction comprises a supply certificate type and a supply certificate quantity. After the supply transaction is received by the public chain, the certificate and certification supply amount in the current public chain network is determined according to the supply certificate and certification type, the exchange rate between the supply certificate and the public chain certificate is calculated according to the certificate and certification type, finally, the public chain calculates the convertible public chain certificate and certification amount according to the calculated exchange rate and the supply certificate and transfers the corresponding public chain certificate and certification amount to a supply node, and the supply transaction is completed.
In the embodiment, various types of certificates and receipts are supplied to the public chain through a plurality of block chain networks accessed to the public chain, and the public chain stores the certificates and receipts, so that the types of the certificates and receipts participating in exchange are various, and the sufficient certificates and receipts participating in exchange are ensured, so that the value stability of various certificates and receipts participating in exchange is maintained. In addition, because the supplied certificate is stored in the public chain network, the exchange initiating chain can not contact the supply chain in the subsequent certificate exchange process, so that the adversary-free exchange is formed, and the exchange efficiency is greatly improved.
In this embodiment, the blockchain network as the supply chain may also exchange the supply certificate to other types of certificates according to needs, where the exchange process is the same as the exchange transaction process of the exchange initiation chain, and after acquiring the certificate of the public chain, the public chain certificate is exchanged to the designated exchange certificate by initiating a sale transaction, that is, as shown in fig. 3, the method further includes:
s104: accessing into a supply chain of a public chain network, and initiating a selling transaction to the public chain by a supply node; the method comprises the following steps: the supply chain transfers a preset number of public chain certificates to the public chain;
s105: the public chain extracts the exchange rate between the public chain certificate and the exchange certificate corresponding to the supply chain at the current time;
s106: and the public chain transfers the exchange certificate of the value such as the money to the supply node according to the exchange rate of the public chain certificate and the exchange certificate.
It can be seen that in the present embodiment, the supply chain does not obtain the public chain voucher but obtains the redemption voucher through the supply voucher when performing the supply transaction. The public chain only needs to exchange corresponding exchange certificate through the public chain certificate as a medium. Therefore, when the supply chain supplies the certificate, the supply chain does not need to contact a conversion opponent, and the certificate supply efficiency is improved.
Further, since the blockchain network accessing the public chain is diverse, it does not have the capability of directly transacting with the public chain for some blockchain networks. Therefore, such blockchain networks require parallel chain bridging to complete the redemption transaction. Namely, the method comprises the steps of calculating a real-time exchange rate according to the certificate and certification supply amount in a public chain and sending the real-time exchange rate to a transaction node, and further comprises the following steps:
the public chain sends the real-time exchange rate to a parallel chain corresponding to the exchange initiating chain;
the parallel chain calculates the available number of the exchange certificates according to the real-time exchange rate and the transfer number of the initial certificates; and sending the available number of redemption certificates to the transaction node;
the transaction node confirms the exchange transaction and transfers a preset number of initial certificates to the public chain through the parallel chain.
In some embodiments of the present application, as shown in fig. 4, the step of the public chain transferring the exchange certificates and the preset number of initial certificates and other worth exchange certificates to the transaction node according to the exchange transaction and the real-time exchange rate includes:
s151: the public link receives an initial certificate of the transaction node transfer, and calculates the exchange rate of the initial certificate and the public link certificate according to the initial certificate supply amount in the current public link network;
s152: issuing a public chain certificate with the value of the initial certificate with the preset quantity by the public chain, and extracting the exchange rate of the public chain certificate and the exchange certificate at the current time;
s153: the public chain acquires the exchange certificate certificates with the value such as the number of the public chain certificate certificates from the supplied exchange certificate certificates;
s154: the public chain transfers the acquired exchange certificate to an exchange initiating chain; and eliminating the issued public chain vouchers.
In this embodiment, after the public link receives the initial certificate of the transaction node transfer, the exchange ratio between the initial certificate and the public link certificate is calculated, and then the public link certificate with equal value is issued from the public link network, so as to maintain the stable value of the public link certificate. And extracting the exchange rate of the certificate of the public chain and the certificate of the exchange at the current time, acquiring the certificate of the exchange with the value such as the number of the certificate of the public chain and the like from the certificate of the exchange, transferring the account to an exchange initiating chain, and finishing the exchange transaction. In the embodiment, the certificate exchange rate in the whole block chain network can be maintained stable in the time of no transfer exchange certificate after the initial certificate is received by issuing the public chain certificate of equal value, and the large exchange rate fluctuation is avoided.
Based on the certificate exchange method, the application also provides a block chain system based on the public chain, as shown in fig. 5, the block chain system comprises an exchange initiating chain and a public chain, the exchange initiating chain and the public chain are both in a point-to-point network structure, and part of nodes of the exchange initiating chain are accessed to a public chain network. The public link network has the ability to store credentials provided by each access blockchain.
The transaction initiation chain is configured to: initiating an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initial certificate type and an exchange certificate type, and initiating an exchange transaction to the public chain according to a real-time exchange rate; the method comprises the steps of transferring a preset number of initial certificates to a public chain;
the male chain is configured to: inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate; calculating a real-time exchange rate according to the supply amount of the initial certificate and the exchange certificate, and sending the real-time exchange rate to an exchange initiating chain; and exchanging the transaction and the real-time exchange rate, and transferring the exchange certificate of the value such as the chain transfer and the starting certificate of the preset quantity to the exchange.
Referring to fig. 6, the present application further provides a certificate exchange method based on public chain, comprising the steps of:
s21: a transaction node in the exchange initiation chain initiates an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initiation certificate type and an exchange certificate type;
s22: the public link inquires the current exchange rate of the initial certificate and the exchange certificate in the exchange rate table according to the exchange certificate type and sends the current exchange rate to the transaction node;
s23: the transaction node initiates an exchange transaction to the public chain according to the current exchange rate; transferring a preset number of initial certificates to the public chain;
s24: and the public chain transfers the exchange certificate certificates with the value such as the initial certificate certificates of the preset quantity to the transaction nodes according to the exchange transaction and the current exchange rate.
The present embodiment differs from the above-described embodiments in that the manner of determining the exchange rate of the originating voucher to the redemption voucher is accomplished through an exchange rate table built into the public link network. The conversion ratio table is a digital table which is built in a public chain network and is refreshed periodically. The exchange rate among various certificates can be provided, and the exchange rate can be calculated and provided by a part of nodes which are specially used for balancing the certificate value in the public chain, and can also be provided by a financial industry chain accessing a public chain network. However, for the financial industry chain accessing the public chain network, when accessing the public chain network, the maintenance node in the public chain and other blockchain networks related to interest relevance can vote on the financial industry chain online to determine the authority and effectiveness of the financial industry so as to provide a more reasonable exchange rate.
In addition, the exchange rate table can also complete the refreshing calculation of the exchange rate table through a specified part of nodes in the public chain network. In the public chain network, the designated calculation capacity is strong, and part of nodes with the qualification authority serve as maintenance nodes of the exchange rate table, and the exchange rate between the stored certificate and the public chain certificate, namely the value of the certificate, is calculated by monitoring the supply amount of various certificates stored in the public chain network in real time. And the content in the exchange rate table is regularly updated according to a preset period so as to improve the efficiency of determining the real-time exchange rate by the public chain.
Obviously, in practical application, when determining the exchange rate between two certificates, the public chain can also ensure the exchange rights and interests of both parties to the maximum extent by means of providing the exchange efficiency in a manner of supply amount and referring to the exchange rate table.
In some embodiments of the present application, the exchange rate table is a dynamic parameter list stored in a public link network, as shown in fig. 7, and the method further includes the following steps:
s211: the public link configures an intelligent contract for a supply chain accessed to a public link network;
s212: the supply chain provides a preset number of supply certifications and public chain certifications through an intelligent contract;
s213: the public chain calculates an initial exchange rate according to the preset number of the supply certificate and the public chain certificate, and adds the initial exchange rate to the exchange rate table;
s214: and the public chain updates the exchange rate in real time according to the exchange content each time the intelligent contract is called.
In this embodiment, initially, an access node in the supply chain provides a preset number of supply certificates and corresponding public chain certificates through the intelligent contract provided by the public chain to determine the corresponding redemption rates. For example, the supply chain provides 1000 supply certificates, while providing 10 public chain certificates, and determines the corresponding exchange rate as 100: this portion of the originally supplied witness will serve as a reserve witness. In subsequent application, the intelligent contract can be called for many times, and the certificate exchange is completed once every time of calling, so that the corresponding exchange rate can be updated through continuous exchange.
Under the condition that an exchange opponent exists, the network A exchanges the supply certificate into a public chain certificate through a public chain, and then a network B provides the corresponding public chain certificate, and receives the supply certificate of the network A, and a corresponding exchange rate exists; in the case of no exchange opponent, the exchange is directly carried out through the reserve certificate, and the exchange rate is the current real-time rate. If the reserve certificate is exhausted, two conditions are presented: one is that the supply certificate is exhausted, and the supply certificate is short-pending when the supply certificate is over-bought, the supply certificate will increase in value, so the access chain network will be stimulated to provide the supply certificate, otherwise the price will increase uniformly; in another case, if the public chain certificate corresponding to the reserve certificate is exhausted and overdesign occurs, the supply certificate is sold and price collapse occurs, which leads to zero value of the supply certificate. Therefore, under the mechanism, all parties participating in the certificate exchange can maintain a fair exchange rate to the full extent, and the benefits of all parties are guaranteed. In this embodiment, by the above-mentioned updating manner of the exchange rate, the benefits of each exchange participant can be protected as much as possible, the value of maintaining the certificate of the exchange participant is ensured, and the security and the compliance of the public chain are maintained.
Further, when determining the exchange rate between the initial certificate and the exchange certificate by using the exchange rate table, as shown in fig. 8, before the step of initiating the inquiry transaction to the public chain by the transaction node in the exchange initiation chain, the method further includes the following steps:
s201: in a supply chain accessing a public chain network, initiating, by a supply node, a supply transaction to the public chain, the supply transaction including a type of supply certificate and a quantity of supply certificate transferred to the public chain;
s202: the public chain inquires the exchange rate between the supply certificate and the public chain certificate in the exchange rate table according to the type of the supply certificate;
s203: and the public chain transfers the public chain certificate to the supply node according to the exchange rate between the supply certificate and the public chain certificate, wherein the value of the public chain certificate is equal to the value of the number of the supply certificate.
Also, as can be seen from the above steps, in the present embodiment, before the credential redemption occurs, the blockchain network accessing the public chain is used as a supply chain, and a supply node in the supply chain initiates a supply transaction to the public chain, where the supply transaction includes a supply credential type and a supply credential amount. After the supply transaction is received by the public chain, inquiring the conversion rate between the supply certificate and the public chain certificate in the conversion rate table according to the type of the supply certificate, finally calculating the convertible quantity of the public chain certificate according to the inquired conversion rate and the quantity of the supply certificate by the public chain, and transferring the corresponding quantity of the public chain certificate to a supply node to finish the supply transaction.
In the embodiment, various types of certificates and receipts are supplied to the public chain through a plurality of block chain networks accessed to the public chain, and the public chain stores the certificates and receipts, so that the types of the certificates and receipts participating in exchange are various, and the sufficient certificates and receipts participating in exchange are ensured, so that the value stability of various certificates and receipts participating in exchange is maintained. In addition, because the supplied certificate is stored in the public chain network, the exchange initiating chain can not contact the supply chain in the subsequent certificate exchange process, so that the adversary-free exchange is formed, and the exchange efficiency is greatly improved.
Further, as shown in fig. 9, the method further includes the steps of:
s204: accessing into a supply chain of a public chain network, and initiating a selling transaction to the public chain by a supply node; the sell transaction includes: the number of the public chain certificate exchanges accounts to the public chain and the type of the buyback certificate;
s205: inquiring the exchange ratio between the public chain certificate and the buyback certificate in the exchange ratio table according to the buyback certificate type by the public chain;
s206: and the public chain transfers the buyback certificate exchanges with the supply node according to the exchange rate between the public chain certificate exchange and the buyback certificate exchange, and the buyback certificate exchange has the value of the quantity of the public chain certificate exchange and the like.
Also, in this embodiment, the supply chain may obtain other types of credentials through the supply credential when conducting a supply transaction. The public chain only needs to exchange corresponding exchange certificate through the public chain certificate as a medium. Therefore, the exchange rate of the public chain certificate and the exchange certificate is determined through the exchange rate table, and the public chain certificate is exchanged into other types of certificates with equal value. Compared with the embodiment, the supply chain does not need to contact a redemption opponent when the supply chain performs supply certification, and the supply amount of the supply certification and the redemption certification can be prevented from being inquired through the redemption rate table, so that the certification supply efficiency is further improved.
In some embodiments of the present application, as shown in fig. 10, the public chain queries the supply of the originating voucher and the redemption voucher in the public chain network according to the type of the redemption voucher; the steps that the public link inquires the current exchange rate of the initial certificate and the exchange certificate in the exchange rate table according to the exchange certificate type and sends the current exchange rate to the transaction node can comprise the following steps:
s301: if the exchange certificate type is not inquired in the public chain network, the public chain extracts the exchange rate of the initial certificate and the public chain certificate at the current time;
s302: the public chain generates a query result according to the exchange rate of the initial certificate and the public chain certificate, and sends the query result to the transaction node;
s303: the transaction node determines whether to initiate conversion transaction to the public chain according to the query result;
s304: and after the exchange transaction is initiated at the transaction node, the public chain transfers the public chain certificate of preset quantity and other values to the transaction node according to the exchange ratio of the initial certificate and the public chain certificate.
According to the technical scheme, when the exchange certificate type is not inquired in the public chain network, the inquiry result can be generated according to the exchange ratio of the starting certificate and the public chain certificate, and the inquiry result is returned to the exchange initiating chain. When the inquiry result is returned, corresponding prompt information can be attached, such as ' the certificate required to be exchanged is not inquired by the current network, and the type of the certificate exchange is required to be re-appointed ', or ' whether the certificate required to be exchanged is not inquired by the current network and is exchanged into the public chain certificate. And if the transaction node determines to exchange the certificate to the certificate of the public chain, transferring the certificate of the public chain with equal value to the transaction node according to the exchange ratio of the certificate of the origin and the certificate of the public chain, and finishing the exchange transaction.
Further, as shown in fig. 11, the steps of inquiring the supply amounts of the initials and the exchanges in the public chain network by the public chain according to the type of the exchanges, and inquiring the current exchange rate of the initials and the exchanges in the exchange rate table by the public chain according to the type of the exchanges, and transmitting the current exchange rate to the transaction node, may further include the steps of:
s305: if the exchange certificate type is not inquired in the public chain network, the public chain inquires an exchange target chain capable of supplying the exchange certificate type in the public chain network;
s306: the public chain sends a query result to the transaction node, wherein the query result comprises address information and exchange conditions of the exchange target chain;
s307: and the transaction node initiates the exchange transaction of the appointed exchange target chain to the public chain according to the received query result.
That is, in this embodiment, if the redemption type is not queried in the public link network, a redemption target chain capable of supplying the redemption type may be queried in the public link network, and address information and redemption conditions of the queried redemption target chain are sent to the transaction node, so that a real-time transaction is initiated between the transaction initiating chain and the transaction target chain, and a corresponding redemption transaction is completed.
It should be noted that after the exchange target chain capable of supplying the exchange certificate type is inquired, the public chain can directly perform the exchange transaction between the exchange initiation chain and the exchange target chain by establishing a connection relationship between the exchange initiation chain and the exchange target chain; corresponding exchange transactions can also be transmitted through the public chain, namely, the transaction node initiates the exchange transactions of the appointed exchange target chain to the public chain according to the received query result, and the public chain transmits corresponding transaction information. On one hand, the public chain transmits an initial certificate of the exchange initiating chain transfer to the transaction target chain, and on the other hand, the public chain exchanges the equivalent value of the exchange initiating chain transfer to the transaction initiating chain so as to complete the final cross-chain exchange transaction.
In a fourth aspect, the application further provides a public chain-based blockchain system, which includes an exchange initiating chain and a public chain, wherein the exchange initiating chain and the public chain are both in a point-to-point network structure, and part of nodes of the exchange initiating chain are accessed to a public chain network; the exchange rate table is stored in the public link network;
the transaction initiation chain is configured to: initiating an inquiry transaction to a public chain, wherein the inquiry transaction comprises an initial certificate type and a conversion certificate type; and initiating an exchange transaction to the public chain according to the current exchange rate; transferring a preset number of initial certificates to the public chain;
the male chain is configured to: inquiring the current exchange rate of the initial certificate and the exchange certificate in the exchange rate table according to the type of the exchange certificate, and sending the current exchange rate to a transaction node; and transferring the exchange certificates and other valuable exchange certificates with the preset number of the initial certificates and other value to the transaction nodes according to the exchange transaction and the current exchange rate.
According to the technical scheme, the application provides a certificate exchange method and a block chain system based on a public chain. In practical application, the exchange initiating chain initiates a query transaction to the public chain, so that the public chain calculates the real-time exchange rate according to the initial evidence type and the exchange supply amount in the query transaction, or acquires the real-time exchange rate from the exchange rate table; and then the real-time exchange rate is sent to an exchange initiating chain. The exchange initiating chain initiates an exchange transaction to the public chain according to the real-time exchange rate; namely, the preset number of initial certificate certificates are transferred to the public chain, so that the public chain initiates the exchange certificate certificates with the value such as chain transfer, initial certificate amount and the like to the exchange according to the exchange transaction and the real-time exchange rate, and the exchange transaction is completed. The method determines the exchange rate through the supply amount of the initial certificate and the exchange certificate, ensures the exchange rights and interests of both exchange parties, improves the exchange efficiency, and avoids the problem of low exchange efficiency caused by a centralized exchange platform.
The embodiments provided in the present application are only a few examples of the general concept of the present application, and do not limit the scope of the present application. Any other embodiments extended according to the scheme of the present application without inventive efforts will be within the scope of protection of the present application for a person skilled in the art.

Claims (10)

1. A certificate exchange method based on a public chain is characterized by comprising the following steps:
a transaction node in the exchange initiation chain initiates an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initiation certificate type and an exchange certificate type;
inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate;
the public chain calculates the real-time exchange rate according to the certificate and account supply amount and sends the real-time exchange rate to the transaction node;
the transaction node initiates an exchange transaction to the public chain according to the real-time exchange rate; transferring a preset number of initial certificates to the public chain;
and the public chain transfers the exchange certificate certificates with the value such as the initial certificate certificates of the preset quantity to the transaction nodes according to the exchange transaction and the real-time exchange rate.
2. The method of claim 1, wherein the step of the public chain transferring to the transaction node, in accordance with the exchange transaction and the real-time exchange rate, exchange certificates of value such as a preset number of initial certificates and certificates comprises:
the public link receives an initial certificate of the transaction node transfer, and calculates the exchange rate of the initial certificate and the public link certificate according to the initial certificate supply amount in the current public link network;
issuing a public chain certificate with the value of the initial certificate with the preset quantity by the public chain, and extracting the exchange rate of the public chain certificate and the exchange certificate at the current time;
the public chain acquires the exchange certificate certificates with the value such as the number of the public chain certificate certificates from the supplied exchange certificate certificates;
and the public chain transfers the acquired exchange certificate to an exchange initiating chain.
3. The credential redemption method of claim 1, wherein prior to the step of a transaction node in a redemption initiation chain initiating a query transaction to a public chain, the method further comprises:
in a supply chain accessed to a public chain network, initiating a supply transaction to the public chain by a supply node, wherein the supply transaction comprises a supply certificate type and a supply certificate quantity transferred to the public chain;
the public chain calculates the exchange rate between the supply certificate and the public chain certificate according to the supply amount of the supply certificate in the public chain network;
and the public chain transfers the public chain certificate to the supply node according to the exchange rate between the supply certificate and the public chain certificate, wherein the value of the public chain certificate is the number of the supply certificate.
4. The ticket redemption method of claim 1, wherein the step of the public chain querying the public chain network for the originating ticket and the supply of the redemption ticket based on the type of the redemption ticket further comprises:
if the exchange certificate type is not inquired in the public chain network, the public chain inquires an exchange target chain capable of supplying the exchange certificate type in the public chain network;
the public chain sends a query result to the transaction node, wherein the query result comprises address information and exchange conditions of the exchange target chain;
and the transaction node initiates the exchange transaction of the appointed exchange target chain to the public chain according to the received query result.
5. A certificate exchange method based on a public chain is characterized by comprising the following steps:
a transaction node in the exchange initiation chain initiates an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initiation certificate type and an exchange certificate type;
the public link inquires the current exchange rate of the initial certificate and the exchange certificate in the exchange rate table according to the exchange certificate type and sends the current exchange rate to the transaction node;
the transaction node initiates an exchange transaction to the public chain according to the current exchange rate; transferring a preset number of initial certificates to the public chain;
and the public chain transfers the exchange certificate certificates with the value such as the initial certificate certificates of the preset quantity to the transaction nodes according to the exchange transaction and the current exchange rate.
6. The credential redemption method of claim 5, wherein prior to the step of the transaction node in the redemption initiation chain initiating an inquiry transaction to the public chain, the method further comprises:
in a supply chain accessing a public chain network, initiating, by a supply node, a supply transaction to the public chain, the supply transaction including a type of supply certificate and a quantity of supply certificate transferred to the public chain;
the public chain inquires the exchange rate between the supply certificate and the public chain certificate in the exchange rate table according to the type of the supply certificate;
and the public chain transfers the public chain certificate to the supply node according to the exchange rate between the supply certificate and the public chain certificate, wherein the value of the public chain certificate is equal to the value of the number of the supply certificate.
7. The method of claim 5, further comprising:
accessing into a supply chain of a public chain network, and initiating a selling transaction to the public chain by a supply node; the sell transaction includes: the number of the public chain certificate exchanges accounts to the public chain and the type of the buyback certificate;
inquiring the exchange ratio between the public chain certificate and the buyback certificate in the exchange ratio table according to the buyback certificate type by the public chain;
and the public chain transfers the buyback certificate exchanges with the supply node according to the exchange rate between the public chain certificate exchange and the buyback certificate exchange, and the buyback certificate exchange has the value of the quantity of the public chain certificate exchange and the like.
8. The evidence redemption method of claim 5, wherein the redemption rate table is a dynamic list of parameters stored in a public link network, the method further comprising:
the public link configures an intelligent contract for a supply chain accessed to a public link network;
the supply chain provides a preset number of supply certifications and public chain certifications through an intelligent contract;
the public chain calculates an initial exchange rate according to the preset number of the supply certificate and the public chain certificate, and adds the initial exchange rate to the exchange rate table;
and the public chain updates the exchange rate in real time according to the exchange content each time the intelligent contract is called.
9. A block chain system based on a public chain is characterized by comprising an exchange initiating chain and a public chain, wherein the exchange initiating chain and the public chain are both in a point-to-point network structure, and part of nodes of the exchange initiating chain are accessed to a public chain network;
the transaction initiation chain is configured to: initiating an inquiry transaction to the public chain, wherein the inquiry transaction comprises an initial certificate type and an exchange certificate type, and initiating an exchange transaction to the public chain according to a real-time exchange rate; the method comprises the steps of transferring a preset number of initial certificates to a public chain;
the male chain is configured to: inquiring the supply amount of the initial certificate and the exchange certificate in the public chain network according to the type of the exchange certificate; calculating a real-time exchange rate according to the supply amount of the initial certificate and the exchange certificate, and sending the real-time exchange rate to an exchange initiating chain; and exchanging the transaction and the real-time exchange rate, and transferring the exchange certificate of the value such as the chain transfer and the starting certificate of the preset quantity to the exchange.
10. A block chain system based on a public chain is characterized by comprising an exchange initiating chain and a public chain, wherein the exchange initiating chain and the public chain are both in a point-to-point network structure, and part of nodes of the exchange initiating chain are accessed to a public chain network; the exchange rate table is stored in the public link network;
the transaction initiation chain is configured to: initiating an inquiry transaction to a public chain, wherein the inquiry transaction comprises an initial certificate type and a conversion certificate type; and initiating an exchange transaction to the public chain according to the current exchange rate; transferring a preset number of initial certificates to the public chain;
the male chain is configured to: inquiring the current exchange rate of the initial certificate and the exchange certificate in the exchange rate table according to the type of the exchange certificate, and sending the current exchange rate to a transaction node; and transferring the exchange certificates and other valuable exchange certificates with the preset number of the initial certificates and other value to the transaction nodes according to the exchange transaction and the current exchange rate.
CN201811496949.XA 2018-12-07 2018-12-07 Certificate exchange method based on public chain and block chain system Pending CN111292183A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201811496949.XA CN111292183A (en) 2018-12-07 2018-12-07 Certificate exchange method based on public chain and block chain system
PCT/CN2019/119532 WO2020114241A1 (en) 2018-12-07 2019-11-19 Token exchange method based on public blockchain, and blockchain system
NL2024395A NL2024395B1 (en) 2018-12-07 2019-12-06 Public chain-based token exchange method and blockchain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811496949.XA CN111292183A (en) 2018-12-07 2018-12-07 Certificate exchange method based on public chain and block chain system

Publications (1)

Publication Number Publication Date
CN111292183A true CN111292183A (en) 2020-06-16

Family

ID=69187865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811496949.XA Pending CN111292183A (en) 2018-12-07 2018-12-07 Certificate exchange method based on public chain and block chain system

Country Status (3)

Country Link
CN (1) CN111292183A (en)
NL (1) NL2024395B1 (en)
WO (1) WO2020114241A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180197155A1 (en) * 2016-12-12 2018-07-12 Topl, Llc Method and Apparatus for Processing Mobile Payment Using Blockchain Techniques
CN110402449A (en) * 2017-01-08 2019-11-01 币柏特寇基金会 Method for exchanging and assessing ideal money
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN108470278A (en) * 2018-03-13 2018-08-31 成都零光量子科技有限公司 A kind of block chain Token is across chain and on-line off-line method of commerce
CN108647958A (en) * 2018-03-23 2018-10-12 北京大学深圳研究生院 A kind of digital asset method of commerce and system based on block chain
CN108846667A (en) * 2018-04-23 2018-11-20 上海分布信息科技有限公司 A kind of logical card regulation method based on block chain and logical card regulator control system
CN108764925A (en) * 2018-05-31 2018-11-06 李沁福 A kind of synthesis business platform based on block chain technology

Also Published As

Publication number Publication date
NL2024395A (en) 2020-06-30
NL2024395B1 (en) 2020-08-13
WO2020114241A1 (en) 2020-06-11

Similar Documents

Publication Publication Date Title
CN110866823B (en) Public link-based transaction method and block chain system
CN107180350B (en) Method, device and system for multi-party sharing transaction metadata based on block chain
CN109034840B (en) Green certificate transaction method and system based on clean energy generation
Sun et al. Blockchain-enhanced high-confidence energy sharing in internet of electric vehicles
KR101727525B1 (en) Block chain based distributed storage method and device thereof
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
JP2018526947A (en) Supply system and method for operating a supply system
CN110335147A (en) A kind of digital asset Information Exchange System and method based on block chain
TWM543413U (en) Web lending platform using technology of blockchain for deal
TW202032960A (en) Method and device for data processing based on blockchain
CN111369353A (en) Certificate exchange method based on public link and block link system
CN109685504A (en) It is a kind of that economic bookkeeping methods is shared based on block chain
JP2022523447A (en) How to elect a leader node using a role-based consensus protocol in a blockchain network
CN109493041B (en) Distributed accounting method and transaction platform based on regional field chain
KR20200094441A (en) Method and apparatus for trading power
CN116595094A (en) Federal learning incentive method, device, equipment and storage medium based on block chain
Di Silvestre et al. An energy blockchain, a use case on tendermint
Yakubu et al. Blockchain-based secure multi-resource trading model for smart marketplace
Song et al. Reliable reputation review and secure energy transaction of microgrid community based on hybrid blockchain
Gao et al. A blockchain peer-to-peer energy trading system for microgrids
CN113626876B (en) Consensus method based on power grid block chain
KR20200114324A (en) Block chain based money transfer processing system using cryptocurrency
CN111292183A (en) Certificate exchange method based on public chain and block chain system
Sheikh et al. Blockchain-based decentralized, flexible, and transparent energy market
WO2020042930A1 (en) Parallel-chain-based transaction method and blockchain system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 210000 A-002, building D4, No.15 Wanshou Road, Nanjing area, China (Jiangsu) pilot Free Trade Zone, Nanjing City, Jiangsu Province

Applicant after: Aowei Co.,Ltd.

Address before: 210000 A-002, building D4, No.15 Wanshou Road, Nanjing area, China (Jiangsu) pilot Free Trade Zone, Nanjing City, Jiangsu Province

Applicant before: Jiangsu Aowei Holding Co.,Ltd.

Address after: 210000 A-002, building D4, No.15 Wanshou Road, Nanjing area, China (Jiangsu) pilot Free Trade Zone, Nanjing City, Jiangsu Province

Applicant after: Jiangsu Aowei Holding Co.,Ltd.

Address before: Room 309, 3 / F, building B, No.9 Xinghuo Road, Jiangbei new district, Nanjing City, Jiangsu Province, 210000

Applicant before: Aowei information technology (Jiangsu) Co.,Ltd.

CB02 Change of applicant information