Summary of the invention
The present invention proposes a kind of service proxy method and device based on block chain, to solve in the prior art in block chain
Before the corresponding business of middle execution, need to be linked up with the block chain account created in advance, by the block chain created
Account is introduced into block chain, causes to register the higher technical problem of threshold.
One aspect of the present invention embodiment proposes a kind of service proxy method based on block chain, and the method is applied
EOS block chain, comprising: obtain the business processing request of carrying account identification code and service identification that terminal device is sent;According to
Local proxy account number detects whether the service agent permission with the account identification code;It is identified if knowing with the account
The service agent permission of code, then execute corresponding processing operation in the block chain according to the service identification;Described in reception
The processing result of block chain feedback carries out service response to the terminal device according to the processing result.
The service proxy method based on block chain of the embodiment of the present invention obtains the carrying account identification that terminal device is sent
The business processing of code and service identification requests, and detects whether the business generation with account identification code according to local proxy account number
Permission is managed, if knowing the service agent permission with account identification code, is executed in block chain according to service identification corresponding
Processing operation finally, receiving the processing result of block chain feedback, and carries out service response to terminal device according to processing result.
Corresponding business can be executed in block chain without registration as a result, reduced registration threshold, improved the flexible of block chain
Property, the popularization of Favorable Areas block chain.
In addition, the service proxy method based on block chain of the embodiment of the present invention, further includes following additional technical characteristic:
Optionally, described and detect whether the service agent with the account identification code according to local proxy account number
Before permission, further includes: the proxy requests for obtaining the carried terminal mark that the terminal device is sent generate and the terminal mark
Know unique corresponding account identification code;The account identification code is being locally stored, by the account identification code to the end
End equipment feedback.
Optionally, detect whether to have the service agent of the account identification code to weigh according to local proxy account number described
Before limit, further includes: obtain the proxy requests that the terminal device is sent, sent out according to the proxy requests to the terminal device
Send the account identification code, wherein the account identification code is corresponding with the terminal iidentification of service agent terminal.
Optionally, described to detect whether to have the service agent of the account identification code to weigh according to local proxy account number
Limit, comprising: judge whether the terminal iidentification of the account identification code and the machine is consistent.
Optionally, if described know the service agent permission with the account identification code, according to the service identification
Corresponding processing operation is executed in the block chain, comprising: business tine and target block are extracted according to the service identification
Chain node;According to business tine information exchange corresponding with the target block chain link point progress.
Another aspect of the present invention embodiment proposes a kind of business proxy device based on block chain, and described device is applied
EOS block chain, comprising: first obtains module, for obtaining the carrying account identification code and service identification of terminal device transmission
Business processing request;Detection module, for detecting whether the business with the account identification code according to local proxy account number
Agent authority of power;Business execution module, if for knowing the service agent permission with the account identification code, according to the industry
Business mark executes corresponding processing operation in the block chain;Business feedback module, for receiving the block chain feedback
Processing result carries out service response to the terminal device according to the processing result.
The business proxy device based on block chain of the embodiment of the present invention obtains the carrying account identification that terminal device is sent
The business processing of code and service identification requests, and detects whether the business generation with account identification code according to local proxy account number
Permission is managed, if knowing the service agent permission with account identification code, is executed in block chain according to service identification corresponding
Processing operation finally, receiving the processing result of block chain feedback, and carries out service response to terminal device according to processing result.
Corresponding business can be executed in block chain without registration as a result, reduced registration threshold, improved the flexible of block chain
Property, the popularization of Favorable Areas block chain.
In addition, the business proxy device based on block chain of the embodiment of the present invention, further includes following additional technical characteristic:
Optionally, further includes: second obtains module, for obtaining the generation for the carried terminal mark that the terminal device is sent
Reason request generates and the unique corresponding account identification code of the terminal iidentification;First agent's module, for being locally stored
The account identification code feeds back the account identification code to the terminal device.
Optionally, further includes: third obtains module, the proxy requests sent for obtaining the terminal device;The second generation
Module is managed, for sending the account identification code to the terminal device according to the proxy requests, wherein the account identification
Code is corresponding with the terminal iidentification of service agent terminal.
Another aspect of the present invention embodiment proposes a kind of electronic equipment, including processor and memory;Wherein, the place
Reason device is corresponding with the executable program code to run by reading the executable program code stored in the memory
Program, for realizing the service proxy method based on block chain as described in above-described embodiment.
Another aspect of the invention embodiment proposes a kind of non-transitorycomputer readable storage medium, is stored thereon with meter
Calculation machine program realizes the service agent based on block chain as described in above-described embodiment when the computer program is executed by processor
Method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the service proxy method and device based on block chain of the embodiment of the present invention are described.
The block chain account registration threshold mentioned in technology based on the above background is higher, and the technology for influencing the popularization of block chain is asked
Topic can not register the Proxy Method that business can be executed in block chain the embodiment of the invention provides one kind, in this method
In, proxy account number is made based on original block chain account when terminal device executes corresponding function in block chain, without carrying out
The registration of block chain account.Wherein, block chain account is the significant information of block chain node, can be with unique identification block chain link
Point.
Specifically, Fig. 1 is a kind of process of the service proxy method based on block chain provided by the embodiment of the present invention
Schematic diagram.As shown in Figure 1, this method comprises:
Step 101, the business processing request of carrying account identification code and service identification that terminal device is sent is obtained.
Step 102, the service agent permission with account identification code is detected whether according to local proxy account number.
Wherein, the agency's " pass " distributed before account identification code can be understood as service agent terminal to it, wherein
Service agent terminal is to travel the account of agent functionality in block chain in already existing block chain account, can be certain authoritys
Property higher tissue possess, in addition, above-mentioned service identification illustrates the type of service and business tine that it to be executed, be based on the industry
Service type proxy terminal, which can be examined, effectively identifies whether it can act on behalf of, can be by illegal or not permission service filter
Fall.
Specifically, terminal device has needs in the business that block chain executes, and can send at business to proxy terminal
Reason request, service agent terminal obtain the business processing request of the carrying account identification code that terminal device is sent and service identification
Afterwards, the service agent permission with account identification code is detected whether according to proxy account number, and whether the account identification code is agency
" pass " sent after agency to it is agreed to before terminal.
It should be noted that the account identification code is different, and example is as follows under different application scenarios:
Example one:
In this example, service agent terminal obtains the proxy requests for the carried terminal mark that terminal device is sent, and generates
With the unique corresponding account identification code of terminal iidentification, the account identification code is uniquely corresponding with terminal iidentification as a result, different
The account identification code that terminal device is generated is different, for example, as shown in Fig. 2, service agent terminal is for terminal device 1 and eventually
The account identification code that end equipment 2 is distributed is different, thus, it is possible to targetedly carry out at business in subsequent business processing
The feedback of result is managed, account identification code is being locally stored in service agent terminal, and account identification code is fed back to terminal device, with
The request of service agent is carried out based on the account identification code convenient for subsequent terminal equipment.
Example two:
In this example, after service agent terminal obtains the proxy requests that terminal device is sent, according to proxy requests to end
End equipment sends account identification code, wherein account identification code is corresponding in the terminal iidentification of service agent terminal, for example, such as Fig. 3 institute
Show, sends the terminal iidentification etc. of service agent terminal, feed back identical terminal iidentification for terminal device 1 and terminal device 2, by
This, the account identification code that each service agent terminal is sent is the account identification that identical, different service agent terminal is sent
Code is different, thus, it, can be by judging the terminal iidentification of account identification code and the machine after getting business processing request
Whether unanimously determine whether to possess service agent permission.
Step 103, it if knowing the service agent permission with account identification code, is held in block chain according to service identification
The corresponding processing operation of row.
Specifically, knowing how there is the service agent permission of account identification code, then according to service identification in block chain
Execute corresponding processing operation, i.e., proxy terminal executes pair according to it in the block chain account in block chain in block chain
The business answered extracts business tine and target block chain node according to service identification, according to business as a kind of possible example
Content information exchange corresponding with the point progress of target block chain link, for example, extracted according to the service identification that terminal device 1 is sent
Business tine is to send file A to block chain node 2, then broadcasts file A to block chain node 2 in block chain.
Step 104, the processing result for receiving block chain feedback carries out service response to terminal device according to processing result.
Specifically, in order to improve the sense of participation of terminal device, the processing result of block chain feedback is received, and tie according to processing
Fruit carries out service response to terminal device, as a kind of possible example, when processing result is simple service interaction result
Feedback information, such as " sending file success " etc., then be sent to corresponding terminal device for the feedback information, as a kind of possibility
Example corresponding operation then is carried out to terminal device when processing result is related to the operation to terminal device, for example, when place
Managing result is to distribute corresponding bonus to terminal device, then corresponding bonus is distributed to terminal device, it is, of course, also possible to deduct portion
Subagent is taken.
Certainly, in practical applications, it is contemplated that due to registering the reduction of threshold, may be relied on there are many terminal device a large amount of
Agent service terminal execute illegal task, for example, using multiple agent service terminals come brush flow etc., in order to avoid this
Behavior, in one embodiment of the invention, the terminal iidentification for the terminal device that service agent terminal can be acted on behalf of broadcast to
Block chain, when the service agent terminal for the same terminal iidentification recorded in the block in block chain is more than preset threshold
When, when such as more than 1 or 10, then the related monitoring node in block chain can be to the corresponding block of service agent terminal
Chain account transmitter forbids proxy information, and service agent terminal refusal carries out service agent to corresponding terminal device as a result,.
To sum up, the service proxy method based on block chain of the embodiment of the present invention obtains the carrying account that terminal device is sent
Number identification code and the request of the business processing of service identification, and detect whether that there is account identification code according to local proxy account number
Service agent permission executes in block chain if knowing the service agent permission with account identification code according to service identification
Corresponding processing operation finally, receiving the processing result of block chain feedback, and carries out business to terminal device according to processing result
Response.Corresponding business can be executed in block chain without registration as a result, reduced registration threshold, improved block chain
Flexibility, the popularization of Favorable Areas block chain.
In order to realize above-described embodiment, the embodiment of the invention also provides a kind of business proxy devices based on block chain.
Fig. 4 is the structural schematic diagram of the business proxy device according to an embodiment of the invention based on block chain, as shown in figure 4, should
Business proxy device based on block chain includes: the first acquisition module 100, detection module 200, business execution module 300 and industry
Business feedback module 400, wherein
First obtains module 100, for obtaining the carrying account identification code of terminal device transmission and the business of service identification
Processing request.
Detection module 200, for detecting whether to have the service agent of account identification code to weigh according to local proxy account number
Limit.
Business execution module 300, if for knowing the service agent permission with account identification code, according to service identification
Corresponding processing operation is executed in block chain.
Business feedback module 400, for receive block chain feedback processing result, according to processing result to terminal device into
Row service response.
In one embodiment of the invention, as shown in figure 5, the device includes: second on the basis of as shown in Figure 4
Obtain module 500 and first agent's module 600, wherein
Second acquisition module 500, the proxy requests of the carried terminal mark for obtaining terminal device transmission, generates and whole
End identifies unique corresponding account identification code.
First agent's module 600 feeds back account identification code to terminal device for account identification code to be locally stored.
In one embodiment of the invention, as shown in fig. 6, the device includes: third on the basis of as shown in Figure 4
Obtain module 700 and second agent's module 800, wherein
Third obtains module 700, for obtaining the proxy requests of terminal device transmission.
Second agent's module 800, for sending account identification code to terminal device according to proxy requests, wherein account is known
Other code is corresponding with the terminal iidentification of service agent terminal.
It should be noted that the aforementioned explanation to the service proxy method embodiment based on block chain, is also applied for
The business proxy device based on block chain of the embodiment, therefore details are not described herein.
To sum up, the business proxy device based on block chain of the embodiment of the present invention obtains the carrying account that terminal device is sent
Number identification code and the request of the business processing of service identification, and detect whether that there is account identification code according to local proxy account number
Service agent permission executes in block chain if knowing the service agent permission with account identification code according to service identification
Corresponding processing operation finally, receiving the processing result of block chain feedback, and carries out business to terminal device according to processing result
Response.Corresponding business can be executed in block chain without registration as a result, reduced registration threshold, improved block chain
Flexibility, the popularization of Favorable Areas block chain.
In order to realize above-described embodiment, the embodiment of the present application also proposes a kind of electronic equipment, including processor and memory;
Wherein, processor is run and executable program code by reading in memory the executable program code that stores
Corresponding program, for realizing the service proxy method based on block chain as described in above-described embodiment.
Fig. 7 shows the block diagram for being suitable for the example electronic device for being used to realize the application embodiment.The electricity that Fig. 7 is shown
Sub- equipment 12 is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 7, electronic equipment 12 is showed in the form of universal computing device.The component of electronic equipment 12 may include
But be not limited to: one or more processor or processing unit 16, system storage 28, connect different system components (including
System storage 28 and processing unit 16) bus 18.
Bus 18 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 (Industry Standard
Architecture;Hereinafter referred to as: ISA) bus, microchannel architecture (Micro Channel Architecture;Below
Referred to as: MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards
Association;Hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component
Interconnection;Hereinafter referred to as: PCI) bus.
Electronic equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be electric
The usable medium that sub- equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
Memory 28 may include the computer system readable media of form of volatile memory, such as random access memory
Device (Random Access Memory;Hereinafter referred to as: RAM) 30 and/or cache memory 32.Electronic equipment 12 can be with
It further comprise other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example,
Storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 7 do not show, commonly referred to as " hard drive
Device ").Although being not shown in Fig. 7, the disk for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided
Driver, and to removable anonvolatile optical disk (such as: compact disc read-only memory (Compact Disc Read Only
Memory;Hereinafter referred to as: CD-ROM), digital multi CD-ROM (Digital Video Disc Read Only
Memory;Hereinafter referred to as: DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving
Device can be connected according to Media Interface Connector with bus 18 by one or multi-quantity.Memory 28 may include that at least one program produces
Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28
In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and
It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual
Execute the function and/or method in embodiments described herein.
Electronic equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.)
Communication, can also be enabled a user to one or more equipment interact with the electronic equipment 12 communicate, and/or with make the electricity
Any equipment (such as network interface card, modem etc.) that sub- equipment 12 can be communicated with one or more of the other calculating equipment
Communication.This communication can be carried out by input/output (I/O) interface 22.Also, electronic equipment 12 can also be suitable by network
Orchestration 20 and one or more network (such as local area network (Local Area Network;Hereinafter referred to as: LAN), wide area network
(Wide Area Network;Hereinafter referred to as: WAN) and/or public network, for example, internet) communication.As shown, network is suitable
Orchestration 20 is communicated by bus 18 with other modules of electronic equipment 12.It should be understood that although not shown in the drawings, can be in conjunction with electricity
Sub- equipment 12 uses other hardware and/or software module, including but not limited to: microcode, device driver, redundancy processing are single
Member, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize the method referred in previous embodiment.
In order to realize above-described embodiment, the embodiment of the present application also proposes a kind of non-transitorycomputer readable storage medium,
It is stored thereon with computer program, the industry based on block chain as described in above-described embodiment is realized when which is executed by processor
Business Proxy Method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.