CN114463121A - Transaction information processing method and device based on block chain and electronic equipment - Google Patents
Transaction information processing method and device based on block chain and electronic equipment Download PDFInfo
- Publication number
- CN114463121A CN114463121A CN202011246191.1A CN202011246191A CN114463121A CN 114463121 A CN114463121 A CN 114463121A CN 202011246191 A CN202011246191 A CN 202011246191A CN 114463121 A CN114463121 A CN 114463121A
- Authority
- CN
- China
- Prior art keywords
- transaction
- proposal
- block chain
- node
- endorsement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 20
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims abstract description 54
- 230000000977 initiatory effect Effects 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims abstract description 15
- 238000012163 sequencing technique Methods 0.000 claims description 42
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012790 confirmation Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 239000004744 fabric Substances 0.000 description 6
- 238000013475 authorization Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000000354 decomposition reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005215 recombination Methods 0.000 description 2
- 230000006798 recombination Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Development Economics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a transaction information processing method, a device and electronic equipment based on a block chain, and the method applied to an initiating node in the block chain comprises the following steps: receiving a transaction proposal; confirming the proposal type of the transaction proposal according to the local account book data; in the event that the proposal type of the transaction proposal is confirmed to be a verifiable transaction, sending the transaction proposal to a sorting node in the blockchain. The scheme of the invention can improve the processing performance of the block chain on the transaction information.
Description
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and an apparatus for processing transaction information based on a block chain, and an electronic device.
Background
In the federation chain, to ensure that all transactions have enough endorsements when written to the blockchain, the transactions themselves are guaranteed to be approved by all nodes. The existing uplink process of the alliance chain transaction information involves communication of a large number of initiating nodes, endorsement nodes and sequencing nodes, and the large number of communication becomes a bottleneck for improving the processing performance of the blockchain transaction information.
Disclosure of Invention
The invention provides a transaction information processing method and device based on a block chain and electronic equipment, and improves the processing performance of the block chain on transaction information.
To solve the above technical problem, an embodiment of the present invention provides the following solutions:
a transaction information processing method based on a block chain is applied to an initiating node in the block chain and comprises the following steps:
receiving a transaction proposal;
confirming the proposal type of the transaction proposal according to the local account book data;
and in the case that the proposal type of the transaction proposal is confirmed to be a verifiable transaction, sending the transaction proposal to a sequencing node in the blockchain.
Optionally, after confirming the proposal type of the transaction proposal according to the local ledger data, the method further includes:
and updating the local ledger data according to the transaction proposal.
Optionally, after confirming the proposal type of the transaction proposal according to the local ledger data, the method further includes:
in the event that the proposal type of the transaction proposal is confirmed to be a non-verifiable transaction, the proposal transaction is sent to all endorsement nodes in the blockchain.
Optionally, after sending the proposal transaction to all endorsement nodes in the blockchain according to the local ledger data, the method further includes:
receiving an endorsement signature returned by an endorsement node in a block chain;
and in the case that the number of endorsement signatures is greater than the threshold, sending the transaction proposal and all received endorsement signatures to the ordering node.
The embodiment of the invention also provides a transaction information processing method based on the block chain, which is applied to the sequencing node in the block chain and comprises the following steps:
receiving a transaction proposal sent by an initiating node;
and sequencing the transaction proposals, generating a target block, and sending the target block to all nodes in the block chain, wherein the transaction proposals are recorded in the target block.
Optionally, after receiving the transaction proposal sent by the initiating node, the method further includes:
under the condition that the endorsement signature is not sent by the initiating node, acquiring an intelligent contract of the block chain;
and under the condition that the intelligent contract allows the initiating node to directly send the transaction proposal to the sequencing node, executing the step of generating the target block after sequencing the transaction proposal.
The embodiment of the present invention further provides a transaction information processing apparatus based on a block chain, which is applied to an initiating node in the block chain, and includes:
the first receiving module is used for receiving a transaction proposal;
the first confirmation module is used for confirming the proposal type of the transaction proposal according to the local account book data;
and the first sending module is used for sending the transaction proposal to the sequencing node in the block chain under the condition that the proposal type of the transaction proposal is verified.
The embodiment of the invention also provides a transaction information processing device based on the block chain, which is applied to the sequencing node in the block chain and comprises the following steps:
the second receiving module is used for receiving the transaction proposal sent by the initiating node;
and the processing module is used for generating a target block after sequencing the transaction proposals and sending the target block to all nodes in the block chain, wherein the transaction proposals are recorded in the target block.
An embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the method described above through the computer program.
An embodiment of the present invention further provides a processor-readable storage medium, where the processor-readable storage medium stores processor-executable instructions, and the processor-executable instructions are configured to cause the processor to execute the method described above.
The scheme of the invention at least comprises the following beneficial effects:
according to the scheme, the initiating node in the block chain receives the transaction proposal and confirms the proposal type of the transaction proposal according to the local ledger data; and in the case that the proposal type of the transaction proposal is confirmed to be a verifiable transaction, sending the transaction proposal to a sequencing node in the blockchain. In the embodiment of the invention, the transaction proposal is directly sent to the sequencing node for the verifiable transaction type, so that an endorsement authorization process is not needed, communication is reduced, and the processing performance of a block chain on transaction information is improved.
Drawings
Fig. 1 is a schematic flow chart of a transaction information processing method based on a blockchain according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for processing transaction information based on blockchains according to another embodiment of the present invention;
FIG. 3 is a block diagram of a transaction information processing device based on block chains according to an embodiment of the present invention;
fig. 4 is a block diagram of a transaction information processing apparatus based on a blockchain according to another embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The blockchain is a distributed account book technology, and is an application set of computer information technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The method has the advantages of decentralized trust, non-tampering traceability, transparent account book disclosure and the like, and the method of the embodiment of the invention is based on the block chain and also has the advantages.
The super ledger framework Fabric is a mature alliance chain bottom layer framework, and alliance chain basic components such as block chain nodes, intelligent contracts, transaction processing and certificate management are achieved. The method of the embodiment of the invention can be applied to the Fabric of the super book framework.
The Fabric framework flow is described below. The Fabric framework provides only a fixed transaction flow, namely:
1. the initiating node submits a transaction proposal to all endorsement nodes;
2. the endorsement node receives and verifies the transaction proposal;
3. the endorsement node uses a private key thereof to digitally sign the verified proposal and sends back to the initiating node;
4. the initiating node waits and collects a plurality of endorsement node signatures;
5. the initiating node submits the transaction and all endorsement signatures to the sequencing node;
6. the sequencing node generates a new block after sequencing the transactions and issues all the nodes;
7. all nodes receive the new block, verify the transactions in the block one by one according to the local ledger data, mark success/failure, and update the local ledger data according to the result.
The performance of the existing alliance chain realized by using the Fabric framework is still far from the performance of the traditional centralized application, and the alliance chain is difficult to adapt to high-frequency calling. The following embodiments of the present invention are illustrated by way of example in the Fabric framework of a federation chain, and it is to be understood that the present invention is not so limited.
As shown in fig. 1, an embodiment of the present invention provides a transaction information processing method based on a blockchain, which is applied to an initiating node in the blockchain, and includes:
and step 13, under the condition that the proposal type of the transaction proposal is confirmed to be a verifiable transaction, sending the transaction proposal to a sequencing node in the block chain.
Among them, the transaction proposal types can be divided into two categories, which are defined as follows:
1. the transaction may not be verified. The type of transaction refers to that the member of the alliance chain writes new data into the account book through a transaction proposal. All members can not effectively verify the validity of the transaction data according to the existing data in the local account book.
2. The transaction may be verified. The type of transaction refers to the verifiable modification of account data by the members of the federation chain through a transaction proposal. That is, all members can effectively verify the validity of the transaction according to the existing data in the local account book.
According to the scheme, the initiating node in the block chain receives the transaction proposal and confirms the proposal type of the transaction proposal according to the local ledger data; and in the case that the proposal type of the transaction proposal is confirmed to be a verifiable transaction, sending the transaction proposal to a sequencing node in the blockchain. In the embodiment of the invention, the transaction proposal is directly sent to the sequencing node for the verifiable transaction type, so that an endorsement authorization process is not needed, communication is reduced, and the processing performance of a block chain on transaction information is improved. The embodiment of the invention provides a set of brand-new transaction flow, so that part of transactions without endorsement authorization can use a new flow with less communication and higher performance, thereby greatly improving the performance of a block chain when processing the transactions.
Optionally, after confirming the proposal type of the transaction proposal according to the local ledger data, the method further includes: and updating the local ledger data according to the transaction proposal.
In the embodiment of the invention, the initiating node submits a transaction proposal to the sequencing node, the sequencing node sequences the transaction to generate a new block and sends all the nodes down; all nodes receive the new block, verify the transactions in the block one by one according to the local ledger data, mark success/failure, and update the local ledger data according to the result.
Optionally, after confirming the proposal type of the transaction proposal according to the local ledger data, the method further includes:
in the event that the proposal type of the transaction proposal is confirmed to be a non-verifiable transaction, the proposal transaction is sent to all endorsement nodes in the blockchain.
Optionally, after sending the proposed transaction to all endorsement nodes in the blockchain according to the local ledger data, the method further includes:
receiving an endorsement signature returned by an endorsement node in a block chain;
and in the case that the number of endorsement signatures is greater than the threshold, sending the transaction proposal and all received endorsement signatures to the ordering node.
In embodiments of the invention, in the event that the proposal type of the transaction proposal is a non-verifiable transaction, the proposal transaction is sent to all endorsement nodes in the blockchain. The endorsement node receives and verifies the transaction proposal; the endorsement node uses a private key thereof to digitally sign the verified proposal and sends back to the initiating node; after the initiating node waits for and collects a plurality of endorsement node signatures, submitting the transaction and all endorsement signatures to a sequencing node; the sequencing node generates a new block after sequencing the transactions and issues all the nodes; all nodes receive the new block, verify the transactions in the block one by one according to the local ledger data, mark success/failure, and update the local ledger data according to the result.
As shown in fig. 2, an embodiment of the present invention further provides a transaction information processing method based on a blockchain, which is applied to a sorting node in the blockchain, and includes:
and step 22, generating a target block after sequencing the transaction proposals, and sending the target block to all nodes in the block chain, wherein the transaction proposals are recorded in the target block.
In the embodiment of the invention, the sequencing node generates a new block after sequencing the transaction and issues all the nodes, thereby completing the recording of the transaction information. In the embodiment of the invention, for the transaction which can be verified in the proposal type, the initiating node can directly send the transaction proposal to the sequencing node, and the sequencing node still sequences the transaction proposal and generates the block under the condition that the transaction proposal sent by the initiating node is received and the endorsement signature is not sent, so that the endorsement authorization process is not needed, the communication is reduced, and the processing performance of the block chain on the transaction information is improved.
Optionally, after receiving the transaction proposal sent by the initiating node, the method further includes:
under the condition that the endorsement signature is not sent by the initiating node, acquiring an intelligent contract of the block chain;
and under the condition that the intelligent contract allows the initiating node to directly send the transaction proposal to the sequencing node, executing the step of generating the target block after sequencing the transaction proposal.
In the embodiment of the invention, a configuration item can be newly added to the intelligent contract to control whether the function of the method flow is started. Therefore, for the condition that all transactions require endorsement, the user can close the flow of the method through the configuration items of the intelligent contract. And if the intelligent contract is not configured with the opening, the sequencing node refuses to accept the transaction proposal without the endorsement node signature.
The present invention will be described below by way of examples.
1. Three banks B1-B2-B3 form a alliance chain, respectively have peer nodes, and realize a cross-bank transfer service through an intelligent contract C with a new process opened. The initial account book is empty:
{}
2. the user P1 opens the service account at the B1 counter and stores it in 100 yuan. At this time, B1 constructs a transaction proposal directed to smart contract C, which contains the data:
{ P1 has deposit 100 Yuan at B1, account number P1A }
And submitted to the peer node of B1. The peer node judges whether to be according to the existing account book data:
{}
and judging that the validity of the transaction cannot be verified, and guiding the transaction to the original flow, namely submitting the sequencing node after requesting endorsement signatures to the nodes B2 and B3.
3. User P2 opens the service account at the B2 counter and does not deposit money. At this time, B1 constructs a transaction proposal directed to smart contract C, which contains the data:
{ P2 has deposit 0 Yuan at B2, account number P2A }
And submitted to the peer node of B2. The peer node judges whether to be according to the existing account book data:
{ P1 has deposit 100 Yuan at B1, account number P1A }
And judging that the validity of the transaction cannot be verified, and guiding the transaction to the original flow, namely submitting the sequencing node after requesting endorsement signatures to the nodes B1 and B3.
4. The user P1 initiates a transfer transaction through B1, transferring 50 dollars to P2. At this time, B1 constructs a transaction proposal directed to smart contract C, which contains the data:
{ P1 transfer 50 Yuan to P2 }
And submitted to the peer node of B1. The peer node judges whether to be according to the existing account book data:
{ P1 has deposit 100 Yuan at B1, account number P1A }
{ P2 has deposit 0 Yuan at B2, account number P2A }
And judging that the validity of the transaction can be verified, and guiding the transaction to a new process, namely directly submitting the sequencing node to write in a new block.
When all nodes receive the new block, the data of the local existing account book are basically:
{ P1 has deposit 100 Yuan at B1, account number P1A }
{ P2 has deposit 0 Yuan at B2, account number P2A }
The transaction validity can be verified, the transaction is confirmed, and the local account book is updated as follows:
{ P1 has 50 Yuan of deposit at B1, account number P1A }
{ P2 has 50 Yuan of deposit at B2, account number P2A }
5. The user P1 again initiates a transfer transaction through B1, transferring 150 dollars to P2. Node B1 is based on local ledger data:
{ P1 has 50 Yuan of deposit at B1, account number P1A }
{ P2 has 50 Yuan of deposit at B2, account number P2A }
And judging that the transaction is illegal and directly refusing.
As shown in fig. 3, an embodiment of the present invention further provides a transaction information processing apparatus 30 based on a blockchain, which is applied to an initiating node in a blockchain, and includes:
a first receiving module 31, configured to receive a transaction proposal;
a first confirmation module 32, configured to confirm a proposal type of the transaction proposal according to the local ledger data;
a first sending module 33, configured to send the transaction proposal to the sorting node in the blockchain if the proposal type of the transaction proposal is confirmed to be a verifiable transaction.
Optionally, the apparatus 30 may further include:
and the updating module is used for updating the local ledger data according to the transaction proposal.
Optionally, the apparatus 30 may further include:
and the second sending module is used for sending the proposal transaction to all endorsement nodes in the block chain under the condition that the proposal type of the transaction proposal is confirmed to be a non-verifiable transaction.
Optionally, the apparatus 30 may further include:
the third receiving module is used for receiving endorsement signatures returned by endorsement nodes in the block chain;
and the third sending module is used for sending the transaction proposal and all the received endorsement signatures to the sorting node under the condition that the number of the endorsement signatures is greater than the threshold value.
It should be noted that the apparatus is an apparatus corresponding to the above method embodiment applied to the originating node, and all implementation manners in the above method embodiment are applicable to the embodiment of the apparatus, and the same technical effect can be achieved.
As shown in fig. 4, an embodiment of the present invention further provides a transaction information processing apparatus 40 based on a blockchain, which is applied to a sorting node in the blockchain, and includes:
a second receiving module 41, configured to receive a transaction proposal sent by the initiating node;
and the processing module 42 is configured to generate a target block after sorting the transaction proposals, and send the target block to all nodes in the block chain, where the transaction proposals are recorded in the target block.
Optionally, the apparatus 40 may further include:
the acquiring module is used for acquiring an intelligent contract of the block chain under the condition that the endorsement signature is not sent by the initiating node; under the condition that the intelligent contract allows the initiating node to directly send the transaction proposal to the sequencing node, the processing module executes the step of generating the target block after sequencing the transaction proposal.
It should be noted that the apparatus is an apparatus corresponding to the above method embodiment applied to the node sorting, and all implementation manners in the above method embodiment are applicable to the embodiment of the apparatus, and the same technical effect can be achieved.
An embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the method described above through the computer program. All the implementation manners in the above method embodiment are applicable to the embodiment of the apparatus, and the same technical effect can be achieved.
An embodiment of the present invention further provides a processor-readable storage medium, where the processor-readable storage medium stores processor-executable instructions, and the processor-executable instructions are configured to cause the processor to execute the method described above. All the implementation manners in the above method embodiment are applicable to this embodiment, and the same technical effect can be achieved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
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, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, 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 invention 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 functions, if implemented in the form of software functional units 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 invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Furthermore, it is to be noted that in the device and method of the invention, it is obvious that the individual components or steps can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of performing the series of processes described above may naturally be performed chronologically in the order described, but need not necessarily be performed chronologically, and some steps may be performed in parallel or independently of each other. It will be understood by those skilled in the art that all or any of the steps or elements of the method and apparatus of the present invention may be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or any combination thereof, which can be implemented by those skilled in the art using their basic programming skills after reading the description of the present invention.
Thus, the objects of the invention may also be achieved by running a program or a set of programs on any computing device. The computing device may be a general purpose device as is well known. The object of the invention is thus also achieved solely by providing a program product comprising program code for implementing the method or the apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is to be understood that the storage medium may be any known storage medium or any storage medium developed in the future. It is further noted that in the apparatus and method of the present invention, it is apparent that each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of executing the series of processes described above may naturally be executed chronologically in the order described, but need not necessarily be executed chronologically. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A transaction information processing method based on a block chain is applied to an initiating node in the block chain, and is characterized by comprising the following steps:
receiving a transaction proposal;
confirming the proposal type of the transaction proposal according to the local account book data;
in the event that the proposal type of the transaction proposal is confirmed to be a verifiable transaction, sending the transaction proposal to a sorting node in the blockchain.
2. The method of claim 1, wherein after confirming a proposal type of the transaction proposal based on local ledger data, the method further comprises:
and updating the local ledger data according to the transaction proposal.
3. The method of claim 1, wherein after confirming a proposal type of the transaction proposal based on local ledger data, the method further comprises:
in the event that the proposal type of the transaction proposal is confirmed to be a non-verifiable transaction, sending the proposal transaction to all endorsement nodes in the blockchain.
4. The method of claim 3, wherein after sending the proposed transaction to all endorsement nodes in the blockchain in accordance with local ledger data, the method further comprises:
receiving endorsement signatures returned by endorsement nodes in the block chain;
and sending the transaction proposal and all the received endorsement signatures to the sorting node when the number of endorsement signatures is larger than a threshold value.
5. A transaction information processing method based on a block chain is applied to a sequencing node in the block chain, and is characterized by comprising the following steps:
receiving a transaction proposal sent by an initiating node;
and sequencing the transaction proposals to generate target blocks and sending the target blocks to all nodes in the block chain, wherein the transaction proposals are recorded in the target blocks.
6. The method of claim 5, wherein after receiving the transaction proposal sent by the initiating node, further comprising:
under the condition that the endorsement signature is not sent by the initiating node, acquiring an intelligent contract of the block chain;
and under the condition that the intelligent contract allows the initiating node to directly send the transaction proposal to a sequencing node, executing the step of generating a target block after sequencing the transaction proposal.
7. A transaction information processing device based on a block chain is applied to an initiating node in the block chain, and is characterized by comprising:
the first receiving module is used for receiving a transaction proposal;
the first confirmation module is used for confirming the proposal type of the transaction proposal according to the local ledger data;
the first sending module is used for sending the transaction proposal to the sequencing node in the block chain under the condition that the proposal type of the transaction proposal is confirmed to be a verifiable transaction.
8. A transaction information processing device based on a blockchain is applied to a sequencing node in the blockchain, and is characterized by comprising:
the second receiving module is used for receiving the transaction proposal sent by the initiating node;
and the processing module is used for generating a target block after sequencing the transaction proposals and sending the target block to all nodes in the block chain, wherein the transaction proposals are recorded in the target block.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to perform the method of any of claims 1 to 4 or the method of any of claims 5 to 6 by means of the computer program.
10. A processor-readable storage medium having stored thereon processor-executable instructions for causing a processor to perform the method of any of claims 1 to 4 or the method of any of claims 5 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011246191.1A CN114463121A (en) | 2020-11-10 | 2020-11-10 | Transaction information processing method and device based on block chain and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011246191.1A CN114463121A (en) | 2020-11-10 | 2020-11-10 | Transaction information processing method and device based on block chain and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114463121A true CN114463121A (en) | 2022-05-10 |
Family
ID=81404179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011246191.1A Pending CN114463121A (en) | 2020-11-10 | 2020-11-10 | Transaction information processing method and device based on block chain and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114463121A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109087104A (en) * | 2018-08-29 | 2018-12-25 | 北京京东尚科信息技术有限公司 | Block chain intelligence contract administration method and system, computer readable storage medium |
CN110555682A (en) * | 2019-09-10 | 2019-12-10 | 苏州阿尔山数字科技有限公司 | multi-channel implementation method based on alliance chain |
CN111046037A (en) * | 2019-11-18 | 2020-04-21 | 远光软件股份有限公司 | Transaction processing method of block chain, electronic device and storage medium |
CN111461880A (en) * | 2020-03-26 | 2020-07-28 | 广东洪心电子商务科技股份有限公司 | Block chain transaction block-out method and system based on user level |
CN111813857A (en) * | 2020-07-02 | 2020-10-23 | 珑门汽车科技(上海)有限公司 | Detection data management system and method based on block chain technology |
-
2020
- 2020-11-10 CN CN202011246191.1A patent/CN114463121A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109087104A (en) * | 2018-08-29 | 2018-12-25 | 北京京东尚科信息技术有限公司 | Block chain intelligence contract administration method and system, computer readable storage medium |
CN110555682A (en) * | 2019-09-10 | 2019-12-10 | 苏州阿尔山数字科技有限公司 | multi-channel implementation method based on alliance chain |
CN111046037A (en) * | 2019-11-18 | 2020-04-21 | 远光软件股份有限公司 | Transaction processing method of block chain, electronic device and storage medium |
CN111461880A (en) * | 2020-03-26 | 2020-07-28 | 广东洪心电子商务科技股份有限公司 | Block chain transaction block-out method and system based on user level |
CN111813857A (en) * | 2020-07-02 | 2020-10-23 | 珑门汽车科技(上海)有限公司 | Detection data management system and method based on block chain technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109345259A (en) | Virtual resource transfer method, device, medium and electronic equipment based on block chain | |
CN110033271B (en) | Cross-chain transaction method, system and computer readable storage medium | |
Johansen et al. | Operating system support for mobile agents | |
US20190228386A1 (en) | Recording evidence of address/account allocations in a distributed ledger | |
CN108122159A (en) | A kind of factoring information processing method and system based on block chain | |
CN116843334A (en) | Combined data transmission control method and system based on block chain | |
CN110599177A (en) | Transaction verification method and related equipment | |
CN111932233B (en) | Resource transfer method, device and equipment | |
CN110163634B (en) | Refund method and device based on blockchain and electronic equipment | |
CN110874742A (en) | Payment method and device based on block chain and intelligent contract | |
CN109255056A (en) | Data referencing processing method, device, equipment and the storage medium of block chain | |
CN110210863A (en) | Block chain method for secure transactions, device, electronic equipment and storage medium | |
CN110599331A (en) | Debt charging system, method, device and storage medium based on block chain | |
CN111402033A (en) | Asset information management method and device based on block chain | |
CN111476670A (en) | Block chain rollback insurance method, equipment and storage medium | |
CN111160803A (en) | Business process safety and management method and system based on block chain | |
CN110930152A (en) | Data processing method based on block chain and related equipment | |
CN115701078B (en) | Cross-chain transaction processing method, device, electronic equipment and storage medium | |
CN110766403A (en) | Data processing device and method based on block chain and storage medium | |
KR102376783B1 (en) | The blockchain-based transaction history confirmation system | |
CN109472151A (en) | A kind of method and server of data access | |
CN111209542B (en) | Authority management method and device, storage medium and electronic equipment | |
CN114445073A (en) | Computer-implemented method, information processing apparatus, and storage medium | |
CN114463121A (en) | Transaction information processing method and device based on block chain and electronic equipment | |
CN110610398A (en) | Book sharing method based on intelligent contracts |
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 |