CN111639122B - Public chain fused alliance chain excitation scheme and device - Google Patents

Public chain fused alliance chain excitation scheme and device Download PDF

Info

Publication number
CN111639122B
CN111639122B CN202010271013.8A CN202010271013A CN111639122B CN 111639122 B CN111639122 B CN 111639122B CN 202010271013 A CN202010271013 A CN 202010271013A CN 111639122 B CN111639122 B CN 111639122B
Authority
CN
China
Prior art keywords
chain
transaction
incentive
contribution
contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010271013.8A
Other languages
Chinese (zh)
Other versions
CN111639122A (en
Inventor
齐宪威
相纪斌
钟晓红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Zhongke Intelligent Blockchain Technology Co ltd
Original Assignee
Guangdong Zhongke Intelligent Blockchain Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Zhongke Intelligent Blockchain Technology Co ltd filed Critical Guangdong Zhongke Intelligent Blockchain Technology Co ltd
Priority to CN202010271013.8A priority Critical patent/CN111639122B/en
Publication of CN111639122A publication Critical patent/CN111639122A/en
Application granted granted Critical
Publication of CN111639122B publication Critical patent/CN111639122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing

Abstract

The invention provides a federation chain incentive method and a federation chain incentive device fusing public chains, wherein the federation chain incentive method and the federation chain incentive device comprise the following steps: deploying at least one excitation contract on a main chain of a public chain, and determining a minting interface function and a Token interface function of the excitation contract; recording the service contribution amount of a transaction main body through a alliance chain, sending the service contribution amount to the minning interface function in a parameter mode, and obtaining the Merckel root hash of the service contribution amount; generating Token according to the merkel root hash and the mining interface function; the Token interface function contributes the Token as an incentive to the transaction principal. The invention has the beneficial effects that: the current public link application can be extended. The invention comprises three parts of an incentive contract on a public chain, a contribution recording channel on a alliance chain and a communication protocol between the incentive contract and the contribution recording channel, and the contribution of the alliance chain members is rewarded by completing specific services. The development of alliance chain business can be promoted, and the application of the advantage of value transfer of the public chain in specific business is expanded.

Description

Public chain fused alliance chain excitation scheme and device
Technical Field
The invention relates to the technical field of public chain and alliance chain fusion and block chain, in particular to an alliance chain excitation scheme and device fusing a public chain.
Background
The excitation mechanism is an important issue in the blockchain system. How to encourage node participation, how does the blockchain system require numerous nodes to participate in formation? Public chains reward out-of-block nodes through a "mine digging" mechanism, so the nodes have the intention to act as miners, such as bitcoin and miners in ether houses or mine pools, maintaining the safe operation of the system.
At present, great application of the public chain in the field of value transfer has been widely recognized, and bitcoin and Ethermen have market value over 560 hundred million dollars. The alliance chain is mainly used for specific services such as government systems, and the value of the contribution of the alliance chain members to the services is difficult to represent in the alliance chain.
Digital currency is not generally issued in the alliance chain, and services such as sharing of service data and the like are mainly processed. Therefore, an incentive mechanism for participating nodes, members and transaction bodies in the existing alliance chain is lacked, so that the nodes do not have power to participate in the alliance chain.
Disclosure of Invention
The invention provides a public chain fused alliance chain excitation scheme and device, which are used for solving the problem that an excitation mechanism is lacked for participating nodes in the existing alliance chain, so that the nodes do not have power.
A federation chain incentive method fusing public chains is characterized by comprising the following steps:
deploying at least one excitation contract on a main chain of a public chain, and determining a minting interface function and a Token interface function of the excitation contract;
recording the service contribution amount of a transaction main body through a alliance chain, sending the service contribution amount to the mining interface function in a parameter mode, and obtaining the Merckel root hash of the service contribution amount;
generating Token according to the merkel root hash and the minng interface function; the Token interface function contributes the Token as an incentive to the transaction principal.
As an embodiment of the present invention, the method further comprises:
the main chain of the public chain processes an excitation process through the code logic of the excitation contract and determines the receipt information of a processing result;
and the alliance chain acquires and stores the processing result as a receipt record of the transaction main body which acquires the corresponding value.
As an embodiment of the present invention, the federation chain obtains and stores the processing result as a receipt record that the transaction principal has obtained a corresponding value, including:
leading the receiver information into a alliance chain, and storing the receiver information into a record of a member id _ count; wherein, the first and the second end of the pipe are connected with each other,
the member id is the only member identification number of the alliance link node;
the count is used for sending transaction times to a mining interface function of the incentive contract;
the transaction times are transaction times of exciting a member id node;
and the member id _ count stores the receipt information under a receipt field according to a preset value, and takes the receipt field as a receipt record of the acquired excitation.
The incentive contract comprises the functions of recording value quantity, supporting value circulation and supporting the release of Token based on the contribution information of the alliance chain business.
As an embodiment of the present invention, a method of making,
the alliance chain is provided with a state database;
setting the key value pair of the transaction subject according to the state database;
the key value pair is used for storing a hash value of the transaction main body service contribution amount; wherein the content of the first and second substances,
one key value pair corresponds to one count value, each count records 64 transaction hash values, and each count value is increased by 1 and forms a new key value pair for storing service contribution amount when the transaction hash value is recorded 64 times;
the key-value pair is formed by combining the member id and the count.
At least one of the federation chains;
the alliance chain is provided with a state database;
the transaction body sets key value pairs in the state database;
the key value pair is used for storing a hash value of the transaction main body service contribution amount; wherein the content of the first and second substances,
one key value pair corresponds to one count value, and each count record records 64 transaction hash values;
the Key-value pair comprises a Key value that records the transaction principal's ID and the number of times the transaction contribution is generated.
As an embodiment of the present invention, the federation chain includes the following functions:
displaying the number of the transaction hash values recorded currently through a transaction count, and creating a transaction Mercker root when the number of the hash values of the current transaction reaches 64;
generating contribution information according to the transaction Mercker root and sending the contribution information to a mining function of the incentive contract; wherein the content of the first and second substances,
and when the number of the hash values of the current transaction is 64, adding 1 to the count value, generating a new key value pair, and continuously storing the hash value of the transaction main body.
As an embodiment of the present invention, the method includes the following excitation flow:
step 200: the transaction body writes the contribution record into a public channel of a alliance chain, and a contribution record hash for external inquiry is generated;
step 201: after the successful writing, when the contribution record accumulation reaches multiples of 64 each time, sending a new contribution record, a new contribution record hash and a signature of the contribution record hash by the federation chain to the incentive contract;
step 202: the incentive contract receives the message, checks whether the sender address of the message is a transaction main body of the alliance chain, and returns the message hash to the alliance chain;
step 203: the federation link receives a returned message hash;
step 204: the public chain writes the message into the block, and simultaneously triggers an incentive contract in the public chain to newly issue a certain number of tokens to the contributing transaction main body to generate a message processing receipt;
step 205: and the alliance chain inquires the message hash, determines the processing state of the submitted message, and stores the message receipt returned by the public chain into a contribution recording channel of the alliance chain.
A federation chain incentive device for fusing public chains, comprising:
a first determination module: the method comprises the steps that a driving contract is deployed on a main chain of a public chain, and a mining interface function and a Token interface function of the driving contract are determined;
a processing module: the mining interface function is used for recording the business contribution amount of a transaction main body through a alliance chain and sending the business contribution amount to the incentive contract through the transaction in the form of contribution information;
an excitation module: and the driving contract is used for generating Token serving as an incentive contribution to the transaction main body through a mining interface function according to the Mercker tree root hash of the service contribution information.
As an embodiment of the present invention, the apparatus further includes:
a second determination module: the code logic used for driving the main chain of the public chain to process an excitation process through the excitation contract and determine receipt information of a processing result;
an acquisition module: for obtaining and storing the processing result through the federation chain as a receipt record of the corresponding value obtained by the transaction subject.
A computer storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
The invention has the beneficial effects that: federation chains are typically used to implement services that require multi-entity shared collaboration. Being limited by the federation chain being primarily a local decentralized system, it cannot implement a common value flow such as a federation chain. The invention realizes that the incentive token is added into the alliance chain, and realizes that a new incentive form is constructed under the condition that digital currency is not issued, so that the members in the nodes participating in the alliance chain, mainly a transaction main body in the transaction can obtain the incentive, and the service efficiency is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a method for federation chain incentive method fusing public chains in an embodiment of the present invention;
FIG. 2 is a view of the tissue architecture of an embodiment of the present invention;
FIG. 3 is an excitation flow chart of a federation chain excitation method fusing public chains in an embodiment of the present invention;
fig. 4 is a device composition diagram of a federation chain incentive device fusing public chains according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
In the prior art, in the block chain field, a specific federation chain is referred to as a federation chain for short, and a specific public chain is referred to as a public chain for short:
fig. 1 shows a federation chain incentive method fusing public chains, which includes:
step 100: deploying an excitation contract on a main chain of a public chain, and determining a mining interface function and a Token interface function of the excitation contract;
step 101: recording the service contribution amount of a transaction main body through a alliance chain, sending the service contribution amount to the mining interface function in a parameter mode, and obtaining the Merckel root hash of the service contribution amount; the transaction principal belongs to a member of the federation chain. The parameters include contribution information of the traffic contribution amount.
Step 102: generating Token according to the merkel root hash and the mining interface function; the Token interface function contributes the Token as an incentive to the transaction principal. Token belongs to a network Token, similar to a Token of a bitcoin.
The principle of the invention is to deploy at least one incentive contract of a alliance chain in a public chain, wherein the incentive contract belongs to one of block chain intelligent contracts, inherits an interface function of Token and an incentive interface function, and realizes service incentive logic on the basis of the inheritance of the interface function of Token and the incentive interface function. The method comprises the steps of recording and storing the service contribution amount of a member in a federation chain, sending the contribution record of the service contribution amount to an incentive contract on a main chain in the form of contribution information, generating a certain Token to the contribution member according to a Merckel root hash (mean _ root _ from _ contract) and the contribution amount (constraint) of the contribution information by the incentive contract, processing the contribution member as the incentive main chain according to the code logic of an incentive contract, arranging an administrator and a federation chain member in the incentive contract, recording the public link address of the federation chain member into the administrator, modifying member information in the incentive contract only if the administrator has the right, and enabling a transaction body of the method to belong to the member of the federation chain.
The invention has the beneficial effects that: the invention realizes that the incentive token is added into the alliance chain, and realizes that a new incentive form is constructed under the condition that digital currency is not issued, so that the members in the nodes participating in the alliance chain, mainly a transaction main body in the transaction can obtain the incentive, and the service efficiency is improved.
The invention can expand the current public link application. The invention provides a federation chain incentive scheme and a device based on the fusion of a public chain and a federation chain, wherein the device comprises three parts of an incentive contract on the public chain, a contribution recording channel on the federation chain and a communication protocol between the incentive contract and the contribution recording channel on the federation chain. On one hand, the development of alliance chain business can be well promoted; on the other hand, the application of the value transfer advantage of the public chain in specific services can be expanded.
In one embodiment, the incentive contract inherits the interface function of Token, the specifics of the Token interface being determined by the specific public chain. For example, a reference implementation is an interface function of ERC20 Token in an ethernet network, and the procedure is as follows:
Figure BDA0002443164560000071
/>
Figure BDA0002443164560000081
in one embodiment: an interface function for presenting an excitation, implemented by the following program:
Figure BDA0002443164560000082
/>
Figure BDA0002443164560000091
the complete Incentive contract realizes the interface function of Token and the interface function of the Incentive.
contract ConsortiumIncentive is Token,Incentive{}
As an embodiment of the present invention, the method further comprises:
processing the excitation process according to the code logic of the excitation contract and generating receipt information of a processing result;
storing the receipt information in a federation chain as a receipt record that the transaction subject has obtained a corresponding value.
As an embodiment of the present invention, the federation chain obtains and stores the processing result as a receipt record that the transaction principal has obtained a corresponding value, including:
leading the receiver information into a alliance chain, and storing the receiver information into a record of a member id _ count; wherein the content of the first and second substances,
the member id is the only member identification number of the alliance link node;
the count is used for sending transaction times to a mining interface function of the incentive contract;
the transaction times are transaction times of the excitation member id nodes;
and the member id _ count stores the receipt information under a receipt field according to a preset value, and takes the receipt field as a receipt record of the acquired excitation.
The incentive contract comprises the functions of recording value quantity, supporting value circulation and supporting the release of Token based on the contribution information of the alliance chain business.
When the public chain incentive contract is processed, generating a receipt message to be returned to the alliance chain, and storing the receipt message in the value with the corresponding key value being number id _ count as the certificate of the acquired incentive, wherein the programming program is as follows in the actual implementation:
Figure BDA0002443164560000101
Figure BDA0002443164560000111
as shown in FIG. 2, the organizational structure diagram of the present invention is shown, the number of the incentive contracts and alliance chains of the present invention can be N, wherein N is greater than or equal to 1; according to the organizational structure diagram, the invention comprises the following functions:
incentive contracts can be deployed on the main chain of the public chain, provide a mining interface function, and link specific services completed by the alliance chain with the issuing of tokens (Token).
The incentive contract has a function of recording value quantity (balance), a function of supporting value transfer (transfer), and a function of supporting value quantity (mining) based on contribution of the federation chain business.
The federation chain records and stores the service contribution amount of the member, sends the contribution record to an excitation contract on the main chain in a message form, and the excitation contract generates a certain Token to the contribution member as an excitation main chain to be processed according to the code logic of the excitation contract according to the merkel root hash (mean _ root _ from _ contract) and the contribution amount (distribution) of the contribution information.
The federation chain obtains the results of the processing and stores them as contribution records for receipt records for which corresponding values have been obtained.
As an embodiment of the present invention, the federation chain is at least one;
the alliance chain is provided with a state database;
setting the key value pair of the transaction subject according to the state database;
the key value pair is used for storing a hash value of the transaction main body service contribution amount; wherein, the first and the second end of the pipe are connected with each other,
one key value pair corresponds to one count value, each count records 64 transaction hash values, and each count value is increased by 1 and forms a new key value pair for storing service contribution amount when the transaction hash value is recorded 64 times;
and the key-value pair is formed by combining the member id and the count.
The hash value in the invention is the hash in practical implementation.
In one embodiment: the federation chain of the invention creates a key value pair for each member in a state database for storing the contribution amount of the member, the key value of the key value pair is formed by combining the number id and the accumulated times for recording the contribution amount of the member, wherein the count means that each key value pair only records the hash of 64 transactions, and the count is increased by 1 when the service amount contributed by a transaction main body reaches 64 times. As an embodiment of the present invention, the federation chain includes the following functions:
displaying the number of the transaction hash values recorded currently through a transaction count, and creating a transaction Mercker root when the number of the hash values of the current transaction reaches 64;
generating contribution information according to the transaction Mercker root and sending the contribution information to a mining function of the incentive contract; wherein, the first and the second end of the pipe are connected with each other,
when the accumulated transaction number of the transaction body reaches a multiple of 64, adding 1 to the count value, generating a new key value pair, and continuously storing the transaction hash value of the transaction body.
In one embodiment: and the transaction count shows the number of the transaction hashes currently recorded, when 64 times are full, a transaction count root is created, a message sent to a public link incentive contract mining function is triggered (parameters are: the public link address, the transaction count root and the transaction count of the member, and meanwhile, the federation link signs the message by using the private key of an administrator), and the count is added with 1,number id and the count is combined in a form of number id _ count to generate a new key value pair, and the new transaction hash of the member is continuously recorded. One key-value pair is regenerated for every full 64 transaction hashes in the above steps.
As shown in fig. 3, as an embodiment of the present invention, the method includes the following excitation flow:
step 200: the transaction body writes the contribution record into a public channel of a alliance chain, and a contribution record hash for external inquiry is generated;
step 201: after the successful writing, when the contribution record accumulation reaches multiples of 64 each time, sending a new contribution record, a new contribution record hash and a signature of the contribution record hash by the federation chain to the incentive contract;
step 202: the incentive contract receives the message, checks whether the sender address of the message is a transaction main body of the alliance chain, and returns the message hash to the alliance chain; the verification mode of the verification message is generally carried out by the public link system according to the verification mode of the corresponding public link system.
Step 203: the federation link receives a returned message hash;
step 204: the public chain writes the message into the block, and simultaneously triggers an incentive contract in the public chain to newly issue a certain number of tokens to the contributing transaction main body to generate a message processing receipt;
step 205: and the alliance chain inquires the message hash, determines the processing state of the submitted message, and stores the message receipt returned by the public chain into a contribution recording channel of the alliance chain.
The principle of the invention is as follows: the incentive process of the invention comprises the processes of recording contribution, obtaining data in the contribution by incentive contracts, verifying transaction main body, generating message processing data, contributing records and the like, so that the transaction main body can obtain different numbers of tokens according to the method of the invention through statistics of service contribution, thereby realizing a distribution mode with much labor and much time and being fair and reasonable.
Fig. 4 is a device structure diagram of a federation chain incentive device fusing public chains, according to the present invention, including:
a first determination module: the method comprises the steps that a driving contract is deployed on a main chain of a public chain, and a mining interface function and a Token interface function of the driving contract are determined;
a processing module: a mining interface function used for recording the business contribution amount of a transaction main body through a alliance chain and sending the business contribution amount to the incentive contract through the transaction in the form of contribution information;
an excitation module: and the driving contract is used for generating Token serving as an incentive contribution to the transaction main body through a mining interface function according to the Mercker tree root hash of the service contribution information.
The principle of the invention is to deploy at least one incentive contract of a alliance chain in a public chain, wherein the incentive contract belongs to one of block chain intelligent contracts, inherits an interface function of Token and an incentive interface function, and realizes service incentive logic on the basis of the inheritance of the interface function of Token and the incentive interface function. The method comprises the steps of recording and storing the service contribution amount of a member in a federation chain, sending the contribution record of the service contribution amount to an excitation contract on a main chain in the form of contribution information, generating a certain Token to the contribution member according to a Mercker root hash (merchant _ root _ from _ Consortium) and the contribution amount (constraint) of the contribution information by the excitation contract, processing the contribution member as the excitation main chain according to the code logic of the excitation contract by using the excitation contract, setting an administrator and a federation chain member in the excitation contract, recording the public chain address of the federation chain member into the administrator, modifying member information in the excitation contract only if the administrator has the right, and enabling a transaction main body of the invention to belong to the member of the federation chain.
The invention has the beneficial effects that: the invention realizes that incentive tokens are added into the alliance chain, and realizes that a new incentive form is constructed under the condition that digital currency is not issued, so that members in the alliance chain participating nodes, mainly a transaction main body in transaction can obtain incentives, and the service efficiency is improved.
The invention can expand the current public link application. At present, great application of the public chain in the field of value transfer has been widely recognized, and bitcoin and Ethermen have market value over 560 hundred million dollars. The alliance chain is mainly used for specific services such as government affairs systems, and the contribution value of alliance chain members to the services is difficult to show up in the alliance chain.
The invention provides a alliance chain incentive scheme and a device based on the fusion of a public chain and an alliance chain, wherein the device comprises three parts of an incentive contract on the public chain, a contribution recording channel on the alliance chain and a communication protocol between the incentive contract and the contribution recording channel on the alliance chain. On one hand, the development of alliance chain business can be well promoted; on the other hand, the application of the value transfer advantage of the public chain in specific services can be expanded.
As an embodiment of the present invention, the apparatus further includes:
a second determination module: the code logic used for driving the main chain of the public chain to process an excitation process through the excitation contract and determine receipt information of a processing result;
an acquisition module: for obtaining and storing the processing result through the federation chain as a receipt record of the corresponding value obtained by the transaction subject.
A computer storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Embodiments of the present application further provide a computer storage medium, which is a computer readable storage medium, for example, a memory including a computer program, which is executable by a processor in a consensus system to perform the steps of the incentive method. The computer-readable storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read Only Memory (CD-ROM).
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A federation chain incentive method fusing public chains is characterized by comprising the following steps:
deploying at least one excitation contract on a main chain of a public chain, and determining a minting interface function and a Token interface function of the excitation contract;
recording the service contribution amount of a transaction main body through a alliance chain, sending the service contribution amount to the minning interface function in a parameter mode, and obtaining the Merckel root hash of the service contribution amount;
generating Token according to the merkel root hash and the mining interface function; the Token interface function contributes the Token as an incentive to the transaction principal;
the method comprises the following excitation process:
step 200: the transaction body writes the contribution record into a public channel of a alliance chain, and generates a contribution record hash for external inquiry;
step 201: after the successful writing, when the contribution record accumulation reaches a multiple of 64 each time, sending a new contribution record, a new contribution record hash and a signature of the contribution record hash by the federation chain to the incentive contract;
step 202: the incentive contract receives the message, checks whether the sender address of the message is a transaction main body of the alliance chain, and returns message hash to the alliance chain;
step 203: the federation link receives a returned message hash;
step 204: the public chain writes the message into the block, and simultaneously triggers an incentive contract in the public chain to newly issue a certain number of tokens to the contributing transaction main body to generate a message processing receipt;
step 205: and the alliance chain inquires the message hash, determines the processing state of the submitted message, and stores the message receipt returned by the public chain into a contribution recording channel of the alliance chain.
2. A federation chain incentive method for fusing public chains as claimed in claim 1, further comprising:
processing the excitation process according to the code logic of the excitation contract and generating receipt information of a processing result;
storing the receipt information in a federation chain as a receipt record that the transaction subject has obtained a corresponding value.
3. A federation chain incentive method for fusing public chains according to claim 2, wherein the federation chain obtains the processing result and stores it as a receipt record that the transaction subject obtained the corresponding value, comprising:
leading the receiver information into a alliance chain, and storing the receiver information into a record of memberid _ count; wherein the content of the first and second substances,
the membrid is the only member identification number of the alliance link node;
the count is used for sending transaction times to a mining interface function of the incentive contract;
the transaction times are transaction times of the incentive membrid node;
and the memberid _ count stores the receive information under a receive field according to a preset value, and takes the receive field as a receipt record of the acquired incentive.
4. A federation chain incentive method for fusing public chains according to claim 1, wherein the incentive contract comprises: recording the value quantity, supporting value circulation and supporting the function of issuing Token based on the contribution information of the alliance chain business.
5. A federation chain incentive method fusing public chains as claimed in claim 1, wherein there is at least one federation chain;
the alliance chain is provided with a state database;
setting the key value pair of the transaction subject according to the state database;
the key value pair is used for storing a hash value of the transaction main body service contribution amount; wherein, the first and the second end of the pipe are connected with each other,
one key value pair corresponds to one count value, each count records 64 transaction hash values, and each count value is increased by 1 and forms a new key value pair for storing service contribution amount when the transaction hash value is recorded 64 times;
the key-value pair is formed by combining memberd and count.
6. A federation chain incentive method for fusing public chains according to claim 4, wherein the federation chain comprises the following functions:
displaying the number of the transaction hash values recorded currently through transactioncount, and creating a transaction Mercker root when the number of the hash values of the current transaction reaches 64;
generating contribution information according to the transaction Mercker root and sending the contribution information to a minting function interface of the excitation contract; wherein the content of the first and second substances,
and when the accumulated transaction number of the transaction main body reaches a multiple of 64, adding 1 to the count value, generating a new key value pair, and continuously storing the transaction hash value of the transaction main body.
7. A federation chain incentive device for fusing public chains, comprising:
a first determination module: the method comprises the steps that a driving contract is deployed on a main chain of a public chain, and a mining interface function and a Token interface function of the driving contract are determined;
a processing module: a mining interface function used for recording the business contribution amount of a transaction main body through a alliance chain and sending the business contribution amount to the incentive contract through the transaction in the form of contribution information;
an excitation module: the system is used for driving the incentive contract to generate Token serving as incentive contribution to the transaction main body through a mining interface function according to the Mercker tree root hash of the service contribution information;
wherein, the excitation process comprises:
step 200: the transaction body writes the contribution record into a public channel of a alliance chain, and generates a contribution record hash for external inquiry;
step 201: after the successful writing, when the contribution record accumulation reaches a multiple of 64 each time, sending a new contribution record, a new contribution record hash and a signature of the contribution record hash by the federation chain to the incentive contract;
step 202: the incentive contract receives the message, checks whether the sender address of the message is a transaction main body of the alliance chain, and returns the message hash to the alliance chain;
step 203: the federation link receives a returned message hash;
step 204: the public chain writes the message into the block, and simultaneously triggers an incentive contract in the public chain to newly issue a certain number of tokens to the contributing transaction main body to generate a message processing receipt;
step 205: and the alliance chain inquires the message hash, determines the processing state of the submitted message, and stores the message receipt returned by the public chain into a contribution recording channel of the alliance chain.
8. A federation chain incentive device for fusing public chains according to claim 7, further comprising:
a second determination module: the main chain for driving the public chain processes an excitation process through the code logic of the excitation contract and determines receipt information of a processing result;
an acquisition module: for obtaining and storing the processing result through the federation chain as a receipt record of the corresponding value obtained by the transaction subject.
9. A computer storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010271013.8A 2020-04-08 2020-04-08 Public chain fused alliance chain excitation scheme and device Active CN111639122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010271013.8A CN111639122B (en) 2020-04-08 2020-04-08 Public chain fused alliance chain excitation scheme and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010271013.8A CN111639122B (en) 2020-04-08 2020-04-08 Public chain fused alliance chain excitation scheme and device

Publications (2)

Publication Number Publication Date
CN111639122A CN111639122A (en) 2020-09-08
CN111639122B true CN111639122B (en) 2023-04-18

Family

ID=72329453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010271013.8A Active CN111639122B (en) 2020-04-08 2020-04-08 Public chain fused alliance chain excitation scheme and device

Country Status (1)

Country Link
CN (1) CN111639122B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110008A (en) * 2019-05-08 2019-08-09 北京理工大学 A kind of shared motivational techniques of the block chain medical data based on Charolais cattle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109509092A (en) * 2018-10-16 2019-03-22 中国传媒大学 Data trade motivational techniques and system based on alliance's chain
CN109685658A (en) * 2018-12-20 2019-04-26 杭州云象网络技术有限公司 A kind of distribution and operation method based on the logical card of alliance
PL3571825T3 (en) * 2018-12-21 2021-08-16 Advanced New Technologies Co., Ltd. Verifying integrity of data stored in a consortium blockchain using a public sidechain
CN110599340A (en) * 2019-09-19 2019-12-20 姚忠凯 Token method, system and wallet based on alliance chain

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110008A (en) * 2019-05-08 2019-08-09 北京理工大学 A kind of shared motivational techniques of the block chain medical data based on Charolais cattle

Also Published As

Publication number Publication date
CN111639122A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN108881163B (en) Multi-center block chain system with block issuing mechanism
CN110442652B (en) Cross-chain data processing method and device based on block chain
CN108932348B (en) Block chain merging processing method and device, block chain node and storage medium
CN109242484A (en) A kind of common recognition motivational techniques of block chain
US20200286049A1 (en) Systems and methods of self-administered protocols on a blockchain platform
CN109146484A (en) Common recognition verification method, digging mine machine and block catenary system based on block chain
CN111865587B (en) Data processing method, block link point device, electronic device, and computer program
CN110046480A (en) Works copyright distribution method and device based on block chain
CN111738725B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN111507717B (en) Data processing method, device, block node and computer readable storage medium
CN109087111A (en) Common recognition verification method, digging mine machine and block catenary system based on block chain
CN112651724A (en) Cross-chain interaction method, device and system
CN112015823B (en) Block chain data deleting method and device
CN111966538B (en) Block chain data recovery method and device
CN112015822B (en) Block chain data deleting method and device
CN109087105A (en) For digging the Hash Search method of mine, digging mine machine and block catenary system
CN112015596B (en) Block chain data recovery method and device
CN110474901A (en) Publicly-owned block chain network system
CN109242491A (en) It digs mine identity identifying method, dig mine machine and block catenary system
CN111639122B (en) Public chain fused alliance chain excitation scheme and device
CN110458541B (en) Object replacement method and device based on block chain
CN111026569B (en) Method for repairing specified block data in alliance chain
CN110808841B (en) Communication system based on block chain network and communication method thereof
CN112995167A (en) Kafka mechanism-based power utilization information acquisition method, block chain network and user side
CN112015577A (en) Calling method and device of intelligent contract

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