WO2022133827A1 - 一种任务处理请求的处理方法、装置以及区块链节点设备 - Google Patents

一种任务处理请求的处理方法、装置以及区块链节点设备 Download PDF

Info

Publication number
WO2022133827A1
WO2022133827A1 PCT/CN2020/138707 CN2020138707W WO2022133827A1 WO 2022133827 A1 WO2022133827 A1 WO 2022133827A1 CN 2020138707 W CN2020138707 W CN 2020138707W WO 2022133827 A1 WO2022133827 A1 WO 2022133827A1
Authority
WO
WIPO (PCT)
Prior art keywords
processing
authority
certificate
task
request
Prior art date
Application number
PCT/CN2020/138707
Other languages
English (en)
French (fr)
Inventor
张帅
李伟
邱炜伟
蔡亮
谢迪凡
Original Assignee
杭州趣链科技有限公司
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 杭州趣链科技有限公司 filed Critical 杭州趣链科技有限公司
Priority to PCT/CN2020/138707 priority Critical patent/WO2022133827A1/zh
Priority to CN202080003792.1A priority patent/CN112789596A/zh
Publication of WO2022133827A1 publication Critical patent/WO2022133827A1/zh

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine

Definitions

  • the present application relates to the field of blockchain, and in particular to a method and device for processing a task processing request, and a blockchain node device.
  • blockchain technology has gradually entered the actual life of the majority of users, such as electronic certificate storage systems, information traceability systems or transaction systems built on the blockchain network. It has the advantages of openness, transparency and unforgeability, and provides functional services with features such as security and fairness.
  • each blockchain node in the network is configured with its processing authority. Through the regulation of processing authority, the functional services that can be achieved by different blockchain nodes can be adjusted.
  • the processing authority can be written into the smart contract and distributed on each blockchain node in the network. When the function service is triggered, the smart contract is called to respond according to the processing authority carried in the contract.
  • This application provides a processing method, device and block chain node device for a task processing request, which are used to avoid affecting the sandbox isolation environment in which smart contracts are run when adjusting the relevant processing authority of the block chain node, ensuring that The normal operation of the blockchain node device.
  • the present application provides a method for processing a task processing request, the method comprising:
  • Obtaining a task processing request wherein the task processing request is used to request to execute a task corresponding to the blockchain network to which the blockchain node device belongs;
  • the configuration data is a digital certificate issued by the blockchain network for the blockchain node device, and in the configuration data, it is queried whether there is a processing task Required target processing permissions, including:
  • the preset field of the digital certificate is queried for the existence of the target processing authority, wherein the preset field carries the processing authority of different tasks.
  • the preset field is the keyUsage field.
  • the method further includes:
  • the digital certificate is the role certificate of the blockchain node device, the software development kit certificate or the client certificate .
  • the target processing authority is obtained by voting and confirmation of multiple blockchain node devices in the blockchain network .
  • the method further includes:
  • the target processing authority is confirmed to be notarized by the blockchain network
  • the method before the target processing authority is written into the preset field of the configuration data, the method also includes:
  • the method further includes:
  • the different processing authority involved in itself is classified to obtain the first processing authority and the second processing authority, include:
  • Different processing rights are classified according to the pre-configured priorities, rights security levels or classification identifiers for different processing rights, and the first processing rights and the second processing rights are obtained.
  • the blockchain network is a consortium chain network.
  • the configuration data is a digital certificate
  • the digital certificate is a role certificate, a software development kit certificate, Client certificate or authority certificate.
  • the method further includes:
  • the present application provides a processing device for a task processing request, the device comprising:
  • an obtaining unit configured to obtain a task processing request, wherein the task processing request is used to request to execute a task corresponding to the blockchain network to which the blockchain node device belongs;
  • a query unit for querying in the configuration data whether there is a target processing authority required for processing tasks, wherein the processing authority includes authority for executing different tasks in the blockchain network, and if so, triggering the processing unit;
  • the processing unit is used to call the smart contract to process the task according to the permission content of the target processing permission.
  • the configuration data is a digital certificate issued by the blockchain network for the blockchain node device, and the query unit is specifically used for:
  • the preset field of the digital certificate is queried for the existence of the target processing authority, wherein the preset field carries the processing authority of different tasks.
  • the preset field is the keyUsage field.
  • the device further includes a configuration unit for:
  • the digital certificate is the role certificate of the blockchain node device, the software development kit certificate or the client certificate .
  • the target processing authority is confirmed by a plurality of blockchain node devices in the blockchain network through voting. .
  • the device further includes a configuration unit for:
  • the target processing authority is confirmed to be notarized by the blockchain network
  • the configuration unit is also used for;
  • the device further includes a configuration unit for:
  • the configuration unit is specifically used for:
  • Different processing rights are classified according to the pre-configured priorities, rights security levels or classification identifiers for different processing rights, and the first processing rights and the second processing rights are obtained.
  • the blockchain network is a consortium chain network.
  • the configuration data is a digital certificate
  • the digital certificate is a role certificate, a software development kit certificate, Client certificate or authority certificate.
  • the device further includes a determining unit, configured to:
  • the present application also provides a blockchain node device, including a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the first aspect of the present application or the first aspect of the present application is executed.
  • a blockchain node device including a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the first aspect of the present application or the first aspect of the present application is executed.
  • the present application further provides a computer-readable storage medium.
  • the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the first aspect of the present application or any of the first aspect of the present application.
  • a possible implementation provides the method.
  • this application proposes a new authority configuration mechanism, which carries the processing authority involved in blockchain nodes in configuration data other than smart contracts.
  • the processing authority of the smart contract is relatively independent from the smart contract, which avoids the situation that the sandbox isolation environment is damaged by adjusting the processing authority carried by the smart contract in the prior art.
  • the blockchain node device obtains the task processing request, it can Check whether there is the target processing authority required to process the current task from the configuration data. If there is, the smart contract can be called to process the task according to the authority content of the target processing authority.
  • configuring the processing authority in the configuration data other than the smart contract can obtain the advantages of high stability and flexibility in the review and adjustment of the processing authority. Achieve stable, fine-grained permission control.
  • 1 is a schematic flowchart of a method for processing a task processing request of the application
  • FIG. 2 is a schematic flow chart of issuing a digital certificate for this application
  • FIG. 3 is a schematic structural diagram of a processing device for a task processing request of the application
  • FIG. 4 is a schematic structural diagram of a blockchain node device of the present application.
  • the processing method, device and computer-readable storage medium for a task processing request provided by this application can be applied to a blockchain node device, and are used to avoid sandstorming on the operation of smart contracts when adjusting the relevant processing authority of the blockchain node.
  • the isolation environment of the box has an impact, which ensures the normal operation of the blockchain node equipment.
  • the execution subject may be a processing device for the task processing request, or a server device, a physical host, or a user equipment (User Equipment, UE) that integrates the processing device for the task processing request, etc.
  • UE User Equipment
  • Different types of blockchain node devices among which, the processing device for the task processing request can be implemented by hardware or software, and the UE can be a smart phone, a tablet computer, a notebook computer, a handheld computer, a desktop computer, or a personal digital assistant (Personal digital assistant). Digital Assistant, PDA) and other terminal equipment.
  • FIG. 1 shows a schematic flowchart of the processing method of the task processing request of the present application.
  • the processing method of the task processing request provided by the present application is applied to the blockchain node device. , which may specifically include the following steps:
  • Step S101 obtaining a task processing request, wherein the task processing request is used to request to execute a task corresponding to the blockchain network to which the blockchain node device belongs;
  • Step S102 in the configuration data, query whether there is a target processing authority required for processing the task, wherein the processing authority includes the authority for executing different tasks in the blockchain network, and if so, triggering step S103;
  • Step S103 calling the smart contract processing task according to the authority content of the target processing authority.
  • this application proposes a new authority configuration mechanism, which carries the processing authority involved in blockchain nodes outside the smart contract.
  • the processing authority in the configuration data is consulted and adjusted, which is relatively independent from the smart contract, so as to avoid the situation that the processing authority carried by the smart contract is adjusted in the prior art, resulting in the destruction of its sandbox isolation environment.
  • the block After the chain node device obtains the task processing request it can query whether there is the target processing authority required to process the current task from the configuration data. If so, it can call the smart contract to process the task according to the authority content of the target processing authority.
  • configuring the processing authority in the configuration data other than the smart contract can obtain the advantages of high stability and flexibility in the review and adjustment of the processing authority. Achieve stable, fine-grained permission control.
  • different types of devices such as server devices, physical hosts or UEs can install the application (Application, APP) of the blockchain network (or blockchain platform), and register an account. After the network is verified, it can join the blockchain network and become a blockchain node device, and can configure the smart contract issued by the blockchain network, and process the acquired tasks under the execution program of the smart contract specification. ask.
  • application Application, APP
  • blockchain platform or blockchain platform
  • the electronic evidence storage system based on the blockchain network as an example, when the target webpage is collected for evidence, the obtained electronic evidence (such as webpage screenshots, webpage resources, webpage codes, etc.)
  • the chain network initiates an on-chain request, requesting to store electronic evidence in the blockchain network to achieve the purpose of electronic solidification.
  • Permissions which can include on-chain permissions, simplified permissions, storage permissions, shielding permissions, etc.
  • the subsequent query of electronic evidence can also be involved.
  • the query request received by the blockchain node device can also involve the processing authority such as the query authority involved in this query request.
  • the pig data traceability system based on the blockchain network in the process of pig breeding, slaughtering, transportation, sales or supervision, the relevant pig data can be sent to the blockchain network through the blockchain node device.
  • chain request requesting that the pig data be stored in the blockchain network in order to provide the traceability of the pig data
  • the processing authority of the blockchain node equipment for processing the pig data on-chain request which may include: On-chain permissions, simplified permissions, storage permissions, shielding permissions, etc.
  • the subsequent query of live pig data can also be involved.
  • the query request received by the blockchain node device may involve the processing authority such as the query authority involved in the local query request.
  • this application writes it in the configuration data other than the smart contract. It can be understood that it is the local data of the blockchain node device, which is used to describe the configuration content related to the blockchain node device itself.
  • the configuration data is relatively independent from the smart contract, when the relevant processing authority of the blockchain node device is adjusted in the configuration data, it is possible to avoid damage to the sandbox isolation environment caused by adjusting the processing authority carried by the smart contract in the prior art. happening.
  • the configuration data is also easier to handle the adjustment of permissions, or more convenient to handle the update of permissions, and has significantly improved flexibility, so that in practical applications, in the case of ensuring the stable operation of smart contracts, it can be Realize more fine-grained and more delicate permission control.
  • the processing authority involved in the blockchain node equipment is obtained through notarization of the blockchain network.
  • the processing authority is confirmed by the user or company behind each blockchain node.
  • the determination of the processing authority of the block chain node equipment can be realized through the voting mechanism in the block chain network, that is, the processing authority is confirmed by a plurality of block chain node equipment in the block chain network through voting.
  • the blockchain node device can initiate a voting request to multiple blockchain node devices in the blockchain network according to the target processing authority required by itself.
  • the voting threshold is set, confirm that the target processing authority is notarized by the blockchain network;
  • these target processing permissions can be determined by the staff, and the staff can write corresponding function nodes according to the application functions currently involved in the blockchain node equipment, or considering the future application functions, For example, Application Programming Interface (API), and configure the corresponding processing permissions for these functional nodes; alternatively, the blockchain node device can also use the corresponding functions of the application functions involved or the application functions that will be launched soon. Nodes, such as APIs, and determine the corresponding processing permissions for these functional nodes.
  • API Application Programming Interface
  • the acquisition of the target processing authority by the blockchain node equipment can be determined according to the preset verification pass strategy. Typically, other blockchain node equipment can be based on the current area.
  • the voting request initiated by the blockchain node device determines the target processing authority it expects to obtain, and indicates whether or not the current blockchain node device can obtain the target processing authority according to the feedback voting processing results. After the result reaches the voting threshold (quantity threshold), it can be determined that the blockchain network processes the acquisition of authority through the target.
  • the consensus algorithm involved in the voting mechanism (consensus mechanism) in the blockchain network in addition to PBFT, can also use other consensus algorithms, such as PAXOS, RAFT, etc., which are not limited here.
  • the target processing authority can also be determined through negotiation between the user or company behind the blockchain node device, and the user or company behind other blockchain node devices.
  • the determined and obtained processing authority is carried in the configuration data in this application, and the configuration data can be new configuration data added for the processing authority, or it can be a block The local original configuration data of the chain node device.
  • the additional and new configuration data can be configured for the identification of processing rights and calls in a data format suitable for use, such as a data list, in which the different processing obtained by the blockchain node can be easily identified Permissions and their permission definitions.
  • content items for writing processing permissions can be reserved, such as cells in a table, and the corresponding permissions can be updated in these preset fields later.
  • the blockchain node device still has the processing to generate the configuration data corresponding to the target processing authority, and the target processing authority is written in the preset field of the configuration data. .
  • the original configuration data in other words, the original local data of the blockchain node device, other than the smart contract.
  • the processing authority obtained by the blockchain node device can be stored in the original field of the data, or the content item can be expanded in the extension field reserved for the data, and the data obtained by the blockchain node device can be stored. processing authority.
  • the application can specifically store the processing authority in the original data certificate of the device.
  • the digital certificate plays the role of identifying the identity of the node in the blockchain network, and in the blockchain network Due to its important role, digital certificates have received a high degree of data security in the operation of the blockchain network. Therefore, they can be used as the best place to carry permissions. .
  • a preset field can be selected from the data structure of the digital certificate as the content item of the write processing authority.
  • the preset field may be a keyUsage field
  • the keyUsage field is a field in an extension field (Extension) reserved for the digital certificate, and the writing and updating of the processing authority are facilitated in this field.
  • Extension Extension
  • the storage of the processing authority can also be implemented in conjunction with the issuance of the digital certificate. , Under the characteristics of non-tampering, the data security of processing authority is further improved.
  • the issuance of a digital certificate storing relevant processing rights may include the following steps S201 to S203:
  • Step S201 generating a certificate application request according to the processing authority required by itself;
  • the digital certificate authority (Certificate of Authority, CA) of the blockchain network is configured with a digital certificate application specification.
  • the node device that is currently on the chain can submit a certificate application request to the digital certificate authority to apply for the corresponding digital certificate.
  • the blockchain node device can carry the determined processing authority required by itself in the certificate application request to be submitted.
  • the processing authority can be written into a preset field of the certificate application request that has been written, or, in the process of writing the certificate application request, the processing authority can also be written into the preset field.
  • the processing authority is the processing authority obtained by the blockchain node device that initiated the certificate application request.
  • it can also be configured to carry a permission identifier in the certificate application request to identify the processing permission obtained by the blockchain node device that initiates the certificate application request.
  • Step S201 sending a certificate application request to a digital certificate authority of the blockchain network
  • the blockchain node device After obtaining the certificate application request identifying the processing authority, the blockchain node device can send the certificate application request to the digital certificate authority of the blockchain network.
  • the digital certificate authority is generally a blockchain node device that provides the functional services of the digital certificate authority in the blockchain network, so it can also be called a certificate issuing node.
  • the digital certificate authority may also be a third-party node device that provides the functional services of the digital certificate authority, which is specifically adjusted with the digital certificate issuance structure of the blockchain network, which is not limited here.
  • Step S202 Receive a digital certificate issued by a digital certificate authority, wherein the digital certificate is configured by the digital certificate authority according to the certificate application request.
  • the digital certificate authority When the digital certificate authority receives the certificate application request reported by the blockchain node device, it can perform security verification on it and determine whether the certificate application is passed.
  • the digital certificate of the relationship that is, the digital certificate expected by the blockchain node device to initiate a certificate application request.
  • the target processing authority can also be identified.
  • Step S203 Receive a digital certificate issued by a digital certificate authority, wherein the digital certificate is configured by the digital certificate authority according to the certificate application request.
  • the blockchain node device receives the digital certificate that identifies the processing authority issued by the digital certificate authority, it can be stored, and further loaded, and then processed and obtained according to the processing authority identified in the digital certificate.
  • the incoming task handles the task requested by the request.
  • the digital certificate mentioned above in practical applications, it can be a node-level digital certificate, that is, the processing authority of each blockchain node is configured in a one-to-one correspondence with itself. in the digital certificate.
  • the digital certificate may be a role certificate (Role Certificate), a software development kit certificate (Software Development Kit Certificate) or a client certificate (Client Certificate) of the blockchain node device.
  • Role Certificate a role certificate
  • Software Development Kit Certificate a software development kit certificate
  • Client Certificate a client certificate of the blockchain node device.
  • processing permissions may be synchronized between multiple blockchain node devices, or in other words, multiple blockchain node devices share the same processing permissions, these blockchain nodes can be considered.
  • the common point of devices in digital certificates is that when the same digital certificate is issued, the processing authority shared by these blockchain node devices is identified in the certificate. In this way, the issuance of digital certificates that identify the same processing authority is further facilitated.
  • consortium chain network in practical applications, in order to facilitate the operation of a blockchain platform among companies and organizations, a consortium chain network can be built for each company organization. In this case, the control of permissions is handled.
  • the mechanism can also be set to institutional granularity. In this way, for the blockchain node devices of each company or some companies, since part of the processing authority is divided by company as a unit, in this case these Blockchain node devices can share digital certificates with the same processing authority.
  • the digital certificate can be the role certificate of the blockchain node device, the software development kit certificate, the client certificate or the organization certificate, and the organization certificate is a unique digital certificate of the company organization.
  • the processing authority obtained by the blockchain node device is stored through a digital certificate.
  • the processing authority of the device also has significant data security advantages in preventing data tampering, hacker attack, and data backtracking.
  • the permission control information running in the memory of the blockchain node device (which can be understood as the processing permission that has been loaded at work) information) inconsistencies, such as the adjustment and update of processing authority in a short period of time, and the conflict between the updated processing authority in the configuration data and the processing authority that has been read by the blockchain node device and loaded during work;
  • the digital certificate is used to store the processing authority, and under the working mechanism of the blockchain node device working with the digital certificate, the processing authority can run significantly and stably and be updated in the first time.
  • hierarchical management and control can also be introduced for the original processing authority configured in the smart contract.
  • Part of the processing authority can be kept in the smart contract, while another part of the processing authority can be stripped out of the smart contract and configured in configuration data other than the smart contract, such as the above-mentioned digital certificate.
  • the blockchain node device can call the preset authority classification strategy to classify the different processing authority involved in itself, and obtain the first processing authority and the second processing authority, and then the first processing authority can be subsequently processed.
  • the permission is written into the configuration data, and the second processing permission is written into the corresponding smart contract to achieve hierarchical management and control of multiple processing permissions on the blockchain node device.
  • the authority classification strategy in practical application, can be divided according to the importance, and the importance can be configured according to the needs of the staff. In this way, when applying this application in the early stage, the importance can be compared first.
  • the low processing authority is stored in the configuration data other than the smart contract. After evaluating the work performance is higher than the original situation where the processing authority is stored in the smart contract, more or even all processing authority is stored outside the smart contract. In the configuration data, a more secure and practical implementation mechanism is achieved.
  • it can be configured to identify the priority in the hierarchical management and control of processing authority, or configure the authority security level that identifies the security of the authority itself, to assist in judging whether the processing authority can be stripped from the smart contract into the configuration data.
  • the blockchain node device can classify different processing rights according to the pre-configured priority, rights security level or classification identification for different processing rights, and obtain the above-mentioned first processing rights and Second processing authority.
  • the current task processing request can be processed according to the content of the authority.
  • the task processing request obtained by the blockchain node device can be sent from other blockchain node devices in the blockchain network, or from other devices outside the blockchain network, for example, based on the blockchain network
  • the built electronic certificate storage system can provide users with electronic evidence query services. At this time, users can use their UEs to initiate query requests to the blockchain node devices that deploy query services in the electronic certificate storage system.
  • the task processing request obtained by the blockchain node device in addition to being sent from outside the device or extracted from the outside of the device, in practical applications, it can also be a task processing request triggered by the device's own task. Actual need to change.
  • a task processing request can directly identify the processing authority required for its own task, such as data query authority, data storage authority, data uploading authority, data sharing authority and other rational processing authority.
  • processing authority required for its own task
  • blockchain node equipment It is straightforward to look up whether the processing rights stored in the configuration data include the target processing rights identified by the request.
  • processing authority required for the task processing request can also be identified by the blockchain node device itself.
  • the blockchain node device may first determine the application function corresponding to the processing task requested by the task processing request, and then determine the processing authority required for processing the application function according to the determination.
  • processing permission for a processing permission item, it can not only identify whether it has permission, such as "valid” and “invalid”, “true” and “false”, “1” and “0”, etc., set two different identification codes.
  • the scope of authority can also be identified, so that the scope of authority can be configured more flexibly, for example, "the valid time of this authority is limited to the period from 9:00 to 18:00", “this authority The effective application functions of this permission are limited to X-type application functions", “The effective service object of this permission is Y-type users”, etc.
  • the target processing permission required by the current task processing request When the target processing permission required by the current task processing request is queried, it can be processed according to the content of the permission, such as refusing processing and feeding back the reason for refusal, ignoring processing, processing within a limited range, and normal processing.
  • the content of the permission according to the processing authority is similar to the original processing task processing request according to the processing authority configured in the smart contract, and details are not repeated here.
  • the processing method of the task processing request may also be adjusted and changed accordingly, which can be adjusted according to actual needs, which is not specifically limited here.
  • the smart contract can be called to process the task requested by the current task processing request within the scope of the target processing authority according to the task processing specification agreed in the smart contract.
  • smart contracts can work in a sandbox (or sandbox) isolated environment, such as a virtual environment provided by a virtual machine.
  • the present application also provides a processing device for the on-chain request.
  • FIG. 3 is a schematic structural diagram of a processing device for a task processing request in the present application.
  • the processing device 300 for a task processing request may specifically include the following structure:
  • the obtaining unit 301 is configured to obtain a task processing request, wherein the task processing request is used to request to execute a task corresponding to the blockchain network to which the blockchain node device belongs;
  • the query unit 302 is configured to query in the configuration data whether the target processing authority required for the processing task exists, wherein the processing authority includes the authority for executing different tasks in the blockchain network, and if so, triggers the processing unit 303;
  • the processing unit 303 is configured to call the smart contract processing task according to the permission content of the target processing permission.
  • the configuration data is a digital certificate issued by the blockchain network for the blockchain node device, and the query unit 302 is specifically used for:
  • the preset field of the digital certificate is queried for the existence of the target processing authority, wherein the preset field carries the processing authority of different tasks.
  • the preset field is a keyUsage field.
  • the apparatus further includes a configuration unit 304 for:
  • the digital certificate is a role certificate of a blockchain node device, a software development kit certificate or a client certificate.
  • the target processing authority is confirmed by a plurality of blockchain node devices in the blockchain network through voting.
  • the apparatus further includes a configuration unit 304 for:
  • the target processing authority is confirmed to be notarized by the blockchain network
  • the configuration unit 304 is further configured to:
  • the apparatus further includes a configuration unit 304 for:
  • the configuration unit 304 is specifically configured to:
  • Different processing rights are classified according to the pre-configured priorities, rights security levels or classification identifiers for different processing rights, and the first processing rights and the second processing rights are obtained.
  • the blockchain network is a consortium chain network.
  • the configuration data is a digital certificate
  • the digital certificate is a role certificate, a software development kit certificate, a client certificate, or an authority certificate.
  • the apparatus further includes a determining unit 305, configured to:
  • the present application also provides a blockchain node device, please refer to FIG. 4, which shows a schematic structural diagram of the blockchain node device of the present application.
  • the blockchain node device of the present application includes a processor 401, The memory 402 and the input and output device 403, the processor 401 is used to implement each step of the processing method for the task processing request in the embodiment corresponding to FIG. 1 or FIG. 2 when executing the computer program stored in the memory 402; or, the processor 401 is used for When executing the computer program stored in the memory 402, the functions of each unit in the corresponding embodiment as shown in FIG. 3 are realized, and the memory 402 is used for storing the required processing method of the task processing request in the above-mentioned embodiment of FIG. 1 or FIG. 2 for the processor 401 to execute.
  • Computer program is used for storing the required processing method of the task processing request in the above-mentioned embodiment of FIG. 1 or FIG. 2 for the processor 401 to execute.
  • the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 402 and executed by the processor 401 to complete the present application.
  • One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in a computer apparatus.
  • the blockchain node device may include, but is not limited to, a processor 401 , a memory 402 , and an input and output device 403 .
  • a processor 401 may include, but is not limited to, a processor 401 , a memory 402 , and an input and output device 403 .
  • Those skilled in the art can understand that the illustration is only an example of a blockchain node device, and does not constitute a limitation to the blockchain node device, and may include more or less components than the one shown, or combine certain components, or Different components, such as blockchain node devices, may also include network access devices, buses, etc., and the processor 401, memory 402, input and output devices 403, and network access devices are connected through the bus.
  • the processor 401 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (Application Specific Integrated Circuits, ASICs), ready-to-use processors. Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
  • the processor is the control center of the blockchain node device, and uses various interfaces and lines to connect various parts of the entire device.
  • the memory 402 can be used to store computer programs and/or modules, and the processor 401 implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 402 and calling data stored in the memory 402.
  • the memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node device Wait.
  • the memory may include high-speed random access memory, and may also include non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card , a flash card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card , a flash card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • processor 401 When the processor 401 is configured to execute the computer program stored in the memory 402, the following functions can be specifically implemented:
  • Obtaining a task processing request wherein the task processing request is used to request to execute a task corresponding to the blockchain network to which the blockchain node device belongs;
  • the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the processing method of the task processing request in the embodiment corresponding to FIG. 1 or FIG. 2 of the present application
  • a processor to execute the processing method of the task processing request in the embodiment corresponding to FIG. 1 or FIG. 2 of the present application
  • FIG. 1 or FIG. 2 For the steps in FIG. 1 or FIG. 2 , for specific operations, reference may be made to the description of the processing method of the task processing request in the embodiment corresponding to FIG. 1 or FIG. 2 , which will not be repeated here.
  • the computer-readable storage medium may include: a read-only memory (Read Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • the instructions stored in the computer-readable storage medium can execute the steps in the processing method of the task processing request in the embodiment corresponding to FIG. 1 or FIG. 2 of the present application, it is possible to realize the corresponding steps in FIG. 1 or FIG. 2 of the present application.
  • the beneficial effects that can be achieved by the method for processing the task processing request in the embodiment refer to the foregoing description for details, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

一种任务处理请求的处理方法、装置以及区块链节点设备,用于在调整区块链节点的相关处理权限时,避免对运行智能合约的沙箱隔离环境造成影响,保障了区块链节点设备的正常工作。所述方法,包括:获取任务处理请求,其中,任务处理请求用于请求执行区块链节点设备所属区块链网络对应的任务(S101);在配置数据中,查询是否存在处理任务所需的目标处理权限,其中,处理权限包括用于执行区块链网络中不同任务的权限(S102);若是,则根据目标处理权限的权限内容,调用智能合约处理任务(S103)。

Description

一种任务处理请求的处理方法、装置以及区块链节点设备 技术领域
本申请涉及区块链领域,具体涉及一种任务处理请求的处理方法、装置以及区块链节点设备。
背景技术
近些年来,区块链技术逐步走进广大用户的实际生活中,例如基于区块链网络搭建的电子存证系统、信息溯源系统或者交易系统等落地应用产品,利用区块链技术本身特有的公开透明、不可伪造等优点,提供安全、公平等特点的功能服务。
在区块链网络中,对应所涉及的功能服务,网络中的每个区块链节点都配置有其处理权限,通过处理权限的调控,调整不同区块链节点所能实现的功能服务,这些处理权限,可编写进智能合约中,在网络中的每个区块链节点上进行分布式存储,当触发功能服务时,调用智能合约根据合约中携带的处理权限,进行响应。
而在现有的相关技术的研究过程中,发明人发现,智能合约是在沙箱(或者说沙盒)隔离环境中工作的,例如虚拟机(Virtual Machine)提供的虚拟环境,而在调整区块链节点的处理权限时,则可能对沙箱隔离环境产生破坏的影响,从而导致了区块链节点的工作异常。
技术问题
本申请提供了一种任务处理请求的处理方法、装置以及区块链节点设备,用于在调整区块链节点的相关处理权限时,避免对运行智能合约的沙箱隔离环境造成影响,保障了区块链节点设备的正常工作。
技术解决方案
第一方面,本申请提供了一种任务处理请求的处理方法,方法包括:
获取任务处理请求,其中,任务处理请求用于请求执行区块链节点设备所属区块链网络对应的任务;
在配置数据中,查询是否存在处理任务所需的目标处理权限,其中,处理 权限包括用于执行区块链网络中不同任务的权限;
若是,则根据目标处理权限的权限内容,调用智能合约处理任务。
结合本申请第一方面,在本申请第一方面第一种可能的实现方式中,配置数据是区块链网络为区块链节点设备颁发的数字证书,在配置数据中,查询是否存在处理任务所需的目标处理权限,包括:
在数字证书的预设字段中查询是否存在目标处理权限,其中,预设字段中携带不同任务的处理权限。
结合本申请第一方面第一种可能的实现方式,在本申请第一方面第二种可能的实现方式中,预设字段为keyUsage字段。
结合本申请第一方面第一种可能的实现方式,在本申请第一方面第三种可能的实现方式中,方法还包括:
根据自身所需的目标处理权限,生成证书申请请求;
向区块链网络的数字证书颁发机构发送证书申请请求;
接收数字证书颁发机构下发的数字证书,其中,数字证书为数字证书颁发机构根据证书申请请求所配置得到的。
结合本申请第一方面第一种可能的实现方式,在本申请第一方面第四种可能的实现方式中,数字证书为区块链节点设备的角色证书、软件开发工具包证书或者客户端证书。
结合本申请第一方面第一种可能的实现方式,在本申请第一方面第五种可能的实现方式中,目标处理权限由区块链网络中的多个区块链节点设备经过投票确认得到。
结合本申请第一方面,在本申请第一方面第六种可能的实现方式中,方法还包括:
根据自身所需的目标处理权限,向区块链网络中的多个区块链节点设备发起投票请求;
当投票请求得到的投票通过结果达到预设的投票阈值时,确认目标处理权限得到区块链网络的公证;
将目标处理权限写入配置数据的预设字段中。
结合本申请第一方面第六种可能的实现方式,在本申请第一方面第七种可 能的实现方式中,将目标处理权限写入配置数据的预设字段中之前,方法还包括:
生成目标处理权限对应的配置数据。
结合本申请第一方面,在本申请第一方面第八种可能的实现方式中,方法还包括:
将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权限;
将第一处理权限写入配置数据中;
将第二处理权限写入对应的智能合约中。
结合本申请第一方面第八种可能的实现方式,在本申请第一方面第九种可能的实现方式中,将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权限,包括:
根据为不同处理权限预先配置的优先级、权限安全等级或者分类标识,对不同处理权限进行分类,得到第一处理权限以及第二处理权限。
结合本申请第一方面任一种可能的实现方式,在本申请第一方面第十种可能的实现方式中,区块链网络为联盟链网络。
结合本申请第一方面第十种可能的实现方式,在本申请第一方面第十一种可能的实现方式中,当配置数据是数字证书时,数字证书为角色证书、软件开发工具包证书、客户端证书或者机构证书。
结合本申请第一方面,在本申请第一方面第十二种可能的实现方式中,方法还包括:
确定任务对应的应用功能;
确定处理应用功能所需的目标处理权限。
第二方面,本申请提供了一种任务处理请求的处理装置,装置包括:
获取单元,用于获取任务处理请求,其中,任务处理请求用于请求执行区块链节点设备所属区块链网络对应的任务;
查询单元,用于在配置数据中,查询是否存在处理任务所需的目标处理权限,其中,处理权限包括用于执行区块链网络中不同任务的权限,若是,则触发处理单元;
处理单元,用于根据目标处理权限的权限内容,调用智能合约处理任务。
结合本申请第二方面,在本申请第二方面第一种可能的实现方式中,配置数据是区块链网络为区块链节点设备颁发的数字证书,查询单元,具体用于:
在数字证书的预设字段中查询是否存在目标处理权限,其中,预设字段中携带不同任务的处理权限。
结合本申请第二方面第一种可能的实现方式,在本申请第二方面第二种可能的实现方式中,预设字段为keyUsage字段。
结合本申请第二方面第一种可能的实现方式,在本申请第二方面第三种可能的实现方式中,装置还包括配置单元,用于:
根据自身所需的目标处理权限,生成证书申请请求;
向区块链网络的数字证书颁发机构发送证书申请请求;
接收数字证书颁发机构下发的数字证书,其中,数字证书为数字证书颁发机构根据证书申请请求所配置得到的。
结合本申请第二方面第一种可能的实现方式,在本申请第二方面第四种可能的实现方式中,数字证书为区块链节点设备的角色证书、软件开发工具包证书或者客户端证书。
结合本申请第二方面第一种可能的实现方式,在本申请第二方面第五种可能的实现方式中,目标处理权限由区块链网络中的多个区块链节点设备经过投票确认得到。
结合本申请第二方面,在本申请第一方面第六种可能的实现方式中,装置还包括配置单元,用于:
根据自身所需的目标处理权限,向区块链网络中的多个区块链节点设备发起投票请求;
当投票请求得到的投票通过结果达到预设的投票阈值时,确认目标处理权限得到区块链网络的公证;
将目标处理权限写入配置数据的预设字段中。
结合本申请第二方面第六种可能的实现方式,在本申请第二方面第七种可能的实现方式中,配置单元,还用于;
生成目标处理权限对应的配置数据。
结合本申请第二方面,在本申请第二方面第八种可能的实现方式中,装置还包括配置单元,用于:
将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权限;
将第一处理权限写入配置数据中;
将第二处理权限写入对应的智能合约中。
结合本申请第二方面第八种可能的实现方式,在本申请第二方面第九种可能的实现方式中,配置单元,具体用于:
根据为不同处理权限预先配置的优先级、权限安全等级或者分类标识,对不同处理权限进行分类,得到第一处理权限以及第二处理权限。
结合本申请第二方面任一种可能的实现方式,在本申请第二方面第十种可能的实现方式中,区块链网络为联盟链网络。
结合本申请第二方面第十种可能的实现方式,在本申请第二方面第十一种可能的实现方式中,当配置数据是数字证书时,数字证书为角色证书、软件开发工具包证书、客户端证书或者机构证书。
结合本申请第二方面,在本申请第二方面第十二种可能的实现方式中,装置还包括确定单元,用于:
确定任务对应的应用功能;
确定处理应用功能所需的目标处理权限。
第三方面,本申请还提供了一种区块链节点设备,包括处理器和存储器,存储器中存储有计算机程序,处理器调用存储器中的计算机程序时执行本申请第一方面或者本申请第一方面任一种可能的实现方式提供的方法。
第四方面,本申请还提供了一种计算机可读存储介质,计算机可读存储介质存储有多条指令,指令适于处理器进行加载,以执行本申请第一方面或者本申请第一方面任一种可能的实现方式提供的方法。
有益效果
针对于区块链节点的处理权限,本申请则提出了一种新的权限配置机制,将区块链节点涉及的处理权限携带在智能合约以外的配置数据中,如此,查阅以及调整配置数据中的处理权限,与智能合约相对独立,避免如现有技术中调 整智能合约所携带的处理权限导致破坏其沙箱隔离环境的情况,如此,区块链节点设备获取到任务处理请求后,则可从配置数据中查询是否存在处理当前任务所需的目标处理权限,若存在,则可按照目标处理权限的权限内容,调用智能合约处理该任务。
可以发现的是,将处理权限配置在智能合约以外的配置数据中,在处理权限的查阅以及调整上,可取得较高的稳定性以及灵活性的优点,从而,对于区块链节点设备,可实现稳定、细粒度的权限控制。
附图说明
图1为本申请任务处理请求的处理方法的一种流程示意图;
图2为本申请颁发数字证书的一种流程示意图;
图3为本申请任务处理请求的处理装置的一种结构示意图;
图4为本申请区块链节点设备的一种结构示意图。
本发明的实施方式
首先,在介绍本申请之前,先介绍下本申请关于应用背景的相关内容。
本申请提供的任务处理请求的处理方法、装置以及计算机可读存储介质,可应用于区块链节点设备上,用于在调整区块链节点的相关处理权限时,避免对运行智能合约的沙箱隔离环境造成影响,保障了区块链节点设备的正常工作。
本申请提及的任务处理请求的处理方法,其执行主体可以为任务处理请求的处理装置,或者集成了该任务处理请求的处理装置的服务器设备、物理主机或者用户设备(User Equipment,UE)等不同类型的区块链节点设备,其中,任务处理请求的处理装置可以采用硬件或者软件的方式实现,UE具体可以为智能手机、平板电脑、笔记本电脑、掌上电脑、台式电脑或者个人数字助理(Personal Digital Assistant,PDA)等终端设备。
下面,开始介绍本申请提供的任务处理请求的处理方法。
首先,参阅图1,图1示出了本申请任务处理请求的处理方法的一种流程示意图,如图1示出的,本申请提供的任务处理请求的处理方法,应用于区块链节点设备上,具体可包括如下步骤:
步骤S101,获取任务处理请求,其中,任务处理请求用于请求执行区块链节点设备所属区块链网络对应的任务;
步骤S102,在配置数据中,查询是否存在处理任务所需的目标处理权限,其中,处理权限包括用于执行区块链网络中不同任务的权限,若是,则触发步骤S103;
步骤S103,根据目标处理权限的权限内容,调用智能合约处理任务。
从上述图1所示实施例可看出,针对于区块链节点的处理权限,本申请则提出了一种新的权限配置机制,将区块链节点涉及的处理权限携带在智能合约以外的配置数据中,如此,查阅以及调整配置数据中的处理权限,与智能合约相对独立,避免如现有技术中调整智能合约所携带的处理权限导致破坏其沙箱隔离环境的情况,如此,区块链节点设备获取到任务处理请求后,则可从配置数据中查询是否存在处理当前任务所需的目标处理权限,若存在,则可按照目标处理权限的权限内容,调用智能合约处理该任务。
可以发现的是,将处理权限配置在智能合约以外的配置数据中,在处理权限的查阅以及调整上,可取得较高的稳定性以及灵活性的优点,从而,对于区块链节点设备,可实现稳定、细粒度的权限控制。
下面,则具体介绍上述图1所示实施例中的各步骤以及各步骤在实际应用中可能采用的具体实现方式。
在本申请中,服务器设备、物理主机或者UE等不同类型的设备,可安装区块链网络(或者说区块链平台)的应用程序(Application,APP),并注册账户,当通过区块链网络的验证后,即可加入到区块链网络中,成为区块链节点设备,并可配置区块链网络下发的智能合约,在智能合约规范的执行程序下,处理获取到的任务处理请求。
以基于区块链网络搭建的电子存证系统为例,当对目标网页执行取证后,所取得的电子证据(例如网页截图、网页资源、网页代码等)可通过区块链节点设备向区块链网络发起上链请求,请求将电子证据存储至区块链网络中,达到电子固证的目的,而在这过程中,区块链节点设备对于处理该电子证据的上链请求所涉及的处理权限,具体可包括上链权限、精简化权限、存储权限、屏 蔽权限等。
对应的,当完成电子固证后,后续还可涉及到电子证据的查询,此时,区块链节点设备接收到的查询请求,又可涉及到本次查询请求涉及的查询权限等处理权限。
又例如,基于区块链网络搭建的生猪数据溯源系统,当在生猪的养殖、屠宰、运输、销售或者监管环节中,可将相关的生猪数据通过区块链节点设备向区块链网络发起上链请求,请求生猪数据存储至区块链网络中,以便提供生猪数据的溯源,而在这过程中,区块链节点设备对于处理该生猪数据的上链请求所涉及的处理权限,具体可包括上链权限、精简化权限、存储权限、屏蔽权限等。
对应的,当完成上链后,后续还可涉及到生猪数据的查询,此时,区块链节点设备接收到的查询请求,有可能涉及到本地查询请求涉及的查询权限等处理权限。
当然,在实际应用中,对于不同的任务处理请求,根据不同的区块链网络、不同的区块链节点设备甚至设备上不同的功能服务,其在处理任务处理请求的过程中可涉及的处理权限都是有所不同的,因此,其具体处理权限的权限内容,可随实际需要调整,具体在此不做限定。
而对于处理任务处理请求所需的处理权限的配置位置,与现有技术中将处理权限编写进智能合约不同的是,本申请则将其编写在了智能合约以外的配置数据中,该配置数据,可以理解的,为区块链节点设备本地的数据,用于描述区块链节点设备自身相关的配置内容。
由于配置数据与智能合约相对独立,因此,在配置数据中调整区块链节点设备的相关处理权限时,可避免如现有技术中调整智能合约所携带的处理权限导致破坏其沙箱隔离环境的情况。
且在该配置下,配置数据还更便于处理权限的调整,或者说更便于处理权限的更新,具有显著提高的灵活性,从而在实际应用中,在保障智能合约可稳定运行的情况下,可实现更为细粒度、更为细腻的权限控制。
其次,值得补充的是,现有技术中调整智能合约中编写的处理权限,由于涉及到智能合约调用,其处理权限的调整,以交易场景来理解,是以交易的方 式进行的,而这又导致了处理权限在调整流程上过于复杂,在实际应用中存在边界条件多的情况,也容易出现各种层面的错误。
因此,基于智能合约以外的配置数据进行处理权限的管理以及调整,显然,可克服智能合约本身运行环境以及运行机制所存在的上述缺陷,达到高度稳定、灵活以及细腻的优点。
在实际应用中,区块链节点设备涉及的处理权限,是通过区块链网络公证得到的,换句话说,其处理权限,是在各区块链节点背后的用户或者公司确认过的,对于区块链节点设备的处理权限的确定,可通过区块链网络中的投票机制实现,即,处理权限是由区块链网络中的多个区块链节点设备经过投票确认得到的。
以目标处理权限为例,区块链节点设备可根据自身所需的目标处理权限,向区块链网络中的多个区块链节点设备发起投票请求,当投票请求得到的投票通过结果达到预设的投票阈值时,确认目标处理权限得到区块链网络的公证;
举例而言,在实际应用中,这些目标处理权限,可以由工作人员确定,工作人员可根据区块链节点设备上现今涉及的应用功能,或者考虑到未来的应用功能,编写相应的功能节点,例如应用程序接口(Application Programming Interface,API),并为这些功能节点配置相应的处理权限;或者,也可由区块链节点设备根据自身现今涉及到的应用功能或者即将上线的应用功能相对应的功能节点,例如API,并确定这些功能节点相应的处理权限。
针对于目标处理权限的投票机制,或者说共识机制,则可根据预设的验证通过策略,确定区块链节点设备对于目标处理权限的获取,典型的,其他区块链节点设备可根据当前区块链节点设备发起的投票请求确定其期望获取的目标处理权限,并根据反馈的投票处理结果来指示是否同意当前区块链节点设备时候可获取目标处理权限,当这些投票处理结果中的投票通过结果达到投票阈值(数量阈值)后,则可确定区块链网络通过该目标处理权限的获取。
示例性的,以实用拜占庭容错(Practical Byzantine Fault Tolerance,PBFT)机制为例,当获取到(2F+1)个投票通过结果时,则可认为整个区块链网络同意本次目标处理权限的获取,其中,F为区块链网络在PBFT机制下预设的拜占庭错误节点,整个区块链网络认为存在(3F+1)个节点。
当然,在实际应用中,区块链网络中投票机制(共识机制)涉及的共识算法,除了PBFT,也可采用其他共识算法,例如PAXOS、RAFT等,具体在此不做限定。
又或者,在实际应用中,目标处理权限,也可为区块链节点设备背后的用户或者公司,与其他区块链节点设备背后的用户或者公司,经过协商确定下来的。
在实际应用中,所确定、获取到的处理权限,在本申请中,是携带在配置数据中的,而该配置数据,可以为针对处理权限所增设的新的配置数据,也可以为区块链节点设备本地原有的配置数据。
增设的、新的配置数据,可以针对处理权限的标识以及调用针对性地配置适于使用的数据格式,例如数据列表,在列表中可以非常简洁地标识出区块链节点所获取到的不同处理权限以及其权限定义。
配置数据中,可在数据中预置的预设字段中,留有供写入处理权限的内容项,例如表格中的单元格,后续,则可在这些预设字段中更新相应的权限内容。
其中,作为一种适于管理的应用方式,相比于只配置一个配置数据来标识本地设备获取到的处理权限,在实际应用中,还可为不同批次、不同应用功能甚至不同处理权限配置一对一的配置数据,如此,达到精细化管理配置数据的特点。
而在该情况下,对于当前针对的目标处理权限,区块链节点设备之前还存在生成该目标处理权限对应的配置数据的处理,并在该配置数据的预设字段中写入该目标处理权限。
原有的配置数据,换句话说,区块链节点设备本地原有的、除智能合约以外的数据。在这些数据中,可以在数据原有的字段中存储区块链节点设备获取到的处理权限,或者,也可在数据预留的扩展字段中扩展内容项,并存储区块链节点设备获取到的处理权限。
作为一种适于实用的实现方式,本申请具体可将处理权限存储在设备本地原有的数据证书中,数字证书在区块链网络中,起到标识节点身份的作用,在区块链网络中的安全认证、数据加密等方面中起到了重要作用,数字证书由于其重要作用,在区块链网络的运行中,收到了高度数据安全的保障,因此,可 作为处理权限的较佳携带位置。
如此,实现区块链底层节点的功能和传统非对称密码学领域中的数字证书相结合起来,实现区块链节点设备高度稳定、灵活以及细腻的权限控制。
其中,可从数字证书的数据结构中挑选出预设字段,作为写入处理权限的内容项。
举例而言,该预设字段可以为keyUsage字段,该keyUsage字段为数字证书预留的扩展字段(Extension)中的一个字段,在该字段中方便处理权限的写入以及更新。
具体的,可参考下面给出的一个数字证书的描述内容:
Figure PCTCN2020138707-appb-000001
对应于在数字证书中的预留字段存储区块链节点设备获取到的处理权限,该处理权限的存储,具体还可结合数字证书的颁发环节实现,如此,在数字证 书的颁发具有的公证的、不可篡改的特点下,进一步提高处理权限的数据安全性。
参阅图2示出的本申请颁发数字证书的一种流程示意图,在本申请中,存储相关处理权限的数字证书的颁发,可包括如下步骤S201至步骤S203:
步骤S201,根据自身所需的处理权限,生成证书申请请求;
举例而言,区块链网络的数字证书颁发机构(Certificate of Authority,CA)配置有数字证书申请规范,在该规范下,区块链网络中的区块链节点设备(在实际应用中可以为当前待上链的节点设备)可向数字证书颁发机构递交证书申请请求,以申请相应的数字证书。
此时,区块链节点设备可将确定的自身所需的处理权限,携带在准备递交的证书申请请求中。
其中,具体的,可将处理权限,写入完成编写的证书申请请求的预设字段中,或者,也可在编写证书申请请求的过程中,将处理权限也写入预设字段中。
对应的,在实际应用中可配置为,若证书申请请求的预设字段存在写入处理权限,则可理解为该处理权限为发起证书申请请求的区块链节点设备所获取到的处理权限。
或者,也可配置为,在证书申请请求中,携带权限标识,以标识出发起证书申请请求的区块链节点设备所获取到的处理权限。
步骤S201,向区块链网络的数字证书颁发机构发送证书申请请求;
在得到标识出处理权限的证书申请请求后,区块链节点设备可将该证书申请请求发送至区块链网络的数字证书颁发机构。
可以理解的是,该数字证书颁发机构一般为区块链网络中提供数字证书颁发机构的功能服务的区块链节点设备,因此,也可称为证书颁发节点。
当然,在部分特殊情况下,该数字证书颁发机构还可能是提供数字证书颁发机构的功能服务的第三方节点设备,具体随区块链网络的数字证书颁发架构调整,在此不做限定。
步骤S202,接收数字证书颁发机构下发的数字证书,其中,数字证书为数字证书颁发机构根据证书申请请求所配置得到的。
而当数字证书颁发机构收到区块链节点设备上报的证书申请请求后,则可 对其进行安全验证,以及判断是否通过证书申请,若通过证书申请,则可生成区块链节点设备具有匹配关系的数字证书,也就是区块链节点设备发起证书申请请求所期望获取的数字证书。
在该生成的数字证书中,则由于证书申请请求标识了处理权限,因此,也可标识出目标处理权限。
该处理权限在数字证书中的存储方式,可参考上述提及的处理权限的介绍内容,具体在此不做限定。
步骤S203,接收数字证书颁发机构下发的数字证书,其中,数字证书为数字证书颁发机构根据证书申请请求所配置得到的。
区块链节点设备若接收到数字证书颁发机构下发的标识了处理权限的数字证书后,则可进行存储,进一步的还可进行加载,后续则可根据数字证书中标识的处理权限,处理获取到的任务处理请求所请求处理的任务。
其中,对于上述提及的数字证书,在实际应用中,具体可以为节点级别的数字证书,也就是说,每个区块链节点的处理权限,都配置在与自身具有一对一对应关系的数字证书中。
示例性的,数字证书可以为区块链节点设备的角色证书(Role Certificate)、软件开发工具包证书(Software Development Kit Certificate)或者客户端证书(Client Certificate)。
通过将处理权限配置在区块链节点设备具有唯一性的数字证书中,如此,达到精确到节点颗粒度的处理权限控制机制。
当然,在实际应用中,有些处理权限,可能在多个区块链节点设备之间同步,或者说多个区块链节点设备之间共享有相同的处理权限,则可考虑这些区块链节点设备在数字证书上的共同点,颁发同样的数字证书时,在证书内标识出这些区块链节点设备共享的处理权限,如此,进一步方便标识相同处理权限的数字证书的颁发。
以联盟链网络为例,在实际应用中,为方便在各公司机构之间运行一区块链平台,可以每个公司机构为单位,搭建一联盟链网络,在该情况下,处理权限的控制机制还可以设置为机构颗粒度的,如此,对于每个公司机构或者部分公司机构的区块链节点设备,由于部分的处理权限是以公司机构为单位进行划 分的,因此在该情况下这些区块链节点设备可共享相同处理权限的数字证书。
举例而言,此时数字证书则可以为区块链节点设备的角色证书、软件开发工具包证书、客户端证书或者机构证书,该机构证书为公司机构具有唯一性的数字证书。
此外,值得一提的是,通过数字证书来存储区块链节点设备获取到的处理权限,在实际应用中,相比如上述在智能合约以外、数字证书以外的其他配置数据中标识区块链节点设备的处理权限,还可在防数据篡改、防黑客攻击、数据回溯上具有显著的数据安全优点。
其次,对于部分的智能合约以外、数字证书以外的配置数据,还可能收到技术条件限制,存在于区块链节点设备内存中运行的权限控制信息(可以理解为已在工作中加载的处理权限信息)存在不一致的情况,例如短时间内处理权限发生调整、更新的情况,配置数据中更新后的处理权限与区块链节点设备已读取并在工作中加载的处理权限存在冲突的情况;而通过数字证书来存储处理权限,在区块链节点设备结合数字证书进行工作的工作机制下,具有处理权限可显著稳定运行以及第一时间更新的优点。
进一步的,为方便在初始阶段中将本申请应用于、植入现有的区块链网络中,对于原有的、配置在智能合约中的处理权限,还可引入分层管控,此时,可将一部分的处理权限保留在智能合约中,而另一部分的处理权限则可剥离出智能合约,配置在智能合约以外的配置数据中,例如上述的数字证书。
对应的,在该情况下,区块链节点设备可调用预设的权限分类策略,将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权限,后续则可将第一处理权限写入配置数据中,以及将第二处理权限写入对应的智能合约中,达到区块链节点设备上多项处理权限的分层管控。
其中,该权限分类策略,在实际应用中,可根据重要性进行划分,而重要性是可根据工作人员的需求进行配置的,如此,在前期阶段中应用本申请时,可先将重要性较低的处理权限存储于智能合约以外的配置数据中,待评估工作性能高于原有的将处理权限存储于智能合约中的情况后,再将更多甚至所有的处理权限都存储于智能合约以外的配置数据中,达到更为保险的、适于实用的实施机制。
具体的,可配置标识出在优先进行处理权限分层管控中的优先级,或者配置标识出权限本身安全性的权限安全等级,来辅助判断处理权限是否可从智能合约中剥离到配置数据中。
或者,还可直接为处理权限分配分类标识,直接标识出是否可从智能合约中剥离到配置数据中。
对应的,在具体的分类处理过程中,区块链节点设备可根据为不同处理权限预先配置的优先级、权限安全等级或者分类标识,对不同处理权限进行分类,得到上述的第一处理权限以及第二处理权限。
待在智能合约以外的配置数据中存储区块链节点获取到的处理权限后,则可投入实际应用。
若从配置数据中查找到当前任务处理请求所需的目标处理权限后,则可根据其权限内容,处理当前的任务处理请求。
区块链节点设备获取的任务处理请求,可以为区块链网络中其他区块链节点设备发送过来的,也可以是区块链网络外的其他设备发送过来的,例如,基于区块链网络搭建的电子存证系统,可向用户提供电子证据的查询服务,此时,用户可通过其UE,向电子存证系统中部署查询服务的区块链节点设备发起查询请求。
当然,区块链节点设备获取的任务处理请求,除了是设备外部发送过来的,或者从设备外部提取到的,在实际应用中,也可以是设备自身任务触发生成的任务处理请求,具体可随实际需要变化。
具体的,任务处理请求,可直接标识出自身任务所需的处理权限,例如数据查询权限、数据存储权限、数据上链权限、数据共享权限等不同理性的处理权限,如此,区块链节点设备可直接查找在配置数据中存储的处理权限是否包括了请求所标识的目标处理权限。
当然,任务处理请求所需的处理权限,也可由区块链节点设备自身识别得到。
示例性的,区块链节点设备可先确定任务处理请求所请求处理任务对应的应用功能,再根据确定处理应用功能所需的处理权限。
可以理解,可预先对不同类型的任务按照所需处理权限的权限内容,进行 分类,而这些任务的类型则具体可用区块链节点设备所能提供的应用功能进行划分,例如,不同数据的数据查询、数据存储、数据上链、数据共享等应用功能。
而处理权限具体的权限内容中,对于一个处理权限项,不仅可标识是否具有权限,例如“valid”与“invalid”、“true”与“false”、“1”与“0”等,设置两个不同的标识码来进行区分。
进一步的,对于一个处理权限项,还可标识处权限范围,以便更为灵活地配置权限范围,例如“本项权限的有效时间仅限于9:00至18:00时间段”、“本项权限的有效应用功能仅限于X类应用功能”、“本项权限的有效服务对象为Y类用户”等。
当查询到当前任务处理请求所需的目标处理权限后,则可按照权限内容进行处理,例如拒绝处理并反馈拒绝原因、忽略处理、有限程度范围内处理、正常处理等处理方式。
根据处理权限的权限内容,与原先的根据智能合约中配置的处理权限处理任务处理请求类似,具体在此不再赘述。
当然,在实际应用中,根据处理权限的权限内容,进行任务处理请求的处理方式,也可能进行相应的调整变更,可根据实际需要调整,具体在此不做限定。
处理过程中,具体的,可调用智能合约,根据智能合约中约定的任务处理规范,在目标处理权限的权限范围内,处理当前的任务处理请求所请求的任务。
其中,智能合约可在沙箱(或者说沙盒)隔离环境中工作,例如虚拟机提供的虚拟环境。
以上是本申请上链请求的处理方法的说明,为便于更好的实施本申请提供的上链请求的处理方法,本申请还提供了上链请求的处理装置。
参阅图3,图3为本申请任务处理请求的处理装置的一种结构示意图,在本申请中,任务处理请求的处理装置300具体可包括如下结构:
获取单元301,用于获取任务处理请求,其中,任务处理请求用于请求执行区块链节点设备所属区块链网络对应的任务;
查询单元302,用于在配置数据中,查询是否存在处理任务所需的目标处理权限,其中,处理权限包括用于执行区块链网络中不同任务的权限,若是,则触发处理单元303;
处理单元303,用于根据目标处理权限的权限内容,调用智能合约处理任务。
在一种示例性的实现方式中,配置数据是区块链网络为区块链节点设备颁发的数字证书,查询单元302,具体用于:
在数字证书的预设字段中查询是否存在目标处理权限,其中,预设字段中携带不同任务的处理权限。
在又一种示例性的实现方式中,预设字段为keyUsage字段。
在又一种示例性的实现方式中,装置还包括配置单元304,用于:
根据自身所需的目标处理权限,生成证书申请请求;
向区块链网络的数字证书颁发机构发送证书申请请求;
接收数字证书颁发机构下发的数字证书,其中,数字证书为数字证书颁发机构根据证书申请请求所配置得到的。
在又一种示例性的实现方式中,数字证书为区块链节点设备的角色证书、软件开发工具包证书或者客户端证书。
在又一种示例性的实现方式中,目标处理权限由区块链网络中的多个区块链节点设备经过投票确认得到。
在又一种示例性的实现方式中,装置还包括配置单元304,用于:
根据自身所需的目标处理权限,向区块链网络中的多个区块链节点设备发起投票请求;
当投票请求得到的投票通过结果达到预设的投票阈值时,确认目标处理权限得到区块链网络的公证;
将目标处理权限写入配置数据的预设字段中。
在又一种示例性的实现方式中,配置单元304,还用于;
生成目标处理权限对应的配置数据。
在又一种示例性的实现方式中,装置还包括配置单元304,用于:
将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权 限;
将第一处理权限写入配置数据中;
将第二处理权限写入对应的智能合约中。
在又一种示例性的实现方式中,配置单元304,具体用于:
根据为不同处理权限预先配置的优先级、权限安全等级或者分类标识,对不同处理权限进行分类,得到第一处理权限以及第二处理权限。
在又一种示例性的实现方式中,区块链网络为联盟链网络。
在又一种示例性的实现方式中,当配置数据是数字证书时,数字证书为角色证书、软件开发工具包证书、客户端证书或者机构证书。
在又一种示例性的实现方式中,装置还包括确定单元305,用于:
确定任务对应的应用功能;
确定处理应用功能所需的目标处理权限。
本申请还提供了一种区块链节点设备,参阅图4,图4示出了本申请区块链节点设备的一种结构示意图,具体的,本申请区块链节点设备包括处理器401、存储器402以及输入输出设备403,处理器401用于执行存储器402中存储的计算机程序时实现如图1或图2对应实施例中任务处理请求的处理方法的各步骤;或者,处理器401用于执行存储器402中存储的计算机程序时实现如图3对应实施例中各单元的功能,存储器402用于存储处理器401执行上述图1或图2对应实施例中任务处理请求的处理方法所需的计算机程序。
示例性的,计算机程序可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器402中,并由处理器401执行,以完成本申请。一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序在计算机装置中的执行过程。
区块链节点设备可包括,但不仅限于处理器401、存储器402、输入输出设备403。本领域技术人员可以理解,示意仅仅是区块链节点设备的示例,并不构成对区块链节点设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如区块链节点设备还可以包括网络接入设备、总线等,处理器401、存储器402、输入输出设备403以及网络接入设备等通过总线相连。
处理器401可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,处理器是区块链节点设备的控制中心,利用各种接口和线路连接整个设备的各个部分。
存储器402可用于存储计算机程序和/或模块,处理器401通过运行或执行存储在存储器402内的计算机程序和/或模块,以及调用存储在存储器402内的数据,实现计算机装置的各种功能。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点设备的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器401用于执行存储器402中存储的计算机程序时,具体可实现以下功能:
获取任务处理请求,其中,任务处理请求用于请求执行区块链节点设备所属区块链网络对应的任务;
在配置数据中,查询是否存在处理任务所需的目标处理权限,其中,处理权限包括用于执行区块链网络中不同任务的权限;
若是,则根据目标处理权限的权限内容,调用智能合约处理任务。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的上任务处理请求的处理装置、区块链节点设备及其相应单元的具体工作过程,可以参考如图1或图2对应实施例中任务处理请求的处理方法的说明,具体在此不再赘述。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储 于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请提供一种计算机可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请如图1或图2对应实施例中任务处理请求的处理方法中的步骤,具体操作可参考如图1或图2对应实施例中任务处理请求的处理方法的说明,在此不再赘述。
其中,该计算机可读存储介质可以包括:只读存储器(Read Only Memory,ROM)、随机存取记忆体(Random Access Memory,RAM)、磁盘或光盘等。
由于该计算机可读存储介质中所存储的指令,可以执行本申请如图1或图2对应实施例中任务处理请求的处理方法中的步骤,因此,可以实现本申请如图1或图2对应实施例中任务处理请求的处理方法所能实现的有益效果,详见前面的说明,在此不再赘述。
以上对本申请提供的任务处理请求的处理方法、装置、区块链节点设备以及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (28)

  1. 一种任务处理请求的处理方法,其特征在于,所述方法包括:
    获取任务处理请求,其中,所述任务处理请求用于请求执行所述区块链节点设备所属区块链网络对应的任务;
    在配置数据中,查询是否存在处理所述任务所需的目标处理权限,其中,所述处理权限包括用于执行所述区块链网络中不同任务的权限;
    若是,则根据所述目标处理权限的权限内容,调用智能合约处理所述任务。
  2. 根据权利要求1所述的方法,其特征在于,所述配置数据是所述区块链网络为区块链节点设备颁发的数字证书,所述在配置数据中,查询是否存在处理所述任务所需的目标处理权限,包括:
    在所述数字证书的预设字段中查询是否存在所述目标处理权限,其中,所述预设字段中携带不同任务的处理权限。
  3. 根据权利要求2所述的方法,其特征在于,所述预设字段为keyUsage字段。
  4. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    根据自身所需的所述目标处理权限,生成证书申请请求;
    向所述区块链网络的数字证书颁发机构发送所述证书申请请求;
    接收所述数字证书颁发机构下发的所述数字证书,其中,所述数字证书为所述数字证书颁发机构根据所述证书申请请求所配置得到的。
  5. 根据权利要求2所述的方法,其特征在于,所述数字证书为所述区块链节点设备的角色证书、软件开发工具包证书或者客户端证书。
  6. 根据权利要求2所述的方法,其特征在于,所述目标处理权限由所述区块链网络中的多个区块链节点设备经过投票确认得到。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    根据自身所需的所述目标处理权限,向所述区块链网络中的多个区块链节点设备发起投票请求;
    当所述投票请求得到的投票通过结果达到预设的投票阈值时,确认所述目标处理权限得到所述区块链网络的公证;
    将所述目标处理权限写入所述配置数据的预设字段中。
  8. 根据权利要求7所述的方法,其特征在于,所述将所述目标处理权限写入所述配置数据的预设字段中之前,所述方法还包括:
    生成所述目标处理权限对应的所述配置数据。
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权限;
    将所述第一处理权限写入所述配置数据中;
    将所述第二处理权限写入对应的智能合约中。
  10. 根据权利要求9所述的方法,其特征在于,所述将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权限,包括:
    根据为所述不同处理权限预先配置的优先级、权限安全等级或者分类标识,对所述不同处理权限进行分类,得到第一处理权限以及第二处理权限。
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述区块链网络为联盟链网络。
  12. 根据权利要求11所述的方法,其特征在于,当所述配置数据是所述数字证书时,所述数字证书为所述角色证书、所述软件开发工具包证书、所述客户端证书或者机构证书。
  13. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    确定所述任务对应的应用功能;
    确定处理所述应用功能所需的所述目标处理权限。
  14. 一种任务处理请求的处理装置,其特征在于,所述装置包括:
    获取单元,用于获取任务处理请求,其中,所述任务处理请求用于请求执行区块链节点设备所属区块链网络对应的任务;
    查询单元,用于在配置数据中,查询是否存在处理所述任务所需的目标处理权限,其中,所述处理权限包括用于执行所述区块链网络中不同任务的权限,若是,则触发处理单元;
    所述处理单元,用于根据所述目标处理权限的权限内容,调用智能合约处理所述任务。
  15. 根据权利要求14所述的装置,其特征在于,所述配置数据是所述区块链网络为区块链节点设备颁发的数字证书,所述查询单元,具体用于:
    在所述数字证书的预设字段中查询是否存在所述目标处理权限,其中,所述预设字段中携带不同任务的处理权限。
  16. 根据权利要求15所述的装置,其特征在于,所述预设字段为keyUsage字段。
  17. 根据权利要求15所述的装置,其特征在于,所述装置还包括配置单元,用于:
    根据自身所需的所述目标处理权限,生成证书申请请求;
    向所述区块链网络的数字证书颁发机构发送所述证书申请请求;
    接收所述数字证书颁发机构下发的所述数字证书,其中,所述数字证书为所述数字证书颁发机构根据所述证书申请请求所配置得到的。
  18. 根据权利要求15所述的装置,其特征在于,所述数字证书为所述区块链节点设备的角色证书、软件开发工具包证书或者客户端证书。
  19. 根据权利要求15所述的装置,其特征在于,所述目标处理权限由所述区块链网络中的多个区块链节点设备经过投票确认得到。
  20. 根据权利要求14所述的装置,其特征在于,所述装置还包括配置单元,用于:
    根据自身所需的所述目标处理权限,向所述区块链网络中的多个区块链节点设备发起投票请求;
    当所述投票请求得到的投票通过结果达到预设的投票阈值时,确认所述目标处理权限得到所述区块链网络的公证;
    将所述目标处理权限写入所述配置数据的预设字段中。
  21. 根据权利要求20所述的装置,其特征在于,所述配置单元,还用于:
    生成所述目标处理权限对应的所述配置数据。
  22. 根据权利要求14所述的装置,其特征在于,所述装置还包括配置单元,用于:
    将自身涉及的不同处理权限进行分类,得到第一处理权限以及第二处理权限;
    将所述第一处理权限写入所述配置数据中;
    将所述第二处理权限写入对应的智能合约中。
  23. 根据权利要求22所述的装置,其特征在于,所述配置单元,具体用于:
    根据为所述不同处理权限预先配置的优先级、权限安全等级或者分类标识,对所述不同处理权限进行分类,得到第一处理权限以及第二处理权限。
  24. 根据权利要求14至23中任一项所述的装置,其特征在于,所述区块链网络为联盟链网络。
  25. 根据权利要求24所述的装置,其特征在于,当所述配置数据是所述数字证书时,所述数字证书为所述角色证书、所述软件开发工具包证书、所述客户端证书或者机构证书。
  26. 根据权利要求14所述的装置,其特征在于,所述装置还包括确定单元,用于:
    确定所述任务对应的应用功能;
    确定处理所述应用功能所需的所述目标处理权限。
  27. 一种区块链节点设备,其特征在于,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器调用所述存储器中的计算机程序时执行如权利要求1至13任一项所述的方法。
  28. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至13任一项所述的方法。
PCT/CN2020/138707 2020-12-23 2020-12-23 一种任务处理请求的处理方法、装置以及区块链节点设备 WO2022133827A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/138707 WO2022133827A1 (zh) 2020-12-23 2020-12-23 一种任务处理请求的处理方法、装置以及区块链节点设备
CN202080003792.1A CN112789596A (zh) 2020-12-23 2020-12-23 一种任务处理请求的处理方法、装置以及区块链节点设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/138707 WO2022133827A1 (zh) 2020-12-23 2020-12-23 一种任务处理请求的处理方法、装置以及区块链节点设备

Publications (1)

Publication Number Publication Date
WO2022133827A1 true WO2022133827A1 (zh) 2022-06-30

Family

ID=75753938

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138707 WO2022133827A1 (zh) 2020-12-23 2020-12-23 一种任务处理请求的处理方法、装置以及区块链节点设备

Country Status (2)

Country Link
CN (1) CN112789596A (zh)
WO (1) WO2022133827A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055190B (zh) * 2021-06-02 2021-07-30 支付宝(杭州)信息技术有限公司 针对客户端的访问控制方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388988A (zh) * 2018-02-26 2018-08-10 深圳智乾区块链科技有限公司 基于区块链的协同办公方法、系统及计算机可读存储介质
CN109359957A (zh) * 2018-09-17 2019-02-19 中国银联股份有限公司 一种安全多方计算的方法及相关装置
CN111832862A (zh) * 2019-04-19 2020-10-27 百度在线网络技术(北京)有限公司 基于区块链的流程管理方法及流程管理系统
CN112118224A (zh) * 2020-08-12 2020-12-22 北京大学 一种大数据区块链的可信机制权限管理方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388988A (zh) * 2018-02-26 2018-08-10 深圳智乾区块链科技有限公司 基于区块链的协同办公方法、系统及计算机可读存储介质
CN109359957A (zh) * 2018-09-17 2019-02-19 中国银联股份有限公司 一种安全多方计算的方法及相关装置
CN111832862A (zh) * 2019-04-19 2020-10-27 百度在线网络技术(北京)有限公司 基于区块链的流程管理方法及流程管理系统
CN112118224A (zh) * 2020-08-12 2020-12-22 北京大学 一种大数据区块链的可信机制权限管理方法和系统

Also Published As

Publication number Publication date
CN112789596A (zh) 2021-05-11

Similar Documents

Publication Publication Date Title
US11093647B2 (en) Method and device for executing system scheduling
TWI727467B (zh) 聯盟鏈的可信度驗證方法、系統、裝置及設備
WO2019179026A1 (zh) 电子装置、集群访问域名自动生成方法及存储介质
CN108427649B (zh) Usb接口的接入管理方法、终端设备、系统及存储介质
US10235047B2 (en) Memory management method, apparatus, and system
CN110661658A (zh) 一种区块链网络的节点管理方法、装置及计算机存储介质
WO2018058998A1 (zh) 一种数据加载方法、终端和计算集群
WO2020119476A1 (zh) 联盟链信息发布控制方法及终端设备
US8660996B2 (en) Monitoring files in cloud-based networks
CN110532025B (zh) 基于微服务架构的数据处理方法、装置、设备及存储介质
US10992746B2 (en) Automatic system response to external field-replaceable unit (FRU) process
CN110597918A (zh) 一种账户管理方法、装置及计算机可读存储介质
WO2023056797A1 (zh) 基于区块链的数据处理方法、装置、设备及存储介质
US11489844B2 (en) On-the-fly creation of transient least privileged roles for serverless functions
WO2022133827A1 (zh) 一种任务处理请求的处理方法、装置以及区块链节点设备
CN114090623A (zh) 一种缓存资源的创建方法、装置、电子设备及存储介质
WO2019237587A1 (zh) 脚本的执行方法、服务器管理系统及存储介质
CN111858020B (zh) 用户资源限制方法、装置及计算机存储介质
US11972007B2 (en) Enforcing location-based data privacy rules across networked workloads
CN114051029B (zh) 授权方法、授权装置、电子设备和存储介质
CN116151631A (zh) 一种业务决策处理系统、一种业务决策处理方法和装置
WO2021232860A1 (zh) 通信方法、装置及系统
WO2021135483A1 (zh) 一种数据的管理方法以及装置
CN112291241A (zh) 防火墙开墙方法、防火墙开墙装置及终端设备
US11163537B1 (en) Tiered application pattern

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20966402

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20966402

Country of ref document: EP

Kind code of ref document: A1