CN114791859B - Component processing method, device, equipment and storage medium based on block chain BaaS - Google Patents

Component processing method, device, equipment and storage medium based on block chain BaaS Download PDF

Info

Publication number
CN114791859B
CN114791859B CN202210670783.9A CN202210670783A CN114791859B CN 114791859 B CN114791859 B CN 114791859B CN 202210670783 A CN202210670783 A CN 202210670783A CN 114791859 B CN114791859 B CN 114791859B
Authority
CN
China
Prior art keywords
component
baas
local
target component
account
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.)
Active
Application number
CN202210670783.9A
Other languages
Chinese (zh)
Other versions
CN114791859A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210670783.9A priority Critical patent/CN114791859B/en
Publication of CN114791859A publication Critical patent/CN114791859A/en
Application granted granted Critical
Publication of CN114791859B publication Critical patent/CN114791859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems

Abstract

The disclosure provides a component processing method, a device, equipment and a storage medium based on a block chain BaaS, relates to the field of computers, particularly relates to a block chain technology, and can be applied to a cloud platform. The method comprises the following steps: acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS; extracting component service parameters from the component service request; and issuing a component service transaction request to a blockchain network according to the component service parameters based on the blockchain account information of the local BaaS. By the technical scheme, the safety and convenience of component processing in the block chain BaaS platform can be improved.

Description

Component processing method, device, equipment and storage medium based on block chain BaaS
Technical Field
The present disclosure relates to the field of computers, and in particular, to a blockchain technology, which can be applied to a cloud platform, and in particular, to a method, an apparatus, a device, and a storage medium for processing a component based on a blockchain BaaS.
Background
With the rapid development of the Blockchain technology, blockchain BaaS (Service as a Service) and bottom chain ecology have gradually become the key points of the layout Blockchain market of each large enterprise. Baas is used as a block chain management platform and supports one-key visual operation and maintenance management of a plurality of bottom chains. The bottom chain ecology is a developer ecology established around the bottom layer blockchain, and attracts developers to enter communities to contribute to various blockchain management components.
How to process the components provided by the developer in the Baas platform is an important problem faced by the Baas platform.
Disclosure of Invention
The disclosure provides a component processing method, device, equipment and storage medium based on a block chain BaaS.
According to an aspect of the present disclosure, a component processing method based on a blockchain BaaS is provided, the method including:
acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS;
extracting component service parameters from the component service request;
and issuing a component service transaction request to a blockchain network according to the component service parameters based on the blockchain account information of the local BaaS.
According to an aspect of the present disclosure, there is provided a component processing apparatus based on a blockchain BaaS, the apparatus including:
the component request acquisition module is used for acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS;
a parameter extraction module for extracting component service parameters from the component service request;
and the transaction request issuing module is used for issuing the component service transaction request to the blockchain network according to the component service parameters based on the blockchain account information of the local BaaS.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a blockchain BaaS-based component processing method according to any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the method for block chain BaaS-based component processing according to any one of the embodiments of the present disclosure.
According to the technology disclosed by the invention, the processing efficiency of the components in the BaaS platform can be improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart of a component processing method based on a blockchain BaaS according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another component processing method based on a blockchain BaaS according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another component processing method based on a blockchain BaaS according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a component processing apparatus based on a blockchain BaaS according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing a blockchain BaaS-based component processing method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of embodiments of the present disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a component processing method based on a blockchain BaaS according to an embodiment of the present disclosure. The method is suitable for the condition of managing the components based on the block chain BaaS platform. The method can be executed by a component processing device based on the blockchain BaaS, and the device can be realized in a software and/or hardware mode and can be integrated in a client of the blockchain BaaS platform. As shown in fig. 1, the component processing method based on the block chain BaaS of this embodiment may include:
s101, acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS;
s102, extracting component service parameters from the component service request;
and S103, issuing a component service transaction request to a blockchain network according to the component service parameters based on the blockchain account information of the local BaaS.
In an embodiment of the present disclosure, a blockchain BaaS platform may include different components provided by a developer, where the components are used to manage a blockchain, for example, perform operation and maintenance management, data management, or visualization management on the blockchain. The local BaaS is a local client of the block chain BaaS platform, and the local BaaS front end can provide an account operation interface for components to use. Specifically, when any component has a block chain service requirement, the component is used as a target component, the target component can determine its own component service parameters and call an account operation interface of the BaaS platform to initiate a component service request, and the component server request can carry the component service parameters of the target component. The component service parameter is determined by the access requirement of the target component on the block chain, and for example, the attribute information of the data to be queried can be used as the component service parameter. The component service parameters are not specifically limited in the embodiments of the present disclosure.
In the embodiment of the disclosure, a block chain account of a local BaaS user in a block chain network is reused as a platform account of the local BaaS user on a BaaS platform, which not only can prevent the BaaS platform from adopting an independent identity authentication service to realize user registration, login and real-name authentication, but also simplifies account management of the BaaS platform; and the account management of local BaaS users can be simplified.
Correspondingly, the local BaaS determines the blockchain account information of the local BaaS, calls an SDK (Software Development Kit) of a blockchain application program, and issues a component service transaction request to the blockchain network according to the component service parameters based on the blockchain account information of the local BaaS. Specifically, an account operation interface is provided for the component through the local BaaS for the target component to call, the local BaaS responds to the call operation of the target component to the account operation interface, the local BaaS accesses the block chain network by using the block chain account information of the local BaaS, namely, the target component accesses the block chain network through the local BaaS, the target component cannot obtain the block chain account information of the local BaaS, the block chain account information of the local BaaS is only maintained by the local BaaS, and the block chain account information of the local BaaS can be prevented from being leaked to the target component, so that the security of the block chain account information of the local BaaS is improved.
According to the technical scheme provided by the embodiment of the disclosure, the target component initiates the component service request by calling the account operation interface in the local BaaS, the local BaaS determines the block chain account information of the local BaaS, and initiates the transaction request to the block chain network based on the block chain account information of the local BaaS, so that the target component can access the block chain network, the block chain account information of the local BaaS can be prevented from being leaked to the target component, and the security of the block chain account information of the local BaaS can be improved.
Fig. 2 is a flowchart of another component processing method based on a blockchain BaaS according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 2, the method for processing a component based on a blockchain BaaS of the present embodiment may include:
s201, acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS;
s202, extracting component service parameters from the component service request;
s203, acquiring a key mnemonic word of a local BaaS account cached by the local BaaS;
s204, determining a block chain key of the local BaaS account according to the key mnemonic words;
s205, based on the block chain key, initiating a component service transaction request to a block chain network according to the component service parameters.
In the embodiment of the present disclosure, the local BaaS caches the key mnemonic word of the local BaaS account, and the local BaaS user performs user login and authentication by using the key mnemonic word. Specifically, the local BaaS responds to a component service request of a target component, acquires a key mnemonic word of a local BaaS account from a local cache, and determines a block chain key of the local BaaS account according to the key mnemonic word based on an account system of a block chain, wherein the block chain key may include a block chain private key and a block chain public key. The blockchain address of the local BaaS account can also be determined according to the blockchain public key.
And the SDK of the blockchain application program can be called, and a component service transaction request is initiated to the blockchain network according to the component service parameters based on the blockchain key of the local BaaS account. Specifically, a block chain private key of a local BaaS account can be used for signing the component service parameters to obtain a signature result, an SDK of a block chain application program is called, and a component service transaction request is initiated to the block chain network according to the signature result. Compared with the method of accessing the block chain network by using the block chain address, the method for accessing the block chain network by using the local BaaS can improve the convenience of accessing the block chain network.
In this disclosure, the component service transaction request may further include a blockchain public key and a blockchain address of the local BaaS account, and the receiver of the component service transaction request performs signature verification and blockchain address matching. Specifically, the receiver may select a target blockchain public key matched with the blockchain address in the component service transaction request from the pre-cached association relationship between the candidate blockchain address and the candidate blockchain public key, determine whether the target blockchain public key is consistent with the blockchain public key carried in the component service transaction request, and perform signature verification on the component service transaction request by using the target blockchain public key under the condition of consistency; if the signature passes the verification, processing the component service transaction request to obtain a transaction processing result; and if the signature verification is not passed, refusing to process the component service transaction request.
According to the technical scheme provided by the embodiment of the disclosure, the blockchain key of the local BaaS account is determined by extracting the key mnemonic words of the local BaaS cache, and the component service transaction request is initiated based on the blockchain key, so that the access convenience of the target component to the blockchain network can be further improved.
Fig. 3 is a flowchart of another component processing method based on blockchain BaaS according to an embodiment of the present disclosure. This embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 3, the component processing method based on the block chain BaaS of this embodiment may include:
s301, when the local BaaS monitors the starting event of the target component, requesting the payment state of a local BaaS account to the target component from an intelligent contract;
s302, when the payment state is the paid state, the target component is allowed to be started;
s303, acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS;
s304, extracting component service parameters from the component service request;
and S305, based on the block chain account information of the local BaaS, issuing a component service transaction request to a block chain network according to the component service parameters.
In the related art, after a user in the BaaS platform downloads an installation package of a target component, the installation package of the target component may be distributed to other users, so that the target component is maliciously used, and the interests of a developer of the target component are damaged.
In the embodiment of the disclosure, the payment state of the BaaS user to the target component can be recorded through the intelligent contract. Specifically, when the local BaaS monitors a start event of any component, the local BaaS may use the component as a target component and request a payment status of a local BaaS account to the target component from the smart contract; allowing the target component to be started in local BaaS under the condition that the payment state is paid; and when the payment state is unpaid, refusing the target component to be started in the local BaaS, namely refusing the local BaaS user to use the target component. The method comprises the steps of recording the support state of a BaaS user on a target component through an intelligent contract, requesting the payment state of the local BaaS user on the target component from the intelligent contract in the process of starting the target component by the local BaaS user, and refusing the start of the target component under the condition of non-payment, so that the target component can be prevented from being stolen, and the use safety of the target component is improved.
According to the technical scheme provided by the embodiment of the disclosure, when the component is started by local BaaS, whether the target component is allowed to be started is determined according to the payment state of the local BaaS on the target component, so that the target component can be prevented from being stolen, and the use safety of the target component is improved.
In an alternative embodiment, in the case where the target component is allowed to be started, extracting the home page address of the target component from the start event; and rendering a target component page in a local BaaS interface according to the homepage address of the target component.
In the embodiment of the present disclosure, the component may be implemented by an application container, and the component attribute information of the target component is added to the start file of the application container, for example, the component attribute information may be written in a tag of the start file in a key-value pair form. Specifically, a target component is started by adopting a starting file of the application container, and a starting event is issued according to the component attribute information.
Wherein the component attribute information may include a home page address of the target component. Specifically, when the local BaaS monitors the component start event, the home page address of the target component may be extracted from the component start event, and the target component page may be rendered in the front-end interface of the local BaaS. For example, the front-end interface of the local BaaS may be embedded in the front end of the target component in an iframe (inline frame) manner, and displays the target component entry. And under the condition that a user clicks a target component inlet, displaying a target component page on a front-end interface of the local BaaS. It should be noted that the component attribute information may further include a service name of the target component, and the target component page may be rendered according to the service name and the home page address of the target component. In the starting process of the target assembly, the homepage address and the service name of the target assembly are carried in the assembly starting event, and the target assembly page is rendered in the local BaaS interface, so that the assembly page does not need to be manually accessed, and the starting convenience of the target assembly can be improved.
In an optional implementation manner, the start event further includes a forwarding rule and a port number of the target component, and is used to instruct the gateway to set forwarding configuration information for the target component according to the forwarding rule and the port number of the target component.
The component attribute information may further include a forwarding rule and a port number of the target component, and the forwarding rule and the port number of the target component are carried in the start event, so as to indicate that the gateway extracts the forwarding rule and the port number of the target component from the start event when monitoring the start event of the target component, and sets forwarding configuration information for the target component. And then, when the gateway receives an access request of the BasS platform, determining whether the access request meets the forwarding rule of the target component, and if so, forwarding the access request to a port of a container of the target component. The forwarding rule and the port number of the target component are carried in the starting event and are matched with the gateway, so that the hot loading of the target component is realized, and the use convenience of the target component is further improved.
In an alternative embodiment, the method further comprises: acquiring a target component selected by a local BaaS account from a component list of an intelligent contract; calling a payment interface of an intelligent contract, paying virtual resources to the intelligent contract, and indicating the intelligent contract to mark the payment state of the local BaaS account to the target component as paid; calling a downloading interface of the intelligent contract, and sending a downloading request to the intelligent contract, wherein the downloading request is used for indicating the intelligent contract to verify the payment state of a local BaaS account on the target component; receiving an installation package of a target component from the smart contract if the payment status is paid.
Specifically, the developer uploads the installation package of any component into the intelligent contract, and the intelligent contract can record the association between the installation package of the component and the developer account of the component. And, the smart contract may generate a component list from the uploaded components.
The local BaaS can inquire the component list from the intelligent contract and select a target component to be downloaded from the component list; the local BaaS account calls a payment interface of the intelligent contract to pay the virtual resources to the intelligent contract, and after the intelligent contract receives the virtual resources, the payment state of the target component by the local BaaS account is marked as paid; the download interface of the intelligent contract can be called to send a download request of the target component to the intelligent contract, and the download request is used for instructing the intelligent contract to execute the following steps: checking the payment state of a local BaaS account on the target component; feeding back an installation package of the target component under the condition that the payment state is paid; the local BaaS receives an installation package of the target component from the smart contract. It should be noted that, after the installation package is downloaded, the intelligent contract may also call a payment interface of the intelligent contract to pay the virtual resource to the developer account of the target component. The component list, the payment interface and the download interface are provided through the intelligent contract, the payment flow and the component download flow of the block chain BaaS platform can be simplified, and the convenience of component processing is further improved.
Fig. 4 is a schematic structural diagram of a component processing apparatus based on a block chain BaaS according to an embodiment of the present disclosure. The embodiment is suitable for the situation of managing the components based on the block chain BaaS platform. The device can be realized in a software and/or hardware mode, and can be integrated in a BaaS client for bearing a component processing function based on a block chain BaaS. As shown in fig. 4, the device 400 for processing a component based on a block chain BaaS according to this embodiment may include:
a component request obtaining module 410, configured to obtain a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS;
a parameter extraction module 420 for extracting component service parameters from the component service request;
and the transaction request issuing module 430 is configured to issue a component service transaction request to the blockchain network according to the component service parameter based on the blockchain account information of the local BaaS.
In an alternative embodiment, the transaction request issuing module 430 includes:
the memory-aid word acquisition unit is used for acquiring the memory-aid words of the keys of the local BaaS accounts cached by the local BaaS;
the key determining unit is used for determining a block chain key of the local BaaS account according to the key mnemonic word;
and the transaction request issuing unit is used for initiating a component service transaction request to the blockchain network according to the component service parameters based on the blockchain key.
In an optional implementation manner, the component processing apparatus 400 based on the blockchain BaaS further includes a first starting module, where the first starting module includes:
the payment state unit is used for requesting the payment state of a local BaaS account on the target component from an intelligent contract when the local BaaS monitors the starting event of the target component;
and the component starting unit is used for allowing the target component to start under the condition that the payment state is paid.
In an alternative embodiment, the device 400 for processing component based on the block chain BaaS further includes a second starting module, where the second starting module includes:
an address extracting unit for extracting a homepage address of a target component from the start event in case that the target component is allowed to start;
and the component page rendering unit is used for rendering a target component page in a local BaaS interface according to the homepage address of the target component.
In an optional implementation manner, the start event further includes a forwarding rule and a port number of the target component, and is used to instruct the gateway to set forwarding configuration information for the target component according to the forwarding rule and the port number of the target component.
In an optional implementation manner, the component processing apparatus 400 based on the blockchain BaaS further includes a component downloading module, where the component downloading module includes:
the system comprises a component selection unit, a component selection unit and a component selection unit, wherein the component selection unit is used for acquiring a target component selected by a local BaaS account from a component list of an intelligent contract;
the virtual resource payment unit is used for calling a payment interface of an intelligent contract, paying virtual resources to the intelligent contract and indicating the intelligent contract to mark the payment state of the local BaaS account on the target component as paid;
the downloading request unit is used for calling a downloading interface of the intelligent contract, sending a downloading request to the intelligent contract and indicating the intelligent contract to verify the payment state of the local BaaS account on the target component;
and the installation package receiving unit is used for receiving the installation package of the target component from the intelligent contract under the condition that the payment state is paid.
According to the technical scheme provided by the embodiment of the disclosure, the block chain account of the local BaaS user in the block chain network is reused as the platform account of the local BaaS user on the BaaS platform, so that the BaaS service can be simplified; an account operation interface is provided through the block chain BaaS for components in the block chain BaaS, so that the block chain account information of a BaaS user can be prevented from being leaked to the components; in addition, in the component starting process, hot starting of the component service is realized, virtual resource payment, payment state verification and the like of the component service are also realized, the management process of the components in the block chain BaaS is simplified, and the safety and the convenience of component management are improved.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
Fig. 5 is a block diagram of an electronic device for implementing a component processing method based on a blockchain BaaS according to an embodiment of the present disclosure. FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 500 comprises a computing unit 501 which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 can be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 performs the respective methods and processes described above, such as a component processing method based on a block chain BaaS. For example, in some embodiments, the blockchain BaaS-based component handling method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the blockchain BaaS based component processing method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the component handling method based on the blockchain BaaS by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combining a blockchain.
Artificial intelligence is the subject of research that makes computers simulate some human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge map technology and the like.
Cloud computing (cloud computing) refers to a technology system that accesses a flexibly extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be deployed and managed in a self-service manner as needed. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (12)

1. The component processing method based on the block chain BaaS comprises the following steps:
acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS; the target component is used for managing a block chain;
extracting component service parameters from the component service request;
based on the block chain account information of local BaaS, issuing a component service transaction request to a block chain network according to the component service parameters;
the method further comprises the following steps:
extracting a home page address of the target component from a starting event of the target component in the case that the target component is allowed to be started;
and rendering a target component page in a local BaaS interface according to the homepage address of the target component.
2. The method of claim 1, wherein the issuing component service transaction requests to a blockchain network according to the component service parameters based on local BaaS's blockchain account information comprises:
acquiring a key mnemonic word of a local BaaS account cached by the local BaaS;
determining a block chain key of a local BaaS account according to the key mnemonic word;
based on the blockchain key, initiating a component service transaction request to a blockchain network according to the component service parameters.
3. The method of claim 1, further comprising:
when the local BaaS monitors the starting event of the target component, requesting the payment state of a local BaaS account to the target component from an intelligent contract;
and in the case that the payment state is paid, allowing the target component to start.
4. The method according to claim 1 or 3, wherein the start event further includes a forwarding rule and a port number of the target component, and is used to instruct the gateway to set forwarding configuration information for the target component according to the forwarding rule and the port number of the target component.
5. The method of claim 3, further comprising:
acquiring a target component selected by a local BaaS account from a component list of an intelligent contract;
calling a payment interface of an intelligent contract, paying virtual resources to the intelligent contract, and indicating the intelligent contract to mark the payment state of the local BaaS account to the target component as paid;
calling a downloading interface of an intelligent contract, and sending a downloading request to the intelligent contract, wherein the downloading request is used for indicating the intelligent contract to verify the payment state of a local BaaS account on the target component;
receiving an installation package of a target component from the smart contract if the payment status is paid.
6. The component processing device based on the block chain BaaS comprises:
the device comprises a component request acquisition module, a component service request processing module and a component service request processing module, wherein the component request acquisition module is used for acquiring a component service request initiated by a target component in local BaaS; the component service request is generated according to the calling operation of the target component to an account operation interface in local BaaS; the target component is used for managing a block chain;
a parameter extraction module for extracting component service parameters from the component service request;
the transaction request issuing module is used for issuing a component service transaction request to a blockchain network according to the component service parameters based on the blockchain account information of local BaaS;
the apparatus further comprises a second activation module, the second activation module comprising:
an address extracting unit, configured to extract a homepage address of a target component from a start event of the target component in a case where the target component is allowed to start;
and the component page rendering unit is used for rendering the target component page in the local BaaS interface according to the homepage address of the target component.
7. The apparatus of claim 6, wherein the transaction request issuing module comprises:
the device comprises a mnemonic word acquisition unit, a storage unit and a storage unit, wherein the mnemonic word acquisition unit is used for acquiring a secret key mnemonic word of a local BaaS account cached by local BaaS;
the key determining unit is used for determining a block chain key of the local BaaS account according to the key mnemonic words;
and the transaction request issuing unit is used for initiating a component service transaction request to the blockchain network according to the component service parameters based on the blockchain key.
8. The apparatus of claim 6, further comprising a first initiation module comprising:
the payment state unit is used for requesting the payment state of a local BaaS account on the target component from an intelligent contract when the local BaaS monitors a starting event of the target component;
and the component starting unit is used for allowing the target component to start under the condition that the payment state is paid.
9. The apparatus according to claim 6 or 8, wherein the start event further includes a forwarding rule and a port number of the target component, and is used to instruct the gateway to set forwarding configuration information for the target component according to the forwarding rule and the port number of the target component.
10. The apparatus of claim 8, further comprising a component download module, the component download module comprising:
the device comprises a component selection unit, a service acquisition unit and a service execution unit, wherein the component selection unit is used for acquiring a target component selected by a local BaaS account from a component list of an intelligent contract;
the virtual resource payment unit is used for calling a payment interface of an intelligent contract, paying virtual resources to the intelligent contract and indicating the intelligent contract to mark the payment state of the local BaaS account on the target component as paid;
the downloading request unit is used for calling a downloading interface of an intelligent contract, sending a downloading request to the intelligent contract and indicating the intelligent contract to verify the payment state of a local BaaS account on the target component;
and the installation package receiving unit is used for receiving the installation package of the target component from the intelligent contract under the condition that the payment state is paid.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the blockchain BaaS-based component processing method of any one of claims 1 to 5.
12. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the block-chain BaaS based component processing method according to any one of claims 1 to 5.
CN202210670783.9A 2022-06-15 2022-06-15 Component processing method, device, equipment and storage medium based on block chain BaaS Active CN114791859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210670783.9A CN114791859B (en) 2022-06-15 2022-06-15 Component processing method, device, equipment and storage medium based on block chain BaaS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210670783.9A CN114791859B (en) 2022-06-15 2022-06-15 Component processing method, device, equipment and storage medium based on block chain BaaS

