CN113973115A - User-defined certificate circulation method and related device thereof - Google Patents
User-defined certificate circulation method and related device thereof Download PDFInfo
- Publication number
- CN113973115A CN113973115A CN202111262421.8A CN202111262421A CN113973115A CN 113973115 A CN113973115 A CN 113973115A CN 202111262421 A CN202111262421 A CN 202111262421A CN 113973115 A CN113973115 A CN 113973115A
- Authority
- CN
- China
- Prior art keywords
- intelligent contract
- gateway
- evidence
- custom
- transaction
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000008569 process Effects 0.000 claims abstract description 13
- 230000006870 function Effects 0.000 claims description 17
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 claims description 12
- 238000012546 transfer Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0823—Network architectures or network communication protocols for network security for authentication of entities using certificates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application discloses a self-defined evidence circulation method and a related device thereof, wherein a gateway operation instruction corresponding to self-defined evidence operation is configured in an Ethernet shop virtual machine corresponding to an intelligent contract, and an interface corresponding to the gateway operation instruction is configured in the intelligent contract and a block chain network; when the block chain node receives the intelligent contract calling transaction, calling an Ethernet virtual machine to execute the intelligent contract; when the gateway operation instruction is obtained by analysis in the process of executing the intelligent contract by the Ethenhouse virtual machine, the gateway operation instruction is called back to the block chain node through the interface, so that the self-defined evidence-passing operation corresponding to the gateway operation instruction is executed by the block chain node; after the user-defined certification operation is executed on the block link points, transaction consensus is carried out; after the transaction consensus passes, the transaction consensus result is called back to the intelligent contract through the block chain node point, and the technical problem that the custom evidence issued in the intelligent contract and the custom evidence issued in the block chain in the prior art cannot be mutually circulated is solved.
Description
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for self-defined token circulation.
Background
In the prior art, a user-defined certificate is issued through an intelligent contract, the user-defined certificate is not dependent on the intelligent contract and the operation of a block chain network, and the user-defined certificate issued through the intelligent contract and the user-defined certificate in the block chain are independent and have no interaction. However, in some application scenarios, when the customized pass issued in the intelligent contract and the customized pass issued in the blockchain need to be circulated with each other, the method cannot be implemented by the existing customized pass circulation method.
Disclosure of Invention
The application provides a custom pass-certificate circulation method and a related device thereof, which are used for solving the technical problem that the custom pass-certificate issued in an intelligent contract and the custom pass-certificate issued in a block chain in the prior art cannot be mutually circulated.
In view of this, the first aspect of the present application provides a customized passport circulation method, including:
performing relevant configuration in an intelligent contract and a blockchain network, wherein the relevant configuration comprises the following steps: configuring a gateway operation instruction corresponding to a custom pass-evidence operation in an Ethernet shop virtual machine corresponding to an intelligent contract and configuring an interface corresponding to the gateway operation instruction in the intelligent contract and a block chain network;
when a block chain node receives an intelligent contract calling transaction, calling the Ethernet shop virtual machine to execute the intelligent contract, wherein the transaction comprises a user-defined evidence-passing operation;
when the gateway operation instruction is obtained through analysis in the process that the Ethernet workshop virtual machine executes the intelligent contract, the gateway operation instruction is called back to the block chain node through the interface, so that the block chain node executes the user-defined evidence-passing operation corresponding to the gateway operation instruction;
after the user-defined evidence-passing operation is executed on the block link points, transaction consensus is carried out;
and after the transaction consensus passes, the transaction consensus result is called back to the intelligent contract through the block link node.
Optionally, the customized evidence-obtaining operation includes error information return, account attribute setting, transaction rate setting, trusted gateway setting, trusted quota setting, gateway balance inquiry and/or gateway evidence-obtaining transaction.
Optionally, configuring a gateway operation instruction corresponding to the custom pass operation in the ethernet virtual machine corresponding to the intelligent contract specifically includes:
adding an operation function corresponding to the custom pass-evidence operation in an Ether shop virtual machine corresponding to the intelligent contract;
and compiling the operation function through a compiling tool to obtain a gateway operation instruction.
Optionally, the block chain node performs a transaction consensus after the user-defined certification operation is completed, and the method further includes:
and carrying out data uplink on the evidence-passing instruction parameters when the block link points execute the user-defined evidence-passing operation.
The second aspect of the present application provides a self-defined voucher circulation system, comprising:
a configuration unit, configured to perform relevant configuration in the intelligent contract and the blockchain network, where the relevant configuration includes: configuring a gateway operation instruction corresponding to a custom pass-evidence operation in an Ethernet shop virtual machine corresponding to an intelligent contract and configuring an interface corresponding to the gateway operation instruction in the intelligent contract and a block chain network;
the calling unit is used for calling the Ethernet workshop virtual machine to execute the intelligent contract when the block chain node receives intelligent contract calling transaction, and the transaction comprises custom evidence-defining operation;
the first callback unit is used for calling back the gateway operation instruction to the blockchain node through the interface when the gateway operation instruction is obtained through analysis in the process that the Ethernet workshop virtual machine executes the intelligent contract, so that the blockchain node executes the custom certification operation corresponding to the gateway operation instruction;
the transaction consensus unit is used for performing transaction consensus after the user-defined certification operation is executed on the block link point;
and the second callback unit is used for calling back the transaction consensus result to the intelligent contract through the block link point after the transaction consensus passes.
Optionally, the customized evidence-obtaining operation includes error information return, account attribute setting, transaction rate setting, trusted gateway setting, trusted quota setting, gateway balance inquiry and/or gateway evidence-obtaining transaction.
Optionally, configuring a gateway operation instruction corresponding to the custom pass operation in the ethernet virtual machine corresponding to the intelligent contract specifically includes:
adding an operation function corresponding to the custom pass-evidence operation in an Ether shop virtual machine corresponding to the intelligent contract;
and compiling the operation function through a compiling tool to obtain a gateway operation instruction.
Optionally, the system further includes:
and the data uplink unit is used for performing data uplink on the evidence-passing instruction parameters when the block link points execute the user-defined evidence-passing operation.
A third aspect of the application provides an electronic device comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute any of the self-defined credential circulation methods of the first aspect according to instructions in the program code.
A fourth aspect of the present application provides a computer-readable storage medium for storing program code, which when executed by a processor implements the customized credential circulation method of any one of the first aspects.
According to the technical scheme, the method has the following advantages:
the application provides a user-defined certificate circulation method, which comprises the following steps: performing relevant configuration in the intelligent contract and the block chain network, wherein the relevant configuration comprises the following steps: configuring a gateway operation instruction corresponding to the self-defined evidence operation in an Ethernet shop virtual machine corresponding to the intelligent contract and configuring an interface corresponding to the gateway operation instruction in the intelligent contract and the block chain network; when the block chain node receives an intelligent contract calling transaction, an Ethernet virtual machine is called to execute the intelligent contract, and the transaction comprises a user-defined evidence-based operation; when the gateway operation instruction is obtained by analysis in the process of executing the intelligent contract by the Ethenhouse virtual machine, the gateway operation instruction is called back to the block chain node through the interface, so that the self-defined evidence-passing operation corresponding to the gateway operation instruction is executed by the block chain node; after the user-defined certification operation is executed on the block link points, transaction consensus is carried out; and after the transaction consensus passes, the transaction consensus result is called back to the intelligent contract through the block link point.
In this application, dispose intelligent contract, including the gateway setting, the gateway issues the user-defined general evidence and passes through operation interfaces such as certificate circulation, the concrete realization logic of interface is in the block chain, the issue and the circulation that pass through the certificate are accomplished in the block chain promptly, can invoke the concrete realization in the block chain when transferring intelligent contract, the user-defined general evidence that can realize intelligent contract issue like this is operatable in the block chain, otherwise, the user-defined general evidence that issues in the block chain also can be operated in intelligent contract, thereby realized the user-defined general evidence in the block chain and the intelligent contract freely circulate the use, the operation of can calling each other.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a custom credential circulation method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a custom credential circulation system according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In some application scenarios, it is required that the custom credential issued in the contract and the custom credential issued in the blockchain can communicate with each other, and both schemes for issuing the custom credential in the prior art cannot be realized for the requirement. The current intelligent contract issues the self-defined evidence, and because the state and the operation logic of the contract are completed by the contract, the safety and the reliability of the contract are questioned, and the security loophole appears for many times. In addition, for the self-defined certification in the block chain, the operation is limited by a node program, and the self-defined certification is not as good as the programmable mode of an intelligent contract which has the characteristics of self-defined operation logic and automatic execution.
In order to solve the above problem, please refer to fig. 1, an embodiment of the present application provides a self-defined certificate circulation method, including:
and 101, carrying out related configuration in the intelligent contract and the block chain network.
The embodiment of the application considers that the self-defined certificate of the intelligent contract issued in the prior art and the self-defined certificate of the block chain are independent from each other and can not circulate mutually, so that the convenience of circulation of the self-defined certificate of the contract is lower and the self-defined certificate of the contract is not flexible enough. The custom pass-certificate in the embodiment of the application is issued through the gateway, so that the blockchain network has the gateway, and the gateway has the following functions: gateway attribute setting can be carried out, wherein the gateway attribute setting comprises attributes such as transaction fee; the trust network self-defining certificate passing and the self-defining limit of the certificate passing can be set; the accreditation transfer can be customized; the trust self-defined evidence information of the gateway can be inquired, and the gateway self-defined evidence balance can be inquired.
The block chain network has the function of supporting the intelligent contract, and the intelligent contract comprises the following functions:
the intelligent contract script language comprises a complete set of pictures; providing a tool for compiling intelligent contracts into bytecodes; providing an EtherFang virtual channel, and analyzing byte codes and executing contract logic; and outputting the intelligent contract calling result after the Ethengfang virtual machine executes the intelligent contract.
The embodiment of the application carries out relevant configuration in an intelligent contract and a block chain network so as to realize mutual circulation of the customized evidence issued by the intelligent contract and the customized evidence in the block chain, and the relevant configuration comprises the following steps: configuring a gateway operation instruction corresponding to the custom pass-evidence operation in an Ethernet shop virtual machine corresponding to the intelligent contract and configuring an interface corresponding to the gateway operation instruction in the intelligent contract and the block chain network. First, the intelligent contract instructions are extended to support custom pass-through operations for the gateway. The method specifically comprises the following steps:
1) adding a gateway operation instruction REVERTDIY, EXACCOUNTSET, EXTRANSFERFEESET, EXTRUSTSET, EXTRUSTLIMIT, EXGATEWAYBALANCE, EXPAY corresponding to a custom pass-evidence operation in the Ethengfang virtual machine, wherein an intelligent contract script language course supports the commands of gateway attribute setting, trust setting, transfer, balance inquiry and the like;
adding an operation function corresponding to the custom pass-evidence operation in an Ether shop virtual machine corresponding to the intelligent contract; and compiling the operation function through a compiling tool to obtain a gateway operation instruction, wherein the self-defined evidence-passing operation comprises error information return, account attribute setting, transaction rate setting, trust gateway setting, trust limit setting, gateway balance inquiry and/or gateway evidence-passing transaction.
2) Configuring an Ethengfang virtual machine, and increasing the support of the Ethengfang virtual machine on a gateway operation instruction, for example, when the Ethengfang virtual machine analyzes a self-defined pass-certificate instruction, calling back to a block chain layer;
3) configuring an intelligent contract compiling tool, and increasing the correspondence between the gateway operation instruction and the contract interface so as to realize the support of the compiled contract file on the gateway operation instruction; for example, when a solidity function corresponding to an instruction is encountered during solidity compilation, the solidity function is compiled into the corresponding instruction so as to be normally executed during execution of the etherhouse virtual machine.
Secondly, configuring the blockchain network, which specifically includes:
1) adding support to an operation interface corresponding to the gateway operation instruction, and butting with the original gateway user-defined certification operation;
2) and (3) increasing support for gateway operation instruction callback, for example, when the block chain node executes the custom pass-through operation, calling back the execution result to the virtual machine layer.
And 102, when the block chain node receives the intelligent contract calling transaction, calling an Ethernet shop virtual machine to execute the intelligent contract, wherein the transaction comprises custom evidence operation.
The client sends an intelligent contract to call a transaction, and the transaction comprises issued custom evidence-passing operation. And the block chain nodes receive the intelligent contract calling transaction and call the Ethernet virtual machine to execute the intelligent contract.
And 103, when the gateway operation instruction is obtained through analysis in the process of executing the intelligent contract by the Ethenhouse virtual machine, calling back the gateway operation instruction to the block chain node through the interface, so that the self-defined evidence-passing operation corresponding to the gateway operation instruction is executed by the block chain node.
When the Ethernet workshop virtual machine analyzes in the process of executing the intelligent contract to obtain a gateway operation instruction, calling back to the block chain node through different implementation interfaces, skipping the self-defined evidence-passing operation to the block chain node by the Ethernet workshop virtual machine, and performing the specific self-defined evidence-passing operation on the block chain node, so that the mutual circulation of the self-defined evidence-passing operation between the intelligent contract and the block chain network is realized.
In the embodiment of the application, access operation of gateway certification is realized by accessing the in-block-chain interface through the virtual machine, the virtual machine calling transaction is established, and the direct application transaction is in consensus.
And 104, after the user-defined certification operation is executed on the block link points, performing transaction consensus.
And performing data chaining on the evidence-passing instruction parameter when the user-defined evidence-passing operation is executed on the block link point, wherein the evidence-passing instruction parameter is an attached parameter when the user-defined evidence-passing operation is executed, such as transaction rate setting operation, and the corresponding evidence-passing instruction parameter is a specific transaction rate value.
And after the user-defined certification operation is executed on the block link points, carrying out transaction consensus.
And 105, after the transaction consensus is passed, calling back the transaction consensus result to the intelligent contract through the block link point.
After the transaction consensus passes, the state of the related account is changed according to the consensus result, and the transaction consensus result is returned to the intelligent contract through the block link point.
When a user sends customized evidence in the block chain, but wants to add transfer conditions and requires automatic transfer due during transfer, the transfer operation can be realized by configuring an intelligent contract through the method provided by the embodiment of the application, and the defect that the customized evidence in the block chain is not flexible enough is overcome.
The embodiment of the application, configure intelligent contract, including gateway setting, the gateway issues the operation interfaces such as custom general evidence and general evidence circulation, the concrete realization logic of interface is in the block chain, the issue and the circulation of general evidence are accomplished in the block chain promptly, can invoke the concrete realization in the block chain when transferring intelligent contract, the custom general evidence that can realize intelligent contract issue like this is operatable in the block chain, otherwise, the custom general evidence that issues in the block chain also can be operated in intelligent contract, thereby realized the free circulation use of custom general evidence in the block chain and in the intelligent contract, the operation of can calling each other.
The above is an embodiment of a customized passport circulation method provided by the present application, and the following is an embodiment of a customized passport circulation system provided by the present application.
The configuration unit is used for carrying out related configuration in the intelligent contract and the block chain network, and the related configuration comprises the following steps: configuring a gateway operation instruction corresponding to the self-defined evidence operation in an Ethernet shop virtual machine corresponding to the intelligent contract and configuring an interface corresponding to the gateway operation instruction in the intelligent contract and the block chain network;
the calling unit is used for calling the Ethernet workshop virtual machine to execute the intelligent contract when the block chain node receives the intelligent contract calling transaction, wherein the transaction comprises custom evidence operation;
the first callback unit is used for calling back the gateway operation instruction to the block chain node through the interface when the gateway operation instruction is obtained by analysis in the process of executing the intelligent contract by the Ethernet virtual machine, so that the block chain node executes the user-defined evidence-passing operation corresponding to the gateway operation instruction;
the transaction consensus unit is used for performing transaction consensus after the user-defined certification operation is executed on the block link points;
and the second callback unit is used for calling back the transaction consensus result to the intelligent contract through the block link point after the transaction consensus passes.
As a further improvement, the self-defined evidence-obtaining operation comprises error information return, account attribute setting, transaction rate setting, trust gateway setting, trust limit setting, gateway balance inquiry and/or gateway evidence-obtaining transaction.
As a further improvement, configuring a gateway operation instruction corresponding to a custom pass-through operation in an ethernet virtual machine corresponding to an intelligent contract specifically includes:
adding an operation function corresponding to the custom pass-evidence operation in an Ether shop virtual machine corresponding to the intelligent contract;
and compiling the operation function through a compiling tool to obtain a gateway operation instruction.
As a further improvement, the system further comprises:
and the data uplink unit is used for performing data uplink on the evidence-passing instruction parameters when the user-defined evidence-passing operation is executed on the block link points.
The embodiment of the application, configure intelligent contract, including gateway setting, the gateway issues the operation interfaces such as custom general evidence and general evidence circulation, the concrete realization logic of interface is in the block chain, the issue and the circulation of general evidence are accomplished in the block chain promptly, can invoke the concrete realization in the block chain when transferring intelligent contract, the custom general evidence that can realize intelligent contract issue like this is operatable in the block chain, otherwise, the custom general evidence that issues in the block chain also can be operated in intelligent contract, thereby realized the free circulation use of custom general evidence in the block chain and in the intelligent contract, the operation of can calling each other.
The embodiment of the application also provides electronic equipment, which comprises a processor and a memory;
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is used for executing the self-defined evidence circulation method in the embodiment of the method according to the instructions in the program codes.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing program codes, and when the program codes are executed by a processor, the user-defined passport circulation method in the foregoing method embodiments is implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for executing all or part of the steps of the method described in the embodiments of the present application through a computer device (which may be a personal computer, a server, or a network device). And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (10)
1. A self-defined certificate circulation method is characterized by comprising the following steps:
performing relevant configuration in an intelligent contract and a blockchain network, wherein the relevant configuration comprises the following steps: configuring a gateway operation instruction corresponding to a custom pass-evidence operation in an Ethernet shop virtual machine corresponding to an intelligent contract and configuring an interface corresponding to the gateway operation instruction in the intelligent contract and a block chain network;
when a block chain node receives an intelligent contract calling transaction, calling the Ethernet shop virtual machine to execute the intelligent contract, wherein the transaction comprises a user-defined evidence-passing operation;
when the gateway operation instruction is obtained through analysis in the process that the Ethernet workshop virtual machine executes the intelligent contract, the gateway operation instruction is called back to the block chain node through the interface, so that the block chain node executes the user-defined evidence-passing operation corresponding to the gateway operation instruction;
after the user-defined evidence-passing operation is executed on the block link points, transaction consensus is carried out;
and after the transaction consensus passes, the transaction consensus result is called back to the intelligent contract through the block link node.
2. The custom negotiable method according to claim 1, wherein the custom negotiable operation comprises error message return, account attribute setting, transaction rate setting, trusted gateway setting, trusted credit setting, gateway balance inquiry and/or gateway negotiable transaction.
3. The custom evidence circulation method according to claim 1, wherein the configuring of the gateway operation instruction corresponding to the custom evidence operation in the ethernet virtual machine corresponding to the intelligent contract specifically includes:
adding an operation function corresponding to the custom pass-evidence operation in an Ether shop virtual machine corresponding to the intelligent contract;
and compiling the operation function through a compiling tool to obtain a gateway operation instruction.
4. The method of claim 1, wherein the blockchain node performs a transaction consensus after the custom certification operation is completed, and before the method further comprises:
and carrying out data uplink on the evidence-passing instruction parameters when the block link points execute the user-defined evidence-passing operation.
5. A custom passport circulation system, comprising:
a configuration unit, configured to perform relevant configuration in the intelligent contract and the blockchain network, where the relevant configuration includes: configuring a gateway operation instruction corresponding to a custom pass-evidence operation in an Ethernet shop virtual machine corresponding to an intelligent contract and configuring an interface corresponding to the gateway operation instruction in the intelligent contract and a block chain network;
the calling unit is used for calling the Ethernet workshop virtual machine to execute the intelligent contract when the block chain node receives intelligent contract calling transaction, and the transaction comprises custom evidence-defining operation;
the first callback unit is used for calling back the gateway operation instruction to the blockchain node through the interface when the gateway operation instruction is obtained through analysis in the process that the Ethernet workshop virtual machine executes the intelligent contract, so that the blockchain node executes the custom certification operation corresponding to the gateway operation instruction;
the transaction consensus unit is used for performing transaction consensus after the user-defined certification operation is executed on the block link point;
and the second callback unit is used for calling back the transaction consensus result to the intelligent contract through the block link point after the transaction consensus passes.
6. The custom negotiable system according to claim 5, wherein said custom negotiable operation comprises error message return, account attribute setting, transaction rate setting, trusted gateway setting, trusted credit setting, gateway balance inquiry and/or gateway negotiable transaction.
7. The custom certification circulation system according to claim 5, wherein the configuring of the gateway operation instruction corresponding to the custom certification operation in the ethernet virtual machine corresponding to the intelligent contract specifically includes:
adding an operation function corresponding to the custom pass-evidence operation in an Ether shop virtual machine corresponding to the intelligent contract;
and compiling the operation function through a compiling tool to obtain a gateway operation instruction.
8. The custom credential circulation system according to claim 5, further comprising:
and the data uplink unit is used for performing data uplink on the evidence-passing instruction parameters when the block link points execute the user-defined evidence-passing operation.
9. An electronic device, comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the custom credential circulation method of any one of claims 1-4 according to instructions in the program code.
10. A computer-readable storage medium for storing program code, the program code implementing the custom credential circulation method of any one of claims 1-4 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111262421.8A CN113973115B (en) | 2021-10-28 | 2021-10-28 | Custom certificate circulation method and related device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111262421.8A CN113973115B (en) | 2021-10-28 | 2021-10-28 | Custom certificate circulation method and related device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113973115A true CN113973115A (en) | 2022-01-25 |
CN113973115B CN113973115B (en) | 2024-02-27 |
Family
ID=79588755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111262421.8A Active CN113973115B (en) | 2021-10-28 | 2021-10-28 | Custom certificate circulation method and related device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113973115B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019209565A1 (en) * | 2018-04-26 | 2019-10-31 | Radware, Ltd. | Method and system for blockchain based cyber protection of network entities |
CN110569110A (en) * | 2019-09-11 | 2019-12-13 | 杭州秘猿科技有限公司 | Block chain method and electronic equipment supporting interactive multiple virtual machines |
CN111033468A (en) * | 2019-03-26 | 2020-04-17 | 阿里巴巴集团控股有限公司 | System and method for implementing different types of blockchain contracts |
CN112306645A (en) * | 2020-12-24 | 2021-02-02 | 北京百度网讯科技有限公司 | Transaction processing method, device, equipment, program and medium of Etheng virtual machine |
CN112491804A (en) * | 2020-11-04 | 2021-03-12 | 沈阳化工大学 | ICS (Internet connection sharing) security policy method based on block chain |
CN113162848A (en) * | 2020-01-22 | 2021-07-23 | 北京百度网讯科技有限公司 | Method, device, gateway and medium for realizing block chain gateway |
-
2021
- 2021-10-28 CN CN202111262421.8A patent/CN113973115B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019209565A1 (en) * | 2018-04-26 | 2019-10-31 | Radware, Ltd. | Method and system for blockchain based cyber protection of network entities |
CN111033468A (en) * | 2019-03-26 | 2020-04-17 | 阿里巴巴集团控股有限公司 | System and method for implementing different types of blockchain contracts |
CN110569110A (en) * | 2019-09-11 | 2019-12-13 | 杭州秘猿科技有限公司 | Block chain method and electronic equipment supporting interactive multiple virtual machines |
CN113162848A (en) * | 2020-01-22 | 2021-07-23 | 北京百度网讯科技有限公司 | Method, device, gateway and medium for realizing block chain gateway |
CN112491804A (en) * | 2020-11-04 | 2021-03-12 | 沈阳化工大学 | ICS (Internet connection sharing) security policy method based on block chain |
CN112306645A (en) * | 2020-12-24 | 2021-02-02 | 北京百度网讯科技有限公司 | Transaction processing method, device, equipment, program and medium of Etheng virtual machine |
Also Published As
Publication number | Publication date |
---|---|
CN113973115B (en) | 2024-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111258773B (en) | Service call flow information processing method and device and electronic equipment | |
CA3079948C (en) | System and method for integrating cloud applications into a cloud service broker platform using an automated, universal connector package | |
CN109741087A (en) | The management method and device of electronic coupons | |
US20170004423A1 (en) | Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios | |
CN110297671A (en) | Client plug-in implementation method, device, computer equipment and storage medium | |
US10630399B2 (en) | Testing distributed applications that have an established exchange in an advanced message queuing protocol (AMQP) message broker | |
CN108255936A (en) | A kind of edit methods of webpage, system and editing machine | |
CN111385124A (en) | Gateway service implementation method, control device and gateway | |
CN111258567B (en) | Service code development processing method and device | |
CN107251069A (en) | A kind of near-field communication method of payment and terminal | |
CN108965375A (en) | Service call proxy control system, method, server and readable storage medium storing program for executing | |
CN112036141A (en) | Calculation formula configuration method, data processing device and computer storage medium | |
CN104217145B (en) | Limit the method that specific user accesses the predetermined portions of manufacturing execution system screen | |
CN114443171A (en) | Configurable service platform and configurable service implementation method | |
CN109858874A (en) | Payment approval process configuration method and device under a kind of more scenes | |
US8539496B1 (en) | Method and apparatus for configuring network systems implementing diverse platforms to perform business tasks | |
CN113973115A (en) | User-defined certificate circulation method and related device thereof | |
CN106981146B (en) | Billing method based on multiple gold tax discs | |
US8744820B2 (en) | Integration of workflows from various systems | |
CN114663177A (en) | State change control method, device, electronic equipment and storage medium | |
CN114385158A (en) | Data interaction system construction method, device and equipment | |
US9164740B2 (en) | System and method for replacing java beans | |
JP6382610B2 (en) | Simulator system, gateway system test apparatus, and gateway system test method | |
CN110442812A (en) | The authority control method and system of front page layout | |
CN112749159A (en) | Form generation method and device, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |