WO2023066046A1 - 一种合约管理方法、装置及系统 - Google Patents
一种合约管理方法、装置及系统 Download PDFInfo
- Publication number
- WO2023066046A1 WO2023066046A1 PCT/CN2022/124092 CN2022124092W WO2023066046A1 WO 2023066046 A1 WO2023066046 A1 WO 2023066046A1 CN 2022124092 W CN2022124092 W CN 2022124092W WO 2023066046 A1 WO2023066046 A1 WO 2023066046A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- smart contract
- contract
- communication device
- network element
- Prior art date
Links
- 238000007726 management method Methods 0.000 title claims abstract description 281
- 238000004891 communication Methods 0.000 claims abstract description 240
- 238000000034 method Methods 0.000 claims abstract description 52
- 230000008859 change Effects 0.000 claims description 44
- 238000004590 computer program Methods 0.000 claims description 20
- 230000006870 function Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 21
- 238000012546 transfer Methods 0.000 description 17
- 230000005540 biological transmission Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 238000007405 data analysis Methods 0.000 description 6
- 238000013500 data storage Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000013523 data management Methods 0.000 description 2
- 238000013524 data verification Methods 0.000 description 2
- 239000003999 initiator Substances 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Definitions
- the present application relates to the technical field of communications, and in particular to a contract management method, device and system.
- Blockchain is a new application mode that integrates distributed data storage, consensus mechanism, encryption algorithm and other computer technologies. At the same time, data verification, storage and updating can be carried out. Blockchain can also perform encrypted data transmission, node identification and secure access, and is an advanced distributed infrastructure.
- the smart contract defines the transaction logic that controls the life cycle of the business objects contained in the world state.
- the smart contract can be a code that each node on the blockchain can understand and execute, and can execute arbitrary logic and got the answer.
- the blockchain technology can be introduced into the communication network to solve the problem of mutual trust between various devices (such as base stations, mobile terminals, etc.) in the communication network , and can handle various types of business through smart contracts, providing users with services in different business scenarios. At the same time, how to efficiently manage smart contracts and reduce user service waiting time is a concern of technicians.
- the embodiment of the invention discloses a contract management method, device and system, which are used to reduce the service waiting time of users.
- the first aspect discloses a contract management method.
- the contract management method can be applied to the management of network elements, and can also be applied to the management of modules (eg, chips) in the network elements.
- the application to the management of network elements will be described below as an example.
- the contract management method may include: a management network element receiving a registration request from a communication device, the registration request including service request information; determining a first smart contract according to the service request information; and sending the first smart contract to the communication device.
- the management network element may receive a registration request from the communication device, and the registration request includes service request information, that is, service information.
- the management network element can store smart contracts locally, and there is a one-to-one correspondence between smart contracts and services, that is, a service corresponds to a smart contract, and the corresponding service can be obtained through the smart contract corresponding to a service (ie corresponding business). Therefore, the management network element can locally find the first smart contract corresponding to the service request information according to the service request information, that is, determine the first smart contract, and then send the first smart contract to the communication device.
- the management network element can send the first smart contract to the communication device, so as to realize the early deployment of the smart contract. Afterwards, when the user needs to obtain the service corresponding to the first smart contract, he can directly use the first smart contract through the communication device, thereby reducing the service waiting time of the user.
- the method further includes: compiling the first smart contract to obtain a first compilation result; sending the first smart contract to the communication device includes: sending the first smart contract and the first smart contract to the communication device The first compiled result.
- the management network element can compile the first smart contract, for example, the machine code of the first smart contract can be obtained by compiling, that is, the first compilation result can be obtained. Afterwards, the management network element may send the first smart contract and the first compilation result to the communication device. Afterwards, when the user needs to obtain the service corresponding to the first smart contract, he can directly use the first smart contract and execute the first compilation result. It can be seen that the unified compilation of the first smart contract by managing the network elements can reduce the compilation cost of the communication device and save the compilation time of the communication device.
- the method further includes: determining a group identification ID according to the service request information, the group ID is used to identify the first block chain, and the communication device is a node of the first block chain; Send the group ID.
- the management network element may assign a group ID to the communication device according to the service request information, that is, determine the group ID. That is to say, the management network element can add the communication device to the first blockchain (the communication device becomes a node of the first blockchain), and the first blockchain is the blockchain identified by the group ID. After that, the management network element The group ID can be sent to the communication device. It can be seen that the management network element can be divided into different groups according to the different services requested by the communication device, that is, it can be added to different blockchains, so that the management network element can manage it. Furthermore, different groups (blockchains) can be dedicated to processing one type of transaction, i.e. providing only one type of service (eg billing service, voice service, etc.). Therefore, the blockchain architecture of the entire contract management system is relatively simple, and each blockchain can only deploy a single smart contract, which can improve the efficiency of contract management.
- the management network element can add the communication device to the first blockchain (the communication device becomes a node of the first blockchain), and the first blockchain is the blockchain
- the method further includes: receiving key-value pair information from the communication device, where the key-value pair information is the key-value pair information corresponding to the first smart contract; and consensusing on the key-value pair information.
- the management network element may receive the key-value pair information from the communication device, and then the management network element may perform consensus on the key-value pair information (that is, verify the first smart contract). After the consensus is passed (that is, a consensus is reached on the first smart contract), users can directly use the first smart contract through the communication device when they need to obtain services corresponding to the first smart contract. It can be seen that the consensus of the management network element on the key-value pair information can ensure that the communication device and the communication device reach a consensus on the first smart contract, so that the communication device can use the first smart contract to obtain corresponding services later.
- the first smart contract includes field information
- the field information includes change information
- the method further includes: receiving an update request from the communication device, the update request includes update information and information of the first smart contract , the update information is used to update the change information; compile the first smart contract according to the update information to obtain a second compilation result; and send the second compilation result to the communication device.
- the first smart contract may only declare the fields of the smart contract (ie, field information), and leave the value of the field (ie, change information) blank.
- the management network element can receive the update request from the communication device, and determine the first smart contract that needs to be updated according to the information of the first smart contract included in the update request, and then update the value of the field (such as the value of the filled field) according to the update information, Then the management network element can compile the updated first smart contract to obtain the second compilation result, and then send the second compilation result to the communication device, so that the user can directly use the updated first smart contract through the communication device, reducing the communication cost.
- the compilation cost for the device is the cost for the device.
- the second aspect discloses a contract management method.
- the contract management method can be applied to a communication device, and can also be applied to a module (for example, a chip) in the communication device.
- the application to the communication device is taken as an example for description below.
- the contract management method may include: the communication device sends a registration request to the management network element, where the registration request includes service request information; and receives the first smart contract from the management network element.
- the communication device may send a registration request to the management network element, and the registration request includes service request information, so as to obtain the smart contract of the corresponding service from the management network element.
- the communication device may receive the first smart contract from the management network element. It can be seen that the communication device can send a registration request to the management network element, obtain the first smart contract, and save the first smart contract locally. Afterwards, when the user needs to obtain the service corresponding to the first smart contract, he can directly use the first smart contract through the communication device, thereby reducing the service waiting time of the user.
- receiving the first smart contract from the management network element includes: receiving the first smart contract and the first compilation result from the management network element.
- the communication device may receive the first smart contract and the first compilation result from the management network element. Later, when the user needs to obtain the service corresponding to the first smart contract, he can directly use the first smart contract and execute the first compilation result, avoiding the communication device itself from compiling (for example, compiling the first smart contract to obtain the corresponding machine code), so that the compilation time of the communication device can be saved, thereby reducing the service waiting time of the user.
- the method further includes: receiving a group identification ID from the management network element, where the group ID is used to identify the first blockchain, and the communication device is the first blockchain. Nodes of the blockchain.
- the communication device sends a registration request to the management network element, can join the first blockchain and become a node of the first blockchain, and can receive the group ID from the management network element, indicating that the communication
- the device joins the corresponding group (blockchain). Therefore, it can be ensured that the user can obtain the corresponding service when using the first smart contract through the communication device later.
- the method further includes: determining a key-value pair corresponding to the first smart contract to obtain key-value pair information; and sending the key-value pair information to the management network element.
- the communication device may determine the key-value pair of the first smart contract, and save the first smart contract in the form of key-value pair. Afterwards, the communication device can send the key-value pair information to the management network element, so that the management network element can reach a consensus on the key-value pair information, and ensure that the management network element reaches a consensus on the first smart contract. When the management network element reaches an agreement on the first smart contract, the communication device can use the first smart contract normally. Therefore, the communication device sends the key-value pair information to the management network element to ensure that the communication device can obtain the corresponding Serve.
- the first smart contract includes field information
- the field information includes change information
- the method further includes: sending an update request to the management network element, where the update request includes an update information and the information of the first smart contract, the update information is used to update the change information; and receive the second compiling result from the management network element.
- the first smart contract may only declare the fields of the smart contract (ie, field information), and leave the value of the field (ie, change information) blank.
- a communication device When a communication device has a service application (when a transaction is generated), it can send an update request to the management network element, and update the change information of the first smart contract through the update information.
- the update request may only include the update information and the information of the first smart contract, that is, the change information of the first smart contract change information, instead of including all the contents of the first smart contract. Therefore, the transmission resources occupied by the communication device for sending the update request can be reduced.
- the communication device may also receive the second compilation result from the management network element, that is, the compilation result of the updated first smart contract. Afterwards, the communication device can directly execute the second compiling result to obtain the corresponding service without compiling itself, thereby saving compiling time.
- the third aspect discloses a contract management device.
- the contract management device may be a management network element, or may be a module (for example, a chip) in the management network element.
- the contract management apparatus may include: a receiving unit, configured to receive a registration request from a communication device, the registration request including service request information; a determining unit, configured to determine a first smart contract according to the service request information; a sending unit, configured to send The communication device sends the first smart contract.
- the contract management device may further include: a first compiling unit, configured to compile the first smart contract to obtain a first compiling result; the sending unit, specifically configured to send the The first smart contract and the first compilation result.
- the determining unit is further configured to determine a group identification ID according to the service request information, where the group ID is used to identify the first blockchain, and the communication device is a node of the first blockchain;
- the sending unit is further configured to send the group ID to the communication device.
- the receiving unit is further configured to receive key-value pair information from the communication device, where the key-value pair information is the key-value pair information corresponding to the first smart contract;
- the contract management device is also It may include: a consensus unit, used for consensus on the key-value pair information.
- the first smart contract includes field information, and the field information includes change information
- the receiving unit is further configured to receive an update request from the communication device, where the update request includes update information and the first smart contract information, the update information is used to update the change information
- the contract management device may also include: a second compiling unit, configured to compile the first smart contract according to the update information to obtain a second compiling result
- the sending unit is further configured to send the second compiling result to the communication device.
- the fourth aspect discloses a contract management device.
- the contract management device may be a communication device or a module (for example, a chip) in the communication device.
- the contract management apparatus may include: a sending unit, configured for the communication device to send a registration request to the management network element, where the registration request includes service request information; and a receiving unit, configured to receive the first smart contract from the management network element.
- the receiving unit is specifically configured to receive the first smart contract and the first compilation result from the management network element.
- the receiving unit is further configured to receive a group identification ID from the management network element, where the group ID is used to identify the first blockchain, and the communication device is a node of the first blockchain .
- the contract management device may also include: a determining unit, configured to determine the key-value pair corresponding to the first smart contract, and obtain key-value pair information; element to send the key-value pair information.
- the first smart contract includes field information
- the field information includes change information
- the sending unit is further configured to send an update request to the management network element, where the update request includes update information and the first Smart contract information, the update information is used to update the change information; the receiving unit is also used to receive the second compilation result from the management network element.
- the fifth aspect discloses a contract management device, which may be a management network element or a module (for example, a chip) in the management network element.
- the contract management device may include a processor, a memory, and a transceiver for receiving information from other contract management devices other than the contract management device, and outputting information to other contract management devices other than the contract management device,
- the processor executes the computer program stored in the memory, the processor is made to execute the contract management method disclosed in the first aspect or any implementation manner of the first aspect.
- the sixth aspect discloses a contract management device, which may be a communication device or a module (for example, a chip) in the communication device.
- the contract management device may include a processor, a memory, and a transceiver for receiving information from other contract management devices other than the contract management device, and outputting information to other contract management devices other than the contract management device,
- the processor executes the computer program stored in the memory, the processor is made to execute the contract management method disclosed in the second aspect or any implementation manner of the second aspect.
- a seventh aspect discloses a contract management system, which includes the contract management device of the fifth aspect and the contract management device of the sixth aspect.
- the eighth aspect discloses a computer-readable storage medium, on which a computer program or computer instruction is stored, and when the computer program or computer instruction is run, the contract management method as disclosed in the above aspects is realized.
- a ninth aspect discloses a chip, including a processor, configured to execute a program stored in a memory, and when the program is executed, the chip executes the above method.
- the memory is located outside the chip.
- the tenth aspect discloses a computer program product, the computer program product includes computer program code, and when the computer program code is executed, the above-mentioned contract management method is executed.
- the contract management device provided by the third aspect, the contract management device provided by the fourth aspect, the contract management device provided by the fifth aspect, the contract management device provided by the sixth aspect, and the computer-readable storage device provided by the eighth aspect The medium, the chip provided in the ninth aspect, and the computer program product provided in the tenth aspect are all used to execute any possible implementation of the first aspect and the first aspect of the present application, or any one of the second aspect and the second aspect A method provided by a possible implementation. Therefore, the beneficial effects that it can achieve can refer to the beneficial effects in the corresponding method, and will not be repeated here.
- FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present invention
- Fig. 2 is a schematic diagram of a block chain architecture disclosed by an embodiment of the present invention.
- Fig. 3 is a schematic diagram of a smart contract deployment disclosed in an embodiment of the present invention.
- Fig. 4 is a schematic flow diagram of a contract management method disclosed in an embodiment of the present invention.
- Fig. 5 is a schematic diagram of a first smart contract disclosed by an embodiment of the present invention.
- Fig. 6 is a schematic diagram of the use of a first smart contract disclosed in the embodiment of the present invention.
- Fig. 7 is a schematic structural diagram of a contract management device disclosed in an embodiment of the present invention.
- Fig. 8 is a schematic structural diagram of another contract management device disclosed in an embodiment of the present invention.
- Fig. 9 is a schematic structural diagram of another contract management device disclosed in an embodiment of the present invention.
- Fig. 10 is a schematic structural diagram of another contract management device disclosed in an embodiment of the present invention.
- Fig. 11 is a schematic structural diagram of a contract management system disclosed in an embodiment of the present invention.
- the embodiment of the invention discloses a contract management method and device, which are used to reduce the service waiting time of users.
- the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
- a unit may be, but is not limited to being limited to, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or distributed between two or more computers.
- these units can execute from various computer readable media having various data structures stored thereon.
- a unit may, for example, be based on a signal having one or more data packets (eg, data from a second unit interacting with another unit between a local system, a distributed system, and/or a network. For example, the Internet via a signal interacting with other systems) Communicate through local and/or remote processes.
- the sixth generation mobile communication technology (6th generation, 6G) network has also begun.
- space can include various networks such as air, space, earth and sea
- actual network carriers can include satellite networks, unmanned aerial vehicles and other medium and low-altitude platform networks, cellular networks, Internet of Vehicles, Internet of Things (IoT), water surface and underwater networks.
- IoT Internet of Things
- the entire communication network includes various communication devices, that is, the entire communication network includes various network participants, such as base stations, mobile terminals, drones, smart cars, and various IoT devices.
- the functions of various terminal devices will also be more powerful. For example, the computing power, storage capacity and communication capacity of smart cars will be greatly improved. Therefore, it can be applied to more application scenarios such as blockchain .
- the 6G communication network can include multiple decentralized networks, it is not limited to the characteristics of a single communication operator.
- the entire network can contain a large number of devices from different operators or manufacturers. Therefore, it is impossible to communicate effectively between each communication device. cooperation (for example, access devices (such as mobile terminals) and access nodes (such as base stations, UAV platforms) cannot trust each other and work together), therefore, a multi-party mutual trust mechanism and platform are needed in the 6G communication network. It is used to solve the mutual trust problem between various communication devices in the communication network.
- blockchain technology can generate and store data in units of blocks (blocks), and connect them into a chain (chain) data structure in chronological order. All nodes in the blockchain jointly participate in the data verification, storage and maintenance of the blockchain system. The newly created block needs to be confirmed by the consensus of the blockchain nodes, and broadcast to each node to realize the synchronization of the whole network, after which it cannot be changed or deleted.
- Blockchain types can be divided into public chains, alliance chains, and private chains. The structure of chains can be divided into main chains, main chains + side chains, multiple parallel chains, etc. Different types and structures of blockchains can adopt different The consensus algorithm, incentive mechanism, and the use of smart contracts. Therefore, the blockchain can flexibly handle various types of businesses and is suitable for different scenarios.
- a smart contract can be understood as a presentation of the rules agreed by the contract participants (such as jointly handling a certain business), which includes the rights and obligations agreed by each participant.
- a smart contract can also be understood as a computerized transaction protocol that defines transaction logic that controls the lifecycle of business objects contained in the state of the world.
- 6G networks will face ultra-large-scale access, and in the decentralized networking mode, mutual trust between different communication devices in the communication network needs to be quickly realized to ensure the normal operation of the entire communication network and provide normal services. Therefore, the communication system needs to record network behavior and operation data, and audit the operation data of each communication device, so that it can be traced later and improve the security of the entire communication system.
- the blockchain technology can be introduced into the communication network to solve the mutual trust between various communication devices (such as base stations, mobile terminals, etc.) in the communication network question. At the same time, it is also possible to trace and query network behavior and various data in the network.
- FIG. 1 is a schematic diagram of a network architecture disclosed by an embodiment of the present invention.
- the network architecture may include communication equipment and management network elements (CONET management).
- the communication device may include one or more communication devices (two are shown in FIG. 1 ), such as the communication device 10a (smart phone) and the communication device 10b (notebook computer) shown in FIG. 1 .
- the management network element may include one or more management network elements (two are shown in Figure 1). Wherein, the management network element may also be referred to as a management device.
- the communication device 10a, the terminal device 10b, etc. can communicate with the management network element, so that data can be transmitted between the communication device and the management network element.
- FIG. 1 is not limited to include only the communication devices and management network elements shown in the figure.
- FIG. 1 is only an example and does not constitute a limitation.
- the communication device may be a terminal device, where the terminal device may be called user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc., and is a A device that provides data connectivity to users.
- user equipment user equipment
- MS mobile station
- MT mobile terminal
- Terminal devices can be handheld terminals, laptops, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), vehicle-mounted devices (such as cars, high-speed rail, etc.), virtual reality (virtual reality, VR) devices, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control (industrial control), smart home equipment (such as refrigerators, TVs, air conditioners, electricity meters, etc.), intelligent robots, wireless terminals in self driving, remote Wireless terminals in remote medical surgery, wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, or smart home ), wireless terminals, flying equipment (such as intelligent robots, drones, etc.) or other devices that can access the network.
- VR virtual reality
- AR augmented reality
- wireless terminals in industrial control industrial control
- smart home equipment such as refrigerators, TVs, air conditioners, electricity meters, etc.
- intelligent robots wireless terminals in self driving, remote Wireless terminals in remote medical surgery, wireless terminals in smart grid, wireless terminals in transportation
- the communication device may also be a radio access network device, and the radio access network device is a device deployed in the radio access network to provide a wireless communication function for the terminal device.
- radio access network (radio access network, RAN) equipment may include various forms of base stations. For example, a macro base station, a micro base station (also called a small cell), a relay station, an access point (access point, AP) and the like. In systems using different radio access technologies, the names of radio access network devices may be different.
- base transceiver station in global system for mobile communication (GSM) or code division multiple access (CDMA) network
- GSM global system for mobile communication
- CDMA code division multiple access
- NodeB wideband code division multiple access
- WCDMA code division multiple access
- eNB eNodeB
- evolutional NodeB long term evolution
- the wireless access network device may also be a wireless controller in a cloud radio access network (cloud radio access network, CRAN) scenario.
- the radio access network device may also be a base station device in a future network (such as 6G, etc.) or a radio access network device in a future evolved public land mobile network (public land mobile network, PLMN) network.
- the wireless access network device may also be a wearable device or a vehicle-mounted device.
- the radio access network device may also be a transmission and reception point (TRP) or the like.
- TRP transmission and reception point
- the communication device may also be other network participants in the communication network.
- it can be various network units, including drones and smart cars.
- the management network element may be a computer device, and the computer device includes but not limited to a core network device or a server.
- the method provided by the embodiment of the present invention can be executed by a computer device.
- a management network element that is, a trusted network (confederation of multi players for management and control of future wireless networks, CONET) manager (management) is newly added to the existing communication system.
- the management network element can manage the blockchain, blockchain members (nodes), smart contracts, etc. in the communication network.
- CONET's entire blockchain system there can be a main blockchain (mainchain) and multiple sub-blockchains (subchains), where the sub-blockchains can be sidechains of the main blockchain. Therefore, according to actual business needs, the functions of the entire blockchain system can be expanded by adding side chains to the main chain. For example, on the basis of existing services, it is necessary to provide users with data analysis and management services, which can be realized by adding side chains.
- each blockchain is dedicated to processing one type of transaction, that is, only one type of service is provided (such as billing service, voice service, etc.). Therefore, the blockchain architecture of the entire communication system is relatively simple, and each blockchain can only deploy a single smart contract for easy management.
- the present invention also provides an efficient smart contract management method.
- each blockchain can have a smart contract for providing a specific service.
- the smart contract only declares the fields of the smart contract and leaves the value of the fields blank.
- the smart contract in the present invention can also be called the root contract.
- the management network element can pre-compile the root contract, including compiling the functional functions in the root contract, and distribute the compilation result (such as machine code, etc.) and the root contract to each node in the blockchain network.
- the communication device only needs to fill in the changed part of the content of the smart contract according to the root contract each time the user applies for service, so as to obtain the corresponding service.
- the communication device only needs to fill in the changed part of the content of the smart contract according to the root contract each time the user applies for service, so as to obtain the corresponding service.
- the communication device only needs to fill in the changed part of the content of the smart contract according to the root contract each time the user applies for service, so as to obtain the corresponding service.
- the communication device only needs to fill in the changed part of the content of the smart contract according to the root contract each time the user applies for service, so as to obtain the corresponding service.
- the communication device only needs to fill in the changed part of the content of the smart contract according to the root contract each time the user applies for service, so as to obtain the corresponding service.
- the changed part of the smart contract content will be stored in the block after each block chain node passes the consensus, so the storage cost of each block chain node can be reduced.
- the management network element can issue the root contract in advance, that is, deploy the root contract on each blockchain node in advance, and then the communication device only needs to directly fill in the corresponding fields for use every time the user applies for service . Therefore, the user's service waiting time can be reduced.
- the management network element can also send compilation results to each blockchain node, so that each node can use it directly, avoiding each node in the blockchain network to compile the smart contract independently, and saving the compilation cost of each node.
- the communication device 10a and the management network element briefly introduce the deployment of the first smart contract in this application and the interaction process between the communication device 10a and the management network element when the first smart contract is used.
- a service request that is, a service request
- the management network element can receive the registration request sent by the communication device 10a (the registration request includes service request information ), the service request information is used to indicate the service required by the user.
- the management network element can determine the first smart contract corresponding to the service request according to the service request information included in the registration request (the first smart contract includes field information, and the field information includes change information, and the field information is used to indicate the first field of a smart contract), and the management network element can compile the first smart contract, including compiling the function functions in the first smart contract, etc., and obtain the first compilation result (such as machine code), after that, the management network element can communicate with The device 10a sends the first smart contract and the first compilation result, wherein the first smart contract and the first compilation result sent by the management network element can be transmitted to the communication device 10a through wireless resources.
- the first smart contract can be used to update the field of the first smart contract value, and can directly execute the first compilation result sent by the management network element, run the first smart contract, and obtain the corresponding service.
- the communication device 10a can generate a new block according to the service result, and can generate a new block according to the content change of the first smart contract;
- the generated block is sent to the management network element, and can be sent to each blockchain node in the blockchain to which the first smart contract belongs, and the management network element and/or the blockchain to which the first smart contract belongs.
- Each block chain node of each checks the newly generated block (that is, performs consensus), and after completing the check, adds the above newly generated block to the block chain it stores (that is, in the consensus After passing, the service results and contract content changes are stored in the blockchain).
- each node in the blockchain network can have its corresponding node ID, and each node in the blockchain network can store the node IDs of other nodes in the blockchain network, so that subsequent The node ID of the node sends the generated block to other nodes in the blockchain network, so that the data stored on all nodes in the blockchain network are consistent.
- the information sent by the communication device to the management network element and the information sent by the management network element to the communication device may be transmitted through wireless resources (such as time-frequency resources).
- FIG. 2 is a schematic diagram of a block chain architecture disclosed by an embodiment of the present invention.
- the blockchain architecture may include a main chain and multiple sub-chains (side chains).
- the main chain is the cornerstone of the entire blockchain system, which mainly provides the most basic services for the entire blockchain system (such as providing data storage services, etc.). In addition, it can also provide support for different side chains (such as helping the side chain achieve consensus), etc.
- the main chain and the side chain can cooperate with each other, and the function of the main chain can be increased by adding the side chain, so that it can be applied to more scenarios.
- each blockchain in CONET can have only one root (Root) contract, which is used to provide a specific service for the management of network elements, but it is more flexible to call another smart contract through one smart contract Different smart contracts are used so that more complex problems can be solved.
- Root root
- CONET management is responsible for the management of the entire blockchain system.
- the management network element may be responsible for managing members in the group, including receiving a registration request of a communication device (the registration request includes service request information), and at the same time, the management network element may also assign the communication device to the corresponding group according to the service request information, That is to say, the communication device is added to the corresponding blockchain, becoming a node of the blockchain and a member of the group.
- each group can have a group (group) identification (identity document, ID), and the group ID can identify a block chain, and each communication device can also have an ID, which is used to identify the communication device.
- CONET may include multiple blockchains, and correspondingly, the communication device may be a node of multiple blockchains, that is, the communication device may belong to multiple groups.
- the management network element can also be responsible for managing the parameters of each group, such as the blockchain type, blockchain structure, and root contract of each group.
- the management network element can also monitor the situation of each member (such as online or offline status), record and save the behavior of each member (such as sent data information, received data information, etc.) and so on.
- CONET can include artificial intelligence (AI) side chains (chain), database (data base, DB) side chains, identification side chains, and data analysis management (data analysis management, DAM) side chains wait.
- AI artificial intelligence
- DB database
- DAM data analysis management
- the AI chain can provide AI model training and other services, and provide users with training resources (such as memory resources, computing resources, etc.).
- the DB chain can provide users with database-related functions, such as data storage, data reading, and data backup.
- the ID chain can be responsible for the ID management of each group and members in the group in CONET, including the addition and deletion of members of each group.
- the DAM chain can provide services such as data analysis and management. For example, it can provide users with big data analysis, and can provide users with feasible suggestions based on the analysis results. It is understandable that the above-mentioned services can be realized through smart contracts in the blockchain. It should be understood that the block chain architecture shown in FIG. 2 is only an example and does not constitute a limitation.
- FIG. 3 is a schematic diagram of a smart contract deployment disclosed in an embodiment of the present invention.
- the management network element receives the registration request of the communication device, it can determine the contract template according to the service request information included in the registration request, and the contract template is also the first smart contract (root contract); after that, the management network element The network element can compile the first smart contract to obtain the compilation result; then, the management network element can send the first smart contract and the compilation result to the communication device, so that the user can directly use it when there is a service application.
- the communication device may be a UE, may also be a device in an access network (access network, AN), or may be a device in a user plane function (user plane function, UPF). It should be understood that the deployment of the smart contract shown in FIG. 3 is only an example and does not constitute a limitation.
- FIG. 4 is a schematic flowchart of a contract management method disclosed in an embodiment of the present invention.
- the contract management method may include the following steps:
- the communication device sends a registration request to the management network element, where the registration request includes service request information.
- the management network element can receive the registration request from the communication device.
- each block chain in CONET can have only one root (Root) contract to provide a specific service
- the user can send a registration request to the management network element through the communication device to obtain the first smart contract, and then can pass The first smart contract obtains corresponding services. Therefore, when the user wants to obtain a certain service, that is, when he wants to perform a certain transaction (such as a transfer transaction), he can send a registration request to the management network element, so as to obtain the first smart contract.
- the user can obtain the first smart contract from the management network element through the communication device when the network resources are idle, so as to avoid competing with other users for wireless resources, thereby avoiding reducing the overall performance of the network.
- the registration request may include service request information, and the service request information may be specific service information (service) that the communication device needs to obtain, such as data backup service, big data analysis service, and traffic statistics service. It can be understood that the user may send multiple different registration requests to the management network element through the communication device to request different services (services).
- service service information
- the management network element determines the first smart contract according to the service request information in the registration request.
- the management network element is mainly responsible for the management of the blockchain in CONET and the management of the root contract, etc. Therefore, the root contract (that is, the contract template) of each blockchain in CONET can be configured and stored locally in the management network element in advance, so as to provide Users provide services. And the management network element stores the mapping relationship between the root contract and service information, and a specific service corresponds to a specific root contract. Therefore, after receiving the registration request from the communication device, the management network element can first determine the specific service requested by the communication device according to the service request information included in the registration request, and then locally find the first smart contract corresponding to the service.
- the first smart contract may include field information, and the field information may include change information.
- the field information may be a field of the first smart contract
- the change information may be a value of a field of the first contract. That is to say, the first smart contract may only declare the fields of the smart contract (ie, field information), and leave the value of the field (ie, change information) blank.
- FIG. 5 is a schematic diagram of a first smart contract disclosed in an embodiment of the present invention.
- the first smart contract shown in FIG. 5 may be the first smart contract (root contract) of the database side chain, which provides related functions of the database, such as data storage, data reading, and data backup.
- the first smart contract may include field information, and the field information may include change information, that is, the first smart contract may include one or more contract fields (ie field information), such as group ID (groupID) , service type (type), service time (time), wireless resource (resource), status information (status), access node identity (AP), user equipment identity (UE), timer (Timer), contract version (version ), signature (signature), etc.
- group ID group ID
- type service time
- wireless resource resource
- status information status information
- AP access node identity
- UE user equipment identity
- timer timer
- contract version version
- signature signature
- the value of each contract field (that is, the change information) is empty (null), therefore, the storage cost of the communication device (block chain node) can be reduced when the first smart contract is deployed.
- the first smart contract can also include one or more functional functions, such as a query function (Query), where the root contracts of other blockchains in CONET can be queried through the query function, so that users can query and call other blockchains when needed.
- Query query function
- the root contract of the blockchain, as well as the update function (Update) provide users with an update interface of the smart contract in order to realize the update of the smart contract.
- Update update function
- the management network element can also compile the first intelligence, including compiling functions in the first smart contract, etc., to obtain the first compilation result (such as machine code, etc.).
- the management network element can regard each blockchain as a group, and the nodes in each blockchain as a member of the group.
- Each group (block chain) can be identified by a group ID, which can be a digital number set by the management network element, and each communication device (group member) can also have an ID for identifying the communication device.
- the ID of the communication device may be an international mobile subscriber identity (IMSI). Therefore, the management network element can determine the specific service requested by the communication device according to the service request information, and then assign the communication device to the group (block chain) corresponding to the service, and at the same time determine the group ID of the communication device.
- IMSI international mobile subscriber identity
- the management network element sends the first smart contract to the communication device.
- the management network element may send the first smart contract to the communication device.
- the communication device may receive the first smart contract from the management network element.
- the management network element may send the first smart contract to the communication device when the wireless resource is idle, so as to improve the utilization rate of the wireless resource.
- competition for wireless resources with other users can be avoided when the available wireless resources are insufficient, thereby avoiding reducing the overall performance of the network, and thus improving user network experience.
- the first smart contract is not a complete contract, the value of its field is empty, so the complete transmission of the smart contract can be avoided, thereby saving transmission resources. At the same time, since the amount of transmitted information is reduced, the transmission time required to transmit the first smart contract can be reduced.
- the communication device After the communication device receives the first smart contract from the management network element, when the user needs to obtain the service corresponding to the first smart contract, the change information of the first smart contract can be updated through the communication device according to the specific service (service), And the first smart contract can be compiled, including compiling the function functions in the root contract, etc., to obtain the compilation result, and then the communication device can execute the compilation result to obtain the corresponding service. For example, execute the compilation result corresponding to the query function (Query), query the root contracts of other blockchains in CONET, so as to call the root contracts of other blockchains. For another example, the user needs to perform a transfer transaction.
- Query query the root contracts of other blockchains in CONET
- the first smart contract corresponding to the transfer service includes field information such as: transfer initiator ID, transfer recipient ID, transfer time, and transfer amount.
- the communication device can initiate an actual transfer transaction request (such as A transfer 10 to B) according to the first smart contract, update the change information of the first smart contract (that is, the value of the field of the first smart contract), and execute the compilation of the first smart contract to obtain corresponding services.
- the change information of the first smart contract that is, fill/change the value of the fields necessary to run the first smart contract
- the transfer initiator ID is A
- the ID of the transfer recipient is B
- the transfer time is the current time
- the transfer amount is 10
- the compilation result of the first smart contract (which defines the logic of the transfer business) can be executed according to the value of the field, and the transfer from A to B can be executed 10.
- the management network element may send the first compilation result to the communication device.
- the communication device may receive the first compiling result from the management network element.
- the first compilation result is the compilation result corresponding to the first smart contract. Later, when the user needs to obtain the service corresponding to the first smart contract, the communication device can directly use the first compilation result sent by the management network element, run the smart contract, and obtain the corresponding service without compiling itself, which can save the first compilation result. Compilation time of a smart contract.
- the management network element may send the group ID to the communication device.
- the communication device may receive the group ID from the management network element.
- the communication device receives the group ID from the management network element, indicating that the communication device has joined the corresponding group (block chain), and then the first smart contract deployed on the block chain can be used.
- the communication device can also save the first smart contract as a key-value pair, determine the key-value pair corresponding to the first smart contract, and obtain the key-value pair information .
- the first smart contract root contract
- the first smart contract can be saved as ⁇ groupID: null
- type null
- time null
- resource null
- status null
- AP null
- UE null
- Timer null
- version null
- signature null ⁇
- you can also use the group ID as the key or generate a specific key the content of the entire first smart contract will be saved as the corresponding value, and then the corresponding value can be obtained according to the key value (section content of a smart contract).
- the communication device can completely save the first smart contract in the form of a key-value pair, and the key-value pair information (that is, save the key and the corresponding value of the first smart contract) includes the information of the first smart contract, that is, the The key-value pair information includes the complete content of the first smart contract.
- the communication device can send the key-value pair information to the management network element, that is, send the key-value pair information for saving the first smart contract to the management network element.
- the management network element can receive the key-value pair information from the communication device.
- the communication device may also send the key-value pair information storing the first smart contract to other nodes of the blockchain to which the first smart contract belongs.
- other nodes of the blockchain to which the first smart contract belongs can receive the key-value pair information from the communication device.
- the management network element After the management network element receives the key-value pair information from the communication device, it can verify the information of the first smart contract included in the key-value pair information (that is, reach a consensus on the content of the first smart contract). After the management network element consensus is passed, the communication device only needs to fill in the change part of the contract content according to the first smart contract each time the user applies for service (when the transaction is generated), and then it can be used. In addition, when other nodes of the blockchain to which the first smart contract belongs receive the key-value pair information from the communication device, they may also check the information of the first smart contract included in the key-value pair information.
- the communication device After the communication device receives the first smart contract from the management network element, and the service required by the user is updated or changed, the user can send an update request to the management network element through the communication device.
- the management network element may receive an update request from the communication device.
- the update request includes update information and information of the first smart contract.
- the update information may be the information about the change of the first smart contract, such as the value change information of a certain field of the first smart contract.
- the information of the first smart contract may be the group ID, or the first smart contract ID or name.
- one or more first smart contracts (root contracts) included in CONET can be distinguished by ID or name, that is, there is a one-to-one correspondence between ID and name and the first smart contract,
- the update request initiated by the user can also carry the identification number or name of the smart contract to specify a specific smart contract in CONET.
- the user when the user needs data backup service, he can fill in the corresponding blank field of the first smart contract through an update request, and change the value of the field of the first smart contract, as shown in FIG. 6 .
- FIG. 6 is a schematic diagram of the use of a first smart contract disclosed in an embodiment of the present invention.
- the communication device can receive the user's service request, that is, transaction (transaction) 1, and the service request can be a data backup service request (for backing up local data to the cloud database), in transaction 1 It may include AP ID, UE ID, service time, status information, timer, etc.
- the communication device can fill the first smart contract shown in Figure 5 according to the content of transaction 1 to obtain a cache contract (CacheContract).
- the ID of the group that provides the data backup service can be 1, the service type corresponding to the data backup service can be A, the time for data backup (that is, the service time) can be 5 minutes (min), and the wireless resource for data backup (such as time Frequency resource) can be resource block (block) c, the state of UE can be active (active), the ID of UE can be 1, the ID of AP can be 2, and the time of timer can be 24 hours (hour).
- the version of a smart contract can be version 3, and the user signature can be xyz.
- the filled first smart contract can be used by the UE to upload the information that needs to be backed up locally to the cloud database, and upload it once every 24 hours.
- the communication device fills the first smart contract, and can send an update request to the management network element.
- the update request includes the information of the first smart contract and the update information (the change of the value of the first smart contract field).
- the management network element may receive an update request from the communication device.
- the user can also send an update request to the management network element through the communication device when the required data backup service changes (that is, when a new transaction occurs). For example, if the user needs to modify the timer of the data backup service to back up every 48 hours, an update request can be sent to the management network element through the communication device, and the update information included in the update request can be (24hour ⁇ 48hour).
- the management network element After the management network element receives the update request from the communication device, the management network element can determine the first smart contract that needs to be updated according to the information of the first smart contract, and check the first smart contract according to the update information of the first smart contract In the update section, update the change information of the first smart contract. Afterwards, the management network element can compile the updated first smart contract to obtain the second compilation result.
- the management network element may send the second compiling result to the communication device.
- the communication device may receive the second compiling result from the management network element.
- the communication device may update the first smart contract saved in the form of key-value pairs according to the update information of the first smart contract. For example, the communication device can update the above-mentioned key-value pair information of the first smart contract saved in the form of key-value pairs to ⁇ groupID: 1, type: A, time: 5min, resource: blockc, status: active, AP: 2, UE: 1, Timer: 48hour, version: 3, signature: xyz ⁇ .
- the communication device can directly execute the second compiling result to obtain the previously requested service (that is, the data backup service).
- the communication device can also generate a new block according to the result of the data backup service, and add the block to the blockchain after passing the consensus.
- the communication device updates the first smart contract stored in key-value pair mode and obtains the updated key-value pair information, it can send the updated key-value pair information to the management network element for verification (that is, the updated first smart contract content for consensus), and can be sent to other nodes of the block chain to which the first smart contract belongs for verification.
- the communication device can package the change information of the first smart contract into a block, and add the block to the blockchain to which it belongs.
- the storage cost of each node of the blockchain can be reduced.
- the management network element can issue the first smart contract in advance, that is, deploy the first smart contract on each blockchain node in advance, and then the communication device only needs to directly fill in the corresponding fields for use each time a user applies for service. Therefore, the user's service waiting time can be reduced.
- the management network element can also send the compilation results corresponding to the first smart contract to each blockchain node, so that each node can directly use it, avoiding that each node in the blockchain network compiles the smart contract independently, saving The compilation cost of each node. Therefore, it facilitates the large-scale deployment of blockchain services.
- FIG. 7 is a schematic structural diagram of a contract management device disclosed in an embodiment of the present invention.
- the contract management device may be a management network element, or a module in the management network element.
- the contract management device may include:
- a receiving unit 701 configured to receive a registration request from a communication device, where the registration request includes service request information;
- a determining unit 702 configured to determine the first smart contract according to the service request information
- a sending unit 703, configured to send the first smart contract to the communication device.
- the contract management device may also include:
- the first compilation unit 704 is configured to compile the first smart contract to obtain a first compilation result
- the sending unit 703 is specifically configured to send the first smart contract and the first compilation result to the communication device.
- the determining unit 702 is further configured to determine a group identification ID according to the service request information, the group ID is used to identify the first blockchain, and the communication device is a node of the first blockchain;
- the sending unit 703 is further configured to send the group ID to the communication device.
- the receiving unit 701 is further configured to receive key-value pair information from the communication device, where the key-value pair information is the key-value pair information corresponding to the first smart contract;
- the contract management device may also include:
- the consensus unit 705 is configured to perform consensus on the key-value pair information.
- the first smart contract includes field information
- the field information includes change information
- the receiving unit is further configured to receive an update request from the communication device, the update request includes update information and the first smart contract information, the update information is used to update the change information;
- the contract management device may also include:
- the second compilation unit 706 is configured to compile the first smart contract according to the update information to obtain a second compilation result
- the sending unit 703 is further configured to send the second compiling result to the communication device.
- the first coding unit and the second coding unit may be collectively referred to as a coding unit.
- the receiving unit 701, the determining unit 702, the sending unit 703, the first compiling unit 704, the consensus unit 705, and the second compiling unit 706, you can directly refer to the management network element in the method embodiment shown in FIG. 4 above. Relevant descriptions are obtained directly, and are not repeated here.
- FIG. 8 is a schematic structural diagram of another contract management device disclosed in an embodiment of the present invention.
- the contract management device may be a communication device, or a module in the communication device.
- the contract management device may include:
- the receiving unit 802 is configured to receive the first smart contract from the management network element.
- the receiving unit 802 receiving the first smart contract from the management network element includes:
- the receiving unit 802 is also used for:
- the contract management device may also include:
- a determining unit 803 configured to determine a key-value pair corresponding to the first smart contract, and obtain key-value pair information
- the sending unit 801 is also configured to send the key-value pair information to the management network element.
- the first smart contract includes field information, and the field information includes change information, and the sending unit 801 is also used for:
- the receiving unit 802 is also configured to receive the second compiling result from the management network element.
- the contract management apparatus may include a processor 901 , a memory 902 , a transceiver 903 and a bus 904 .
- the memory 902 may exist independently, and may be connected to the processor 901 through the bus 904 .
- the memory 902 can also be integrated with the processor 901.
- the bus 904 is used to realize the connection between these components.
- the transceiver 903 may include a transmitter 9031 , a receiver 9032 and an antenna 9033 .
- the transceiver 903 may include a transmitter (ie, an output interface) and a receiver (ie, an input interface).
- a transmitter may include a transmitter and an antenna, and a receiver may include a receiver and an antenna.
- the contract management device may be a management network element or a module (for example, a chip) within the management network element.
- the processor 901 is used to control the sending unit 703 and the receiving unit 701 performs the operations performed in the above-mentioned embodiments, and the processor is also used to control the determination unit 702, the first compiling unit 704, the consensus unit 705 and the second compiling unit 706 to perform the operations performed in the above-mentioned embodiments
- the transceiver 903 is configured to perform the operations performed by the sending unit 703 and the receiving unit 701 in the foregoing embodiments.
- the above-mentioned management network element or a module in the management network element may also be used to execute the method performed by the management network element in the above method embodiment in FIG. 4 , which will not be repeated here.
- the contract management device may be a communication device or a module (for example, a chip) in the communication device.
- the processor 901 is used to control the sending unit 801 and the receiving unit 801.
- the unit 802 performs the operations performed in the above embodiments
- the processor is also used to control the determination unit 803 to perform the operations performed in the above embodiments
- the transceiver 903 is used to perform the operations performed by the sending unit 801 and the receiving unit 802 in the above embodiments .
- the above-mentioned communication device or a module in the communication device may also be used to execute the method performed by the communication device in the above-mentioned method embodiment in FIG. 4 , which will not be repeated here.
- FIG. 10 is a schematic structural diagram of another contract management device disclosed in an embodiment of the present invention.
- the contract management device may include an input interface 1001 , a logic circuit 1002 and an output interface 1003 .
- the input interface 1001 is connected to the output interface 1003 through a logic circuit 1002 .
- the input interface 1001 is used to receive information from other contract management devices, and the output interface 1003 is used to output, schedule or send information to other contract management devices.
- the logic circuit 1002 is configured to perform operations other than the operations of the input interface 1001 and the output interface 1003 , such as implementing the functions implemented by the processor 901 in the above-mentioned embodiments.
- the contract management device may be a management network element or a module within the management network element, or may be a communication device or a module within the communication device.
- the input interface 1001, the logic circuit 1002, and the output interface 1003 can be directly obtained by referring to the related descriptions of the management network element or the communication device in the above method embodiment, and will not be repeated here.
- FIG. 11 is a schematic structural diagram of a contract management system disclosed in an embodiment of the present invention.
- the contract management system may include a management network element 1101 and a communication device 1102 .
- the contract management method shown in FIG. 4 may be made to the contract management method shown in FIG. 4 .
- the embodiment of the present invention also discloses a computer-readable storage medium, on which instructions are stored, and when the instructions are executed, the methods in the above method embodiments are executed.
- the embodiment of the present invention also discloses a computer program product including an instruction, and when the instruction is executed, the method in the above method embodiment is executed.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开一种合约管理方法、装置及系统,该方法包括:通信设备向管理网元发送注册请求,注册请求包括服务请求信息,服务请求信息用于指示一项特定的服务;管理网元接收到来自通信设备的注册请求之后,根据注册请求中的服务请求信息确定第一智能合约;然后向通信设备发送第一智能合约。本发明实施例,可以减少用户的服务等待时间。
Description
本申请要求于2021年10月22日提交中国专利局、申请号为202111230873.8、申请名称为“一种合约管理方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信技术领域,尤其涉及一种合约管理方法、装置及系统。
区块链是一种综合了分布式数据存储、共识机制、加密算法等计算机技术的新型应用模式,主要用于对数据按时间顺序进行整理,并加密成账本,使其不可被篡改和伪造,同时可进行数据的验证、存储和更新。区块链还可以进行数据加密传输、节点识别和安全访问,是一种先进的分布式基础架构。
在区块链系统中,智能合约定义了控制世界状态中包含的业务对象生命周期的交易逻辑,智能合约可以是一种区块链上的各个节点可以理解并执行的代码,可以执行任意逻辑并得到结果。
由于区块链的不可篡改性与真实性,以及智能合约的便捷性,可以将区块链技术引入通信网络中,解决通信网络中各个设备(例如,基站、手机终端等)之间的互信问题,以及可以通过智能合约来处理各种类型的业务,为用户提供不同业务场景下的服务。与此同时,如何高效的管理智能合约,减少用户的服务等待时间是技术人员关注的问题。
发明内容
本发明实施例公开了一种合约管理方法、装置及系统,用于减少用户的服务等待时间。
第一方面公开一种合约管理方法,该合约管理方法可以应用于管理网元,也可以应用于管理网元中的模块(例如,芯片),下面以应用于管理网元为例进行描述。该合约管理方法可以包括:管理网元接收来自通信设备的注册请求,该注册请求包括服务请求信息;根据该服务请求信息确定第一智能合约;向该通信设备发送该第一智能合约。
在上述实施例中,管理网元可以接收来自通信设备的注册请求,该注册请求包括服务请求信息,也即是业务信息。并且,管理网元本地可以存储有智能合约,智能合约和服务之间具有一一对应的关系,即一种服务对应有一种智能合约,通过一种服务对应的智能合约可以获得对应的服务(即相应的业务)。因此,管理网元可以根据该服务请求信息在本地找到该服务请求信息对应的第一智能合约,即确定第一智能合约,之后,可以向该通信设备发送该第一智能合约。可见,管理网元在接收通信设备的注册请求后,可以将第一智能合约发送给通信设备,实现智能合约的提前部署。之后,用户在需要获得第一智能合约对应的服务时,可以通过通信设备直接使用第一智能合约,从而可以减少用户的服务等待时间。
在一些实施例中,该方法还包括:对该第一智能合约进行编译,得到第一编译结果;该向该通信设备发送该第一智能合约包括:向该通信设备发送该第一智能合约和该第一编译结果。
在上述实施例中,由于通信设备具备的编译能力不同,部分通信设备可能不具备编译能力,部分通信设备的编译能力可能较弱,编译第一智能合约需要较高的时间成本。因此,管 理网元可以对第一智能合约进行编译,例如通过编译得到第一智能合约的机器码,也即是得到第一编译结果。之后,管理网元可以向该通信设备发送该第一智能合约和该第一编译结果。之后,用户在需要获得第一智能合约对应的服务时,可以直接使用该第一智能合约,并且执行该第一编译结果。可见,通过管理网元统一编译第一智能合约可以降低通信设备的编译成本,以及可以节省通信设备的编译时间。
在一些实施例中,该方法还包括:根据该服务请求信息确定组标识ID,该组ID用于标识第一区块链,该通信设备为该第一区块链的节点;向该通信设备发送该组ID。
在上述实施例中,管理网元可以根据服务请求信息为通信设备分配组ID,即确定组ID。也即是管理网元可以将通信设备加入该第一区块链(该通信设备成为第一区块链的节点),第一区块链为组ID标识的区块链,之后,管理网元可以向通信设备发送该组ID。可见,管理网元可以根据通信设备请求的服务不同,将其划分为不同的组,也即是加入不同的区块链,以便管理网元进行管理。此外,不同的组(区块链)可以专用于处理一种类型的交易,也即是只提供一种类型的服务(如计费服务、话音服务等)。因此,整个合约管理系统的区块链架构较为简单,每一条区块链可以只部署有单个智能合约,可以提高合约的管理效率。
在一些实施例中,该方法还包括:接收来自该通信设备的键值对信息,该键值对信息为该第一智能合约对应的键值对的信息;对该键值对信息进行共识。
在上述实施例中,管理网元可以接收来自通信设备的键值对信息,之后管理网元可以对该键值对信息进行共识(即对第一智能合约进行检验)。共识通过后(也即是对第一智能合约达成一致),用户可以在需要获得第一智能合约对应的服务时,通过通信设备直接使用第一智能合约。可见,管理网元对键值对信息进行共识,可以确保与通信设备对第一智能合约达成一致,以便之后通信设备使用第一智能合约可以获得对应的服务。
在一些实施例中,该第一智能合约包括字段信息,该字段信息包括变更信息,该方法还包括:接收来自该通信设备的更新请求,该更新请求包括更新信息和该第一智能合约的信息,该更新信息用于更新该变更信息;根据该更新信息对该第一智能合约进行编译,得到第二编译结果;向该通信设备发送该第二编译结果。
在上述实施例中,第一智能合约可以仅声明智能合约字段(即字段信息),将字段的值(即变更信息)留空。管理网元可以接收来自通信设备的更新请求,并根据更新请求包括的第一智能合约的信息确定需要更新的第一智能合约,之后可以根据更新信息更新字段的值(如填充字段的值),然后管理网元可以对更新之后的第一智能合约进行编译,得到第二编译结果,之后可以向通信设备发送第二编译结果,以便用户可以通过通信设备直接使用更新的第一智能合约,降低通信设备的编译成本。
第二方面公开一种合约管理方法,该合约管理方法可以应用于通信设备,也可以应用于通信设备中的模块(例如,芯片),下面以应用于通信设备为例进行描述。该合约管理方法可以包括:通信设备向管理网元发送注册请求,该注册请求包括服务请求信息;接收来自该管理网元的第一智能合约。
在上述实施例中,通信设备可以向管理网元发送注册请求,注册请求中包括服务请求信息,以便向管理网元获取对应服务的智能合约。之后,通信设备可以接收到来自管理网元的第一智能合约。可见,通信设备可以向管理网元发送注册请求,获得第一智能合约,并将第一智能合约保存在本地。之后,用户在需要获得第一智能合约对应的服务时,可以通过通信设备直接使用第一智能合约,从而可以减少用户的服务等待时间。
结合第二方面的一些实施例,在一些实施例中,该接收来自该管理网元的第一智能合约包括:接收来自该管理网元的第一智能合约和第一编译结果。
在上述实施例中,通信设备向管理网元发送注册请求之后,可以接收到来自管理网元的第一智能合约以及第一编译结果。之后,用户在需要获得第一智能合约对应的服务时,可以直接使用该第一智能合约,并且执行该第一编译结果,避免了通信设备自身进行编译(如编译第一智能合约得到对应的机器码),从而可以节省通信设备的编译时间,从而降低用户的服务等待时间。
结合第二方面的一些实施例,在一些实施例中,该方法还包括:接收来自该管理网元的组标识ID,该组ID用于标识第一区块链,该通信设备为该第一区块链的节点。
在上述实施例中,通信设备向管理网元发送注册请求,可以加入第一区块链,成为第一区块链的一个节点,并且,可以接收到来自管理网元的组ID,表明该通信设备加入了对应的组(区块链)。因此,可以确保之后用户通过通信设备使用第一智能合约时能够获得对应的服务。
结合第二方面的一些实施例,在一些实施例中,该方法还包括:确定该第一智能合约对应的键值对,得到键值对信息;向该管理网元发送该键值对信息。
在上述实施例中,通信设备接收到第一智能合约之后,可以确定该第一智能合约的键值对,以键值对的方式保存第一智能合约。之后,通信设备可以向管理网元发送该键值对信息,以便管理网元对键值对信息进行共识,确保管理网元对第一智能合约达成一致。当管理网元对第一智能合约达成一致后,通信设备可以正常使用第一智能合约,因此,通信设备向管理网元发送键值对信息可以确保之后通信设备使用第一智能合约可以获得对应的服务。
结合第二方面的一些实施例,在一些实施例中,该第一智能合约包括字段信息,该字段信息包括变更信息,该方法还包括:向该管理网元发送更新请求,该更新请求包括更新信息和该第一智能合约的信息,该更新信息用于更新该变更信息;接收来自该管理网元的第二编译结果。
在上述实施例中,第一智能合约可以仅声明智能合约字段(即字段信息),将字段的值(即变更信息)留空。通信设备在有服务申请时(交易产生时),可以向管理网元发送更新请求,通过更新信息更新第一智能合约的变更信息。更新请求中可以只包括更新信息和第一智能合约的信息,也即是第一智能合约变更信息发生变化的信息,而不用包含第一智能合约所有的内容。因此,可以减少通信设备发送更新请求所占用的传输资源。此外,通信设备还可以接收到来自管理网元的第二编译结果,即更新之后的第一智能合约的编译结果。之后,通信设备可以直接执行第二编译结果获得对应的服务,而不需要自身进行编译,从而节省了编译时间。
第三方面公开一种合约管理装置,该合约管理装置可以为管理网元,也可以为管理网元中的模块(例如,芯片)。该合约管理装置可以包括:接收单元,用于接收来自通信设备的注册请求,该注册请求包括服务请求信息;确定单元,用于根据该服务请求信息确定第一智能合约;发送单元,用于向该通信设备发送该第一智能合约。
作为一种可能的实施方式,该合约管理装置还可以包括:第一编译单元,用于对该第一智能合约进行编译,得到第一编译结果;该发送单元,具体用于向该通信设备发送该第一智能合约和该第一编译结果。
作为一种可能的实施方式,该确定单元,还用于根据该服务请求信息确定组标识ID,该 组ID用于标识第一区块链,该通信设备为该第一区块链的节点;该发送单元,还用于向该通信设备发送该组ID。
作为一种可能的实施方式,该接收单元,还用于接收来自该通信设备的键值对信息,该键值对信息为该第一智能合约对应的键值对的信息;该合约管理装置还可以包括:共识单元,用于对该键值对信息进行共识。
作为一种可能的实施方式,该第一智能合约包括字段信息,该字段信息包括变更信息,该接收单元,还用于接收来自该通信设备的更新请求,该更新请求包括更新信息和该第一智能合约的信息,该更新信息用于更新该变更信息;该合约管理装置还可以包括:第二编译单元,用于根据该更新信息对该第一智能合约进行编译,得到第二编译结果;该发送单元,还用于向该通信设备发送该第二编译结果。
第四方面公开一种合约管理装置,该合约管理装置可以为通信设备,也可以为通信设备中的模块(例如,芯片)。该合约管理装置可以包括:发送单元,用于通信设备向管理网元发送注册请求,该注册请求包括服务请求信息;接收单元,用于接收来自该管理网元的第一智能合约。
作为一种可能的实施方式,该接收单元,具体用于接收来自该管理网元的第一智能合约和第一编译结果。
作为一种可能的实施方式,该接收单元,还用于接收来自该管理网元的组标识ID,该组ID用于标识第一区块链,该通信设备为该第一区块链的节点。
作为一种可能的实施方式,该合约管理装置还可以包括:确定单元,用于确定该第一智能合约对应的键值对,得到键值对信息;该发送单元,还用于向该管理网元发送该键值对信息。
作为一种可能的实施方式,该第一智能合约包括字段信息,该字段信息包括变更信息,该发送单元,还用于向该管理网元发送更新请求,该更新请求包括更新信息和该第一智能合约的信息,该更新信息用于更新该变更信息;该接收单元,还用于接收来自该管理网元的第二编译结果。
第五方面公开一种合约管理装置,该合约管理装置可以为管理网元或者管理网元中的模块(例如,芯片)。该合约管理装置可以包括处理器、存储器和收发器,该收发器用于接收来自该合约管理装置之外的其它合约管理装置的信息,以及向该合约管理装置之外的其它合约管理装置输出信息,当该处理器执行该存储器存储的计算机程序时,使得该处理器执行第一方面或第一方面的任一实施方式公开的合约管理方法。
第六方面公开一种合约管理装置,该合约管理装置可以为通信设备或者通信设备中的模块(例如,芯片)。该合约管理装置可以包括处理器、存储器和收发器,该收发器用于接收来自该合约管理装置之外的其它合约管理装置的信息,以及向该合约管理装置之外的其它合约管理装置输出信息,当该处理器执行该存储器存储的计算机程序时,使得该处理器执行第二方面或第二方面的任一实施方式公开的合约管理方法。
第七方面公开一种合约管理系统,该合约管理系统包括第五方面的合约管理装置以及第六方面的合约管理装置。
第八方面公开一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序或计算机指令,当该计算机程序或计算机指令运行时,实现如上述各方面公开的合约管理方法。
第九方面公开一种芯片,包括处理器,用于执行存储器中存储的程序,当程序被执行时, 使得芯片执行上面的方法。
作为一种可能的实施方式,存储器位于芯片之外。
第十方面公开一种计算机程序产品,该计算机程序产品包括计算机程序代码,当该计算机程序代码被运行时,使得上述合约管理方法被执行。
可以理解地,上述第三方面提供的合约管理装置、第四方面提供的合约管理装置、第五方面提供的合约管理装置、第六方面提供的合约管理装置、第八方面提供的计算机可读存储介质、第九方面提供的芯片和第十方面提供的计算机程序产品均用于执行本申请第一方面以及第一方面中任一可能的实现方式,或第二方面以及第二方面中任一种可能的实现方式所提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。
图1是本发明实施例公开的一种网络架构示意图;
图2是本发明实施例公开的一种区块链架构示意图;
图3是本发明实施例公开的一种智能合约部署示意图;
图4是本发明实施例公开的一种合约管理方法的流程示意图;
图5是本发明实施例公开的一种第一智能合约示意图;
图6是本发明实施例公开的一种第一智能合约使用的示意图;
图7是本发明实施例公开的一种合约管理装置的结构示意图;
图8是本发明实施例公开的另一种合约管理装置的结构示意图;
图9是本发明实施例公开的又一种合约管理装置的结构示意图;
图10是本发明实施例公开的又一种合约管理装置的结构示意图;
图11是本发明实施例公开的一种合约管理系统的结构示意图。
本发明实施例公开了一种合约管理方法及装置,用于减少用户的服务等待时间。下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或者特性可以包含在本实施例申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是相同的实施例,也不是与其它实施例互斥的独立的或是备选的实施例。本领域技术人员可以显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。本申请的说明书和权利要求书及所述附图中术语“第一”、“第二”、“第三”等是区别于不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤或单元,或者可选地,还包括没有列出的步骤或单元,或者可选地还包括这些过程、方法、产品或设备固有的其它步骤或单元。
附图中仅示出了与本申请相关的部分而非全部内容。在更加详细地讨论示例性实施例之前,应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以并行地、并发地或者同 时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
在本说明书中使用的术语“部件”、“模块”、“系统”、“单元”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件或执行中的软件。例如,单元可以是但不限于在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或分布在两个或多个计算机之间。此外,这些单元可从在上面存储有各种数据结构的各种计算机可读介质执行。单元可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一单元交互的第二单元数据。例如,通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。
为了更好地理解本发明实施例,下面先对本发明实施例的相关技术进行描述。
在过去的几十年中,无线通信系统经历了从第一代模拟通信到第五代移动通信技术(5th generation,5G)新无线电(new radio,NR)的技术演变。目前,第六代移动通信技术(6th generation,6G)网络的研究也开始进行。在6G网络中,空间上可以包括空天地海等各个网络,实际网络载体可以包括卫星网络、无人机等中低空平台网络、蜂窝网络、车联网、物联网(internet of things,IoT)、水面及水下网络等。同时,整个通信网络中包括各种不同的通信设备,也即是整个通信网络中包括各种不同的网络参与者,例如基站、手机终端、无人机、智能汽车以及各种IoT设备等。6G时代,各种终端设备的功能也会更强大,比如智能汽车的计算能力、存储能力以及通信能力等都会有很大幅度的提升,因此,可以适用于如区块链等更多的应用场景。
由于6G通信网络可以包括多个分散网络,并不是仅局限于单个通信运营商内的特征,整个网络中可以包含大量来自不同运营商或制造商的设备,因此,各个通信设备之间无法进行有效的合作(例如接入设备(如手机终端)和接入节点(如基站、无人机平台)间无法相互信任并共同工作),因此,在6G通信网络中需要一个多方互信的机制和平台,用于解决通信网络中各个通信设备之间的互信问题。
其中,区块链技术可以将数据以区块(块)为单位产生和存储,并按照时间顺序连成链式(链)数据结构。区块链中的所有节点共同参与区块链系统的数据验证、存储和维护。新创建的区块需要得到区块链节点的共识确认,并向各节点广播实现全网同步,之后就不能更改或删除。区块链类型可以分为公有链、联盟链、私有链,链的结构上又可分为主链、主链+侧链、多条平行链等,不同类型和结构的区块链可以采用不同的共识算法、激励机制、智能合约的使用方法。因此,区块链可以灵活地处理各种类型的业务,适用于不同的场景。在区块链系统中,智能合约可以理解为合约参与者约定好的规则(如共同处理某种业务)的一种呈现形式,其中,包括了每个参与者同意的权利以及义务。智能合约也可以理解为是一个计算机化的交易协议,定义了控制世界状态中包含的业务对象生命周期的交易逻辑。
未来6G网络面临超大规模接入,并且在分散组网模式下,通信网络中不同通信设备之间需要快速实现互信,以保证整个通信网络的正常运行,提供正常的服务。因此,通信系统需要记录网络行为和运营数据,并且对每个通信设备操作数据进行审核等,以便之后可以追溯,提高整个通信系统的安全性。
由于区块链的不可篡改性与真实性,以及智能合约的便捷性,可以将区块链技术引入通信网络中,解决通信网络中各个通信设备(例如,基站、手机终端等)之间的互信问题。同 时,还能够对网络行为以及网络中的各种数据进行追溯与查询。
目前,一条区块链上存在多个不同的智能合约,且大多数智能合约较为复杂。这些智能合约是为了满足不同业务场景预先定义好的。由于多个复杂智能合约写在一条区块链上,因此,区块链中的每个节点的存储成本也会较高。当一项服务开始或发生变化时,区块链节点编写智能合约的内容及功能函数,发送到各区块链节点,各节点存储全量的合约并编译执行,因此,合约的传输会占用较多的资源,并且节点保存全量的合约会占用较多的存储资源,同时,由于是现发现执行的模式,用户的服务等待时间会较长。
在无线网络中,可用的资源是有限的,这些资源需要满足大规模的设备接入以及服务需求,并且,用户的服务等待时间也是影响服务质量(quality of service,QoS)的一个重要因素,因此,如何高效的管理智能合约,节约传输资源,降低节点存储成本以及减少用户的服务等待时间是技术人员关注的问题。
为了更好地理解本发明实施例,下面先对本发明实施例的网络架构进行描述。
请参阅图1,图1是本发明实施例公开的一种网络架构示意图。如图1所示,该网络架构可以包括通信设备和管理网元(CONET management)。通信设备可以包括一个或多个通信设备(图1中示意出了两个),如图1所示的通信设备10a(智能手机)、通信设备10b(笔记本电脑)。管理网元可以包括一个或多个管理网元(图1中示意出了两个)。其中,管理网元也可以称为管理设备。
如图1所示,通信设备10a、终端设备10b等与管理网元之间可以进行通信,以便于通信设备可以与管理网元之间进行数据的传输。
需要说明的是,图1所示的网络架构中不限于仅包括图中所示的通信设备以及管理网元。
应理解,图1所示的网络架构只是示例性说明,并不对其构成限定。
可以理解的是,通信设备可以为终端设备,其中,终端设备可以称之为用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等,是一种可以向用户提供数据连通性的设备。终端设备可以为手持终端、笔记本电脑、可穿戴设备(如智能手表、智能手环、计步器等),车载设备(如汽车、高铁等)、虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、智能家居设备(如冰箱、电视、空调、电表等)、智能机器人、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端,或智慧家庭(smart home)中的无线终端、飞行设备(如智能机器人、无人机等)或其他可以接入网络的设备。
通信设备还可以为无线接入网设备,无线接入网设备是部署在无线接入网中为终端设备提供无线通信功能的装置。其中,无线接入网(radio access network,RAN)设备可以包括各种形式的基站。例如,宏基站、微基站(也称为小站)、中继站、接入点(access point,AP)等。在采用不同的无线接入技术的系统中,无线接入网设备的名称可能会有所不同。例如,全球移动通信系统(global system for mobile communication,GSM)或码分多址(code division multiple access,CDMA)网络中的基站收发信台(base transceiver station,BTS),宽带码分多址(wideband code division multiple access,WCDMA)中的NB(NodeB),长期演进(long term evolution,LTE)中的eNB或eNodeB(evolutional NodeB)。无线接入网设备还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器。无线接入网设备还 可以是未来网络(如6G等)中的基站设备或者未来演进的公共陆地移动网(public land mobile network,PLMN)网络中的无线接入网设备。无线接入网设备还可以是可穿戴设备或车载设备。无线接入网设备还可以是传输接收节点(transmission and reception point,TRP)等。
通信设备还可以为通信网络中的其它网络参与者。例如,可以为各种网络单元,包括无人机以及智能汽车等。
管理网元可以为计算机设备,计算机设备包括但不限于核心网设备或服务器。本发明实施例提供的方法可以由计算机设备执行。
本发明实施例中,在现有的通信系统中新增加管理网元,也即是可信网络(confederation of multi players for management and control of future wireless networks,CONET)管理器(management)。管理网元可以对通信网络中的区块链、区块链成员(节点)、智能合约等进行管理。在CONET的整个区块链系统中,可以包括有一条主区块链(mainchain)和多条子区块链(subchain),其中,子区块链可以为主区块链的侧链。因此,根据实际的业务需要,可以通过给主链增加侧链的方式,扩展整个区块链系统的功能。例如,在现有的服务基础上需要为用户提供数据分析与管理的服务,可以通过增加侧链的方式进行实现。
在CONET中,每一条区块链都专用于处理一种类型的交易,也即是只提供一种类型的服务(如计费服务、话音服务等)。因此,整个通信系统的区块链架构较为简单,每一条区块链可以只部署有单个智能合约,便于进行管理。此外,本发明还提供了一种高效的智能合约管理方法。其中,每一条区块链可以有一个智能合约,用于提供一种特定的服务,该智能合约仅声明智能合约字段,将字段的值留空。本发明中的智能合约也可以称为根合约。并且,管理网元可以先将根合约预先编译,包括编译根合约中的功能函数等,并将编译结果(如机器码等)和根合约分发至区块链网络中的各个节点。之后,通信设备只需在每次用户服务申请时根据根合约填写智能合约内容的变化部分,以便获得相应的服务。同时,在CONET中每一条区块链上,仅有智能合约内容的变化部分会在各区块链节点通过共识后被存储在区块中,因此,能够降低区块链各节点的存储成本。
可见,本发明实施例中,管理网元可以预先下发根合约,也即是提前在各区块链节点部署根合约,之后,通信设备只需在每次用户服务申请时直接填充相应字段进行使用。因此,可以减少用户的服务等待时间。此外,管理网元还可以向各个区块链节点下发编译结果,以便各节点可以直接进行使用,避免了区块链网络中的每个节点独自编译智能合约,节省了各节点的编译成本。
以通信设备10a以及管理网元为例,简单介绍本申请中第一智能合约的部署以及第一智能合约使用时通信设备10a以及管理网元之间的交互流程。首先,在用户需要某种服务时,可以通过通信设备向管理网元发送服务请求(即业务请求),管理网元可以接收到通信设备10a发送的注册请求(该注册请求中包括有服务请求信息),服务请求信息用于指示用户需要的服务。管理网元接收到注册请求之后可以根据注册请求中包括的服务请求信息确定该服务请求对应的第一智能合约(该第一智能合约包括字段信息,字段信息包括变更信息,字段信息用于指示第一智能合约的字段),并且,管理网元可以编译第一智能合约,包括编译第一智能合约中的功能函数等,得到第一编译结果(如机器码),之后,管理网元可以向通信设备10a发送第一智能合约和第一编译结果,其中,管理网元发送的第一智能合约和第一编译结果可以经过无线资源传输至通信设备10a。当通信设备10a接收到管理网元发送的第一智能合约和第一编译结果之后,当用户需要获得该第一智能合约对应的服务时,可以使用该第 一智能合约,更新第一智能合约字段的值,并且可以直接执行管理网元发送的第一编译结果,运行第一智能合约,获得对应的服务。
在服务完成得到服务结果后,通信设备10a可以根据服务结果生成新的区块,以及可以根据第一智能合约内容变化部分生成新的区块;随后,通信设备10a可以根据节点标识,将上述新生成的区块发送给管理网元,以及可以发送给该第一智能合约所属的区块链中的各个区块链节点,由管理网元和/或该第一智能合约所属的区块链中的各个区块链节点对新生成的区块进行校验(即进行共识),并在完成校验后将上述新生成的区块添加至其存储的区块链中(也就是说,在共识通过后将服务结果、合约内容变化部分存储至区块链中)。其中,区块链网络中的每个节点,均可以具有与其对应的节点标识,而且区块链网络中的每个节点均可以存储有区块链网络中其他节点的节点标识,以便后续根据其他节点的节点标识,将生成的区块发送至区块链网络中的其他节点,使得区块链网络中全部节点上存储的数据均一致。
可以理解的是,上述通信设备向管理网元发送信息以及管理网元向通信设备发送信息可以经过无线资源(如时频资源)进行传输。
为了更好地理解本发明实施例,下面先对本发明实施例的区块链架构进行描述。
在CONET的整个区块链系统中,可以包括有一条主区块链(mainchain)和多条子区块链(subchain),其中,子区块链可以为主区块链的侧链。每一条子区块链可以提供一种类型的服务,解决相应地问题。并且,可以通过给主链增加侧链的方式,提供更多的服务,以便满足用户的各种实际需求。请参阅图2,图2是本发明实施例公开的一种区块链架构示意图。如图2所示,该区块链架构可以包括有一条主链和多条子链(侧链)。
其中,主链是整个区块链系统的基石,主要为整个区块链系统提供最基本的服务(如提供数据存储服务等),此外,还可以为不同的侧链提供支持(如帮助侧链实现共识)等。主链和侧链之间可以彼此协作,通过增加侧链可以增加主链的功能,以便可以适用于更多的场景。同时,CONET中每一条区块链可以只有一个根(Root)合约,用于提供一种特定的服务,以便管理网元进行管理,但可以通过一个智能合约调用另一个智能合约的方式,更加灵活的使用不同的智能合约,以便可以解决更加复杂的问题。
在该区块链架构中,管理网元(CONET management)负责整个区块链系统的管理。具体地,管理网元可以负责管理组内成员,包括接收通信设备的注册请求(注册请求中包括服务请求信息),同时,管理网元还可以根据服务请求信息将通信设备分配到对应的组,也即是将通信设备加入对应的区块链中,成为区块链的一个节点以及该组的一个成员。其中,每个组可以有一个组(group)标识(identity document,ID),该组ID可以标识一条区块链,每个通信设备也可以有一个ID,用于标识该通信设备。可以理解的是,CONET中可以包括有多条区块链,相应地,通信设备可以为多条区块链的节点,也即是通信设备可以属于多个组。管理网元还可以负责管理每个组的参数,如每个组的区块链类型、区块链结构以及根合约等。此外,管理网元还可以监听每个成员的情况(如在线还是离线状态),记录保存每个成员的行为(如发送的数据信息、接收的数据信息等)等。
如图2所示,CONET中可以包括有人工智能(artificial intelligence,AI)侧链(chain)、数据库(data base,DB)侧链、标识侧链以及数据分析管理(data analysismanagement,DAM)侧链等。其中,AI链可以提供AI模型的训练等服务,为用户提供训练的资源(如内存资源、计算资源等)。DB链可以为用户提供数据库的相关功能,如数据的存储、数据的读取以及数据的备份等。ID链可以负责CONET中每个组和组内成员的ID管理,包括每个组的成员的 增加、删除等。DAM链可以提供数据分析与管理等服务,例如,可以为用户提供大数据分析,并且可以根据分析结果为用户提出可行性建议等。可以理解的是,上述服务可以通过区块链中的智能合约来实现。应理解,图2所示的区块链架构只是示例性说明,并不对其构成限定。
请参见图3,图3是本发明实施例公开的一种智能合约部署示意图。如图3所示,管理网元接收到通信设备的注册请求后,可以根据注册请求中包括的服务请求信息确定合约模板,合约模板也即是第一智能合约(根合约);之后,管理网元可以编译第一智能合约得到编译结果;随后,管理网元可以将第一智能合约和编译结果发送至通信设备,以便用户在有服务申请时可以直接使用。如图3所示,通信设备可以为UE,也可以为接入网(accessnetwork,AN)中的设备,还可以为用户面功能(user plane function,UPF)中的设备。应理解,图3所示的智能合约部署只是示例性说明,并不对其构成限定。
基于上述网络架构,请参阅图4,图4是本发明实施例公开的一种合约管理方法的流程示意图。如图4所示,该合约管理方法可以包括以下步骤:
401.通信设备向管理网元发送注册请求,该注册请求包括服务请求信息。
相应地,管理网元可以接收来自通信设备的注册请求。
由于在CONET中每一条区块链可以只有一个根(Root)合约,用于提供一种特定的服务,用户可以通过通信设备向管理网元发送注册请求,获取到第一智能合约,进而可以通过第一智能合约获得相应的服务。因此,在用户想要获得某项服务时,也即是想要进行某项交易(如转账交易)时,可以向管理网元发送注册请求,以便获取第一智能合约。其中,用户可以在网络资源空闲的情况下通过通信设备向管理网元获取第一智能合约,避免与其他用户争抢无线资源,从而避免了降低网络的整体性能。
注册请求中可以包括有服务请求信息,服务请求信息可以为通信设备需要获得的具体的服务信息(业务),如数据备份业务、大数据分析业务以及流量统计业务等。可以理解的是,用户可以通过通信设备向管理网元发送多个不同的注册请求,用于请求不同的服务(业务)。
402.管理网元根据注册请求中的服务请求信息确定第一智能合约。
管理网元主要负责CONET中区块链的管理以及根合约的管理等,因此可以预先在管理网元本地配置并存储CONET中每一条区块链的根合约(也即是合约模板),以便为用户提供服务。并且管理网元保存有根合约和服务信息之间的映射关系,一个具体的服务对应一个具体的根合约。因此,管理网元在接收到来自通信设备的注册请求之后,可以先根据注册请求中包括的服务请求信息确定通信设备请求的具体服务,然后,可以从本地找到该服务对应的第一智能合约。第一智能合约可以包括字段信息,该字段信息可以包括变更信息。字段信息可以为第一智能合约的字段,变更信息可以为第一合约字段的值。也即是第一智能合约可以仅声明智能合约字段(即字段信息),将字段的值(即变更信息)留空。
请参见图5,图5是本发明实施例公开的一种第一智能合约示意图。图5所示的第一智能合约可以为数据库侧链的第一智能合约(根合约),提供数据库的相关功能,如数据的存储、数据的读取以及数据的备份等。如图5所示,第一智能合约可以包括字段信息,该字段信息可以包括变更信息,也即是第一智能合约可以包括一个或多个合约字段(即字段信息),如组标识(groupID)、服务类型(type)、服务时间(time)、无线资源(resource)、状态信息(status)、接入节点标识(AP)、用户设备标识(UE)、定时器(Timer)、合约版本(version)、签名(signature)等。其中,每个合约字段的值(即变更信息)为空(null),因此,在第一智能合约部署时可以减轻通信设备(区块链节点)的存储成本。此外,第一智 能合约还可以包括一个或多个功能函数,如查询函数(Query),其中,通过查询函数可以查询到CONET中其它区块链的根合约,便于用户在需要时可以查询调用其它区块链的根合约,以及更新函数(Update),为用户提供智能合约的更新接口,以便实现智能合约的更新。应理解,图5所示的第一智能合约只是示例性说明,并不对其构成限定。
由于通信设备具备的编译能力不同,部分通信设备可能不具备编译能力,部分通信设备的编译能力可能较弱,编译第一智能合约需要较高的时间成本。因此,管理网元还可以将第一智能进行编译,包括编译第一智能合约中的功能函数等,得到第一编译结果(如机器码等)。
此外,为了便于对CONET中每一条区块链进行管理,管理网元可以将每一条区块链作为一个组,每一条区块链中的节点作为该组内的一个成员。每一个组(区块链)可以通过组ID进行标识,该组ID可以为管理网元设置的数字编号,每个通信设备(组内成员)也可以有一个ID,用于标识该通信设备,通信设备的ID可以为国际移动用户标识(international mobile subscriber identity,IMSI)。因此,管理网元可以根据服务请求信息确定通信设备请求的具体服务,然后可以将通信设备分配到该服务对应的组(区块链),同时可以确定通信设备的组ID。
403.管理网元向通信设备发送第一智能合约。
管理网元根据注册请求中的服务请求信息确定第一智能合约之后,可以向通信设备发送第一智能合约。相应地,通信设备可以接收到来自管理网元的第一智能合约。其中,管理网元可以在无线资源空闲时,向通信设备发送第一智能合约,以提高无线资源的利用率。此外,还可以避免在可分配无线资源不足的情况下与其他用户争抢无线资源,从而避免了降低网络的整体性能,因此,可以提高用户的网络体验。并且,由于第一智能合约并不是完整的合约,其字段的值为空,因此可以避免智能合约的完整传输,从而可以节约传输资源。同时,由于传输的信息量降低,可以降低传输第一智能合约所需的传输时间。
当通信设备接收到来自管理网元的第一智能合约之后,当用户需要获得该第一智能合约对应的服务时,可以根据具体的服务(业务)通过通信设备更新第一智能合约的变更信息,并且可以对第一智能合约进行编译,包括编译根合约中的功能函数等,得到编译结果,之后通信设备可以执行编译结果,获得对应的服务。例如执行查询函数(Query)对应的编译结果,查询CONET中其它区块链的根合约,以便进行调用其它区块链的根合约。再例如,用户需要执行转账交易,假设转账业务对应的第一智能合约包括的字段信息有:转账发起者ID、转账接受者ID、转账时间以及转账金额等。通信设备可以根据第一智能合约发起实际的转账交易请求(如A向B转账10),更新第一智能合约的变更信息(即第一智能合约字段的值),执行第一智能合约的编译获得对应的服务。例如,A用户在发起转账交易请求(如A向B转账10)时,可以更新第一智能合约的变更信息(即填充/变更运行第一智能合约必要的字段的值),如转账发起者ID为A、转账接受者ID为B、转账时间为当前时间以及转账金额为10,然后可以根据字段的值去执行第一智能合约的编译结果(定义了转账业务的逻辑),执行A向B转账10。
当管理网元得到第一编译结果(如机器码等)之后,管理网元可以向通信设备发送第一编译结果。相应地,通信设备可以接收来自管理网元的第一编译结果。第一编译结果为第一智能合约对应的编译结果。之后,当用户需要获得该第一智能合约对应的服务时,通信设备可以直接使用管理网元发送的第一编译结果,运行智能合约,获得对应的服务,而不需要自身进行编译,可以节省第一智能合约的编译时间。
当管理网元确定通信设备的组ID之后,管理网元可以向通信设备发送该组ID。相应地,通信设备可以接收来自管理网元的组ID。通信设备接收到来自管理网元的组ID,表明该通信 设备加入了对应的组(区块链),之后可以使用部署在该区块链上的第一智能合约。
在通信设备接收到来自管理网元的第一智能合约之后,通信设备还可以将第一智能合约以键值对的方式进行保存,确定第一智能合约对应的键值对,得到键值对信息。例如,如图5所示的第一智能合约(根合约)可以保存为{groupID:null,type:null,time:null,resource:null,status:null,AP:null,UE:null,Timer:null,version:null,signature:null},还可以以组ID作为键或者生成一个特定的键,整个第一智能合约的内容作为对应的值进行保存,之后可以根据键值获得对应的值(第一智能合约的内容)。通信设备可以通过键值对的方式将第一智能合约完整保存下来,并且键值对信息(即保存第一智能合约的键和对应的值)包括该第一智能合约的信息,也即是该键值对信息包括完整的第一智能合约内容。此外,由于保存的第一智能合约并不是完整的合约,其字段的值为空,因此可以节约通信设备的存储资源。在通信设备以键值对的方式保存第一智能合约之后,可以向管理网元发送该键值对信息,也即是向管理网元发送保存第一智能合约的键值对信息。相应地,管理网元可以接收到来自通信设备的键值对信息。此外,通信设备还可以将保存第一智能合约的键值对信息发送给该第一智能合约所属区块链的其它节点。相应地,该第一智能合约所属区块链的其它节点可以接收到来自通信设备的键值对信息。
管理网元接收到来自通信设备的键值对信息之后,可以对该键值对信息包括的第一智能合约的信息进行检验(即对第一智能合约的内容进行共识)。在管理网元共识通过后,通信设备只需在每次用户服务申请时(交易产生时)根据第一智能合约填写合约内容的变化部分即可以使用。此外,当该第一智能合约所属区块链的其它节点接收到来自通信设备的键值对信息之后,也可以对该键值对信息包括的第一智能合约的信息进行检验。
在通信设备接收到来自管理网元的第一智能合约,并且在用户需要的服务更新或者发生变化的情况下,用户可以通过通信设备向管理网元发送更新请求。相应地,管理网元可以接收到来自通信设备的更新请求。更新请求包括更新信息和第一智能合约的信息。更新信息可以为第一智能合约变化的信息,如第一智能合约的某一个字段的值变化信息。第一智能合约的信息可以为组ID,也可以为第一智能合约ID或名称。可以理解的是,CONET中包括的一个或多个第一智能合约(根合约),可以用ID或名称来进行区分,也即是ID和名称与第一智能合约之间具有一一对应关系,而用户发起的更新请求中,也可以携带智能合约的标识号或名称,以此指定CONET中的某一个具体的智能合约。
例如,用户在需要数据备份服务时,可以通过更新请求将对应的第一智能合约的空白字段进行填充,改变第一智能合约的字段的值,如图6所示。
请参见图6,图6是本发明实施例公开的一种第一智能合约使用的示意图。如图6所示,通信设备可以接收到用户的服务请求,也即是交易(transaction)1,该服务请求可以是数据备份服务请求(用于将本地数据备份到云数据库中),transaction 1中可以包括AP标识、UE标识、服务时间、状态信息以及定时器等。通信设备根据transaction 1的内容可以对如图5所示的第一智能合约进行填充,得到缓存合约(CacheContract)。例如,提供数据备份服务的组的ID可以为1,数据备份服务对应的服务类型可以为A,数据备份的时间(即服务时间)可以为5分钟(min),数据备份的无线资源(如时频资源)可以为资源块(block)c,UE的状态可以为激活(active)状态,UE的标识可以为1,AP的标识可以为2,定时器的时间可以为24小时(hour),第一智能合约的版本可以为版本3,用户签名可以为xyz。使用填充过后的第一智能合约可以用于UE将本地需要备份的信息上传到云数据库,且24小时定时上传一次。通信设备填充第一智能合约,可以向管理网元发送更新请求,更新请求包括第一 智能合约的信息以及更新信息(第一智能合约字段的值的变化)。相应地,管理网元可以接收到来自通信设备的更新请求。
用户还可以在需要的数据备份服务发生变化时(即新的交易产生时),通过通信设备向管理网元发送更新请求。例如,用户需要将数据备份服务的定时器修改为每48小时备份一次,可以通过通信设备向管理网元发送更新请求,更新请求中包括的更新信息可以为(24hour→48hour)。
在管理网元接收到来自通信设备的更新请求之后,管理网元可以根据第一智能合约的信息确定当前需要更新的第一智能合约,并根据第一智能合约的更新信息检查第一智能合约的更新部分,更新第一智能合约的变更信息。之后,管理网元可以编译更新之后的第一智能合约,得到第二编译结果。
管理网元得到第二编译结果之后,可以向通信设备发送第二编译结果。相应地,通信设备可以接收到来自管理网元的第二编译结果。之后,通信设备可以根据第一智能合约的更新信息更新以键值对方式保存的第一智能合约。例如,通信设备可以将上述以键值对方式保存的第一智能合约的键值对信息更新为{groupID:1,type:A,time:5min,resource:blockc,status:active,AP:2,UE:1,Timer:48hour,version:3,signature:xyz}。并且,通信设备可以直接执行第二编译结果,获得之前申请的服务(即数据备份业务)。通信设备还可以根据数据备份服务结果生成新的区块,通过共识后将该区块添加至所属区块链中。在通信设备更新以键值对方式保存的第一智能合约,得到更新的键值对信息之后,可以将更新的键值对信息发送给管理网元进行检验(即对更新的第一智能合约的内容进行共识),以及可以发送给该第一智能合约所属区块链的其它节点进行检验。共识通过后,通信设备可以将第一智能合约变更信息打包成区块,并将该区块添加至所属区块链中。此外,由于可以只将第一智能合约的变更信息通过共识进行上链,保存在区块链中,可以降低区块链各节点的存储成本。
管理网元可以预先下发第一智能合约,也即是提前在各区块链节点部署第一智能合约,之后,通信设备只需在每次用户服务申请时直接填充相应字段进行使用。因此,可以减少用户的服务等待时间。此外,管理网元还可以向各个区块链节点下发第一智能合约对应的编译结果,以便各节点可以直接进行使用,避免了区块链网络中的每个节点独自编译智能合约,节省了各节点的编译成本。因此,有助于区块链服务的大规模部署。
基于上述网络架构,请参阅图7,图7是本发明实施例公开的一种合约管理装置的结构示意图。其中,该合约管理装置可以为管理网元,也可以为管理网元中的模块。如图7所示,该合约管理装置可以包括:
接收单元701,用于接收来自通信设备的注册请求,该注册请求包括服务请求信息;
确定单元702,用于根据该服务请求信息确定第一智能合约;
发送单元703,用于向该通信设备发送该第一智能合约。
在一个实施例中,该合约管理装置还可以包括:
第一编译单元704,用于对该第一智能合约进行编译,得到第一编译结果;
该发送单元703,具体用于向该通信设备发送该第一智能合约和该第一编译结果。
在一个实施例中,该确定单元702,还用于根据该服务请求信息确定组标识ID,该组ID用于标识第一区块链,该通信设备为该第一区块链的节点;
该发送单元703,还用于向该通信设备发送该组ID。
在一个实施例中,该接收单元701,还用于接收来自该通信设备的键值对信息,该键值 对信息为该第一智能合约对应的键值对的信息;
该合约管理装置还可以包括:
共识单元705,用于对该键值对信息进行共识。
在一个实施例中,该第一智能合约包括字段信息,该字段信息包括变更信息,该接收单元,还用于接收来自该通信设备的更新请求,该更新请求包括更新信息和该第一智能合约的信息,该更新信息用于更新该变更信息;
该合约管理装置还可以包括:
第二编译单元706,用于根据该更新信息对该第一智能合约进行编译,得到第二编译结果;
该发送单元703,还用于向该通信设备发送该第二编译结果。
第一编译单元和第二编译单元可以统称为编译单元。
有关上述接收单元701、确定单元702、发送单元703、第一编译单元704、共识单元705以及第二编译单元706更详细的描述可以直接参考上述图4所示的方法实施例中管理网元的相关描述直接得到,这里不加赘述。
基于上述网络架构,请参阅图8,图8是本发明实施例公开的另一种合约管理装置的结构示意图。其中,该合约管理装置可以为通信设备,也可以为通信设备中的模块。如图8所示,该合约管理装置可以包括:
发送单元801,用于通信设备向管理网元发送注册请求,该注册请求包括服务请求信息;
接收单元802,用于接收来自该管理网元的第一智能合约。
在一个实施例中,该接收单元802接收来自该管理网元的第一智能合约包括:
接收来自该管理网元的第一智能合约和第一编译结果。
在一个实施例中,该接收单元802还用于:
接收来自该管理网元的组标识ID,该组ID用于标识第一区块链,该通信设备为该第一区块链的节点。
在一个实施例中,该合约管理装置还可以包括:
确定单元803,用于确定该第一智能合约对应的键值对,得到键值对信息;
该发送单元801还用于向该管理网元发送该键值对信息。
在一个实施例中,该第一智能合约包括字段信息,该字段信息包括变更信息,该发送单元801还用于:
向该管理网元发送更新请求,该更新请求包括更新信息和该第一智能合约的信息,该更新信息用于更新该变更信息;
该接收单元802还用于接收来自该管理网元的第二编译结果。
有关上述发送单元801、接收单元802以及确定单元803更详细的描述可以直接参考上述图4所示的方法实施例中通信设备的相关描述直接得到,这里不加赘述。
基于上述网络架构,请参阅图9,图9是本发明实施例公开的又一种合约管理装置的结构示意图。如图9所示,该合约管理装置可以包括处理器901、存储器902、收发器903和总线904。存储器902可以是独立存在的,可以通过总线904与处理器901相连接。存储器902也可以和处理器901集成在一起。其中,总线904用于实现这些组件之间的连接。在一种情况下,如图9所示,收发器903可以包括发射机9031、接收机9032和天线9033。在另一种情况下,收发器903可以包括发射器(即输出接口)和接收器(即输入接口)。发射器可以包括发射机和天线,接收器可以包括接收机和天线。
在一个实施例中,该合约管理装置可以为管理网元或者管理网元内的模块(例如,芯片),存储器902中存储的计算机程序指令被执行时,该处理器901用于控制发送单元703和接收单元701执行上述实施例中执行的操作,该处理器还用于控制确定单元702、第一编译单元704、共识单元705以及第二编译单元706执行上述实施例中执行的操作,收发器903用于执行上述实施例中发送单元703和接收单元701执行的操作。上述管理网元或者管理网元内的模块还可以用于执行上述图4方法实施例中管理网元执行的方法,在此不再赘述。
在一个实施例中,该合约管理装置可以为通信设备或者通信设备内的模块(例如,芯片),存储器902中存储的计算机程序指令被执行时,该处理器901用于控制发送单元801和接收单元802执行上述实施例中执行的操作,该处理器还用于控制确定单元803执行上述实施例中执行的操作,收发器903用于执行上述实施例中发送单元801和接收单元802执行的操作。上述通信设备或者通信设备内的模块还可以用于执行上述图4方法实施例中通信设备执行的方法,在此不再赘述。
基于上述网络架构,请参阅图10,图10是本发明实施例公开的又一种合约管理装置的结构示意图。如图10所示,该合约管理装置可以包括输入接口1001、逻辑电路1002和输出接口1003。输入接口1001与输出接口1003通过逻辑电路1002相连接。其中,输入接口1001用于接收来自其它合约管理装置的信息,输出接口1003用于向其它合约管理装置输出、调度或者发送信息。逻辑电路1002用于执行除输入接口1001与输出接口1003的操作之外的操作,例如实现上述实施例中处理器901实现的功能。其中,该合约管理装置可以为管理网元或者管理网元内的模块,也可以为通信设备或者通信设备内的模块。其中,有关输入接口1001、逻辑电路1002和输出接口1003更详细的描述可以直接参考上述方法实施例中管理网元或通信设备的相关描述直接得到,这里不加赘述。
基于上述网络架构,请参阅图11,图11是本发明实施例公开的一种合约管理系统的结构示意图。如图11所示,该合约管理系统可以包括管理网元1101和通信设备1102。其中,详细描述可以参考图4所示的合约管理方法。
本发明实施例还公开一种计算机可读存储介质,其上存储有指令,该指令被执行时执行上述方法实施例中的方法。
本发明实施例还公开一种包括指令的计算机程序产品,该指令被执行时执行上述方法实施例中的方法。
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。
Claims (26)
- 一种合约管理方法,其特征在于,包括:管理网元接收来自通信设备的注册请求,所述注册请求包括服务请求信息;根据所述服务请求信息确定第一智能合约;向所述通信设备发送所述第一智能合约。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:对所述第一智能合约进行编译,得到第一编译结果;所述向所述通信设备发送所述第一智能合约包括:向所述通信设备发送所述第一智能合约和所述第一编译结果。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:根据所述服务请求信息确定组标识ID,所述组ID用于标识第一区块链,所述通信设备为所述第一区块链的节点;向所述通信设备发送所述组ID。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:接收来自所述通信设备的键值对信息,所述键值对信息为所述第一智能合约对应的键值对的信息;对所述键值对信息进行共识。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述第一智能合约包括字段信息,所述字段信息包括变更信息,所述方法还包括:接收来自所述通信设备的更新请求,所述更新请求包括更新信息和所述第一智能合约的信息,所述更新信息用于更新所述变更信息;根据所述更新信息对所述第一智能合约进行编译,得到第二编译结果;向所述通信设备发送所述第二编译结果。
- 一种合约管理方法,其特征在于,包括:通信设备向管理网元发送注册请求,所述注册请求包括服务请求信息;接收来自所述管理网元的第一智能合约。
- 根据权利要求6所述的方法,其特征在于,所述接收来自所述管理网元的第一智能合约包括:接收来自所述管理网元的第一智能合约和第一编译结果。
- 根据权利要求6或7任一项所述的方法,其特征在于,所述方法还包括:接收来自所述管理网元的组标识ID,所述组ID用于标识第一区块链,所述通信设备为所述第一区块链的节点。
- 根据权利要求6-8任一项所述的方法,其特征在于,所述方法还包括:确定所述第一智能合约对应的键值对,得到键值对信息;向所述管理网元发送所述键值对信息。
- 根据权利要求6-9任一项所述的方法,其特征在于,所述第一智能合约包括字段信息,所述字段信息包括变更信息,所述方法还包括:向所述管理网元发送更新请求,所述更新请求包括更新信息和所述第一智能合约的信息,所述更新信息用于更新所述变更信息;接收来自所述管理网元的第二编译结果。
- 一种合约管理装置,其特征在于,包括:接收单元,用于接收来自通信设备的注册请求,所述注册请求包括服务请求信息;确定单元,用于根据所述服务请求信息确定第一智能合约;发送单元,用于向所述通信设备发送所述第一智能合约。
- 根据权利要求11所述的装置,其特征在于,所述装置还包括:第一编译单元,用于对所述第一智能合约进行编译,得到第一编译结果;所述发送单元,具体用于向所述通信设备发送所述第一智能合约和所述第一编译结果。
- 根据权利要求11或12所述的装置,其特征在于,所述确定单元,还用于根据所述服务请求信息确定组标识ID,所述组ID用于标识第一区块链,所述通信设备为所述第一区块链的节点;所述发送单元,还用于向所述通信设备发送所述组ID。
- 根据权利要求11-13任一项所述的装置,其特征在于,所述接收单元,还用于接收来自所述通信设备的键值对信息,所述键值对信息为所述第一智能合约对应的键值对的信息;所述装置还包括:共识单元,用于对所述键值对信息进行共识。
- 根据权利要求11-14任一项所述的装置,其特征在于,所述第一智能合约包括字段信息,所述字段信息包括变更信息;所述接收单元,还用于接收来自所述通信设备的更新请求,所述更新请求包括更新信息和所述第一智能合约的信息,所述更新信息用于更新所述变更信息;所述装置还包括:第二编译单元,用于根据所述更新信息对所述第一智能合约进行编译,得到第二编译结果;所述发送单元,还用于向所述通信设备发送所述第二编译结果。
- 一种合约管理装置,其特征在于,包括:发送单元,用于向管理网元发送注册请求,所述注册请求包括服务请求信息;接收单元,用于接收来自所述管理网元的第一智能合约。
- 根据权利要求16所述的装置,其特征在于,所述接收单元,具体用于接收来自所述管理网元的第一智能合约和第一编译结果。
- 根据权利要求16或17任一项所述的装置,其特征在于,所述接收单元,还用于接收来自所述管理网元的组标识ID,所述组ID用于标识第一区块链,所述通信设备为所述第一区块链的节点。
- 根据权利要求16-18任一项所述的装置,其特征在于,所述装置还包括:确定单元,用于确定所述第一智能合约对应的键值对,得到键值对信息;所述发送单元,还用于向所述管理网元发送所述键值对信息。
- 根据权利要求16-19任一项所述的装置,其特征在于,所述第一智能合约包括字段信息,所述字段信息包括变更信息;所述发送单元,还用于向所述管理网元发送更新请求,所述更新请求包括更新信息和所述第一智能合约的信息,所述更新信息用于更新所述变更信息;所述接收单元,还用于接收来自所述管理网元的第二编译结果。
- 一种合约管理装置,其特征在于,包括处理器、存储器和收发器,所述收发器用于接收来自所述合约管理装置之外的其它合约管理装置的信息,以及向所述合约管理装置之外的其它合约管理装置输出信息,所述处理器调用所述存储器中存储的计算机程序实现如权利要求1-5任一项所述的方法。
- 一种合约管理装置,其特征在于,包括处理器、存储器和收发器,所述收发器用于接收来自所述合约管理装置之外的其它合约管理装置的信息,以及向所述合约管理装置之外的其它合约管理装置输出信息,所述处理器调用所述存储器中存储的计算机程序实现如权利要求6-10任一项所述的方法。
- 一种合约管理系统,其特征在于,包括:如权利要求21所述的装置以及如权利要求22所述的装置。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或计算机指令,当所述计算机程序或计算机指令被运行时,实现如权利要求1-10任一项所述的方法。
- 一种芯片,其特征在于,包括处理器,用于执行存储器中存储的程序,当程序被执行时,使得所述芯片执行如权利要求1-10任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码被运行时,实现如权利要求1-10任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111230873.8A CN116016095A (zh) | 2021-10-22 | 2021-10-22 | 一种合约管理方法、装置及系统 |
CN202111230873.8 | 2021-10-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023066046A1 true WO2023066046A1 (zh) | 2023-04-27 |
Family
ID=86021692
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/124092 WO2023066046A1 (zh) | 2021-10-22 | 2022-10-09 | 一种合约管理方法、装置及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116016095A (zh) |
WO (1) | WO2023066046A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117979281B (zh) * | 2024-04-02 | 2024-05-28 | 北京大学 | 面向无人机的区块链侧链创建方法和交互方法 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190147532A1 (en) * | 2017-11-13 | 2019-05-16 | Bank Of America Corporation | Crypto - machine learning enabled blockchain based profile pricer |
US20190197532A1 (en) * | 2017-12-27 | 2019-06-27 | International Business Machines Corporation | Private resource discovery and subgroup formation on a blockchain |
CN112488706A (zh) * | 2020-11-23 | 2021-03-12 | 国网河南省电力公司信息通信公司 | 一种基于区块链的云服务管理方法及系统 |
-
2021
- 2021-10-22 CN CN202111230873.8A patent/CN116016095A/zh active Pending
-
2022
- 2022-10-09 WO PCT/CN2022/124092 patent/WO2023066046A1/zh unknown
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190147532A1 (en) * | 2017-11-13 | 2019-05-16 | Bank Of America Corporation | Crypto - machine learning enabled blockchain based profile pricer |
US20190197532A1 (en) * | 2017-12-27 | 2019-06-27 | International Business Machines Corporation | Private resource discovery and subgroup formation on a blockchain |
CN112488706A (zh) * | 2020-11-23 | 2021-03-12 | 国网河南省电力公司信息通信公司 | 一种基于区块链的云服务管理方法及系统 |
Non-Patent Citations (1)
Title |
---|
SPREADTRUM COMMUNICATIONS: "New WID on Study on Blockchain for mobile communication system", 3GPP TSG-SA WG1 MEETING #90, S1-202054, 8 May 2020 (2020-05-08), XP051882309 * |
Also Published As
Publication number | Publication date |
---|---|
CN116016095A (zh) | 2023-04-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230209390A1 (en) | Intelligent Radio Access Network | |
US11297601B2 (en) | Resource allocation method and orchestrator for network slicing in the wireless access network | |
CN111917727A (zh) | 基于5G和WiFi的电力物联网安全智能图传系统及方法 | |
JP2021510274A (ja) | デフォルトのサービス品質(QoS)の制御方法および装置 | |
US20220322254A1 (en) | Methods and Apparatuses for Logical TSN Bridge | |
CN111641989B (zh) | 协议数据单元会话建立方法及相关装置 | |
CN108833577B (zh) | 基于边缘计算的数据通信优化系统及方法 | |
WO2023066046A1 (zh) | 一种合约管理方法、装置及系统 | |
Cheng et al. | 5G in manufacturing: a literature review and future research | |
CN103582156A (zh) | 建立连接的方法和装置 | |
CN111770122A (zh) | 服务通信代理scp注册方法、服务调用方法及网络设备 | |
CN102833092A (zh) | 云节点管理方法及系统、中心服务器 | |
CN108833167B (zh) | 一种基于边缘计算的通信优化系统及方法 | |
CN109302456A (zh) | 一种基于空中下载ota技术的文件传输方法及装置 | |
CN111447077B (zh) | 一种网元配置方法、装置和存储介质 | |
CN111131520B (zh) | 一种基于边缘云环境的虚拟can口多路复用技术的实现方法 | |
CN105656716A (zh) | 一种协议模块性能测试方法及系统 | |
CN113448744A (zh) | 一种应用程序选择方法及装置 | |
WO2024050838A1 (zh) | 一种通信方法及装置 | |
CN108809700A (zh) | 一种自组网终端通讯协议模型的验证方法及装置 | |
US20240089930A1 (en) | Configuration method, allocation method, apparatus, device, and storage medium | |
US20240163692A1 (en) | Terminal protocol function update method and apparatus | |
WO2023169122A1 (zh) | 通信方法和装置 | |
WO2024045932A1 (zh) | 一种资源调度方法、装置、系统、存储介质及电子系统 | |
CN114980130B (zh) | 基于区块链共识的频谱共享方法、装置、电子设备及介质 |
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: 22882656 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |