CN109146681A - A kind of element processing method, device, equipment and the storage medium of block chain - Google Patents

A kind of element processing method, device, equipment and the storage medium of block chain Download PDF

Info

Publication number
CN109146681A
CN109146681A CN201810836628.3A CN201810836628A CN109146681A CN 109146681 A CN109146681 A CN 109146681A CN 201810836628 A CN201810836628 A CN 201810836628A CN 109146681 A CN109146681 A CN 109146681A
Authority
CN
China
Prior art keywords
account
transactions requests
block chain
transfer
block
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
Application number
CN201810836628.3A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810836628.3A priority Critical patent/CN109146681A/en
Publication of CN109146681A publication Critical patent/CN109146681A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses element processing method, device, equipment and the storage mediums of a kind of block chain.This method comprises: obtaining account element handles transactions requests, and account element processing transactions requests are handled, the Transaction Information for forming the tracking mark including element is added in block;Encrypted communication is confirmed into block chain network.By adopting the above technical scheme, it is identified by introducing the tracking of element within a block, makes it possible to effectively track the transfer path of the element in each account, realize the effective monitoring to the element transfer process in block chain, realize the transparence that element uses in block chain.

Description

A kind of element processing method, device, equipment and the storage medium of block chain
Technical field
The present embodiments relate to block chain data processing technique more particularly to a kind of element processing method of block chain, Device, equipment and storage medium.
Background technique
Block chain is the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism and Encryption Algorithm New application mode.Block chain is substantially used as a kind of database of distributed storage, by its decentralization, safe and anti- It the technical advantages such as distorts and has obtained extensive concern.
Specifically, can be given birth to when user needs to carry out the processing such as shifting to elements such as digital assets in block chain It transmits at transactions requests relevant to element transfer and in block chain network.Block chain node gets meeting after the transactions requests Transfer processing is executed based on the transactions requests, and generates respective transaction data and stores into block.Block chain node can also be by institute The block of generation is in block chain network, so that other block chain nodes verify block generated.
When by verifying to generated block, block chain node only can be to element transfer process namely Transaction Information Generating process verified, to determine the correctness of element transfer process, itself conjunction is shifted to element when generating block Rationality but has no way of investigating.
Summary of the invention
The embodiment of the invention provides element processing method, device, equipment and the storage mediums of a kind of block chain, to realize To in block chain element transfer etc. processing carry out effective monitoring, realize block chain in element transfer transparence.
In a first aspect, being applied to block chain link the embodiment of the invention provides the element processing method in a kind of block chain Point, this method comprises:
It obtains account element and handles transactions requests;
Account element processing transactions requests are handled, Transaction Information is formed and is added in block;
Encrypted communication is confirmed into block chain network;
Wherein, element involved in the Transaction Information includes tracking mark of the element in block chain.
Second aspect, the embodiment of the invention also provides the element processing units in a kind of block chain, are configured at block chain Node, the device include:
Account element handles transactions requests and obtains module, for obtaining account element processing transactions requests;
Account element handles transactions requests processing module, for handling account element processing transactions requests, Transaction Information is formed to be added in block;
Encrypted communication module, for confirming encrypted communication into block chain network;
Wherein, element involved in the Transaction Information includes tracking mark of the element in block chain.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, which includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the element processing method in a kind of block chain provided by first aspect embodiment.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the element processing side in a kind of block chain provided by first aspect embodiment when the program is executed by processor Method.
The embodiment of the present invention obtains account element by block chain node and handles transactions requests, and to account element processing Transactions requests are handled, and the Transaction Information for forming the tracking mark including element is added in block;By encrypted communication to area Confirmed in block chain network.By adopting the above technical scheme, it is identified by introducing the tracking of element within a block, so that in block The element in each account can be effectively tracked in chain, realizes the effective monitoring to the element transfer process in block chain, realized The transparence that element shifts in block chain.
Detailed description of the invention
Fig. 1 is the flow chart of the element processing method in one of embodiment of the present invention one block chain;
Fig. 2 is the flow chart of the element processing method in one of embodiment of the present invention two block chain;
Fig. 3 a is the flow chart of the element processing method in one of embodiment of the present invention three block chain;
Fig. 3 b is the element transfer path schematic diagram that the embodiment of the present invention is applicable in;
Fig. 4 is the flow chart of the element processing method in one of embodiment of the present invention four block chain;
Fig. 5 is the structure chart of the element processing unit in one of embodiment of the present invention five block chain;
Fig. 6 is the structure chart for a kind of electronic equipment that the embodiment of the present invention six provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Various embodiments of the present invention can be realized based on single block chain network, be also based on by basic chain network and parallel chain The super chain network of network composition is realized.The embodiment of the present invention is to carry out exemplary theory the case where realization based on super chain network It is bright.For the technical solution for clearly introducing subsequent embodiment, explanation is introduced to super chain network technology first.
Wherein, basic chain is a kind of block chain, can be used for establishing connection between various independent block chains.Basic chain It can be associated with corresponding parallel chain, carry out data friendship for auxiliary establishing parallel chain, management parallel chain, auxiliary parallel chain It changes.For example, basic chain can be used for establishing connection between existing block chain independent of each other, so that the data in block chain Interaction is no longer limited to an individual block chain, so that the flow range of value is no longer limited to an individual block chain. That is, basic chain can be managed and supervise to the operating parameter in entire block chain network.
Parallel chain is also a kind of block chain, is opposite concept with basic chain.Parallel chain has all of general block chain Attribute, meanwhile, it may go to establish, be managed and carry out data exchange based on basic chain.Parallel chain can be by basic chain Made of derivation, or be also possible to have the function of with basic chain reciprocity status and, mutually auxiliary is established, is managed and data friendship It changes.Parallel chain can have one, and there may also be a plurality of.And optionally, between a plurality of parallel chain independently of one another, not mutual shadow It rings, alternatively, being also possible between two parallel chains mutually for the relationship of basic chain and parallel chain.
In general, basic chain is established and is run prior to parallel chain, with higher public credibility, appeal, value More obtain everybody approval.So the node of parallel chain can use public credibility and the appeal of basic chain node come by being ready The node for providing calculation power provides service for it.
In parallel chain creation, basic chain transactions requests can be initiated by arbitrary node, including the area parallel chain Chuan Shi The content of block, i.e. parallel chain dispose data.By the node processing of the basic chain transactions requests, the creation operation of parallel chain is recorded, It also corresponds to be notified of each node in network simultaneously, finally receives and deploy the node of parallel chain data, just take part in flat Row chain can be followed by subsequent processing parallel chain transactions requests.
Basic chain network can form super chain network with parallel chain network.In super chain network, basic chain can also be with It is one or more.It should be noted that participating in existing between all nodes of basic chain and all nodes of participation parallel chain Overlapping relation.That is, at least partly node of participation parallel chain and participate in basic chain are at least partly identical network nodes. In the network node of these overlappings, it is deployed with all data of the block chain of its participation, that is, be both stored with the deployment of basic chain Data are also stored with the deployment data of parallel chain, go back while being stored with the block itself of basic chain and parallel chain.So-called deployment number According to including communication mechanism data needed for participating in block chain, common recognition mechanism, intelligent contract, transactions requests script and other need The data wanted.Due to being deployed with the data of different blocks chain simultaneously, so different blocks chain can be generated in such network node Transactions requests, and its can be facilitated to carry out across chain issued transaction with local search to the Transaction Information in different blocks chain.
Wherein, basic chain is used to support the data storage of the block platform chain in super chain network;Parallel chain is for supporting The data of the application program run on block platform chain store.Wherein, block platform chain can be understood as to support a variety of answer With the service platform of program function, basic chain stores and processs the application data and caching of for example various application program management platforms Data etc..Meanwhile the data of the types of applications program run on parallel chain memory block platform chain, for example, a parallel chain can To store the application data of a kind of application program and data cached etc..
Embodiment one
Fig. 1 is the flow chart of the element processing method in one of embodiment of the present invention one block chain.The present invention is implemented The case where example is suitable for handling the element block chain.This method is executed by element processing unit, and the device is by software And/or hardware realization, and concrete configuration is on the electronic equipment of carrying block chain link point.
Element processing method in block chain as shown in Figure 1, comprising:
S110, account element processing transactions requests are obtained.
Wherein, account, which can be, is registered in block chain, is managed by asymmetric key pair, public key is as account Location is to as the window for carrying out point-to-point interaction with other users account, private key is saved by the account owner oneself, to make For the foundation and identification badge that content included in account is encrypted or decrypted.
Wherein, element can be is circulated in block chain network, for motivating the digital cash of user.For example, can be with It is bit coin, integral, star brill or energy etc..Certainly, incentive action can be played in different block chains is not limited to number Currency, can also be can be by other monetary units of account management.
Wherein, the processing of account element can be at least one carried out in operations described below to the element in account: shift, remaining Volume inquiry and transaction record inquiry etc..
It should be noted that since different block chains can be motivated using the element of identical or different type, because Account of this block chain node for storage element can store a variety of different types of digital cash simultaneously.
Specifically, account relevant to element processing can be generated when user needs to handle the element in its account Number element handles transactions requests, and account element processing transactions requests are transmitted in block chain network, for block chain link Point obtains the account element and handles transactions requests.
S120, account element processing transactions requests are handled, forms Transaction Information and is added in block.
Wherein, element involved in the Transaction Information includes tracking mark of the element in block chain.
Illustratively, the element that block chain node is stored, can be based in the block chain node for issuing element in distribution Deployment data, determine that corresponding with each element character code is identified as tracking of the element in block chain, the tracking mark Knowledge can be with the unique identification element.
It should be noted that when the element of identical type includes the unit amount of money of a setting in a block chain, element Tracking mark may include a distinguishing identifier;When the element of identical type in a block chain includes at least two settings When the unit amount of money, the tracking mark of element can also include amount of money distinguishing identifier.It can be arranged to the element of each minimum unit Tracking mark, alternatively, element setting tracking mark that can also be individually operated to certain number energy, the tracking mark of each element It can be one, or may be multiple tracking mark of multi-layer, multi-angle, distinguish the element as long as can indicate.
When block chain node receive account element processing transactions requests after, can to the account element handle transactions requests into Row processing, and generate corresponding Transaction Information and store into block.
Illustratively, when account element processing can be in account element carry out element transfer, inquiry into balance or It, can also be at account element after block chain node reconciliation element processing transactions requests are handled when transaction record is inquired In the electronic equipment for managing transactions requests sender, corresponding element transinformation, balance information or transaction record information are shown.
Illustratively, element transinformation can show that the element amount of money for having shifted element and corresponding tracking identify, Shift the affiliated block chain of element, transfer time and be transferred to account etc..Illustratively, balance information can show that user account is worked as The amount of money of preceding surplus element and corresponding tracking mark, the affiliated block chain of surplus element are transferred to the time and are transferred to account etc..Show Example property, transaction record information can be user account element transinformation in the set time period and it is corresponding it is each Shift account information when element circulates in block chain and be transferred to each account time etc..
S130, encrypted communication is confirmed into block chain network.
Block chain node is by encrypted communication generated to block chain network, so that other block chains in block chain network Node can verify the data in block generated.
It should be noted that when the electronic equipment of account element processing transactions requests sender is shown, Ke Yitong At least one crossed in background color, font color, display area and verifying classification is tested whether shown data pass through Card distinguishes.
The embodiment of the present invention obtains account element by block chain node and handles transactions requests, and to account element processing Transactions requests are handled, and the Transaction Information for forming the tracking mark including element is added in block;By encrypted communication to area Confirmed in block chain network.By adopting the above technical scheme, it is identified by introducing the tracking of element within a block, so that in block The element in each account can be effectively tracked in chain, realizes the effective monitoring to the element transfer process in block chain, realized The transparence that element is traded in block chain.
Embodiment two
Fig. 2 is the flow chart of the element processing method in one of embodiment of the present invention two block chain.The present invention is implemented Example has carried out subdivision optimization on the basis of the technical solution of the various embodiments described above.
Further, when account element processing transactions requests are that element shifts transactions requests, by operation " to the account Element processing transactions requests are handled, and are formed Transaction Information and are added in block " it is refined as " shifting transactions requests according to element Element is carried out in output account and inputs the transfer processing between account, and determines the tracking mark of shifted element, as thing Business data are added in block ", element processing scheme when element transfer is carried out to improve.
Element processing method in a kind of block chain as shown in Figure 2, comprising:
S210, element transfer transactions requests are obtained.
When user needs the element in account being transferred to other users account, element can be sent in block chain network Transactions requests are shifted, for the acquisition of block chain node.
S220, transactions requests progress element is shifted according to element in output account and inputs the transfer processing between account, And determine the tracking mark of shifted element, it is added in block as Transaction Information.
Wherein, element transfer transactions requests include at least input account, output account and element and shift the amount of money.Wherein, Exporting account can be user account, and input account can be any account, and optional is its for having cooperative relationship with user The account of his user.Wherein, the element transfer amount of money indicates to need to be transferred to the element amount of money for entering and leaving account from output account.
Illustratively, cooperative relationship can be the suppertive relations in such as public good project, the management relationship in project supervision, Good friend in the various application programs such as amusement, sport, social activity, shopping, the game of relation of the supply and routine in supply chain is closed System.Wherein, application program refers in particular to the application program that its own function is realized based on block chain network.
When the identical element species for exporting account and inputting in account only have a kind of, shows to input account and export account The element stored jointly in number block chain participated in only has one kind, therefore can only be related to the element transfer of single kind.
Correspondingly, block chain node will be from output account after block chain node gets element transfer transactions requests In select the transfer element of the setting amount of money, transfer element is transferred to input account, and generates Transaction Information.Meanwhile it obtaining From output account in select transfer element tracking mark, and will acquire tracking mark together as Transaction Information store to In block.Wherein, the setting amount of money is the element transfer amount of money.
Alternatively, block chain node is by preassigned turn after block chain node gets element transfer transactions requests It moves element and is transferred to input account from output account, and generate Transaction Information.Meanwhile it being extracted from element transfer transactions requests pre- The tracking mark of first specified transfer element, and the tracking mark that will acquire is stored as Transaction Information into block together.Its In, the total amount of preassigned transfer element is identical as the element transfer amount of money.
When the identical element species for exporting account and inputting in account include at least two, show to input account and defeated The element stored jointly in the block chain that account is participated in out includes at least two.Therefore, element transfer transactions requests further include Element shifts type.Wherein, element transfer type indicates to need to be transferred to the type for entering and leaving the element of account from output account.Its In, element shifts type and is at least one kind.
Correspondingly, block chain node will be from output account after block chain node gets element transfer transactions requests Transfer element is transferred to input account, and generates thing by the transfer element that the setting amount of money is selected in the element of middle setting type Business data.Meanwhile the tracking mark of the transfer element selected from output account is obtained, and the tracking mark that will acquire is made together It stores for Transaction Information into block.Wherein, setting type is element transfer type, and the setting amount of money is element transfer gold Volume.
Alternatively, block chain node is by preassigned turn after block chain node gets element transfer transactions requests It moves element and is transferred to input account from output account, and generate Transaction Information.Meanwhile it being extracted from element transfer transactions requests pre- The tracking mark of first specified transfer element, and the tracking mark that will acquire is stored as Transaction Information into block together.Its In, the type of preassigned transfer element is element transfer type, and the total amount of preassigned transfer element is member The element transfer amount of money.
S230, encrypted communication is confirmed into block chain network.
The embodiment of the present invention according to element by turning when it is that element shifts transactions requests that account element, which handles transactions requests, It moves transactions requests to carry out element in output account and input the transfer processing between account, and determines the tracking mark of shifted element Know, be added in block as Transaction Information, to improve the element processing scheme for carrying out element transfer.
Embodiment three
Fig. 3 a is the flow chart of the element processing method in one of embodiment of the present invention three block chain.The present invention is implemented Example has carried out additional optimization on the basis of the various embodiments described above.
Further, in operation " transactions requests are shifted according to element and carry out element between output account and input account Transfer processing " before, it is additional " to be identified according to the tracking of element to be transferred, and corresponding turn of account of output account or input The intelligent contract of account rule determines element to be transferred in output account and inputs the transfer permission between account ", to realize to element The control of transfer.
Element processing method in a kind of block chain as shown in Figure 3a, comprising:
S310, element transfer transactions requests are obtained.
Wherein, element transfer transactions requests include the tracking mark of element to be transferred, input account, output account and member The element transfer amount of money.
Wherein, the element transfer amount of money indicates to need to be transferred to the element amount of money for entering and leaving account from output account.
S320, it is identified according to the tracking of element to be transferred, and output account or the corresponding regular intelligence of transferring accounts of input account Energy contract determines element to be transferred in output account and inputs the transfer permission between account.
Block chain node identifies and exports the corresponding rule of transferring accounts of account according to the tracking of element to be transferred, determines output What whether account had each element to be transferred produces permission.Specifically, when the intelligent contract of the corresponding rule of transferring accounts of output account When operation, when determining that the tracking mark of element to be transferred cannot identify or recognition result is quiescing, output account is determined not Have and permission is produced to element to be transferred.
Block chain node is identified according to the tracking of element to be transferred and the intelligence of the corresponding rule of transferring accounts of input account is closed About, determine that whether input account had each element to be transferred is transferred to permission.Specifically, when being transferred to the corresponding rule of transferring accounts of account Intelligent contract operation when, determine element to be transferred tracking mark cannot identify or recognition result be quiescing when, determine Input account, which does not have, is transferred to permission to element to be transferred.
When input account does not have the permission that is transferred to of element to be transferred, or output account does not have turning for element to be transferred Out when permission, then show that element to be transferred does not have transfer permission between output account and input account;When input account tool Standby element to be transferred is transferred to permission, and exports account and have when producing permission of element to be transferred, shows element to be transferred Has transfer permission between output account and input account.
Certainly, if only carry out the judgement for producing permission of output account, when output account has element to be transferred Permission is produced, then shows that element to be transferred has transfer permission between output account and output account and input account;When defeated Account does not have the permission that produces of element to be transferred out, then shows that element to be transferred does not have between output account and input account Standby transfer permission.If only carry out the judgement for being transferred to permission of input account, when input account has turning for element to be transferred Enter permission, then shows that element to be transferred has transfer permission in output account and between input account;When input account does not have Standby element to be transferred is transferred to permission, then shows that element to be transferred does not have transfer power between output account and input account Limit.
S330, transactions requests progress element is shifted according to element in output account and inputs the transfer processing between account, And determine the tracking mark of shifted element, it is added in block as Transaction Information.
When element to be transferred having between output account and input account shifts permission, affairs are shifted according to element Request carries out element in output account and inputs the transfer processing between account, and generates corresponding Transaction Information.
The tracking mark of specified transfer element is extracted from element transfer transactions requests;Or it selects to set from output account The element to be transferred of deposit volume, and obtain corresponding tracking mark.Together by the tracking mark of extraction or the tracking mark obtained It stores as Transaction Information into block.Wherein, specified transfer element can be understood as element to be transferred, corresponding to be transferred The element amount of money is the element transfer amount of money;The setting amount of money can be understood as the element transfer amount of money.
Wherein, transfer element involved in the Transaction Information includes tracking mark of the element in block chain.
S340, encrypted communication is confirmed into block chain network.
Before the embodiment of the present invention is by the progress transfer processing between output account and input account, according to member to be transferred The tracking mark of element, and output account or the corresponding regular intelligent contract of transferring accounts of input account determine that element to be transferred is exporting Transfer permission between account and input account avoids element from shifting the hair of improper situation to realize the control shifted to element It is raw.
Preferably, it can be used for some public good account assets flowing limitations.As shown in Figure 3b, it is shifted in block chain network Element is logical card, and each logical card has its tracking mark, such as 001,002,003, leads to and demonstrate,proves in Xiao Wang, Xiao Ming, small red et al. account It is shifted, can be identified by the tracking of the logical card of block chained record, so as to for the transfer path for inquiring logical card between family.
Example IV
Fig. 4 is the flow chart of the element processing method in one of embodiment of the present invention four block chain.The present invention is implemented Example has carried out additional optimization on the basis of the various embodiments described above.
Further, after operation " confirming encrypted communication into block chain network ", it is additional " obtain element with Track transactions requests;The tracking mark in transactions requests is tracked according to the element, inquires corresponding element in the Transaction Information of block Transfer record of the element between account, and respond the element tracking transactions requests ", to realize the inquiry shifted to element.
Element processing method in a kind of block chain as shown in Figure 4, comprising:
S410, account element processing transactions requests are obtained.
S420, account element processing transactions requests are handled, forms Transaction Information and is added in block.
S430, encrypted communication is confirmed into block chain network.
Wherein, element involved in the Transaction Information includes tracking mark of the element in block chain.
S440, element tracking transactions requests are obtained.
Wherein, element tracking transactions requests include: element trace to the source transactions requests and element retrospect transactions requests.
Specifically, when user need to check in account remaining element setting be transferred in the period or set be transferred to it is secondary When transfer record in number, element can be sent in block chain network and traced to the source transactions requests, for the acquisition of block chain node.Its In, element trace to the source transactions requests include the element that user is checked tracking mark.
Specifically, having shifted that element produces in the period in setting or number is produced in setting when user needs to check in account When interior transfer records, element can be sent in block chain network and trace transactions requests, for the acquisition of block chain node.
S450, the tracking mark in transactions requests is tracked according to the element, inquires and corresponds in the Transaction Information of block Transfer record of the element between account, and respond the element tracking transactions requests.
Specifically, when block chain node receive element trace to the source transactions requests after, can be according to the tracking mark of checked element The record of transferring accounts between corresponding account is being searched in knowledge in the Transaction Information of block, as history transfer information, and by going through History transfer information when the last time that history transfer information continues to obtain checked element transfers accounts, until acquired history is transferred accounts Information produce the time with last time transfer accounts corresponding history transfer information produce time difference beyond setting be transferred to the time Section or accumulative transfer number exceed setting and are transferred to number.Each history transfer information is fed back into user account, and passes through user The interface of electronic equipment shown.Wherein, history transfer information includes at least: producing account and produces the time.
Specifically, after block chain node receives element retrospect transactions requests, it can be according to the tracking mark of checked element The record of transferring accounts between corresponding account is being searched in knowledge in the Transaction Information of block, as tracing information of transferring accounts, and by turning Account tracing information continues to obtain the tracing information of transferring accounts when transferring accounts next time of checked element, until acquired tracking of transferring accounts The time difference for producing the time of information and user account is more than that setting produces period or accumulative transfer number beyond setting Produce number.Tracked information of respectively transferring accounts is fed back into user account, and is shown by the interface of the electronic equipment of user.Its In, tracked information of transferring accounts includes at least: being transferred to account and is transferred to the time.
The embodiment of the present invention tracks transactions requests by after handling the element in block chain, obtaining element, and The tracking mark in transactions requests is tracked according to element, and turn of the corresponding element between account is inquired in the Transaction Information of block Record is moved, and responds element tracking transactions requests, to realize to surplus element in user account or shift element and shift The inquiry of record, the circulation direction of real-time control element are realized in block chain with realizing the verification for shifting improper situation to element The transparence of element transaction.
Embodiment five
Fig. 5 is the structure chart of the element processing unit in one of embodiment of the present invention five block chain.The present invention is implemented The case where example is suitable for handling the element block chain.The device by software and or hardware realization, and concrete configuration in On the electronic equipment for carrying block chain link point, which includes: that account element processing transactions requests obtain module 510, account member Element processing transactions requests processing module 520 and encrypted communication module 530.
Wherein, account element processing transactions requests obtain module 510, for obtaining account element processing transactions requests;
Account element handles transactions requests processing module 520, to account element processing transactions requests Reason forms Transaction Information and is added in block;
Encrypted communication module 530, for confirming encrypted communication into block chain network;
Wherein, element involved in the Transaction Information includes tracking mark of the element in block chain.
The embodiment of the present invention handles transactions requests by account element and obtains module acquisition account element processing transactions requests; It handles transactions requests processing module by account element to handle account element processing transactions requests, being formed includes element Tracking mark Transaction Information be added in block;Encrypted communication is carried out into block chain network by encrypted communication module Confirmation.By adopting the above technical scheme, it is identified by introducing the tracking of element within a block, so that can effectively be chased after in block chain Element in each account of track realizes to the effective monitoring with the element process of exchange in block chain, realizes element in block chain The transparence of transaction.
Further, the account element handles transactions requests processing module 520, comprising:
Element shifts transactions requests processing unit, for being that element shifts affairs in account element processing transactions requests When request, transactions requests are shifted according to element and carry out transfer processing of the element between output account and input account, and are determined The tracking of shifted element identifies, and is added in block as Transaction Information.
Further, the element shifts transactions requests processing unit, is specifically used for:
The tracking mark of specified transfer element is extracted from element transfer transactions requests;Or
The selection transfer element from output account, and obtain corresponding tracking mark.
Further, described device, further includes:
Permission determining module is shifted, for shifting transactions requests progress element in output account and input account according to element It before transfer processing between number, is identified according to the tracking of element to be transferred, and corresponding turn of account of output account or input The intelligent contract of account rule determines element to be transferred in output account and inputs the transfer permission between account.
Further, described device, further includes:
Element tracks transactions requests and obtains module, for obtaining element tracking transactions requests;
Element tracks transactions requests processing module, and the tracking for being tracked in transactions requests according to the element identifies, Transfer record of the corresponding element between account is inquired in the Transaction Information of block, and responds the element tracking transactions requests.
The processing of the element in a kind of block chain provided by any embodiment of the invention can be performed in above-mentioned element processing unit Method has the corresponding functional module of element processing method and beneficial effect executed in a kind of block chain.Not in the present embodiment In detailed description technical detail, reference can be made to any embodiment of that present invention provide a kind of block chain in element processing method.
Embodiment six
Fig. 6 is the structure chart for a kind of electronic equipment that the embodiment of the present invention six provides.Fig. 6, which is shown, to be suitable for being used to realizing this The block diagram of the exemplary terminal equipment 612 of invention embodiment.The terminal device 612 that Fig. 6 is shown is only an example, is not answered Any restrictions are brought to the function and use scope of the embodiment of the present invention.
As shown in fig. 6, terminal device 612 is showed in the form of universal computing device.The component of terminal device 612 can wrap Include but be not limited to: one or more processor or processing unit 616, system storage 628 connect different system components The bus 618 of (including system storage 628 and processing unit 616).
Bus 618 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Terminal device 612 typically comprises a variety of computer system readable media.These media can be it is any can be by The usable medium that terminal device 612 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 628 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 630 and/or cache memory 632.Terminal device 612 may further include it is other it is removable/no Movably, volatile/non-volatile computer system storage medium.Only as an example, storage system 634 can be used for reading and writing Immovable, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").It, can although being not shown in Fig. 6 To provide the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk "), and it is non-volatile to moving Property CD (such as CD-ROM, DVD-ROM or other optical mediums) read and write CD drive.In these cases, each drive Dynamic device can be connected by one or more data media interfaces with bus 618.Memory 628 may include at least one journey Sequence product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this hair The function of bright each embodiment.
Program/utility 640 with one group of (at least one) program module 642, can store in such as memory In 628, such program module 642 includes but is not limited to operating system, one or more application program, other program modules And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 642 Usually execute the function and/or method in embodiment described in the invention.
Terminal device 612 can also be with one or more external equipments 614 (such as keyboard, sensing equipment, display 624 Deng) communication, can also be enabled a user to one or more equipment interact with the terminal device 612 communicate, and/or with make Any equipment (such as network interface card, the modem that the terminal device 612 can be communicated with one or more of the other calculating equipment Etc.) communication.This communication can be carried out by input/output (I/O) interface 622.Also, terminal device 612 can also lead to Cross network adapter 620 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, example Such as internet) communication.As shown, network adapter 620 is communicated by bus 618 with other modules of terminal device 612.It answers When understanding, although not shown in the drawings, other hardware and/or software module can be used in conjunction with terminal device 612, including but unlimited In: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage system etc..
Processing unit 616 is by running at least one of other programs in the multiple programs being stored in system storage 628 It is a, thereby executing various function application and data processing, such as realize in a kind of block chain provided by the embodiment of the present invention Element processing method.
Embodiment seven
The embodiment of the present invention seven provides a kind of computer readable storage medium, is stored thereon with computer program, the journey The element processing method in a kind of block chain provided by any embodiment of the present invention, this method are realized when sequence is executed by processor It include: to obtain account element processing transactions requests;Account element processing transactions requests are handled, Transaction Information is formed It is added in block;Encrypted communication is confirmed into block chain network;Wherein, element packet involved in the Transaction Information Include tracking mark of the element in block chain.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. the element processing method in a kind of block chain, which is characterized in that be applied to block chain node, comprising:
It obtains account element and handles transactions requests;
Account element processing transactions requests are handled, Transaction Information is formed and is added in block;
Encrypted communication is confirmed into block chain network;
Wherein, element involved in the Transaction Information includes tracking mark of the element in block chain.
2. it is handled the method according to claim 1, wherein handling transactions requests to the account element, Formation Transaction Information, which is added in block, includes:
If the account element processing transactions requests are that element shifts transactions requests, transactions requests are shifted according to element and are carried out Element is in output account and inputs the transfer processing between account, and determines the tracking mark of shifted element, as number of transactions According to being added in block.
3. according to the method described in claim 2, it is characterized in that, determining that the tracking mark of shifted element includes:
The tracking mark of specified transfer element is extracted from element transfer transactions requests;Or
The selection transfer element from output account, and obtain corresponding tracking mark.
4. according to the method described in claim 2, it is characterized in that, shifting transactions requests according to element carries out element in output account Number input account between transfer processing before, further includes:
It is identified according to the tracking of element to be transferred, and output account or the corresponding regular intelligent contract of transferring accounts of input account, really Fixed element to be transferred is in output account and inputs the transfer permission between account.
5. the method according to claim 1, wherein further include:
It obtains element and tracks transactions requests;
The tracking mark in transactions requests is tracked according to the element, corresponding element is inquired in the Transaction Information of block in account Between transfer record, and respond element tracking transactions requests.
6. the element processing unit in a kind of block chain, which is characterized in that be configured at block chain node, comprising:
Account element handles transactions requests and obtains module, for obtaining account element processing transactions requests;
Account element handles transactions requests processing module, for handling account element processing transactions requests, is formed Transaction Information is added in block;
Encrypted communication module, for confirming encrypted communication into block chain network;
Wherein, element involved in the Transaction Information includes tracking mark of the element in block chain.
7. device according to claim 6, which is characterized in that the account element handles transactions requests processing module, packet It includes:
Element shifts transactions requests processing unit, for being that element shifts transactions requests in account element processing transactions requests When, transactions requests are shifted according to element and carry out transfer processing of the element between output account and input account, and determination turns The tracking mark for moving element, is added in block as Transaction Information.
8. device according to claim 7, which is characterized in that the element shifts transactions requests processing unit, specific to use In:
The tracking mark of specified transfer element is extracted from element transfer transactions requests;Or
The selection transfer element from output account, and obtain corresponding tracking mark.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Element processing method in a kind of block chain now as described in any one in claim 1-5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The element processing method in a kind of block chain as described in any one in claim 1-5 is realized when execution.
CN201810836628.3A 2018-07-26 2018-07-26 A kind of element processing method, device, equipment and the storage medium of block chain Pending CN109146681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810836628.3A CN109146681A (en) 2018-07-26 2018-07-26 A kind of element processing method, device, equipment and the storage medium of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810836628.3A CN109146681A (en) 2018-07-26 2018-07-26 A kind of element processing method, device, equipment and the storage medium of block chain

Publications (1)

Publication Number Publication Date
CN109146681A true CN109146681A (en) 2019-01-04

Family

ID=64798003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810836628.3A Pending CN109146681A (en) 2018-07-26 2018-07-26 A kind of element processing method, device, equipment and the storage medium of block chain

Country Status (1)

Country Link
CN (1) CN109146681A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083745A (en) * 2019-04-30 2019-08-02 杭州复杂美科技有限公司 Data query method, equipment and storage medium
CN111339202A (en) * 2020-02-28 2020-06-26 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111737363A (en) * 2020-07-22 2020-10-02 百度在线网络技术(北京)有限公司 Block chain operation method, device, equipment and storage medium
CN111915304A (en) * 2019-05-08 2020-11-10 百度在线网络技术(北京)有限公司 Data processing method, device and equipment of digital elements and storage medium
CN112486561A (en) * 2020-11-25 2021-03-12 北京电力交易中心有限公司 Version backtracking method and device based on block chain and related equipment
WO2021073096A1 (en) * 2019-10-15 2021-04-22 京东数字科技控股有限公司 Resource data transfer method and device, and blockchain system
CN113114465A (en) * 2021-03-19 2021-07-13 青岛海尔科技有限公司 Method and device for processing attribution authority, storage medium and electronic device
CN113298653A (en) * 2021-05-27 2021-08-24 李政德 Block chain-based data tampering monitoring method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107077675A (en) * 2016-12-30 2017-08-18 深圳前海达闼云端智能科技有限公司 Block chain based currency management method and system
CN107563761A (en) * 2017-08-26 2018-01-09 复旦大学 Game account management method based on block chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107077675A (en) * 2016-12-30 2017-08-18 深圳前海达闼云端智能科技有限公司 Block chain based currency management method and system
CN107563761A (en) * 2017-08-26 2018-01-09 复旦大学 Game account management method based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姚前: "《数字货币初探》", 31 May 2018, 中国金融出版社 *
陈鸿祥: ""央行数字货币的发行逻辑与演进安排"", 《上海立信会计金融学院学报》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083745A (en) * 2019-04-30 2019-08-02 杭州复杂美科技有限公司 Data query method, equipment and storage medium
CN110083745B (en) * 2019-04-30 2021-07-06 杭州复杂美科技有限公司 Data query method, device and storage medium
CN111915304B (en) * 2019-05-08 2024-06-07 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium for digital element
CN111915304A (en) * 2019-05-08 2020-11-10 百度在线网络技术(北京)有限公司 Data processing method, device and equipment of digital elements and storage medium
WO2021073096A1 (en) * 2019-10-15 2021-04-22 京东数字科技控股有限公司 Resource data transfer method and device, and blockchain system
CN111339202B (en) * 2020-02-28 2023-05-09 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111339202A (en) * 2020-02-28 2020-06-26 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
KR20210040298A (en) * 2020-07-22 2021-04-13 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 Blockchain operationn method, device and equipment, storage medium, and program
CN111737363A (en) * 2020-07-22 2020-10-02 百度在线网络技术(北京)有限公司 Block chain operation method, device, equipment and storage medium
KR102540093B1 (en) * 2020-07-22 2023-06-07 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 Blockchain operationn method, device and equipment, storage medium, and program
CN112486561A (en) * 2020-11-25 2021-03-12 北京电力交易中心有限公司 Version backtracking method and device based on block chain and related equipment
CN112486561B (en) * 2020-11-25 2024-03-22 北京电力交易中心有限公司 Version backtracking method and device based on block chain and related equipment
CN113114465A (en) * 2021-03-19 2021-07-13 青岛海尔科技有限公司 Method and device for processing attribution authority, storage medium and electronic device
CN113298653A (en) * 2021-05-27 2021-08-24 李政德 Block chain-based data tampering monitoring method and device

