CN113766034A - Service processing method and device based on block chain - Google Patents

Service processing method and device based on block chain Download PDF

Info

Publication number
CN113766034A
CN113766034A CN202111080373.0A CN202111080373A CN113766034A CN 113766034 A CN113766034 A CN 113766034A CN 202111080373 A CN202111080373 A CN 202111080373A CN 113766034 A CN113766034 A CN 113766034A
Authority
CN
China
Prior art keywords
uplink
service
interface
data
contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111080373.0A
Other languages
Chinese (zh)
Other versions
CN113766034B (en
Inventor
李圣权
黄红叶
毛云青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCI China Co Ltd
Original Assignee
CCI China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCI China Co Ltd filed Critical CCI China Co Ltd
Priority to CN202111080373.0A priority Critical patent/CN113766034B/en
Publication of CN113766034A publication Critical patent/CN113766034A/en
Application granted granted Critical
Publication of CN113766034B publication Critical patent/CN113766034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Abstract

The application provides a service processing method and a device based on a block chain, wherein a cochain gateway is internally provided with a deposit certificate intelligent contract, and the method comprises the following steps: acquiring service definition content of uplink service recorded by a service system, distributing an identity for the service system and generating a corresponding account address and an access key; deploying the intelligent contract for the uplink service and generating a contract address, wherein the intelligent contract for the uplink service automatically acquires the service definition content and acquires uplink data required to be stored from the service definition content to construct parameter information of an online API (application programming interface); and creating an online API (application programming interface) based on the parameter information, calling the online API to encrypt the uplink data to be stored through the access key and then storing the certified uplink. According to the method and the device, the development work of data chaining certificate storage and data inquiry on the chain based on the block chain platform can be completed by the chain application development side under the condition that the block chain SDK is not accessed and the block chain knowledge is not solved.

Description

Service processing method and device based on block chain
Technical Field
The present invention relates to the field of block chain data uplink, and in particular, to a service processing method and apparatus based on a block chain.
Background
With the development of the blockchain technology, more and more application systems access to the blockchain platform, and use the blockchain technology to store and trace data. In the process of accessing the blockchain, each application system needs to use the SDK provided by the blockchain platform to perform blockchain access development, data uplink development, data query development and intelligent contract development.
Most of the current data verification functions based on the blockchain are based on a specific blockchain SDK and a specific intelligent contract language, so that for an application system to be accessed to a blockchain platform, developers are required to grasp knowledge related to the blockchain platform, such as: terms related to blockchains, consensus mechanisms, encryption mechanisms, intelligent contract execution engines, storage models, and the like; knowledge about access of the blockchain platform is known, such as: the block chain platform comprises an SDK method, an intelligent contract language, an intelligent contract writing rule and the like. This puts higher technical level requirements on developers and also increases the technical difficulty and access cost of the application system accessing the blockchain platform.
Therefore, the present invention is urgently needed to provide a service processing method and apparatus based on a blockchain, which can solve the problems of difficult technical access of blockchains and high access cost caused by the requirement of developers on the technical access of blockchains that need to master knowledge related to a blockchain platform.
Disclosure of Invention
The embodiment of the application provides a service processing method and device based on a block chain, aiming at the problems of high difficulty and high access cost of block chain access caused by the fact that the prior technical requirement developers for accessing the block chain need to master the knowledge related to a block chain platform, and the development work of data uplink chain evidence storage and data query on a chain based on the block chain platform can be completed by a chain application development side under the conditions that the block chain SDK is not accessed and the block chain knowledge is not known.
In a first aspect, an embodiment of the present application provides a service processing method based on a block chain, which is applied to an uplink gateway, where the uplink gateway has a memory-certificate intelligent contract, and the method includes: acquiring service definition content of uplink service recorded by a service system, distributing an identity for the service system and generating a corresponding account address and an access key; deploying the intelligent contract for the uplink service and generating a contract address, wherein the intelligent contract for the uplink service automatically acquires the service definition content and acquires uplink data required to be stored from the service definition content to construct parameter information of an online API (application programming interface);
and creating an online API (application programming interface) based on the parameter information, calling the online API to encrypt the uplink data to be stored through the access key and then storing the certified uplink.
In some of these embodiments, the intelligent contract for deposit has internally defined a contract sending address, a contract receiving address, contract deposit content, a cochain transaction hash, and a transaction time.
In some embodiments, the online API interface is generated from a built-in interface document template, the online API interface comprising: calling an address, a calling mode, a calling parameter and a calling result return parameter, and calling and developing the online API according to the online interface document.
In some embodiments, the online API interface includes an uplink interface, and the uplink interface is configured to store the uplink data to be stored in a certified uplink after being encrypted by the access key.
In some embodiments, the uplink interface includes a synchronous uplink interface and an asynchronous uplink interface, wherein the synchronous uplink interface is used for real-time uplink and returns a uplink transaction hash corresponding to the uplink service, and the asynchronous uplink interface returns a numerical number.
In some of these embodiments, the online API interface further comprises an uplink data query interface and a transaction hash query interface; wherein, the uplink data inquiry interface is used for acquiring the uplink data according to the input uplink transaction hash; the transaction hash inquiry interface is used for acquiring the uplink transaction hash corresponding to the uplink service according to the input data number.
In some embodiments, the parameter information includes an interface address, an identity, uplink data, and a return parameter.
In some embodiments, the service definition content includes a service name, a service description, and a service uplink ciphering type, wherein the access key is determined by the service uplink ciphering type
In a second aspect, an embodiment of the present application provides a service processing apparatus based on a block chain, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the service definition content of the uplink service recorded by a service system, distributing an identity for the service system and generating a corresponding account address and an access key; the configuration module is used for deploying the accreditation intelligent contract for the uplink service and generating a contract address, wherein the accreditation intelligent contract automatically acquires the service definition content and acquires uplink data required to be stored from the service definition content to construct parameter information of an online API (application program interface); and the uplink module is used for creating an online API (application programming interface) based on the parameter information, calling the online API to encrypt the uplink data to be stored by the access key and then storing and certifying uplink.
In a third aspect, an embodiment of the present application provides an electronic apparatus, which includes a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the service processing method based on a blockchain according to any one of the first aspect.
In a fourth aspect, the present application provides a computer program product, which includes a software code portion, and when the computer program product is run on a computer, the software code portion is configured to execute the service processing method based on the blockchain according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a readable storage medium, in which a computer program is stored, where the computer program includes a program code for controlling a process to execute a process, where the process includes the method for processing a service based on a block chain according to any one of the first aspect.
The main contributions and innovation points of the embodiment of the application are as follows:
according to the method and the device, the intelligent contract for storing the certificate is built in the uplink gateway, the intelligent contract for storing the certificate can automatically acquire uplink data required to be stored from service definition contents input into the uplink gateway from a service system, the uplink data serve as body parameters for constructing the online API, so that the online API is constructed, the SDK does not need to be accessed to a chain application development side, the service definition contents only need to be input into the uplink gateway according to a service template required to be read by the intelligent contract for storing the certificate, and data uplink and subsequent data inquiry are completed by calling the online API. The method and the device greatly reduce the development difficulty of the block chain chaining technology and improve the efficiency of accessing the data to the block chain node.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a service processing method based on a block chain according to an embodiment of the present application;
fig. 2 is a flowchart of an uplink gateway system application scenario according to an embodiment of the present application;
FIG. 3 is a flowchart of invoking an uplink interface according to an embodiment of the present application;
fig. 4 is a block diagram of a service processing apparatus based on a block chain according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
Example one
A service processing method based on a block chain is applied to an uplink gateway, where the uplink gateway has a built-in intelligent contract for evidence storage, and with reference to fig. 1, the method includes:
step S101, acquiring the business definition content of the uplink business recorded by the business system, distributing the identity for the business system and generating the corresponding account address and the access key.
In this step, after the service system performs service definition in the uplink gateway, the uplink gateway does not allocate an account address and an access key to the service system after acquiring the service definition content, where the account address is used to indicate an object that needs to perform uplink service, that is, an object storing uplink data can be obtained by querying the account address in the uplink gateway; the access key refers to a private key that encrypts uplink data. In the step, the service definition template is created in the uplink gateway, and the service definition content is input, so that the subsequent deposit-evidence intelligent contract can automatically acquire the required data in the service definition content.
Step S102, the intelligent contract for upper chain service is deployed and a contract address is generated, and the intelligent contract for upper chain service automatically acquires the service definition content and acquires upper chain data required to be stored from the service definition content to construct parameter information of an online API.
In this step, the uplink gateway is provided with a built-in evidence-storing intelligent contract and can automatically deploy uplink data for the service system. Specifically, contract addresses, account addresses, access keys and the like related to the certified intelligent contracts are built-in parameters of the uplink system. When the service system wants to store data in a chain node of the block chain, the block chain allocates an account address for the service system, and a storage location is needed when the data is stored in the uplink, wherein the storage location refers to a contract address. The intelligent contract can automatically obtain the uplink data required to be stored from the service definition content, and the uplink data is used as the body parameter for constructing the online API interface, wherein the body parameter of the interface is the data which is recorded during the service system definition and is used for telling the uplink gateway to store the uplink data on the link point.
The difference of this step is that the intelligent contract for storing evidence is built in the uplink gateway, when the service system needs to initiate uplink service, the chain application development side does not need to access the SDK, and only needs to input the service definition content into the uplink gateway according to the service template that needs to be read by the intelligent contract for storing evidence. The on-line API interface built by the uplink gateway according to the retrieved service definition content is related to the rules of the interface itself, such as the HTTP protocol, which can be invoked using a variety of development languages. Compared with the block chain technology in which the block chain SDK is needed to be used for block chain SDK initialization and evidence-storing intelligent contract learning, the block chain SDK initialization and block chain SDK initialization are directly shielded in the step, and the block chain SDK integration and evidence-storing intelligent contract learning method greatly reduces the access difficulty.
Step S103, an online API interface is established based on the parameter information, and the online API interface is called to encrypt the uplink data to be stored through the access key and then store the chain.
In this step, configuring parameters of the online API interface includes: the interface address, interface header parameter, interface body parameter and return parameter, wherein the interface address, interface header parameter are fixed, a plurality of interfaces can be common, the interface body parameter is recorded by the service system when the service is defined, the interface body parameter includes the uplink data required to be stored, and is used for telling the uplink gateway the content to be uplink of the uplink service.
As shown in fig. 2, in the technical solution of the present invention, a uplink gateway system shields block link access development, data uplink development, data query development, intelligent contract development, and the like involved in a data uplink process, converts these development processes into general HTTP interface development, and a link application end only needs to perform configuration of service data on the uplink gateway to complete access to a block link, and completes data uplink and subsequent data query by calling an interface.
For the above steps S101 to S103, in the embodiment of the present application, a certificate storing intelligent contract is built in the uplink gateway, when acquiring the uplink service, the certificate storing intelligent contract is automatically configured for the service, and parameter information required by the interface is acquired to develop the online API interface, and the certificate storing uplink of the data to be stored is completed by calling the interface, so that the difficulty of block link entry is reduced.
In other embodiments, the intelligent contract for deposit evidence internally defines a contract sending address, a contract receiving address, contract deposit evidence content, a chain transaction hash, and a transaction time.
In this embodiment, the parameter information related to the intelligent contract for storing certificates is embedded in the uplink gateway, and the sending address, the receiving address, the contract storing certificate content, the uplink transaction hash and the transaction time of the contract can be automatically obtained by calling the intelligent contract for storing certificates, that is, the uplink gateway automatically processes the data to be stored in the data uplink process. And the chaining gateway acquires the service definition content recorded by the chain application end, automatically creates an interface for chaining data, and the chain application end can complete the service chaining process only by calling the corresponding online API interface.
In some of these embodiments, the service definition content includes a service name, a service description, and a service uplink ciphering type, wherein the access key is determined by the service uplink ciphering type.
In this embodiment, the encryption type may be determined according to the blockchain platform, for example, the encryption type is unencrypted, country secret 2 encryption, country secret 3 encryption, country secret 4 encryption, and the like. And the uplink gateway generates an access key according to the service uplink encryption type selected by the service system.
In some embodiments, the method further comprises generating an online interface document for the online API interface from a built-in interface document template, the online interface document comprising: calling an address, a calling mode, a calling parameter and a calling result return parameter, and calling and developing the online API according to the online interface document.
In this embodiment, the HTTP call parameter includes an identity parameter, a service data field, and a field data type, where the identity refers to an apid, appexecute, and a service number uuid automatically allocated to an uplink service after the uplink gateway enables service definition content, and the identity is used for authentication verification when calling an online API interface. And during verification, the interfaces appid, appsecret, the service number uuid are extracted and compared with the stored information for verification, and the online API interface processes the service request passing the verification and returns the data required by the service.
In some of these embodiments, the online API interface comprises an uplink interface; the uplink interface is used for storing the uplink data to be stored after being encrypted by the access key.
In this embodiment, the data structure of the acquired uplink data is as follows:
{ "approximate": identity id ",
appsecret: "identity key",
"business name",
"business _ desc": service description ",
"stats": status ",
"secret _ type": encryption type ",
"uuid" means "service number",
"account": contract account ",
"contract _ address": contract address ",
"data_definition":[{
"data _ name": field name ",
"data _ type": data type ",
"data _ length": data length ",
"data _ descriptor" data description "
},{
"data _ name": field name ",
"data _ type": data type ",
"data _ length": data length ",
"data _ descriptor" data description "
}]
}
An example of the data structure of the final certified uplink formed after encryption by the access key is as follows:
{"appid":"LKeuGr84",
"appsecret":"65a4964eb7b68347bae3a9b7da85c7e30f1aa576",
"business _ name": system oplog uplink ",
"stats": start up ",
"secret_type":"SM2",
"uuid":"b03a4669-8e5a-479c-8371-90c42c9c1a24",
"account":"{"address":"8722fe1213e9239fa68e76db4be48566635b00c5","encrypted":"9354d5de4b341e7d81c543371dc33d1eee80b50dbef604ed494aafa7f32cc245","version":"2.0","algo":"0x03"}",
"contract_address":"0xfaf899c36c72c9d3b5710f2575c9256b86bcc27d",
"data_definition":[{
"data_name":"username",
"data_type":"string",
"data_length":"50",
"data _ descriptor" operation user name "
},{
"data_name":"operators",
"data_type":"string",
"data_length":"100",
"data _ descriptor" name of operation function "
},{
"data_name":"operator_time",
"data_type":"string",
"data_length":"50",
"data _ descriptor" operation time yyyy-MM-dd HH: MM: ss "
}]
}
The uplink gateway constructs an uplink interface according to the data interface parameter information, wherein an interface address of the uplink interface consists of an interface fixed address and a service number, for example, a request fixed path is/block/gateway/api, a request service number { uuid }, and an obtained interface address is/block/gateway/api/{ uuid }. The request header parameters of the uplink interface include appid and appsecret. The request body parameter information of the uplink interface comprises the field name attribute of each data object in the extracted service definition content, and is respectively constructed into a request parameter in a form of a form and a request parameter in a JSON format.
In addition, two service requirements of synchronous uplink and asynchronous uplink are provided in the uplink gateway, the synchronous uplink is real-time uplink and directly returns uplink transaction hash to the service system, the asynchronous uplink does not return uplink transaction hash and only returns uplink data number, and the service system can inquire the uplink transaction hash according to the acquired data number after the uplink is completed.
Specifically, as shown in fig. 3, the uplink interface includes a synchronous uplink interface and an asynchronous uplink interface, wherein the synchronous uplink interface is used for real-time uplink and returns a uplink transaction hash corresponding to the uplink service, and the asynchronous uplink interface returns a numerical number.
In this embodiment, the specific steps of using the synchronous uplink interface data uplink are as follows: when a business system initiates data uplink calling, an uplink gateway firstly performs interface authentication verification, extracts interface appid, appseret and service number uuid parameters for comparison verification, acquires business definition contents according to the service number uuid after verification, sequentially extracts the business definition contents from request body parameters according to a data structure of business definition, generates a data number for the data submitted by the calling to mark the uplink data submitted at this time, acquires uplink account information and intelligent contract information from the business definition according to the uplink service number, constructs block chain transaction information according to the encryption type of the uplink data, calls a block chain to send a transaction method, sends the transaction information to a block chain platform, receives a return result, analyzes the transaction hash in the result and returns the data number and uplink transaction hash. The specific steps of employing the asynchronous uplink interface for data uplink are as follows: after the authentication verification is passed, the extracted data, the service definition and the data number are packed together and put into a cache queue for the interface data uplink to process, a data number is generated for the data submitted by the calling to mark the uplink data submitted this time, only the data number is returned, the service system needs to record the data number returned in the step, and additionally adopts a transaction hash inquiry interface to inquire the uplink transaction hash.
In some of these embodiments, the online API interface further comprises an uplink data query interface and a transaction hash query interface; wherein, the uplink data inquiry interface is used for acquiring the uplink data according to the input uplink transaction hash; the transaction hash inquiry interface is used for acquiring the uplink transaction hash corresponding to the uplink service according to the input data number.
In this embodiment, the uplink gateway may further automatically create an uplink inquiry interface and a transaction hash inquiry interface, when the asynchronous interface is called, the interface only returns a data number to the service system, at this time, the service system may input parameters such as the data number, the service number, the appid, the appseret, and the like to inquire the transaction hash by calling the inquiry interface, the uplink gateway performs interface authentication verification, extracts parameters such as the interface appid, the appseret, and the service number uuid to perform comparison verification, inquires the uplink transaction hash according to the data number by a verification request, and records the inquired uplink transaction hash. And the uplink inquiry interface inputs the uplink interface hash, and inputs the service number, the appid and the appsecret for comparison and verification. And after the verification is passed, the uplink gateway calls the block chain inquiry interface to initiate an inquiry request to the block chain platform and returns an inquiry result, wherein the inquiry result comprises a block hash, a block height, transaction information, a transaction address, transaction time and the like.
In summary, in the embodiments of the present application, to solve the problem that the access technology difficulty is large due to the fact that a chain application development side (service system) needs to use a block chain SDK, an intelligent contract language, and an intelligent contract compiling rule when an application system is accessed to a block chain platform at present, a deposit-certificate intelligent contract is built in an uplink gateway, a contract sending address, a contract receiving address, contract deposit-certificate content, a transaction hash, and transaction time are defined in the deposit-certificate intelligent contract, and the uplink gateway can automatically generate a block chain account address for the service system, encrypt a key, and automatically deploy a deposit-certificate intelligent contract for the service system and generate a contract address. The technology of data chaining and data query can be realized by a service system only by calling an interface through the built-in memory-evidence intelligent contract and the block chain automatic processing. Compared with the prior art, the chain application development side does not need to access the SDK, does not need to solve the block chain, only needs to know how to call the HTTP Restful interface, and records the data number and the transaction hash returned by the uplink data, so that the development difficulty is reduced, and the complexity of accessing a block chain platform is simplified.
Example two
Based on the same concept, referring to fig. 4, the present application further provides a service processing apparatus based on a block chain, including:
an obtaining module 401, configured to obtain service definition content of an uplink service recorded by a service system, allocate an identity to the service system, and generate a corresponding account address and an access key;
a configuration module 402, configured to deploy the certified intelligent contract for the uplink service and generate a contract address, where the certified intelligent contract automatically obtains the service definition content and obtains uplink data to be stored from the service definition content to construct parameter information of an online API interface;
an uplink module 403, configured to create an online API interface based on the parameter information, and call the online API interface to encrypt the uplink data to be stored by using the access key before storing a certificate uplink.
EXAMPLE III
The present embodiment further provides an electronic device, referring to fig. 5, comprising a memory 504 and a processor 502, wherein the memory 504 has a computer program stored therein, and the processor 502 is configured to execute the computer program to perform the steps in any of the above method embodiments.
Specifically, the processor 502 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
Memory 504 may include, among other things, mass storage 504 for data or instructions. By way of example, and not limitation, memory 504 may include a hard disk drive (hard disk drive, HDD for short), a floppy disk drive, a solid state drive (SSD for short), flash memory, an optical disk, a magneto-optical disk, tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Memory 504 may include removable or non-removable (or fixed) media, where appropriate. The memory 504 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 504 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, memory 504 includes Read-only memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or FLASH memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a static random-access memory (SRAM) or a dynamic random-access memory (DRAM), where the DRAM may be a fast page mode dynamic random-access memory 504 (FPMDRAM), an extended data output dynamic random-access memory (EDODRAM), a synchronous dynamic random-access memory (SDRAM), or the like.
Memory 504 may be used to store or cache various data files for processing and/or communication purposes, as well as possibly computer program instructions for execution by processor 502.
The processor 502 may implement any one of the above embodiments of the service processing method based on the block chain by reading and executing the computer program instructions stored in the memory 504.
Optionally, the electronic apparatus may further include a transmission device 506 and an input/output device 508, wherein the transmission device 506 is connected to the processor 502, and the input/output device 508 is connected to the processor 502.
The transmission device 506 may be used to receive or transmit data via a network. Specific examples of the network described above may include wired or wireless networks provided by communication providers of the electronic devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 506 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The input and output device 508 is used to input or output information. In this embodiment, the input information may be service definition performed by the acquired service system in the uplink gateway, and the output information may be data returned by the interface.
Optionally, in this embodiment, the processor 502 may be configured to execute the following steps by a computer program:
s101, acquiring service definition content of the uplink service recorded by a service system, distributing an identity for the service system and generating a corresponding account address and an access key.
S102, deploying the intelligent contract for the uplink service and generating a contract address, wherein the intelligent contract for the uplink service automatically acquires the service definition content and acquires uplink data required to be stored from the service definition content to construct parameter information of an online API.
S103, establishing an online API based on the parameter information, calling the online API to encrypt the uplink data to be stored through the access key, and storing the uplink certificate.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In general, the various embodiments may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. While various aspects of the invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that these blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.
Embodiments of the invention may be implemented by computer software executable by a data processor of the mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and/or macros can be stored in any device-readable data storage medium and they include program instructions for performing particular tasks. The computer program product may comprise one or more computer-executable components configured to perform embodiments when the program is run. The one or more computer-executable components may be at least one software code or a portion thereof. Further in this regard it should be noted that any block of the logic flow as in the figures may represent a program step, or an interconnected logic circuit, block and function, or a combination of a program step and a logic circuit, block and function. The software may be stored on physical media such as memory chips or memory blocks implemented within the processor, magnetic media such as hard or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. The physical medium is a non-transitory medium.
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples are merely illustrative of several embodiments of the present application, and the description is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (12)

1. A service processing method based on a block chain is characterized in that the service processing method is applied to an uplink gateway, and a memory-evidence intelligent contract is arranged in the uplink gateway, and the method comprises the following steps:
acquiring service definition content of uplink service recorded by a service system, distributing an identity for the service system and generating a corresponding account address and an access key;
deploying the intelligent contract for the uplink service and generating a contract address, wherein the intelligent contract for the uplink service automatically acquires the service definition content and acquires uplink data required to be stored from the service definition content to construct parameter information of an online API (application programming interface);
and creating an online API (application programming interface) based on the parameter information, calling the online API to encrypt the uplink data to be stored through the access key and then storing the certified uplink.
2. The blockchain-based transaction processing method according to claim 1, wherein a contract sending address, a contract receiving address, a contract verification content, a cochain transaction hash, and a transaction time are defined in the verification-enabled smart contract.
3. The blockchain-based business processing method of claim 1, wherein an online interface document of the online API is generated according to a built-in interface document template, and the online interface document includes: calling an address, a calling mode, a calling parameter and a calling result return parameter, and calling and developing the online API according to the online interface document.
4. The blockchain-based transaction processing method of claim 1 wherein the on-line API includes an uplink interface, and the uplink interface is configured to store the required stored uplink data in a certified uplink after being encrypted by the access key.
5. The method of claim 4, wherein the uplink interface comprises a synchronous uplink interface and an asynchronous uplink interface, wherein the synchronous uplink interface is used for real-time uplink and returns a uplink transaction hash corresponding to the uplink service, and the asynchronous uplink interface returns a numerical number.
6. The blockchain-based transaction processing method of claim 5, wherein the online API further includes an uplink data query interface and a transaction hash query interface; wherein the content of the first and second substances,
the uplink data query interface is used for acquiring the uplink data according to the input uplink transaction hash;
the transaction hash inquiry interface is used for acquiring the uplink transaction hash corresponding to the uplink service according to the input data number.
7. The method of claim 1, wherein the parameter information includes an interface address, an identity, uplink data, and a return parameter.
8. The method of claim 1, wherein the service definition content includes a service name, a service description, and a service uplink ciphering type, and wherein the access key is determined by the service uplink ciphering type.
9. A device for processing block chain based service, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the service definition content of the uplink service recorded by a service system, distributing an identity for the service system and generating a corresponding account address and an access key;
the configuration module is used for deploying the accreditation intelligent contract for the uplink service and generating a contract address, wherein the accreditation intelligent contract automatically acquires the service definition content and acquires uplink data required to be stored from the service definition content to construct parameter information of an online API (application program interface);
and the uplink module is used for creating an online API (application programming interface) based on the parameter information, calling the online API to encrypt the uplink data to be stored by the access key and then storing and certifying uplink.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the block chain based service processing method according to any one of claims 1 to 8.
11. A computer program product, characterized in that it comprises software code portions for performing the method of blockchain based transaction processing according to any one of claims 1 to 8 when the computer program product is run on a computer.
12. A readable storage medium, in which a computer program is stored, the computer program comprising program code for controlling a process to execute a process, the process comprising a blockchain based traffic processing method according to any one of claims 1 to 8.
CN202111080373.0A 2021-09-15 2021-09-15 Business processing method and device based on block chain Active CN113766034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111080373.0A CN113766034B (en) 2021-09-15 2021-09-15 Business processing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111080373.0A CN113766034B (en) 2021-09-15 2021-09-15 Business processing method and device based on block chain

Publications (2)

Publication Number Publication Date
CN113766034A true CN113766034A (en) 2021-12-07
CN113766034B CN113766034B (en) 2024-02-02

Family

ID=78795737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111080373.0A Active CN113766034B (en) 2021-09-15 2021-09-15 Business processing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN113766034B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208956A (en) * 2022-06-23 2022-10-18 北京链道科技有限公司 Method for realizing block chain gateway
CN115473669A (en) * 2022-07-26 2022-12-13 国网北京市电力公司 Visual display method for block chain
CN115809863A (en) * 2023-02-08 2023-03-17 广东远景信息科技有限公司 Operation management method and system based on block chain
CN116595024A (en) * 2023-07-17 2023-08-15 中博信息技术研究院有限公司 Processing method and device for massive data blockchain application

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190018947A1 (en) * 2017-07-14 2019-01-17 Alibaba Group Holding Limited Login information data processing
CN109493042A (en) * 2018-10-24 2019-03-19 南京邮电大学 A kind of intelligent contract possessing access control function is credible to deposit card method and system
CN110555296A (en) * 2019-08-01 2019-12-10 阿里巴巴集团控股有限公司 identity verification method, device and equipment based on block chain
CN111488615A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Cross-link realization method and device for service data block chain
WO2020233631A1 (en) * 2019-05-20 2020-11-26 创新先进技术有限公司 Transaction type-based receipt storage method and node
CN112380219A (en) * 2020-11-18 2021-02-19 南威软件股份有限公司 Method for defining block chain cochain data service stipulation and application service stipulation
CN113098876A (en) * 2021-04-02 2021-07-09 中南大学 Product data chaining method and medium based on block chain and intelligent contract
CN113162848A (en) * 2020-01-22 2021-07-23 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190018947A1 (en) * 2017-07-14 2019-01-17 Alibaba Group Holding Limited Login information data processing
CN109493042A (en) * 2018-10-24 2019-03-19 南京邮电大学 A kind of intelligent contract possessing access control function is credible to deposit card method and system
WO2020233631A1 (en) * 2019-05-20 2020-11-26 创新先进技术有限公司 Transaction type-based receipt storage method and node
CN110555296A (en) * 2019-08-01 2019-12-10 阿里巴巴集团控股有限公司 identity verification method, device and equipment based on block chain
CN113162848A (en) * 2020-01-22 2021-07-23 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway
CN111488615A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Cross-link realization method and device for service data block chain
CN112380219A (en) * 2020-11-18 2021-02-19 南威软件股份有限公司 Method for defining block chain cochain data service stipulation and application service stipulation
CN113098876A (en) * 2021-04-02 2021-07-09 中南大学 Product data chaining method and medium based on block chain and intelligent contract

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
R. FINLAYSON;LIVE.COM;: "An Abstract API for Multicast Address Allocation", IETF RFC2771 *
张召;田继鑫;金澈清: "链上存证、链下传输的可信数据共享平台", 大数据 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208956A (en) * 2022-06-23 2022-10-18 北京链道科技有限公司 Method for realizing block chain gateway
CN115208956B (en) * 2022-06-23 2023-06-02 北京链道科技有限公司 Implementation method of block chain gateway
CN115473669A (en) * 2022-07-26 2022-12-13 国网北京市电力公司 Visual display method for block chain
CN115809863A (en) * 2023-02-08 2023-03-17 广东远景信息科技有限公司 Operation management method and system based on block chain
CN115809863B (en) * 2023-02-08 2023-05-16 广东远景信息科技有限公司 Work management method and system based on block chain
CN116595024A (en) * 2023-07-17 2023-08-15 中博信息技术研究院有限公司 Processing method and device for massive data blockchain application
CN116595024B (en) * 2023-07-17 2023-09-26 中博信息技术研究院有限公司 Processing method and device for massive data blockchain application

Also Published As

Publication number Publication date
CN113766034B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN113766034A (en) Service processing method and device based on block chain
EP3333744B1 (en) Authorization code flow for in-browser applications
WO2021109735A1 (en) Cross-chain-network-based resource processing method, and device
US10645568B2 (en) Carrier configuration processing method, device and system, and computer storage medium
CN105025005B (en) The method and apparatus of network credentials is provided
CN114281573A (en) Workflow data interaction method and device, electronic device and readable storage medium
CN113273155B (en) Method and apparatus for managing binding of intelligent security platform
CN112559993B (en) Identity authentication method, device and system and electronic equipment
US20200272446A1 (en) METHOD FOR INTEROPERATING BETWEEN BUNDLE DOWNLOAD PROCESS AND eSIM PROFILE DOWNLOAD PROCESS BY SSP TERMINAL
CN109347839B (en) Centralized password management method and device, electronic equipment and computer storage medium
CN112308561A (en) Block chain-based evidence storing method and system, computer equipment and storage medium
US20230114895A1 (en) Method and apparatus for negotiating euicc version
US11588791B2 (en) Method and apparatus for trusted service management
CN111178840A (en) Service processing method, device, system, electronic equipment and storage medium
WO2018129753A1 (en) Method and device for downloading subscription information set, and related equipment
CN113766496B (en) Cross-platform binding method and system for intelligent equipment and related equipment
CN113766503B (en) Binding method and system of intelligent device and related device
CN111066014A (en) Apparatus, method and program for remotely managing devices
EP3048553A1 (en) Method for distributing applets, and entities for distributing applets
CN113613227A (en) Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN108541000A (en) A kind of method, medium and the equipment of detection network connection
CN113784354B (en) Request conversion method and device based on gateway
JP7445685B2 (en) Open interface management methods, electronic devices, and storage media
US20140365786A1 (en) Communication device, communication method, computer program product, and communication system
CN115454362A (en) Method, device and equipment for realizing remote printing and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant