CN111383110A - Cross-block-chain evidence transfer method and device and hardware equipment - Google Patents
Cross-block-chain evidence transfer method and device and hardware equipment Download PDFInfo
- Publication number
- CN111383110A CN111383110A CN202010024970.0A CN202010024970A CN111383110A CN 111383110 A CN111383110 A CN 111383110A CN 202010024970 A CN202010024970 A CN 202010024970A CN 111383110 A CN111383110 A CN 111383110A
- Authority
- CN
- China
- Prior art keywords
- party
- blockchain system
- transaction party
- transaction
- pass
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012546 transfer Methods 0.000 title claims abstract description 39
- 238000012790 confirmation Methods 0.000 claims abstract description 15
- 238000004891 communication Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012550 audit Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a trans-block chain evidence transfer method, a trans-block chain evidence transfer device and hardware equipment, relates to the technical field of block chains, and is used for improving trans-block chain evidence transfer efficiency. The main technical scheme of the invention is as follows: after receiving a triggering execution intelligent contract request sent by a first trading party in a first blockchain system, acquiring a second trading party corresponding to the first trading party from the intelligent contract request; generating transaction information according to the sending address corresponding to the first transaction party, the receiving address corresponding to the second transaction party and the intelligent contract request, and sending the transaction information to the second transaction party; if the confirmation of the second transaction party to the transaction information is received, a connecting channel of the first blockchain system and the second blockchain system is established; extracting the current pass certificate and the corresponding pass certificate identification according to the intelligent contract; inquiring whether a prior pass certificate associated with the current pass certificate exists; and if so, sending the current pass certificate to a second transaction party in the second blockchain system through the connecting channel.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a trans-block chain evidence transfer method, a trans-block chain evidence transfer device and hardware equipment.
Background
The block chain is a recording technology different from the traditional centralized accounting mode, participates in nodes on the block chain system, possibly does not belong to the same organization and does not need to trust each other; the blockchain data is maintained by all nodes together, and each node participating in maintenance can obtain a copy of a complete record. Compared with the traditional accounting technology, the method has the characteristics that: maintaining a chain which grows continuously, only adding records possibly, and the records which occur cannot be tampered; can achieve the consensus without centralized control.
At present, the certified exchange between block chains is mainly realized by two modes of hash locking and side chain. The Hash locking is realized by generating a random number to generate Hash, and further realizing cross-link exchange evidence through a Hash locking contract mode; the side chain mode is based on the fact that the general evidence on a certain original chain is anchored to realize cross-chain exchange general evidence. The above method of exchanging certificates across links can only be used for two specific block chains, and if the method is applied to other block chains, the bottom layer development needs to be performed again, so that the applicable block chains are limited, and the method cannot be widely applied.
Disclosure of Invention
The invention provides a trans-block chain evidence transfer method, a trans-block chain evidence transfer device, computer equipment and a storage medium, which are used for improving trans-block chain evidence transfer efficiency.
The embodiment of the invention provides a trans-block chain evidence transfer method, which is applied to an evidence transfer center, wherein the evidence transfer center corresponds to a plurality of block chain systems, and each block chain system can be connected with the evidence transfer center, and the method comprises the following steps:
after receiving a triggering execution intelligent contract request sent by a first trading party in a first blockchain system, acquiring a second trading party corresponding to the first trading party from the intelligent contract request, and determining a second blockchain system to which the second trading party belongs;
acquiring CA digital certificates corresponding to the first transaction party and the second transaction party respectively; verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated;
if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated respectively, generating transaction information according to a sending address corresponding to the first transaction party, a receiving address corresponding to the second transaction party and the intelligent contract request, and sending the transaction information to the second transaction party in a second blockchain system, so that the second transaction party in the second blockchain system confirms whether to establish connection with the first transaction party or not according to the transaction information;
if the confirmation of a second transaction party in the second blockchain system to the transaction information is received, establishing a connecting channel between the first blockchain system and the second blockchain system;
acquiring an intelligent contract from the intelligent contract request, and extracting a current pass and a corresponding pass identifier according to the intelligent contract;
inquiring whether a prior pass associated with the current pass exists according to the pass identifier, wherein the prior pass is a pass authorized before the current pass, and the current pass and the prior pass correspond to the same pass identifier;
and if the prior pass associated with the current pass exists, confirming that the current pass is valid, and sending the current pass to a second transaction party in the second block chain system through the connecting channel.
The embodiment of the invention provides a trans-block chain evidence transfer device, which corresponds to a plurality of block chain systems, wherein each block chain system can be connected with an evidence transfer center, and the device comprises:
the receiving module is used for acquiring a second trading party corresponding to a first trading party from an intelligent contract request and determining a second blockchain system to which the second trading party belongs after receiving the intelligent contract request which is sent by the first trading party in the first blockchain system and triggers to execute the intelligent contract request;
the acquisition module is used for acquiring the CA digital certificates corresponding to the first transaction party and the second transaction party respectively; verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated;
a generating module, configured to generate transaction information according to a sending address corresponding to the first transaction party, a receiving address corresponding to the second transaction party, and the intelligent contract request if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated, and send the transaction information to the second transaction party in the second blockchain system, so that the second transaction party in the second blockchain system determines whether to establish a connection with the first transaction party according to the transaction information;
the establishing module is used for establishing a connecting channel between the first blockchain system and the second blockchain system if the confirmation of a second transaction party in the second blockchain system on the transaction information is received;
the acquisition module is also used for acquiring the intelligent contract from the intelligent contract request and extracting the current pass and the corresponding pass identification according to the intelligent contract;
the inquiry module is used for inquiring whether a prior pass certificate associated with the current pass certificate exists according to the pass certificate identifier, wherein the prior pass certificate is a pass certificate authorized before the current pass certificate, and the current pass certificate and the prior pass certificate correspond to the same pass certificate identifier;
and the sending module is used for confirming that the current pass certificate is valid if a previous pass certificate associated with the current pass certificate exists, and sending the current pass certificate to a second transaction party in the second block chain system through the connecting channel.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the above-described method of passthrough transfer across a blockchain when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the above-described apparatus for credential transfer across blockchains.
According to the cross-block-chain evidence transfer method, the device, the computer equipment and the storage medium, when an intelligent contract request which is triggered and executed and sent by a first trading party in a first block chain system is received, a second trading party corresponding to the first trading party is obtained from the intelligent contract request; generating transaction information according to the sending address corresponding to the first transaction party and the receiving address corresponding to the second transaction party by an intelligent contract request, and sending the transaction information to a second transaction in the second block chain system; if the confirmation of a second transaction party in the second blockchain system to the transaction information is received, establishing a connecting channel between the first blockchain system and the second blockchain system; acquiring an intelligent contract from the intelligent contract request, and extracting a current pass certificate and a corresponding pass certificate according to the intelligent contract; inquiring whether a prior pass associated with the current pass exists according to the pass identification; and if the prior pass certificate associated with the current pass certificate exists, the current pass certificate is confirmed to be valid, and the current pass certificate is sent to a second transaction party in a second block chain system through a connecting channel. Compared with the prior method for realizing the evidence transfer of the cross-block chain in a Hash locking mode or a side chain mode, the evidence transfer method realizes the evidence transfer of different block chain systems through the evidence transfer center, namely the evidence transfer center generates transaction information according to a sending address corresponding to a first transaction party, a receiving address corresponding to a second transaction party and an intelligent contract request after receiving an execution intelligent contract request sent by a first block chain, sends the transaction information to the second transaction party of the second block chain for confirmation, and establishes the connection between the first block chain system and the second block chain system after receiving the confirmation of a second transaction fee, thereby realizing the evidence transfer of the cross-block chain system and improving the evidence transfer efficiency of the cross-block chain system.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a method for cross-blockchain credential transfer in an embodiment of the present invention;
FIG. 2 is a flowchart of a method for cross-blockchain credential transfer according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a trans-blockchain evidence transfer apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the 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 some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making an invasive task, are within the scope of the present invention.
In an embodiment, as shown in fig. 1, a method for trans-blockchain credential transfer is provided, where the method is applied to a credential transfer center, the credential transfer center corresponds to a plurality of blockchain systems, and each blockchain system can establish a connection with the credential transfer center, and in the embodiment of the present invention, a first blockchain system and a second blockchain system included in a blockchain system are described, where the method includes the following steps:
and S10, after receiving a triggering execution intelligent contract request sent by a first trading party in the first blockchain system, acquiring a second trading party corresponding to the first trading party from the intelligent contract request, and determining a second blockchain system to which the second trading party belongs.
The intelligent contract request comprises intelligent contract content and a requester in the intelligent contract, namely a first transaction party in the first blockchain system; and the requested party in the intelligent contract is a second transaction party which carries out transaction with the first transaction party, namely a second transaction party in the second blockchain system.
It should be noted that the blockchain system of the embodiment of the present invention includes a first blockchain system and a second blockchain system, where the first transaction party is a node in the first blockchain system, and the second transaction party is a node in the second blockchain system. After the first trading party and the second trading party establish the intelligent contract, the first trading party sends a request for triggering execution of the intelligent contract to the execution main body certification transfer center, and after receiving the intelligent contract request, the certification transfer center obtains the second trading party corresponding to the first trading party from the intelligent contract request and determines a second block system to which the second trading party belongs.
S20, obtaining CA digital certificates corresponding to the first trading party and the second trading party respectively; and verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated respectively.
The CA digital certificate contains a public key, a user trusts the CA by verifying the signature of the CA, and anyone can obtain the CA digital certificate to verify the certificate issued by the CA digital certificate. The CA digital certificate binds the public key with the user identity information of the applicant, and forms a certificate after signing the public key and the user identity information of the applicant, and then sends the certificate to the applicant.
In an embodiment of the present invention, before acquiring CA (electronic authentication service) digital certificates corresponding to the first transaction party and the second transaction party, the method further includes: the first trading party and the second trading party respectively send CA digital certificate acquisition requests to an authority server, wherein the CA digital certificate acquisition requests contain user identity information, so that the authority server can carry out KYC (Know your customer, namely, fully Know your customer) audit on a user according to the user identity information; and the first transaction party and the second transaction party receive CA digital certificates sent by the authority server, wherein the CA digital certificates comprise user identity information, and the CA digital certificates are certificates approved by KYC.
And S30, if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated, generating transaction information according to the sending address corresponding to the first transaction party, the receiving address corresponding to the second transaction party and the intelligent contract request, and sending the transaction information to the second transaction party in the second blockchain system.
In the embodiment of the present invention, in order to generate the transaction information according to the sending address corresponding to the first transaction party, the receiving address corresponding to the second transaction party, and the intelligent contract request, and send the transaction information to the second transaction party in the second blockchain system, the second transaction party in the second blockchain system confirms whether to establish connection with the first transaction party according to the transaction information, that is, the second transaction party in the second blockchain system determines whether to establish connection with the first transaction party according to the intelligent contract content in the transaction information, and if the second transaction party in the second blockchain system confirms the transaction information, the step S40 is skipped to execute the step S40 to establish the connection channel between the first blockchain system and the second blockchain system.
In an embodiment provided by the present invention, after the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated, before generating transaction information according to the sending address corresponding to the first transaction party, the receiving address corresponding to the second transaction party, and the intelligent contract request, user identity information included in the first transaction party and the second transaction party in the digital certificates respectively needs to be acquired, that is, the CA digital certificates are decrypted by public keys corresponding to the CA digital certificates respectively, and user identity information included in the first transaction party and the first transaction party is acquired therefrom; and then verifying whether the user identity information corresponding to the first trading party and the second trading party respectively succeeds, if the user identity information is verified successfully, generating trading information according to a sending address corresponding to the first trading party, a receiving address corresponding to the second trading party and the intelligent contract request, and sending the trading information to the second trading party in the second block chain system.
S40, if the confirmation of the transaction information from the second transaction party in the second blockchain system is received, a connection channel between the first blockchain system and the second blockchain system is established.
It should be noted that, because the certification passing transfer center in the embodiment of the present invention corresponds to a plurality of blockchain systems, each blockchain system may establish a connection with the certification passing transfer center, after receiving the confirmation of the second transaction party in the second blockchain system on the transaction information, the certification passing transfer center needs to establish a connection with the first blockchain system and the second blockchain system, and then the certification passing transfer center is used as a relay point to implement the connection between the first blockchain system and the second blockchain system.
And S50, acquiring the intelligent contract from the intelligent contract request, and extracting the current pass and the corresponding pass identification according to the intelligent contract.
The intelligent contract request comprises intelligent contract content, after the intelligent contract is acquired from the intelligent contract request, the current pass and the pass identification corresponding to the current pass are extracted from the intelligent contract, the current pass is the pass in the current intelligent contract request, the front and the back of the pass are determined according to the time sequence, the pass identification corresponding to the same pass is fixed and unique, namely the current pass and the pass identification corresponding to the previous pass corresponding to the current pass are the same.
And S60, inquiring whether a prior pass associated with the current pass exists according to the pass identification.
The prior pass is the pass authorized before the current pass, and the current pass and the prior pass correspond to the same pass identifier.
Compared with the prior method that the validity of the pass certificate needs to be confirmed each time, the method and the device for confirming the validity of the pass certificate can inquire whether the prior pass certificate associated with the current pass certificate exists according to the pass certificate, and if the prior pass certificate associated with the current pass certificate exists, the current pass certificate is confirmed to be valid, so that the efficiency of confirming the validity of the pass certificate can be improved.
Specifically, after inquiring whether there is a previous pass associated with the current pass according to the pass identifier, if there is no previous pass associated with the current pass, sending the current pass to at least one of a trusted service provider and a issuer of the pass, so that the trusted service provider and the issuer of the pass authorize the current pass; and sending the authorized current pass certificate to a second transaction party in the second blockchain system through the connecting channel.
And S70, if the prior pass associated with the current pass exists, confirming that the current pass is valid, and sending the current pass to a second transaction party in the second blockchain system through the connecting channel.
In the embodiment of the invention, after inquiring whether a prior pass associated with the current pass exists according to the pass identification, if the prior pass associated with the current pass exists, the current pass is confirmed to be effective, and the current pass is sent to a second transaction party in a second block chain system through a connecting channel; and if the prior pass certificate associated with the current pass certificate does not exist, the current pass certificate is required to be verified, and after the current pass certificate is verified, the current pass certificate is sent to a second transaction party in the second block chain system through the connecting channel.
Compared with the prior method for realizing the evidence transfer of the cross-block chain in a Hash locking mode or a side chain mode, the method for realizing the evidence transfer of the cross-block chain realizes the evidence transfer of different block chain systems through the evidence transfer center, namely the evidence transfer center generates transaction information according to a sending address corresponding to a first transaction party, a receiving address corresponding to a second transaction party and an intelligent contract request after receiving an execution intelligent contract request sent by a first block chain, sends the transaction information to the second transaction party of a second block chain for confirmation, and establishes the connection between the first block chain system and the second block chain system after receiving the confirmation of a second transaction fee, thereby realizing the evidence transfer of the cross-block chain system and improving the evidence transfer efficiency of the cross-block chain system.
In an embodiment provided by the present invention, as shown in fig. 2, after determining that the CA digital certificates corresponding to the first transaction part and the second transaction part, respectively, are authenticated, the method further includes:
s30a1, detecting whether a correspondence relationship exists between a first transaction party in the first blockchain system and a second transaction party in the second blockchain system in the local preset communicable table.
Wherein, the step S30a1 is a parallel step of the step S30, and the preset communicable table stores therein a correspondence relationship of at least two transaction parties communicable across block chains; it should be noted that, a communication request sent by a first transaction party in the first blockchain system and a second transaction party in the second blockchain system is received; the communication request comprises a transaction party needing to communicate; if the transaction party needing to communicate in the communication request sent by the first transaction party in the first blockchain system is the second transaction party in the second blockchain system, and the transaction party needing to communicate in the communication request sent by the second transaction party in the second blockchain system is the first transaction party in the first blockchain system, storing the corresponding relation between the first transaction party in the first blockchain system and the second transaction party in the second blockchain system into the preset communicable table.
S30a2, if there is a corresponding relationship between the first transaction party in the first blockchain system and the second transaction party in the second blockchain system, directly establishing a connection channel between the first blockchain system and the second blockchain system.
For the embodiment of the invention, the first blockchain system and the second blockchain system send communication requests to the evidence transfer center, the communication requests comprise the other party needing to communicate, if the contents in the communication requests of the first blockchain system and the second blockchain system are matched, the corresponding relation between the first transaction party in the first blockchain system and the second transaction party in the second blockchain system is stored in the local preset communication table, so that after receiving the request for triggering and executing the intelligent contract in the subsequent step, the connection channel between the first blockchain system and the second blockchain system is directly established according to the contents in the preset communication table, and the communication efficiency of the first blockchain system and the second blockchain system can be improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment provided by the present invention, a device for transferring a passport across a blockchain is provided, where the device corresponds to a plurality of blockchain systems, and each blockchain system can establish a connection with the passport transfer center. As shown in fig. 3, the apparatus for passthrough transfer across blockchains includes: the system comprises a receiving module 10, an obtaining module 20, a generating module 30, a establishing module 40, a querying module 50 and a sending module 60. The functional modules are explained in detail as follows:
the receiving module 10 is configured to, after receiving a trigger execution intelligent contract request sent by a first trading party in a first blockchain system, obtain a second trading party corresponding to the first trading party from the intelligent contract request, and determine a second blockchain system to which the second trading party belongs;
an obtaining module 20, configured to obtain CA digital certificates corresponding to the first transaction party and the second transaction party, respectively; verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated;
a generating module 30, configured to generate transaction information according to a sending address corresponding to the first transaction party, a receiving address corresponding to the second transaction party, and the intelligent contract request if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated, and send the transaction information to the second transaction party in the second blockchain system, so that the second transaction party in the second blockchain system determines whether to establish a connection with the first transaction party according to the transaction information;
an establishing module 40, configured to establish a connection channel between the first blockchain system and the second blockchain system if a confirmation of the second transaction party in the second blockchain system on the transaction information is received;
the obtaining module 20 is further configured to obtain an intelligent contract from the intelligent contract request, and extract a current pass and a corresponding pass identifier according to the intelligent contract;
an inquiring module 50, configured to inquire whether a previous pass associated with the current pass exists according to the pass identifier, where the previous pass is a pass that has been authorized before the current pass, and the current pass and the previous pass correspond to the same pass identifier;
a sending module 60, configured to, if there is a previous pass associated with the current pass, confirm that the current pass is valid, and send the current pass to a second transaction party in the second blockchain system through the connection channel.
Further, the sending module 60 is further configured to send the current pass to at least one of a trusted service provider and a issuer of the pass if there is no previous pass associated with the current pass, so that the trusted service provider and the issuer of the pass authorize the current pass;
the sending module 60 is further configured to send the authorized current pass-certificate to the second transaction party in the second blockchain system through the connection channel.
Further, the apparatus further comprises:
a detecting module 70, configured to detect whether a corresponding relationship between a first transaction party in the first blockchain system and a second transaction party in the second blockchain system exists in a local preset communicable table, where the preset communicable table stores a corresponding relationship between at least two transaction parties capable of communicating across blockchains;
the establishing module 40 is further configured to directly establish a connection channel between the first blockchain system and the second blockchain system if a corresponding relationship exists between a first transaction party in the first blockchain system and a second transaction party in the second blockchain system.
The receiving module 10 is further configured to receive a communication request sent by a first transaction party in the first blockchain system and a second transaction party in the second blockchain system; the communication request comprises transaction parties needing to communicate;
a storage module 80, configured to store, if a transaction party needing to communicate in a communication request sent by a first transaction party in the first blockchain system is a second transaction party in the second blockchain system, and a transaction party needing to communicate in a communication request sent by a second transaction party in the second blockchain system is a first transaction party in the first blockchain system, a correspondence between the first transaction party in the first blockchain system and the second transaction party in the second blockchain system in the preset communicable table.
The sending module 60 is further configured to send, by the first transaction party and the second transaction party, a CA digital certificate acquisition request to an authority server, where the CA digital certificate acquisition request includes user identity information, so that the authority server performs KYC audit on a user according to the user identity information;
the receiving module 10 is further configured to receive, by the first transaction party and the second transaction party, a CA digital certificate sent by the authority server, where the CA digital certificate includes user identity information, and the CA digital certificate is a certificate that is approved by KYC.
For specific definition of the trans-blockchain passthrough transfer apparatus, reference may be made to the above definition of the trans-blockchain passthrough transfer method, which is not described herein again. The modules in the above-mentioned cross-block chain evidence transferring device can be wholly or partially implemented by software, hardware and their combination. The modules can be embedded in a hardware mode or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software mode, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a method of passthrough transfer across blockchains.
In one embodiment, there is provided a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
after receiving a triggering execution intelligent contract request sent by a first trading party in a first blockchain system, acquiring a second trading party corresponding to the first trading party from the intelligent contract request, and determining a second blockchain system to which the second trading party belongs;
acquiring CA digital certificates corresponding to the first transaction party and the second transaction party respectively; verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated;
if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated respectively, generating transaction information according to a sending address corresponding to the first transaction party, a receiving address corresponding to the second transaction party and the intelligent contract request, and sending the transaction information to the second transaction party in a second blockchain system, so that the second transaction party in the second blockchain system confirms whether to establish connection with the first transaction party or not according to the transaction information;
if the confirmation of a second transaction party in the second blockchain system to the transaction information is received, establishing a connecting channel between the first blockchain system and the second blockchain system;
acquiring an intelligent contract from the intelligent contract request, and extracting a current pass and a corresponding pass identifier according to the intelligent contract;
inquiring whether a prior pass associated with the current pass exists according to the pass identifier, wherein the prior pass is a pass authorized before the current pass, and the current pass and the prior pass correspond to the same pass identifier;
and if the prior pass associated with the current pass exists, confirming that the current pass is valid, and sending the current pass to a second transaction party in the second block chain system through the connecting channel.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
after receiving a triggering execution intelligent contract request sent by a first trading party in a first blockchain system, acquiring a second trading party corresponding to the first trading party from the intelligent contract request, and determining a second blockchain system to which the second trading party belongs;
acquiring CA digital certificates corresponding to the first transaction party and the second transaction party respectively; verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated;
if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated respectively, generating transaction information according to a sending address corresponding to the first transaction party, a receiving address corresponding to the second transaction party and the intelligent contract request, and sending the transaction information to the second transaction party in a second blockchain system, so that the second transaction party in the second blockchain system confirms whether to establish connection with the first transaction party or not according to the transaction information;
if the confirmation of a second transaction party in the second blockchain system to the transaction information is received, establishing a connecting channel between the first blockchain system and the second blockchain system;
acquiring an intelligent contract from the intelligent contract request, and extracting a current pass and a corresponding pass identifier according to the intelligent contract;
inquiring whether a prior pass associated with the current pass exists according to the pass identifier, wherein the prior pass is a pass authorized before the current pass, and the current pass and the prior pass correspond to the same pass identifier;
and if the prior pass associated with the current pass exists, confirming that the current pass is valid, and sending the current pass to a second transaction party in the second block chain system through the connecting channel.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by the relevant hardware instructed by a computer program stored in a non-volatile computer-readable storage medium, and the computer program can include the processes of the embodiments of the methods described above when executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functional allocation may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above described functions.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A method for passing evidence transfer across block chains is characterized in that the method is applied to a passing evidence transfer center, the passing evidence transfer center corresponds to a plurality of block chain systems, and each block chain system can be connected with the passing evidence transfer center, and the method comprises the following steps:
after receiving a triggering execution intelligent contract request sent by a first trading party in a first blockchain system, acquiring a second trading party corresponding to the first trading party from the intelligent contract request, and determining a second blockchain system to which the second trading party belongs;
acquiring CA digital certificates corresponding to the first transaction party and the second transaction party respectively; verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated;
if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated respectively, generating transaction information according to a sending address corresponding to the first transaction party, a receiving address corresponding to the second transaction party and the intelligent contract request, and sending the transaction information to the second transaction party in a second blockchain system, so that the second transaction party in the second blockchain system confirms whether to establish connection with the first transaction party according to the transaction information;
if the confirmation of a second transaction party in the second blockchain system to the transaction information is received, establishing a connecting channel between the first blockchain system and the second blockchain system;
acquiring an intelligent contract from the intelligent contract request, and extracting a current pass and a corresponding pass identifier according to the intelligent contract;
inquiring whether a prior pass associated with the current pass exists according to the pass identification, wherein the prior pass is a pass authorized before the current pass, and the current pass and the prior pass correspond to the same pass identification;
and if the prior pass certificate associated with the current pass certificate exists, confirming that the current pass certificate is valid, and sending the current pass certificate to a second transaction party in the second block chain system through the connecting channel.
2. The method of claim 1, wherein after querying whether there is a prior pass associated with the current pass according to the pass identification, the method further comprises:
if there is no prior pass associated with the current pass, sending the current pass to at least one of a trusted service provider and an issuer of the pass, such that the trusted service provider and the issuer of the pass authorize the current pass;
and sending the authorized current pass certificate to a second transaction party in the second blockchain system through the connecting channel.
3. The method for pass-through transfer across blockchains according to claim 2, wherein after determining that the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated, the method further comprises:
detecting whether a corresponding relation between a first trading party in the first blockchain system and a second trading party in the second blockchain system exists in a local preset communicable table, wherein the corresponding relation between at least two trading parties capable of communicating across blockchains is stored in the preset communicable table;
and if the corresponding relation between the first transaction party in the first blockchain system and the second transaction party in the second blockchain system exists, directly establishing a connecting channel between the first blockchain system and the second blockchain system.
4. The method of claim 3, further comprising:
receiving a communication request sent by a first transaction party in the first blockchain system and a second transaction party in the second blockchain system; the communication request comprises a transaction party needing to communicate;
if the transaction party needing to communicate in the communication request sent by the first transaction party in the first blockchain system is the second transaction party in the second blockchain system, and the transaction party needing to communicate in the communication request sent by the second transaction party in the second blockchain system is the first transaction party in the first blockchain system, storing the corresponding relation between the first transaction party in the first blockchain system and the second transaction party in the second blockchain system into the preset communicable table.
5. The method for the pass-certificate transfer across block chains according to claim 1, wherein before the obtaining of the CA digital certificates corresponding to the first transaction party and the second transaction party respectively, the method further comprises:
the first trading party and the second trading party respectively send CA digital certificate acquisition requests to an authority server, wherein the CA digital certificate acquisition requests comprise user identity information, so that the authority server can perform KYC audit on a user according to the user identity information;
and the first transaction party and the second transaction party receive CA digital certificates sent by the authority server, wherein the CA digital certificates comprise user identity information, and the CA digital certificates are certificates approved by KYC.
6. A credential transfer device across a blockchain, the device corresponding to a plurality of blockchain systems, each blockchain system being capable of establishing a connection with a credential transfer center, the device comprising:
the receiving module is used for acquiring a second trading party corresponding to a first trading party from an intelligent contract request and determining a second blockchain system to which the second trading party belongs after receiving the intelligent contract request which is sent by the first trading party in the first blockchain system and triggers to execute the intelligent contract request;
the acquisition module is used for acquiring the CA digital certificates corresponding to the first transaction party and the second transaction party respectively; verifying whether the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated;
a generating module, configured to generate transaction information according to a sending address corresponding to the first transaction party, a receiving address corresponding to the second transaction party, and the intelligent contract request if the CA digital certificates corresponding to the first transaction party and the second transaction party are authenticated, and send the transaction information to the second transaction party in the second blockchain system, so that the second transaction party in the second blockchain system determines whether to establish a connection with the first transaction party according to the transaction information;
the establishing module is used for establishing a connection channel between the first blockchain system and the second blockchain system if the confirmation of the second transaction party in the second blockchain system on the transaction information is received;
the acquisition module is also used for acquiring the intelligent contract from the intelligent contract request and extracting the current pass and the corresponding pass identification according to the intelligent contract;
the inquiry module is used for inquiring whether a prior pass certificate associated with the current pass certificate exists according to the pass certificate identifier, wherein the prior pass certificate is a pass certificate authorized before the current pass certificate, and the current pass certificate and the prior pass certificate correspond to the same pass certificate identifier;
and the sending module is used for confirming that the current pass certificate is valid if a previous pass certificate associated with the current pass certificate exists, and sending the current pass certificate to a second transaction party in the second block chain system through the connecting channel.
7. The apparatus according to claim 6, wherein the sending module is further configured to send the current pass to at least one of a trusted service provider and an issuer of the pass if there is no prior pass associated with the current pass, so that the trusted service provider and the issuer of the pass authorize the current pass;
the sending module is further configured to send the authorized current pass certificate to a second transaction party in the second blockchain system through the connection channel.
8. The apparatus according to claim 7, further comprising:
a detection module, configured to detect whether a correspondence relationship between a first transaction party in the first blockchain system and a second transaction party in the second blockchain system exists in a local preset communicable table, where a correspondence relationship between at least two transaction parties that can communicate across blockchains is stored in the preset communicable table;
the establishing module is further configured to directly establish a connection channel between the first blockchain system and the second blockchain system if a corresponding relationship exists between a first transaction party in the first blockchain system and a second transaction party in the second blockchain system.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of forensic transfer across a block chain according to any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a method for passbook transfer across blockchains according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010024970.0A CN111383110A (en) | 2020-01-04 | 2020-01-04 | Cross-block-chain evidence transfer method and device and hardware equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010024970.0A CN111383110A (en) | 2020-01-04 | 2020-01-04 | Cross-block-chain evidence transfer method and device and hardware equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111383110A true CN111383110A (en) | 2020-07-07 |
Family
ID=71217029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010024970.0A Pending CN111383110A (en) | 2020-01-04 | 2020-01-04 | Cross-block-chain evidence transfer method and device and hardware equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111383110A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111950244A (en) * | 2020-08-25 | 2020-11-17 | 深圳市新系区块链技术有限公司 | Financial statement generation method, device, equipment and medium based on block chain |
CN113746922A (en) * | 2021-09-03 | 2021-12-03 | 杭州复杂美科技有限公司 | Node connection method, computer device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108768659A (en) * | 2018-05-24 | 2018-11-06 | 深圳前海益链网络科技有限公司 | Across the chain tra nsfer system of Token assets between a kind of different blocks chain network |
CN109074565A (en) * | 2016-04-11 | 2018-12-21 | 区块链控股有限公司 | Computer-implemented method and system for verifying a pass-through for blockchain based cryptocurrency |
CN109981650A (en) * | 2019-03-27 | 2019-07-05 | 互链云网(北京)科技有限公司 | Lead to the transfer method and system of card in block chain |
-
2020
- 2020-01-04 CN CN202010024970.0A patent/CN111383110A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109074565A (en) * | 2016-04-11 | 2018-12-21 | 区块链控股有限公司 | Computer-implemented method and system for verifying a pass-through for blockchain based cryptocurrency |
CN108768659A (en) * | 2018-05-24 | 2018-11-06 | 深圳前海益链网络科技有限公司 | Across the chain tra nsfer system of Token assets between a kind of different blocks chain network |
CN109981650A (en) * | 2019-03-27 | 2019-07-05 | 互链云网(北京)科技有限公司 | Lead to the transfer method and system of card in block chain |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111950244A (en) * | 2020-08-25 | 2020-11-17 | 深圳市新系区块链技术有限公司 | Financial statement generation method, device, equipment and medium based on block chain |
CN113746922A (en) * | 2021-09-03 | 2021-12-03 | 杭州复杂美科技有限公司 | Node connection method, computer device, and storage medium |
CN113746922B (en) * | 2021-09-03 | 2023-10-20 | 杭州复杂美科技有限公司 | Node connection method, computer device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111010382B (en) | Method and apparatus for processing data requests in a blockchain network | |
CN108777684B (en) | Identity authentication method, system and computer readable storage medium | |
CN112311735B (en) | Credible authentication method, network equipment, system and storage medium | |
CN109242467B (en) | Block chain-based networking method and device, computer equipment and storage medium | |
CN111541551B (en) | Threshold signature message processing method, system, storage medium and server | |
CN110633963B (en) | Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device | |
CN111368340A (en) | Block chain-based evidence-based security verification method and device and hardware equipment | |
CN111835520A (en) | Method for device authentication, method for service access control, device and storage medium | |
CN111080455A (en) | Cross-border transaction method and device based on block chain and hardware equipment | |
CN114499876B (en) | Internet of things data storage and verification method based on blockchain and NB-IoT chip | |
CN110942382A (en) | Electronic contract generating method and device, computer equipment and storage medium | |
CN110992178A (en) | Verification method and device for block chain node, computer equipment and storage medium | |
CN113328997A (en) | Alliance chain cross-chain system and method | |
CN113255014B (en) | Data processing method based on block chain and related equipment | |
CN113536284B (en) | Digital certificate verification method, device, equipment and storage medium | |
CN113259311A (en) | Decentralized identity authentication system based on block chain | |
CN114938280A (en) | Authentication method and system based on non-interactive zero-knowledge proof and intelligent contract | |
CN111880919A (en) | Data scheduling method, system and computer equipment | |
CN110910110A (en) | Data processing method and device and computer storage medium | |
CN111383110A (en) | Cross-block-chain evidence transfer method and device and hardware equipment | |
CN113420277B (en) | Digital identity management and verification method based on intelligent contract | |
CN113660632B (en) | V2X identity management method and management system based on blockchain | |
CN111080300A (en) | Asset transfer method and device based on block chain and hardware equipment | |
CN113872990A (en) | VPN network certificate authentication method and device based on SSL protocol and computer equipment | |
Liou et al. | T-auth: A novel authentication mechanism for the IoT based on smart contracts and PUFs |
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 |