Similar Documents

Publication Publication Date Title
CN109146681A (en) A kind of element processing method, device, equipment and the storage medium of block chain
Pervez et al. A comparative analysis of DAG-based blockchain architectures
CN105809062B (en) A kind of building of contract executes method and device
CN108200203B (en) Block chain system based on double-layer network
CN109447648A (en) The method of recorded data zone block, accounting nodes and medium in block chain network
US20200005286A1 (en) Computer-implemented system and method for generating and extracting user related data stored on a blockchain
CN109360101A (en) A kind of block chain transaction processing method, device, equipment and medium
Liu et al. An improved DPoS consensus mechanism in blockchain based on PLTS for the smart autonomous multi-robot system
CN108985772A (en) A kind of verification method, device, equipment and the storage medium of block chain
CN109697606A (en) The distributed network and the ecosystem of common recognition agreement are proved based on innovative prestige
CN109669986A (en) Blacklist sharing method, device, equipment and storage medium based on block chain
CN108959621A (en) A kind of implementation method, device, equipment and the storage medium of block chain network
CN108985774A (en) A kind of motivational techniques, device, equipment and the storage medium of block chain network
CN108664650A (en) A kind of transaction methods, device, equipment and the storage medium of block chain network
CN108347483B (en) Decentralized computing system based on double-layer network
Zeng et al. Incentive mechanisms in federated learning and a game-theoretical approach
CN108615194A (en) The method and readable medium of carbon emission reduction data assessment and transaction based on block
US20210312444A1 (en) Data processing method, node, blockchain network, and virtual data carrier
CN109670802A (en) A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
Liu et al. A graph learning based approach for identity inference in dapp platform blockchain
CN109684519A (en) A kind of decentralization chip research and development transaction data storage method and system based on block chain
CN112862303B (en) Crowdsourcing quality evaluation system and method based on block chain
CN110599132A (en) Method and device for generating reward data and computer readable storage medium
CN109711869B (en) Chip research and development transaction data storage method and system
Lacity Crypto and blockchain fundamentals

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