Publications (2)

Publication Number Publication Date
CN114791859A CN114791859A (en) 2022-07-26
CN114791859B true CN114791859B (en) 2022-10-14

Family

ID=82463013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210670783.9A Active CN114791859B (en) 2022-06-15 2022-06-15 Component processing method, device, equipment and storage medium based on block chain BaaS

Country Status (1)

Country Link
CN (1) CN114791859B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN109743328A (en) * 2019-01-17 2019-05-10 杭州趣链科技有限公司 A kind of open cloud service platform of block chain
CN112764887A (en) * 2021-01-15 2021-05-07 北京百度网讯科技有限公司 Construction method, processing method, device, equipment and storage medium of transaction request

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10497037B2 (en) * 2014-03-31 2019-12-03 Monticello Enterprises LLC System and method for managing cryptocurrency payments via the payment request API

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN109743328A (en) * 2019-01-17 2019-05-10 杭州趣链科技有限公司 A kind of open cloud service platform of block chain
CN112764887A (en) * 2021-01-15 2021-05-07 北京百度网讯科技有限公司 Construction method, processing method, device, equipment and storage medium of transaction request

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链服务平台关键技术及发展综述;毛瀚宇 等;《计算机科学》;20211130;第48卷(第11期);全文 *

Also Published As

Publication number Publication date
CN114791859A (en) 2022-07-26

