Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Client service implementation method and service components for anti-duplication of blockchain transactions

An implementation method and block chain technology, which is applied in the field of block chain transaction anti-duplication client service implementation method and service components, can solve problems such as transaction failure and inconsistent numbers, so as to prevent transaction replay, reduce access times, and ensure consistent effect

Active Publication Date: 2021-05-28
ZHONGAN INFORMATION TECH SERVICES CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although this design method does not require network access, the maintenance of the local nonce number may be inconsistent with the number recorded in the network, resulting in the transaction value submitted to the network because the nonce value is not recognized, resulting in transaction failure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Client service implementation method and service components for anti-duplication of blockchain transactions
  • Client service implementation method and service components for anti-duplication of blockchain transactions
  • Client service implementation method and service components for anti-duplication of blockchain transactions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] The embodiment of the present invention provides a client service implementation method for blockchain transaction anti-duplication, the method is applied to client service components, such as figure 2 As shown, the method specifically includes:

[0060] 201. Receive the transaction including the account identifier submitted by the client, and add it to the transaction cache pool.

[0061] In this embodiment, the client can initiate a transaction based on the transaction information, wherein the transaction information can include account identification, transaction amount, and signature information, etc. The account identification mentioned here can be any identification information used to identify different users, for example , wallet address, etc., are not limited here.

[0062] The above signature information can be generated by signing the hash value of the transaction data with the private key of the transaction initiator, so that the subsequent data receiver (...

Embodiment 2

[0091] The embodiment of the present invention provides a client service component for anti-duplication of blockchain transactions, such as image 3 As shown, the client service components can include:

[0092] The local database 31 is used to record the nonce value corresponding to the account identifier;

[0093] Sequence service component 32, comprising:

[0094] The receiving unit 321 is used to receive the transaction submitted by the client and add it to the transaction buffer pool;

[0095] An encapsulation unit 322, configured to encapsulate the transaction using the nonce value under the account identifier in the local database;

[0096]Blockchain unit 323, configured to send the encapsulated transaction to the blockchain network, and obtain the transaction execution result returned by the blockchain network;

[0097] The processing unit 324 is configured to judge whether the transaction execution result is successful, and increment the nonce value under the accoun...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a client service implementation method and service component for block chain transaction anti-heavy, belonging to the technical field of block chain, the method is applied to the client service component, and the method includes: receiving the client submitted by the client containing The transaction identified by the account is added to the transaction buffer pool; the nonce value under the account identification in the local database is used to encapsulate the transaction; the encapsulated transaction is sent to the blockchain network, and the transaction returned by the blockchain network is obtained Execution result; determine whether the transaction execution result is successful; when the transaction execution result is successful, increment the nonce value under the account ID in the local database by one. The embodiment of the present invention can not only reduce the blockchain network access as much as possible, reduce the network overhead and the blockchain load, but also ensure the consistency of the nonce value of the transaction with the nonce value in the blockchain network, effectively preventing transactions in the blockchain network from replay.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a client service implementation method and service components for anti-duplication of block chain transactions. Background technique [0002] Blockchain and networks such as Bitcoin and Ethereum based on its principles are already familiar to people. Any blockchain-based network is essentially a trust establishment, because the network is not controlled by any person or organization, and it is not worried about being attacked by hackers. [0003] The blockchain network can be simply regarded as a ledger, transfers between accounts, and all transaction records are well documented, very safe and reliable. But how to ensure that the assets transferred out of an account are not higher than its own balance, how to ensure that an account cannot transfer all its assets out more than once at the same time, and how to execute transactions in the same account in an orderly ma...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06Q40/04G06Q20/38G06F21/64G06F16/23
CPCG06F21/64G06Q20/382G06Q40/04G06F16/2365
Inventor 范洪月吴典宋文鹏迟祥
Owner ZHONGAN INFORMATION TECH SERVICES CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products