CN110414978A - Automatic authorization method, server and computer readable storage medium - Google Patents
Automatic authorization method, server and computer readable storage medium Download PDFInfo
- Publication number
- CN110414978A CN110414978A CN201910526292.5A CN201910526292A CN110414978A CN 110414978 A CN110414978 A CN 110414978A CN 201910526292 A CN201910526292 A CN 201910526292A CN 110414978 A CN110414978 A CN 110414978A
- Authority
- CN
- China
- Prior art keywords
- authorization
- node
- intelligent contract
- relationship
- automatic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000013475 authorization Methods 0.000 title claims abstract description 319
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000003860 storage Methods 0.000 title claims abstract description 22
- 238000012797 qualification Methods 0.000 claims description 44
- 230000001960 triggered effect Effects 0.000 claims description 12
- 230000007547 defect Effects 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 13
- 230000033228 biological regulation Effects 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Bioethics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Automation & Control Theory (AREA)
- General Health & Medical Sciences (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention relates to a kind of block chain technologies, disclose a kind of automatic authorization method, this method comprises: the authorization relationship between presetting block chain node;Authorization relationship between the block chain node is configured into intelligent contract;In each block chain node deployment intelligence contract;When some node receives authorization requests, the authorization relationship between the node and other nodes is judged;When the authorization relationship is all authorization relationships, realize that all nodes are authorized simultaneously by intelligent contract;And when the authorization relationship is section entitlement relationship, realize that the node and the authorization node of the node authorize simultaneously by intelligent contract.The present invention also provides a kind of server and computer readable storage mediums.Automatic authorization method, server and computer readable storage medium provided by the invention can overcome data grant to be difficult to ensure the defect of real-time, guarantee that authorization node obtains data in real time, improve user experience.
Description
Technical field
The present invention relates to block chain technical fields more particularly to a kind of based on the automatic authorization method of block chain, server
And computer readable storage medium.
Background technique
With popularizing for block chain technology, the system based on block chain is gradually applied in various businesses scene, area
Block chain (Blockchain) refers to through decentralization and collective safeguards the technical side in an authentic data library by way of going to trust
Case.The technical solution mainly lets on any number of nodes in system, passes through a string and generates using cryptography methods are associated
Data block (block), the system all information exchange data in certain time are contained in each data block, and generate number
It is used to verify the validity and link (chain) next database block of its information according to fingerprint.But it is most of currently on the market
It is authorized between block chain node, using advanced row data cochain, then carries out the form of data grant, operating procedure is more;And it authorizes
The operation of movement is by manually carrying out, heavy workload, is easy to omit;Data grant is difficult to ensure real-time;When authorization relationship needs
When adjustment, cumbersome, poor user experience is safeguarded.
Summary of the invention
In view of this, the present invention proposes a kind of automatic authorization method, server and computer readable storage medium, to solve
Data grant is difficult to ensure the problem of real-time.
Firstly, to achieve the above object, the present invention proposes a kind of automatic authorization method, and the method comprising the steps of:
Authorization relationship between presetting block chain node, wherein the authorization relationship is divided into section entitlement relationship and whole
Authorization relationship;
Authorization relationship between the block chain node is configured into intelligent contract;
In each block chain node deployment intelligence contract;And
When some node receives authorization requests, the authorization relationship between the node and other nodes is judged;
When the authorization relationship is all authorization relationships, realize that all nodes are authorized simultaneously by intelligent contract;
When the authorization relationship is section entitlement relationship, awarding for the node and the node is realized by intelligent contract
Power node authorizes simultaneously.
Optionally, this method further comprises the steps of:
Verify whether the authorization requests meet professional qualification;
If the authorization requests meet professional qualification, intelligent contract is triggered;
If the authorization requests do not meet professional qualification, prompting message is issued.
Optionally, if the authorization requests do not meet professional qualification, issue prompting message the step of after also wrap
Include step:
When receive reconfigure the instruction of intelligent contract when, update intelligent contract to trigger intelligent contract;
When receive do not reconfigure intelligent contract instruction when, do not trigger intelligent contract.
Optionally, this method further comprises the steps of:
When receive configure new contract rule request when, the corresponding new intelligent contract of more new node;
When receiving releasing intelligence contract request, the corresponding intelligent contract of node is released.
Optionally, each node at least corresponds to an intelligent contract, interrelated, institute between the node all authorized
Partial association between the node of section entitlement is stated, this method further comprises the steps of:
When the authorization relationship is section entitlement relationship, the authorization node of the node is realized by another intelligent contract
The authorization node of the authorization node authorizes simultaneously.
In addition, to achieve the above object, the present invention also provides a kind of server, including memory, processor, the storages
The automatic authorization system that can be run on the processor is stored on device, the automatic authorization system is executed by the processor
Shi Shixian following steps:
Authorization relationship between presetting block chain node, wherein the authorization relationship is divided into section entitlement relationship and whole
Authorization relationship;
Authorization relationship between the block chain node is configured into intelligent contract;
In each block chain node deployment intelligence contract;And
When some node receives authorization requests, the authorization relationship between the node and other nodes is judged;
When the authorization relationship is all authorization relationships, realize that all nodes are authorized simultaneously by intelligent contract;
When the authorization relationship is section entitlement relationship, awarding for the node and the node is realized by intelligent contract
Power node authorizes simultaneously.
Optionally, following steps are also realized when the automatic authorization system is executed by the processor:
Verify whether the authorization requests meet professional qualification;
If the authorization requests meet professional qualification, intelligent contract is triggered;
If the authorization requests do not meet professional qualification, prompting message is issued.
Optionally, if the authorization requests do not meet professional qualification, issue the step of reminding further includes step later
It is rapid:
When receive reconfigure the instruction of intelligent contract when, update intelligent contract to trigger intelligent contract;
When receive do not reconfigure intelligent contract instruction when, do not trigger intelligent contract;
When receive configure new contract rule request when, the corresponding new intelligent contract of more new node;
When receiving releasing intelligence contract request, the corresponding intelligent contract of node is released.
Optionally, each node at least corresponds to an intelligent contract, interrelated, institute between the node all authorized
Partial association between the node of section entitlement is stated, the automatic authorization system realizes following steps when being executed by the processor:
When the authorization relationship is section entitlement relationship, the authorization node of the node is realized by another intelligent contract
The authorization node of the authorization node authorizes simultaneously.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers
Readable storage medium storing program for executing is stored with automatic authorization system, and the automatic authorization system can be executed by least one processor, so that institute
At least one processor is stated to execute such as the step of above-mentioned automatic authorization method.
Compared to the prior art, automatic authorization method, server and computer readable storage medium proposed by the invention,
Authorization relationship that can first between presetting block chain node;And then the authorization relationship between the block chain node is configured into intelligence
Contract;Then then at each block chain node deployment intelligence contract;Further, when some node receives authorization requests,
Judge the authorization relationship between the node and other nodes;When the authorization relationship is all authorization relationships, pass through intelligence
Contract realizes that all nodes are authorized simultaneously;When the authorization relationship is section entitlement relationship, realized by intelligent contract
The authorization node of the node and the node authorizes simultaneously, so that data grant be overcome to be difficult to ensure the defect of real-time, protects
Card authorization node obtains data in real time, improves user experience.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of server one of the present invention;
Fig. 2 is the program module schematic diagram of automatic authorization system first embodiment of the present invention;
Fig. 3 is the schematic diagram that block chain node authorization relationship of the present invention is whole authorization node relationships;
Fig. 4 is the schematic diagram that block chain node authorization relationship of the present invention is section entitlement node relationships;
The program module schematic diagram of Fig. 5 automatic authorization system second embodiment of the present invention;
The program module schematic diagram of Fig. 6 automatic authorization system 3rd embodiment of the present invention;
Fig. 7 is the flow diagram of automatic authorization method first embodiment of the present invention;
Fig. 8 is the flow diagram of automatic authorization method second embodiment of the present invention;
Fig. 9 is the flow diagram of automatic authorization method 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
As shown in fig.1, being the schematic diagram of the optional hardware structure of server 2 one of the present invention.
In the present embodiment, the server 2 may include, but be not limited only to, and can be in communication with each other connection by system bus and deposit
Reservoir 11, processor 12, network interface 13.It should be pointed out that Fig. 1 illustrates only the server 2 with component 11-13, but
Be it should be understood that, it is not required that implement all components shown, the implementation that can be substituted is more or less component.
Wherein, the server 2 can be rack-mount server, blade server, tower server or cabinet-type clothes
Business device etc. calculates equipment, which can be independent server, be also possible to server set composed by multiple servers
Group.
The memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,
Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random are visited
It asks memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed read-only deposit
Reservoir (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be the server
2 internal storage unit, such as the hard disk or memory of the server 2.In further embodiments, the memory 11 can also be with
It is the plug-in type hard disk being equipped on the External memory equipment of the server 2, such as the server 2, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, described
Memory 11 can also both including the server 2 internal storage unit and also including its External memory equipment.In the present embodiment,
The memory 11 is installed on the operating system and types of applications software of the server 2 commonly used in storage, such as awards automatically
The program code etc. of power system 200.In addition, the memory 11 can be also used for temporarily storing and export or will be defeated
Various types of data out.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control clothes
The overall operation of business device 2.In the present embodiment, the processor 12 for run the program code stored in the memory 11 or
Person handles data, such as runs the automatic authorization system 200 etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in
Communication connection is established between the server 2 and other electronic equipments.
So far, oneself is through describing the hardware configuration and function of relevant device of the present invention in detail.In the following, above-mentioned introduction will be based on
It is proposed each embodiment of the invention.
Firstly, the present invention proposes a kind of automatic authorization system 200.
As shown in fig.2, being the Program modual graph of 200 first embodiment of automatic authorization system of the present invention.
In the present embodiment, the automatic authorization system 200 includes a series of computer journey being stored on memory 11
Sequence instruction, when the computer program instructions by processor 12 execute when, may be implemented various embodiments of the present invention based on block chain
Automatic authorization operation.In some embodiments, the specific operation realized based on the computer program instructions each section, from
Dynamic authoring system 200 can be divided into one or more modules.For example, in Fig. 2, the automatic authorization system 200 can be with
It is divided into presetting module 201, configuration module 202, deployment module 203, judgment module 204, authorization module 205.Wherein:
The presetting module 201, for the authorization relationship between presetting block chain node.
Specifically, each node in block chain network corresponds to one or more node.The server 2 passes through described
Authorization relationship between the pre-set node of presetting module 201, node authorization relationship are broadly divided into section entitlement relationship and complete
Portion authorizes relationship.
Also referring to Fig. 3, as shown in figure 3, node authorization relationship is whole authorization node relationships.Block chain network includes
Node A, node B, node C and node D.It is interconnected two-by-two between node A, node B, node C and node D, i.e., each node phase
Mutual correlation.
Please again together refering to Fig. 4, as shown in figure 4, node authorization relationship is section entitlement relationship.Node A, node B, node
Be mutually interconnected between C and node D, i.e. node A, node B, node C and node D are interrelated, but node E and node F only with
Node D association, is not associated between node E and node F, and node G is only associated with node B, is neither associated with other nodes.
The configuration module 202, for configuring the authorization relationship between the block chain node into intelligent contract.
Specifically, the server 2 is configured the authorization relationship between the block chain node by the configuration module 202
Into intelligent contract, so that server 2 understands the incidence relation between each node by parsing intelligent contract.In present embodiment
In, intelligent contract can also configure authorization logic, business handling rule etc. relevant regulations according to node type.For example,
By taking Fig. 3 as an example, node A, node B, node C and node D are respectively 4 cooperative ventures, and corporate business contact is frequent, intelligent contract
The authorization logic of configuration can be the sales volume of Products, the news conference of company's new product, detail parameters of Products etc.
Deng, it is to be understood that the above is only for example, being not intended as restriction of the invention.
The deployment module 203, in each block chain node deployment intelligence contract;
Specifically, one or more intelligent contract can be corresponded in a node of block chain, when a service parameter
When passing on the node of block chain, this service parameter can not be recorded on the corresponding business record of the node and be transmitted to simultaneously with
The corresponding intelligent contract of the service parameter goes to execute, and intelligent contract, which is mainly used to the shared data on block chain meshed network, to be believed
Breath.
Referring to Figure 4 together, illustrate for node D, node D and node A, node B, node C are interrelated, while also with
Node E node, F association.When node A, which passes through intelligent contract, issues the detail parameters of Products, node B, node C, node D
Obtain the detail parameters of the product of node company A in real time simultaneously.And node D can be decided whether by another intelligent contract by A public affairs
The parameter sharing of product is taken charge of to node E and node F.
The judgment module 204, for judging the node and other nodes when some node receives authorization requests
Authorization relationship.
Specifically, it will be recalled from above that node relationships are divided into all authorization and section entitlement, when some node receives authorization
When request, the authorization relationship of node is determined by judgment module 204, thus the authorization different according to the authorization relational implementation of node
Mode.
The authorization module 205, for realizing institute by intelligent contract when the authorization relationship is all authorization relationships
There is node while being authorized.
The authorization module 205 is also used to realize when the authorization relationship is section entitlement relationship by intelligent contract
The authorization node of the node and the node authorizes simultaneously.
Specifically, according to authorizing relationship between node, when wherein some node receives authorization requests, the authorization mould
Block 205 passes through intelligent contract, carries out authorization movement simultaneously in data cochain, that is, realizes and carry out simultaneously with the authorization node of the node
Authorization obtains data to guarantee to be authorized to node in real time.
When the authorization relationship is all authorization relationships, also referring to Fig. 3, when node A receives announcement sales volume
Authorization requests when, authorization module 205 passes through intelligent contract and configures authorization logic, business handling rule etc. relevant regulations simultaneously
By sales volume data grant to node B, node C and node D, to guarantee that be authorized to node obtains data in real time, realizes all
Node is authorized simultaneously.
When relationships between nodes are section entitlement relationship, the authorization of the node Yu the node is realized by intelligent contract
Node authorizes simultaneously.Meanwhile the authorization node of the node can also realize the authorization node by another intelligent contract
Authorization node authorizes simultaneously.Node relationships i.e. as shown in Figure 4, node D can also license to again node E by intelligent contract
And node F, realize the sub-authorization again of part authorization node.
Automatic authorization system provided in this embodiment, authorization relationship that can first between presetting block chain node;And then will
Authorization relationship between the block chain node is configured into intelligent contract;Then then at each block chain node deployment intelligence contract;
Further, when some node receives authorization requests, judge the authorization relationship between the node and other nodes;Work as institute
When stating authorization relationship all to authorize relationship, realize that all nodes are authorized simultaneously by intelligent contract;When the authorization is closed
When system is section entitlement relationship, realize that the node and the authorization node of the node authorize simultaneously by intelligent contract, thus
Overcome data grant to be difficult to ensure the defect of real-time, guarantees that authorization node obtains data in real time, improve user experience.
As shown in fig.5, being the Program modual graph of 200 second embodiment of automatic authorization system of the present invention.In the present embodiment,
The automatic authorization system 200 is in addition to including the presetting module 201, the configuration module 202, deployment mould in first embodiment
It further include authentication module 206 and reminding module 207 except block 203, judgment module 204 and authorization module 205.
The authentication module 206 is for verifying whether authorization requests meet professional qualification.
Specifically, when node receives authorization requests, the server 2 parses intelligence by the authentication module 206
Contract and authorization requests, and then judge whether authorization requests meet professional qualification.Specifically, by above it will be appreciated that, intelligence
Contract configures authorization logic, business handling rule etc. relevant regulations, the authentication module 206 according to node type and passes through parsing
Intelligent contract understands authorization logic and the business handling rule of node configuration to which whether the authorization requests that verifying receives meet
Professional qualification.
The authorization module 205, if be also used to the authorization requests and meet professional qualification, intelligent contract automatic trigger.
Specifically, if the authentication module 206 verifies authorization requests and meets professional qualification, that is, meet authorization logic and business
When handling rule, by the 205 automatic trigger intelligence contract of authorization module, thus the authorization between being automatically performed authorization node,
Realize that be authorized to node obtains data in real time.
The reminding module 207 is issued and is reminded if be also used to the authorization requests and do not meet professional qualification.
Specifically, it if the authentication module 206 verifies the authorization requests and do not meet professional qualification, that is, does not meet authorization and patrols
Volume and when business handling rule, intelligent contract cannot be triggered, and issue prompting message to remind related personnel.
For example, it is assumed that each authorization node is cooperative venture, and intelligent contract, which is configured with, allows the business authorized to have: public
Take charge of the sales volume of product, the news conference of company's new product, Products detail parameters.And work as the authorization that some node receives
When request is the quotation of company's new product, the authentication module 206 determines that the authorization requests do not include by parsing intelligent contract
The business for allowing to authorize is configured in intelligent contract, that is, when not meeting professional qualification, intelligent contract cannot be triggered, and be simultaneously emitted by
Prompting message is to remind relevant staff.Prompting message includes but is not limited to that current grant request exceeds intelligent contract range,
Whether need to reconfigure intelligent contract.
In other embodiments of the invention, when authorization requests do not meet professional qualification, related personnel receives prompting
When the prompting message that module 207 issues, related personnel can select to update intelligent contract according to prompting message or not update intelligence
Energy contract, that is, refuse current authorization requests.When server 2 when receive reconfigure intelligent contract instruction when, update intelligence
Contract is to trigger intelligent contract, so that the authorization requests meet professional qualification, and then automatic trigger intelligence contract.When server 2
Receive do not reconfigure intelligent contract instruction when, intelligent contract cannot be triggered.
Automatic authorization system provided in this embodiment, can verify whether authorization requests meet professional qualification, only when awarding
It weighs and requests to meet professional qualification, intelligent contract ability automatic trigger, and when authorization requests do not meet professional qualification, it issues and reminds
Information improves user experience to guarantee the safety of data grant.
As shown in fig.6, being the Program modual graph of 200 3rd embodiment of automatic authorization system of the present invention.In the present embodiment,
The automatic authorization system 200 is in addition to including the presetting module 201, the configuration module 202, deployment mould in first embodiment
It further include releasing module 208 except block 203, judgment module 204, authorization module 205.
The deployment module 203, be also used to when receive configure new contract rule request when, more new node is corresponding new
Intelligent contract.
Specifically, the authorization relationship between node can change according to the business contact between node, therefore node is corresponding
Intelligent contract will also update accordingly.Meanwhile with the increase of business contact, the professional qualification of intelligent contract can also be done accordingly
Adjustment, therefore, when the deployment module 203, which receives, configures new contract rule request, the corresponding new intelligence of more new node
It can contract.Wherein, the corresponding intelligent contract of more new node includes but is not limited to, and node increases new intelligent contract and modification or again
The newly corresponding intelligent contract of configuration node.
The releasing module 208 is also used to release the corresponding intelligence conjunction of node when receiving releasing intelligence contract request
About.
Specifically, the authorization relationship between node can change according to the business contact between node, in other words, before node
Authorization relationship be not one one-tenth and must become.Authorization node can increase new authorization node can also be with de-authorization node relationships.
When authorization node de-authorization relationship, i.e., when the described releasing module 208 receives releasing intelligence contract request, it is corresponding to release node
Intelligent contract, then the node is no longer authorization node.In this way, the authorization relationship between node carries out maintenance tune with can be convenient
It is whole, by configuring, complicated authorization relationship can be automatically performed.
Automatic authorization system provided in this embodiment, can receive configure new contract rule request when, update section
The corresponding new intelligent contract of point, while the corresponding intelligence of node can also be released when receiving releasing intelligence contract request
Contract, and when authorization requests do not meet professional qualification, prompting message is issued, so that the authorization relationship between node can be square
Just maintenance adjustment is carried out, by configuring, complicated authorization relationship can be automatically performed.
In addition, the present invention also proposes a kind of automatic authorization method.
As shown in fig.7, being the flow diagram of automatic authorization method first embodiment of the present invention.In the present embodiment,
The execution sequence of the step in flow chart shown in Fig. 7 can change according to different requirements, and certain steps can be omitted.
Step S700, the authorization relationship between presetting block chain node.
Specifically, each node in block chain network corresponds to one or more node.The server 2 is preset
Authorization relationship between good node, node authorization relationship are broadly divided into section entitlement relationship and whole authorization relationships.
Also referring to Fig. 3, as shown in figure 3, node authorization relationship is whole authorization node relationships.Block chain network includes
Node A, node B, node C and node D.It is interconnected two-by-two between node A, node B, node C and node D, i.e., each node phase
Mutual correlation.
Please again together refering to Fig. 4, as shown in figure 4, node authorization relationship is section entitlement relationship.Node A, node B, node
Be mutually interconnected between C and node D, i.e. node A, node B, node C and node D are interrelated, but node E and node F only with
Node D association, is not associated between node E and node F, and node G is only associated with node B, is neither associated with other nodes.
Step S702 configures the authorization relationship between the block chain node into intelligent contract.
Specifically, the server 2 configures the authorization relationship between the block chain node into intelligent contract, so that service
Device 2 understands the incidence relation between each node by parsing intelligent contract.In the present embodiment, intelligent contract can be with root
According to node type configuration authorization logic, business handling rule etc. relevant regulations.For example, by taking Fig. 3 as an example, node A, node
B, node C and node D is respectively 4 cooperative ventures, and frequently, the authorization logic of intelligent contract configuration can be for corporate business contact
The sales volume of Products, the news conference of company's new product, the detail parameters of Products etc., it is to be understood that more than
It is merely illustrative of, is not intended as restriction of the invention.
Step S704, in each block chain node deployment intelligence contract;
Specifically, one or more intelligent contract can be corresponded in a node of block chain, when a service parameter
When passing on the node of block chain, this service parameter can not be recorded on the corresponding business record of the node and be transmitted to simultaneously with
The corresponding intelligent contract of the service parameter goes to execute, and intelligent contract, which is mainly used to the shared data on block chain meshed network, to be believed
Breath.
Referring to Figure 4 together, illustrate for node D, node D and node A, node B, node C are interrelated, while also with
Node E node, F association.When node A, which passes through intelligent contract, issues the detail parameters of Products, node B, node C, node D
Obtain the detail parameters of the product of node company A in real time simultaneously.And node D can be decided whether by another intelligent contract by A public affairs
The parameter sharing of product is taken charge of to node E and node F.
Step S706 judges the authorization between the node and other nodes when some node receives authorization requests
Relationship executes step S707 when the authorization relationship is all authorization relationships, when the authorization relationship is section entitlement relationship
When, execute step S708.
Specifically, it will be recalled from above that node relationships are divided into all authorization and section entitlement, when some node receives authorization
When request, the authorization relationship of node is determined by judgment module 204, thus the authorization different according to the authorization relational implementation of node
Mode.
Step S707 realizes that all nodes are authorized simultaneously by intelligent contract.
Step S708 realizes that the node and the authorization node of the node authorize simultaneously by intelligent contract.
Specifically, according to authorizing relationship between node, when wherein some node receives authorization requests, the server
2 carry out authorization movement by intelligent contract, in data cochain simultaneously, that is, realize and awarded simultaneously with the authorization node of the node
Power obtains data to guarantee to be authorized to node in real time.
When the authorization relationship is all authorization relationships, also referring to Fig. 3, when node A receives announcement sales volume
Authorization requests when, authorization logic is configured by intelligent contract, business handling rule etc. relevant regulations will sell specified number simultaneously
According to licensing to node B, node C and node D, to guarantee that be authorized to node obtains data in real time, realize all nodes simultaneously into
Row authorization.
When relationships between nodes are section entitlement relationship, the authorization of the node Yu the node is realized by intelligent contract
Node authorizes simultaneously.Meanwhile the authorization node of the node can also realize the authorization node by another intelligent contract
Authorization node authorizes simultaneously.Node relationships i.e. as shown in Figure 4, node D can also license to again node E by intelligent contract
And node F, realize the sub-authorization again of part authorization node.
Automatic authorization method provided in this embodiment, authorization relationship that can first between presetting block chain node;And then will
Authorization relationship between the block chain node is configured into intelligent contract;Then then at each block chain node deployment intelligence contract;
Further, when some node receives authorization requests, judge the authorization relationship between the node and other nodes;Work as institute
When stating authorization relationship all to authorize relationship, realize that all nodes are authorized simultaneously by intelligent contract;When the authorization is closed
When system is section entitlement relationship, realize that the node and the authorization node of the node authorize simultaneously by intelligent contract, thus
Overcome data grant to be difficult to ensure the defect of real-time, guarantees that authorization node obtains data in real time, improve user experience.
As shown in figure 8, being the flow diagram of the second embodiment of automatic authorization method of the present invention.In the present embodiment, institute
The difference for stating the automatic authorization method in automatic authorization method and above-mentioned first embodiment is that this method further includes step S800-
S804。
Step S800, whether verifying authorization requests meet professional qualification, if meeting professional qualification, execute step S802, if
Professional qualification is not met, step S804 is skipped to.
Specifically, when node receives authorization requests, the server 2 parses intelligent contract and authorization requests, into
And judge whether authorization requests meet professional qualification.Specifically, by above it will be appreciated that, intelligent contract is configured according to node type
Authorization logic, business handling rule etc. relevant regulations understand the authorization logic and industry of node configuration by parsing intelligent contract
Business handles rule to which whether the authorization requests that verifying receives meet professional qualification.
Step S802 triggers intelligent contract.
Specifically, if verifying authorization requests meet professional qualification, that is, when meeting authorization logic and business handling rule, automatically
Intelligent contract is triggered, so that the authorization between being automatically performed authorization node, realizes that be authorized to node obtains data in real time.
Step S804 issues prompting message.
Specifically, if the server 2 verifies the authorization requests and do not meet professional qualification, that is, do not meet authorization logic and
When business handling rule, intelligent contract cannot be triggered, and issue prompting message to remind related personnel.
For example, it is assumed that each authorization node is cooperative venture, and intelligent contract, which is configured with, allows the business authorized to have: public
Take charge of the sales volume of product, the news conference of company's new product, Products detail parameters.And work as the authorization that some node receives
When request is the quotation of company's new product, the server 2 determines that the authorization requests are not included in intelligence by parsing intelligent contract
Energy contract is configured with the business for allowing to authorize, that is, when not meeting professional qualification, intelligent contract cannot be triggered, and be simultaneously emitted by prompting
Information is to remind relevant staff.Prompting message includes but is not limited to current grant request beyond intelligent contract range, if
Need to reconfigure intelligent contract.
In other embodiments of the invention in, when authorization requests do not meet professional qualification, related personnel receives institute
When stating the prompting message of the sending of server 2, related personnel can select to update according to prompting message the intelligent contract of intelligence or not
Intelligent contract is updated, that is, refuses current authorization requests.Work as to receive when the server 2 and reconfigures intelligent contract instruction
When, intelligent contract is updated to trigger intelligent contract, so that the authorization requests meet professional qualification, and then automatic trigger is intelligently closed
About.When the server 2, which receives, does not reconfigure the instruction of intelligent contract, intelligent contract cannot be triggered.
Automatic authorization method provided in this embodiment, can verify whether authorization requests meet professional qualification, only when awarding
It weighs and requests to meet professional qualification, intelligent contract ability automatic trigger, and when authorization requests do not meet professional qualification, it issues and reminds
Information improves user experience to guarantee the safety of data grant.
As shown in figure 9, being the flow diagram of the second embodiment of automatic authorization method of the present invention.In the present embodiment, institute
The difference for stating your automatic authorization method in automatic authorization method and above-mentioned first embodiment is that this method further includes step
S900-S902。
This method is further comprising the steps of:
Step S900, when receive configure new contract rule request when, the corresponding new intelligent contract of more new node.
Specifically, the authorization relationship between node can change according to the business contact between node, therefore node is corresponding
Intelligent contract will also update accordingly.Meanwhile with the increase of business contact, the professional qualification of intelligent contract can also be done accordingly
Adjustment, therefore, when the server 2, which receives, configures new contract rule request, the corresponding new intelligence of more new node is closed
About.Wherein, the corresponding intelligent contract of more new node includes but is not limited to that node increases new intelligent contract and modification or matches again
Set the corresponding intelligent contract of node.
Step S902 releases the corresponding intelligent contract of node when receiving releasing intelligence contract request.
Specifically, the authorization relationship between node can change according to the business contact between node, in other words, before node
Authorization relationship be not one one-tenth and must become.Authorization node can increase new authorization node can also be with de-authorization node relationships.
When authorization node de-authorization relationship, i.e., when the described server 2 receives releasing intelligence contract request, release the corresponding intelligence of node
Energy contract, then the node is no longer authorization node.In this way, the authorization relationship between node carries out maintenance adjustment with can be convenient, lead to
Configuration is crossed, complicated authorization relationship can be automatically performed.
Automatic authorization method provided in this embodiment, can receive configure new contract rule request when, update section
The corresponding new intelligent contract of point, while the corresponding intelligence of node can also be released when receiving releasing intelligence contract request
Contract, and when authorization requests do not meet professional qualification, prompting message is issued, so that the authorization relationship between node can be square
Just maintenance adjustment is carried out, by configuring, complicated authorization relationship can be automatically performed.
The present invention also provides another embodiments, that is, provide a kind of computer readable storage medium, the computer
Readable storage medium storing program for executing is stored with the automatic authorization program based on block chain, and the automatic authorization program based on block chain can be by extremely
A few processor executes, so that at least one described processor is executed such as the step of above-mentioned automatic authorization method.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of automatic authorization method, which is characterized in that the method includes the steps:
Authorization relationship between presetting block chain node, wherein the authorization relationship is divided into section entitlement relationship and all authorization
Relationship;
Authorization relationship between the block chain node is configured into intelligent contract;
In each block chain node deployment intelligence contract;
When some node receives authorization requests, the authorization relationship between the node and other nodes is judged;
When the authorization relationship is all authorization relationships, realize that all nodes are authorized simultaneously by intelligent contract;And
When the authorization relationship is section entitlement relationship, the authorization section of the node Yu the node is realized by intelligent contract
It puts while authorizing.
2. automatic authorization method as described in claim 1, which is characterized in that this method further comprises the steps of:
Verify whether the authorization requests meet professional qualification;
If the authorization requests meet professional qualification, intelligent contract is triggered;
If the authorization requests do not meet professional qualification, prompting message is issued.
3. automatic authorization method as claimed in claim 2, which is characterized in that if the authorization requests do not meet business item
When part, issue prompting message the step of after further comprise the steps of:
When receive reconfigure the instruction of intelligent contract when, update intelligent contract to trigger intelligent contract;
When receive do not reconfigure intelligent contract instruction when, do not trigger intelligent contract.
4. automatic authorization method as described in claim 1, which is characterized in that at least corresponding intelligent contract of each node,
Interrelated, partial association between the node of the section entitlement between the node all authorized, this method further include step
It is rapid:
When the authorization relationship is section entitlement relationship, the authorization node of the node passes through described in another intelligent contract realization
The authorization node of authorization node authorizes simultaneously.
5. automatic authorization method according to any one of claims 1-4, which is characterized in that this method further comprises the steps of:
When receiving the intelligent contract instruction of configuration newly, the corresponding new intelligent contract of more new node;
When receiving releasing intelligence contract request, the corresponding intelligent contract of node is released.
6. a kind of server, which is characterized in that the server includes memory, processor, and being stored on the memory can
The automatic authorization system run on the processor realizes following step when the automatic authorization system is executed by the processor
It is rapid:
Authorization relationship between presetting block chain node, wherein the authorization relationship is divided into section entitlement relationship and all authorization
Relationship;
Authorization relationship between the block chain node is configured into intelligent contract;
In each block chain node deployment intelligence contract;And
When some node receives authorization requests, the authorization relationship between the node and other nodes is judged;
When the authorization relationship is all authorization relationships, realize that all nodes are authorized simultaneously by intelligent contract;
When the authorization relationship is section entitlement relationship, the authorization section of the node Yu the node is realized by intelligent contract
It puts while authorizing.
7. server as claimed in claim 6, which is characterized in that when the automatic authorization system is executed by the processor also
Realize following steps:
Verify whether the authorization requests meet professional qualification;
If the authorization requests meet professional qualification, intelligent contract is triggered;
If the authorization requests do not meet professional qualification, prompting message is issued.
8. such as the described in any item servers of claim 5-7, which is characterized in that if the authorization requests do not meet business
When condition, issue prompting message the step of after further comprise the steps of:
When receive reconfigure the instruction of intelligent contract when, update intelligent contract to trigger intelligent contract;
When receive do not reconfigure intelligent contract instruction when, intelligent contract cannot be triggered;
When receive configure new contract rule request when, the corresponding new intelligent contract of more new node;
When receiving releasing intelligence contract request, the corresponding intelligent contract of node is released.
9. server as claimed in claim 5, which is characterized in that at least corresponding intelligent contract of each node is described complete
Interrelated, partial association between the node of the section entitlement between the node of portion's authorization, the automatic authorization system is by institute
It states when processor executes and realizes following steps:
When the authorization relationship is section entitlement relationship, the authorization node of the node passes through described in another intelligent contract realization
The authorization node of authorization node authorizes simultaneously.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has automatic authorization
System, the automatic authorization system can be executed by least one processor, so that at least one described processor executes such as right
It is required that described in any one of 1-5 the step of automatic authorization method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526292.5A CN110414978A (en) | 2019-06-18 | 2019-06-18 | Automatic authorization method, server and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526292.5A CN110414978A (en) | 2019-06-18 | 2019-06-18 | Automatic authorization method, server and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110414978A true CN110414978A (en) | 2019-11-05 |
Family
ID=68359257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910526292.5A Pending CN110414978A (en) | 2019-06-18 | 2019-06-18 | Automatic authorization method, server and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110414978A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534097A (en) * | 2016-10-27 | 2017-03-22 | 上海亿账通区块链科技有限公司 | Block chain trading based authority control method and system |
CN107707410A (en) * | 2017-10-26 | 2018-02-16 | 上海点融信息科技有限责任公司 | Configure method, information processor and the readable storage medium storing program for executing of system audit service |
-
2019
- 2019-06-18 CN CN201910526292.5A patent/CN110414978A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534097A (en) * | 2016-10-27 | 2017-03-22 | 上海亿账通区块链科技有限公司 | Block chain trading based authority control method and system |
WO2018076761A1 (en) * | 2016-10-27 | 2018-05-03 | 上海亿账通区块链科技有限公司 | Block chain-based transaction permission control method and system, electronic device, and storage medium |
CN107707410A (en) * | 2017-10-26 | 2018-02-16 | 上海点融信息科技有限责任公司 | Configure method, information processor and the readable storage medium storing program for executing of system audit service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11356440B2 (en) | Automated IoT device registration | |
US8707422B2 (en) | Method and apparatus for process enforced configuration management | |
EP3639496B1 (en) | Improved network access point | |
US20120324121A1 (en) | Inter-Service Sharing of Content Between Users from different Social Networks | |
EP2790370A1 (en) | Authentication method and system oriented to heterogeneous network | |
EP3639497A1 (en) | Expendable network access | |
EP3639480A1 (en) | Home network access | |
CN108494771A (en) | Electronic device, fire wall open verification method and storage medium | |
CN109617926A (en) | Control method, device and the storage medium of service authority | |
CN103312801A (en) | Application devices, interaction method and system for data between application devices and server | |
CN109670879A (en) | A kind of distribution billing method and system | |
CN108574593A (en) | The management system of licensing in a kind of NFV networks | |
CN108415925A (en) | Electronic device, data call daily record generation and querying method and storage medium | |
CN109817347A (en) | Inline diagnosis platform, its right management method and Rights Management System | |
CN109409552A (en) | Reserve access method, system, computer equipment and storage medium | |
CN109886712A (en) | Data processing method and device based on block chain | |
CN106257879A (en) | A kind of method and apparatus downloading application | |
CN110472391A (en) | Data access method and device, storage medium, electronic device | |
CN108805725A (en) | Risk case confirmation method, server and computer readable storage medium | |
CN110414978A (en) | Automatic authorization method, server and computer readable storage medium | |
CN110148051A (en) | The financial system configuration method and loan requests message treatment method of facing multiple users | |
CN107786308B (en) | Data transmission method and terminal device | |
CN115913734A (en) | User authority management method, device and equipment applied to alliance chain | |
CN115174575A (en) | Service control method and device, electronic equipment and storage medium | |
CN114020797A (en) | Block chain distributed account book and database-based chain uplink and downlink mixed storage method |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20191105 |