Similar Documents

Publication Publication Date Title
US20190068638A1 (en) Discovering website phishing attacks
US11757825B2 (en) Mid-tier messaging system
CN109598116B (en) Method and system for verifying the identity of a service making a service request
US20190317888A1 (en) Application testing for security vulnerabilities
US10673835B2 (en) Implementing single sign-on in a transaction processing system
US20180196647A1 (en) Application Programming Interface Discovery Using Pattern Recognition
US20180234429A1 (en) Authenticating a request for an electronic transaction
US11605088B2 (en) Systems and methods for providing concurrent data loading and rules execution in risk evaluations
US10733609B2 (en) Dynamically generated payment token ratings
CN113139869A (en) Credit investigation authorization query processing method and device
CN114358147A (en) Training method, identification method, device and equipment of abnormal account identification model
US20200410415A1 (en) Computer-based systems for risk-based programming
CN114791859B (en) Component processing method, device, equipment and storage medium based on block chain BaaS
US11036638B2 (en) Prefetching data for application usage
CN111626729A (en) Transaction method, apparatus, computing device and medium executed by target institution
CN114327802B (en) Method, apparatus, device and medium for block chain access to data outside chain
US20230169588A1 (en) Facilitating fee-free credit-based withdrawals over computer networks utilizing secured accounts
US10147075B2 (en) Forced virtual machine warm-up
CN112600803B (en) Web end data signature method and device and computer equipment
US11250215B2 (en) Form-based transactional conversation system design
CN113132400A (en) Business processing method, device, computer system and storage medium
CN113703793A (en) Application installation method, device, equipment and medium for cloud mobile phone
US11704747B1 (en) Determining base limit values for contacts based on inter-network user interactions
US11777959B2 (en) Digital security violation system
CN114285743B (en) Method, device, electronic equipment and storage medium for updating configuration information

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