CN111915304B - Data processing method, device, equipment and storage medium for digital element - Google Patents

Data processing method, device, equipment and storage medium for digital element Download PDF

Info

Publication number
CN111915304B
CN111915304B CN201910380726.5A CN201910380726A CN111915304B CN 111915304 B CN111915304 B CN 111915304B CN 201910380726 A CN201910380726 A CN 201910380726A CN 111915304 B CN111915304 B CN 111915304B
Authority
CN
China
Prior art keywords
digital
interface
digital element
transaction request
processing
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
CN201910380726.5A
Other languages
Chinese (zh)
Other versions
CN111915304A (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 CN201910380726.5A priority Critical patent/CN111915304B/en
Publication of CN111915304A publication Critical patent/CN111915304A/en
Application granted granted Critical
Publication of CN111915304B publication Critical patent/CN111915304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a data processing method, device and equipment for digital elements and a storage medium. The method is performed by a block link point, the method comprising: acquiring a digital element processing transaction request initiated based on an element intelligent contract, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, and each digital element comprises at least one digital element description parameter; and calling a functional interface of the element intelligent contract according to the digital element processing transaction request, and taking the element screening condition as an input parameter of the functional interface so as to process the digital element meeting the element screening condition. The technical scheme of the embodiment of the invention can enhance the flexibility and universality of processing the digital elements based on the intelligent contracts and meet the abundant demands of processing the digital elements.

Description

Data processing method, device, equipment and storage medium for digital element
Technical Field
The embodiment of the invention relates to a blockchain data processing technology, in particular to a data processing method, device and equipment of digital elements and a storage medium.
Background
With the development of blockchain technology, blockchain-based digital assets have also evolved from a single digital currency to diverse asset elements. Digital assets, also known as tokens (Token), are asset credentials in a blockchain network, and these digital assets may also be referred to as digital elements.
Currently, the processing procedure for digital assets based on blockchain networks is: the user performs transaction transfers of digital elements between accounts of the blockchain network based on rules in the smart contracts specific to the digital element.
However, with the development of blockchain technology, the variety of digital elements is increasing, the content of the digital elements is becoming more and more abundant, and the transaction demands of users on the digital elements are also increasing. The existing processing mode of the digital elements is limited by the inherent regulations of the intelligent contract, and the processing requirements of users on various types and multi-attribute digital elements cannot be met. If new requirements or new digital elements are added, new intelligent contracts are developed and deployed, the cost is high, and the universality is not strong.
Disclosure of Invention
The embodiment of the invention provides a data processing method, device, equipment and storage medium for digital elements, which are used for enhancing the flexibility and universality of processing the digital elements based on intelligent contracts and meeting the abundant demands of digital element processing.
In a first aspect, an embodiment of the present invention provides a method for processing data of a digital element, performed by a block link point, the method including:
acquiring a digital element processing transaction request initiated based on an element intelligent contract, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, and each digital element comprises at least one digital element description parameter;
and calling a functional interface of the element intelligent contract according to the digital element processing transaction request, and taking the element screening condition as an input parameter of the functional interface so as to process the digital element meeting the element screening condition.
In a second aspect, an embodiment of the present invention further provides a data processing apparatus for a digital element, configured in a blockchain node, the apparatus including:
the transaction request acquisition module is used for acquiring a digital element processing transaction request initiated based on an element intelligent contract, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, and each digital element comprises at least one digital element description parameter;
And the transaction request processing module is used for calling the functional interface of the element intelligent contract according to the digital element processing transaction request, and taking the element screening condition as the input parameter of the functional interface so as to process the digital element meeting the element screening condition.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
One or more processors;
a memory for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method of a digital element according to any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data processing method for digital elements according to any of the embodiments of the present invention.
According to the technical scheme, when a digital element processing transaction request including element screening conditions initiated based on an element intelligent contract is received, the block chain node calls a functional interface of the element intelligent contract according to the request, takes the element screening conditions as input parameters of the functional interface, and operates program codes of the functional interface to finish processing digital elements meeting the element screening conditions. According to the scheme provided by the embodiment of the invention, the element screening conditions which can be controlled by the user and comprise the digital element description parameters are arranged in each functional interface of the element intelligent contract, so that a more flexible element control mode is provided for the user, the problem that the prior art cannot meet the processing demands of the user on various types and multiple attributes of digital elements is solved, and when new demands and new digital elements are added, the development and deployment of new intelligent contracts are not needed, and only the corresponding functional interfaces are needed to be additionally arranged in the original intelligent contracts, so that the flexibility and universality of processing the digital elements based on the intelligent contracts can be enhanced, and the abundant demands of digital element processing are met.
Drawings
FIG. 1 is a flow chart of a method for processing data of a digital element according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for processing data of a digital element according to a third embodiment of the present invention;
FIG. 3 is a block diagram of a data processing apparatus for digital elements according to a fourth embodiment of the present invention;
Fig. 4 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for processing digital data according to a first embodiment of the present invention, where the method may be performed by a blockchain node, for example, by a blockgenerating node in the blockchain node, and the method may be applicable to a case where a transaction request for processing a digital element including an element filtering condition is processed by a functional interface based on an element intelligent contract to complete processing of the digital element satisfying the element filtering condition. In particular, the method may be performed by a data processing apparatus or device of a digital element configured in a blockchain node, the device may be implemented in software and/or hardware, and may be integrated in an electronic device carrying the blockchain node, the method specifically comprising the steps of:
s101, a digital element processing transaction request initiated based on an element intelligent contract is acquired, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, and each digital element comprises at least one digital element description parameter.
The element intelligent contract related to the embodiment can be a program set for implementing all related processes for processing the data of the digital element, and an interactive interface can be provided in the element intelligent contract for each device side to initiate different contents of the data and the response data, so that each specific transaction request is initiated or processed.
The digital element is an asset credential in a blockchain network, such as digital currency, electronic cat, etc., and the digital element transaction request may be a digital element transaction request initiated by a user based on an element intelligence contract through a local node, a terminal device that can interact with the blockchain, or an interactive interface of a client according to the processing requirements of the digital element. The digital element transaction request may include element filtering conditions set by the user for the digital element processing requirement. In particular, the element filtering condition may be some constraint factor added by the user to filter the digital elements that meet the requirements thereof. Alternatively, the constraint factor may be a numerical element description parameter. The digital element description parameters may be parameter information obtained by simply describing certain characteristics of digital elements, and each digital element may have one or more digital element description parameters because the digital elements may be described based on characteristics of multiple dimensions. For example, if the digital element is an electronic cat, the description parameters of the digital element may include: white color, blue eye, age 1 year, etc.
Alternatively, in this embodiment, the digital element description parameter may be stored in a key-Value pair format, where the key-Value pair storage structure (Keys. Value) includes two parts, namely a key field (Keys) and a Value field (Value). The key field is used for distinguishing different objects, and the value field is used for representing the numerical value corresponding to the different objects. In this embodiment, the key field in the key value pair is a keyword in the digital element description parameter, and the value field in the key value pair is description information of the keyword in the digital element description parameter. The keyword may be a certain feature object of the digital element described by the digital element description parameter, the description information is a value corresponding to the feature object, that is, the description information in the digital element description parameter is a description of the keyword, for example, the description parameter is color white, then the keyword in the description parameter is color, and the description information corresponding to the keyword is color white. The description parameter may be stored as "color. White" when the structure is stored as a key value. Or the digital element description parameters can be stored in a structured way by adopting other data structures, and various index modes convenient for inquiry can be adopted.
Optionally, when a user has a processing requirement for a digital element, an interaction device (such as a local node device, a terminal device or a client capable of interacting with a blockchain) can be triggered to display an interaction interface to the user based on the element intelligent contract, the user can fill in the required digital element description parameter based on the interaction interface, at this time, the interaction device can generate a screening condition according to the filled digital element description parameter, and initiate a digital element processing transaction request containing the screening condition to the blockchain network based on the element intelligent contract. The block link point receives a digital element processing transaction request initiated by a user through the interactable device, the digital element processing transaction request including an element screening condition.
For example, the processing that the user wants to perform on the digital element is: a white electronic cat was searched. At this time, the user can trigger the electronic cat management client installed on the terminal equipment to display an electronic cat query interface on the client interface based on the electronic cat intelligent contract, the user inputs 'color white' on the interface, clicks the determination key, at this time, the electronic cat management client can acquire the digital element description parameter 'color white' input by the user, and takes the digital element description parameter 'color white' as a screening condition of the query, generates an electronic cat query transaction request comprising the screening condition based on the electronic cat intelligent contract, sends the electronic cat query transaction request to the blockchain network, and the blockchain node can acquire the electronic cat query transaction request comprising the screening condition of 'color white'.
S102, calling a functional interface of the element intelligent contract according to the digital element processing transaction request, and using element screening conditions as input parameters of the functional interface to process the digital elements meeting the element screening conditions.
Wherein the functional interface of the smart contract may be a functional function interface included in the smart contract for implementing a certain processing operation function of the digital element, the interface may be defined in the form of program code, which is deployed in the smart contract. Optionally, there are many functional interfaces of the intelligent contract in the embodiment of the present invention. The present embodiment is not limited to this. For example, it may include: element information acquisition interfaces, element global total amount determination interfaces, element user total amount determination interfaces, element transfer interfaces and the like. The element information acquisition interface is used for acquiring digital element information meeting screening conditions; the element global total amount determining interface is used for obtaining total amount values of all digital elements meeting the screening conditions; the element user total amount determining interface is used for obtaining the total amount value of the digital elements meeting the screening conditions under a certain user account; the element transfer interface is used for executing transfer operation of the digital element under different user accounts.
Optionally, after the blockchain node receives the digital element to process the transaction request, according to the requirement of the transaction request, invoking the virtual machine to run the related code of the intelligent contract, finding the functional interface corresponding to the requirement, then taking the screening condition contained in the transaction request as the input parameter of the functional interface code, and running the program code of the functional interface, at this time, the functional interface executes the screening operation corresponding to the functional interface (i.e. screens the digital element meeting the screening condition from the digital element data stored in the blockchain) according to the functional function defined in the program code, and outputs the corresponding processing result. In particular, how this step is performed for the different functional interfaces described above to handle the relevant operation of the transaction request for the digital element will be described in detail in the following embodiments.
Optionally, in this embodiment, when the function interface of the element intelligent contract is called according to the digital element processing transaction request, the processing operation may be completed by calling the function interface of an element intelligent contract, where the digital element processing transaction request is the number of white electronic cats of the search user a, and only one element user total amount determining interface needs to be called to complete the related operation of the digital element processing transaction request. The processing operation may also need to be completed by calling the function interfaces of at least two element intelligent contracts, if the digital element processing task request is to find the number of white electronic cats of the user a, if more than 3, one of them is transferred to the account of the user B. At this time, the element user total amount determining interface needs to be called to check the number of white electronic cats of the user A, and if the number of the white electronic cats is more than 3, the element transferring interface needs to be called to transfer one white electronic cat of the user A to the account of the user B.
Optionally, when the function interfaces of the at least two element intelligent contracts need to be called in the process of executing the digital element processing transaction request, the calling modes of the at least two function interfaces may include: parallel calls and/or nested calls. For example, if at least two called functional interfaces have no related dependency relationship in the process of processing the digital element, at least two functional interfaces can be called in parallel at this time, so that the processing efficiency of processing the transaction request by the digital element is improved. If the at least two called functional interfaces have a certain dependency relationship in the process of executing the digital element processing, the at least two functional interfaces can be called in a nested way. If at least one part of the function interfaces has a dependency relationship in the process of executing the digital element processing, and one part of the function interfaces does not have the dependency relationship, the function interfaces with the dependency relationship can be called in a nested mode, and the function interfaces without the dependency relationship can be called in a parallel mode.
According to the technical scheme, when a digital element processing transaction request including element screening conditions initiated based on an element intelligent contract is received, the block chain node calls a functional interface of the element intelligent contract according to the request, takes the element screening conditions as input parameters of the functional interface, and operates program codes of the functional interface to finish processing digital elements meeting the element screening conditions. According to the scheme provided by the embodiment of the invention, the element screening conditions which can be controlled by the user and comprise the digital element description parameters are arranged in each functional interface of the element intelligent contract, so that a more flexible element control mode is provided for the user, the problem that the prior art cannot meet the processing demands of the user on various types and multiple attributes of digital elements is solved, and when new demands and new digital elements are added, the development and deployment of new intelligent contracts are not needed, and only the corresponding functional interfaces are needed to be additionally arranged in the original intelligent contracts, so that the flexibility and universality of processing the digital elements based on the intelligent contracts can be enhanced, and the abundant demands of digital element processing are met.
Example two
Based on the above embodiment, the embodiment further optimizes how to execute the function interface for calling the element intelligent contract according to the digital element processing transaction request according to different function interfaces (such as an element information acquisition interface, an element global total amount determination interface, an element user total amount determination interface and an element transfer interface), and uses the element screening condition as an input parameter of the function interface so as to introduce the specific processing situation of the digital element meeting the element screening condition.
1. Element information acquisition interface.
The element information acquisition interface is used for acquiring the digital element information meeting the screening conditions according to the screening conditions contained in the digital element processing transaction request. Specifically, the functional function codes of the element information acquisition interface deployed in the element intelligent contract are as follows:
function assets(string filter){return array<string>}
wherein function assets () is a function of the element information acquisition interface; STRING FILTER are input parameters filled in brackets of the function, i.e. filtering rules when executing the function; { return array < string > } is the output parameter of the function, i.e. the string array that outputs the digital element information.
Specifically, the filtering rule may be a rule set to perform a filtering operation according to a filtering condition included in the digital element processing transaction request, and the filtering rule may represent a filtering algorithm in a set format. Alternatively, the filtering algorithm may be represented in a format of a key-value pair, specifically, a key field in the key-value pair is a keyword in the digital element description parameter, and a value field in the key-value pair is description information of the keyword in the digital element description parameter. For example, the filtering algorithm is to filter the color white, and the key domain of the key value pair is the keyword color; the value range is the descriptive information of the color white. Alternatively, the filtering algorithm may include a mathematical operation matching algorithm of numbers and strings and/or a regular matching algorithm of strings. The mathematical operation matching algorithm of the number and the character string can be used for carrying out mathematical operations of more than, less than, equal to, more than or equal to or less than or equal to based on the number and the character. For example, if the filtering algorithm is to filter the ages below three years old, the filtering algorithm may use a mathematical operation matching algorithm including numbers and character strings, and the corresponding codes are: { Age } ". The regular matching algorithm of the character strings can be used to perform matching search of the same character string. For example, if the filtering algorithm is to filter the color to be white, the filtering algorithm may use a regular matching algorithm of the character string, and the corresponding codes are: { Color: "white" }. Optionally, the filtering rule in the input parameter of one functional interface may set at least one filtering algorithm, and specifically, several filtering algorithms are set specifically according to the number of filtering conditions of the user. For example, if the filtering condition is white, only one filtering algorithm needs to be set at the moment; if the screening condition is white in color and is less than three years old, two filtering algorithms are required to be set. It should be noted that, the filtering rules corresponding to the functional interfaces described in this embodiment are similar, and the subsequent functional interfaces will not be described again.
Optionally, the specific operation procedure of the block link point for processing the digital element processing transaction request according to the digital element processing transaction request calling element information acquisition interface may be: and calling an element information acquisition interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule of the attribute description parameter of the digital element as an input parameter of the element information acquisition interface to acquire the element information of the digital element meeting the filtering rule.
Wherein the property description parameter of the digital element may be one of the digital element description parameters, which is a parameter describing a certain property of the digital element. The digital element description parameters also comprise other description parameters, such as user account information, digital parameter quantity and the like, which are involved in the subsequent functional interfaces.
Specifically, when the digital element processing transaction request is digital element information meeting the filtering condition, the digital element processing transaction request may call the function code of the element information acquisition interface of the element intelligent contract according to the digital element processing transaction request, set a filtering rule according to the attribute description parameter of the digital element in the filtering condition in the digital element processing transaction request, take the filtering rule as the input parameter of the element information acquisition interface, and then run the function code of the element information acquisition interface after the input parameter, where the function code outputs the element information of the digital element meeting the filtering rule in the blockchain. For example, the digital element transaction request is to acquire information of a white electronic cat in the blockchain, at this time, a function code function assets (STRING FILTER) of an element information acquisition interface in the electronic cat intelligent contract is called { return array < string > }, a filtering algorithm is set to be "{ Color:" white "}" according to an attribute description parameter "color.white" in a filtering condition, and the filtering algorithm is input into the function code as a filtering rule of this time to obtain function assets ({ Color: "white" }) { return array < string > }, and at this time, the running code outputs relevant information of the white electronic cat in the blockchain in an array form.
Alternatively, since element information of a digital element may be divided into a plurality of kinds of information, for example, a name, a code number, a value, a color, an age, and the like of the digital element may be included. The related information of the digital element satisfying the filtering rule can be acquired through the function function assets (STRING FILTER) { return array < string > }. For example, if the digital element is an electronic cat and the filtering rule is less than 1 year old, then the identification information of the electronic cat less than 1 year old in the blockchain network can be obtained through a function function assets (Age: "+.3") { return array < string > }.
If it is desired to obtain a certain piece of independent information of the digital element, a specific element information obtaining interface may be further adopted, for example, if it is desired to obtain the code of the digital element, an element code obtaining interface of the intelligent contract may be called, and functional function codes deployed in the intelligent contract by the interface may be: function symbol () { return string }. For example, if the digital element is an electronic cat, the code of the electronic cat (e.g., CT 1001) may be obtained by the function symbol () { return string }, which may be composed of a primary and/or a number, such as may be similar to the code of a stock. If the name of the digital element is to be acquired, an element name acquisition interface of the intelligent contract can be called, and the functional function code deployed in the intelligent contract by the interface can be: function name () { return string }. For example, if the digital element is an electronic Cat, the name of the electronic Cat (e.g., cat) can be obtained by the function name () { return string }. The name may be composed of a primary and secondary and/or a chinese character, such as may be similar to the name of a company.
Optionally, the function code of the element information obtaining interface may fill in the input parameters according to the requirement, or may not fill in the input parameters, and when the input parameters are not filled in, the output result of the interface is the element information of all the digital elements in the blockchain. For example, the function code function name () { return string }, which calls the electronic cat smart contract, is not added with an input parameter in brackets, and the function code is run at this time, and the output result is the names of all electronic cats in the blockchain.
2. Element global total determination interface
The element global total amount determining interface is used for obtaining total amount values of all digital elements meeting the screening conditions according to the screening conditions contained in the digital element processing transaction request. Specifically, the functional function code of the element global total amount determination interface deployed in the element intelligent contract is as follows:
function totalSupply(string filter){return int256}
wherein function totalSupply () determines the function of the interface for the global total of the element; STRING FILTER are input parameters filled in brackets of the function, i.e. filtering rules when executing the function; { return int256} is the output parameter of the function, i.e., an integer of 256 bits is output.
Optionally, the specific operation of the block link point to process the digital element processing transaction request according to the global total amount determination interface of the digital element processing transaction request calling element may be: and calling an element global total amount determining interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule comprising the attribute description parameters of the digital element as an input parameter of the element global total amount determining interface to obtain a global total amount value of the digital element meeting the filtering rule.
Specifically, when the digital element processing transaction request is to obtain the total amount value of all digital elements meeting the filtering condition in the blockchain, the functional function code of the interface can be determined according to the global total amount of the elements of the intelligent contract called by the digital element processing transaction request, a filtering rule is set according to the attribute description parameter of the digital elements in the filtering condition in the digital element processing transaction request, the filtering rule is used as the input parameter of the interface for determining the global total amount of the elements, then the functional function code of the interface is determined by running the global total amount of the elements after the input parameter, and the functional function code can output the total amount value of all the digital elements meeting the filtering rule in the blockchain. For example, the digital element transaction request is to obtain the total value of all white electronic cats in the blockchain, at this time, the function code function totalSupply (STRING FILTER) { return int256} of the element global total determination interface in the electronic cat intelligent contract may be called, a filtering algorithm is set to "{ Color:" white "}" according to the attribute description parameter "Color. White" in the filtering condition, and the filtering algorithm is input into the function code as the filtering rule of this time, so as to obtain function totalSupply ({ Color: "white" }) { return int256} and at this time, the total value of all white electronic cats in the blockchain is output by running the code.
3. Element user total determination interface
The element user total amount determining interface is used for obtaining the total amount value of the digital element meeting the screening condition under a certain user account according to the attribute description parameter and the user account information of the digital element in the screening condition contained in the digital element processing transaction request. Specifically, the functional function codes of the element user total amount determination interface deployed in the element intelligent contract are as follows:
function balanceOf(address owner,string filter){return int256}
Wherein function balanceOf () determines the function of the interface for the element user total; STRING FILTER are input parameters filled in brackets of the function, i.e. filtering rules when executing the function; the address finder is the account information of the user screened at the time; { return int256} is the output parameter of the function, i.e., an integer of 256 bits.
Optionally, the specific operation of the block link point to process the digital element processing transaction request according to the digital element processing transaction request calling element user total amount determining interface may be: and calling an element user total amount determining interface of the element intelligent contract according to the digital element processing transaction request, and taking the filtering rule comprising the attribute description parameters of the digital element and the user account information as the input parameters of the element user total amount determining interface to obtain the user total amount value of the digital element meeting the filtering rule.
Specifically, when the digital element processing transaction request is to obtain the total value of the digital elements meeting the screening conditions under a certain user account, the digital element processing transaction request invokes the functional function code of the interface to determine the total value of the digital elements meeting the screening conditions under the user account. For example, the digital element transaction request is to obtain the total number value of white electronic cats owned by the USER a, at this time, the function code function balanceOf (address owner, STRING FILTER) { return int256} of the element USER total number determination interface in the electronic cat smart contract may be called, and according to the USER account information "USER [ a ]" to be obtained in the filtering condition and the filtering algorithm "{ Color:" white "}" set according to the attribute description parameter "Color" in the filtering condition, the above function code is input to obtain function balanceOf (USER [ a ], { Color: "white" }) { return int256}, at this time, the code is run to output the total number of white electronic cats owned by the USER a in the block chain.
4. Element transfer interface
And the element transferring interface user executes transferring operation of the digital element under different user accounts according to the screening condition, the user account information and the number of the digital parameters contained in the digital element processing transaction request. Specifically, in this embodiment, the function code of the element transfer interface deployed in the element intelligent contract includes at least two kinds of following:
code one, element transfer interface code containing only transfer-in user account information:
function transfer(address to,string filter,uint256value){return bool}
Wherein function transfer is a function of an element transfer interface code containing only transfer-in user account information; address to is account information transferred to the user by the digital element; STRING FILTER is a filtering rule when executing the function; the uint256value is the number of digital parameters; { return pool } is the output parameter of the function, i.e., the true or false judgment value. The number of the digital parameters is the number of the digital elements for executing the digital element transferring operation.
Code two, element transfer interface code containing roll-in-out user account information:
function transferFrom(address from,address to,string filter,uint256_value){return bool}
Wherein function transferFrom is a function of an element transfer interface code containing roll-in-out user account information; address from is the account information of the user transferred from the digital element, and address to is the account information of the user transferred from the digital element; STRING FILTER is a filtering rule when executing the function; the uint256value is the number of digital parameters; { return pool } is the output parameter of the function, i.e., the judgment value of whether or not successful execution is performed.
Optionally, the specific operation process of the block link point for processing the digital element processing transaction request according to the digital element processing transaction request calling any one of the element transfer interfaces may be: and calling an element transfer interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule comprising attribute description parameters of the digital element, user account information and the number of digital parameters as input parameters of the element transfer interface so as to carry out element transfer operation on the digital element meeting the filtering rule according to the user account information.
Specifically, when the digital element processing transaction request is to execute the transfer operation of the digital element under different user accounts, the functional function code of the element transfer interface can be called according to the digital element processing transaction request, a filtering rule is set according to the attribute description parameter of the digital element in the filtering condition in the digital element processing transaction request, the filtering rule and the user account information and the number of digital parameters in the filtering condition are taken as the input parameters of the element transfer interface, then the functional function code of the element transfer interface after the input parameters is operated, and the functional function code executes the transfer operation of the digital element with the number of digital parameters under different user accounts and returns a judgment value of whether the digital element transfer operation is executed successfully or not.
Optionally, if the user account information in the digital element processing transaction request only includes information that the digital element is transferred to the account, executing the code will transfer the digital element with the digital parameter number to the account information of the user. For example, the digital element transaction request is to transfer the found 3 white electronic cats to the USER a, and at this time, a function code function transfer (address to, STRING FILTER, uint256 value) { return book pool } of the element transfer interface only including the transfer USER account information in the electronic cat smart contract may be called, the found 3 white electronic cats are transferred to the USER account information "USER [ a ]", the number of digital parameters "3", and a filtering algorithm "{ Color:" white "}" set according to the attribute description parameter "Color in the filtering condition is input into the function code, so as to obtain function transfer (USER [ a ], { Color:" white "}, 3) { return book pool } and at this time, the found 3 white electronic cats are transferred to the USER a by running the code, and a judgment result value of whether the transfer operation is successfully executed is output.
If the user account information comprises the information of the digital element transferring-out account and the information of the digital element transferring-in account, executing the code II transfers the digital element with the digital parameter number from the account information of the digital element transferring-out account to the account information of the digital element transferring-in account.
For example, the digital element transaction request is to transfer 3 white electronic cats of the USER B to the USER a, at this time, a function code function transferFrom (address from, address to, STRING FILTER, uint 256_value) { return book } of an element transfer interface including the in-out USER account information in the electronic cat smart contract may be called, USER account information "USER [ B ]", in-USER account information "USER [ a ]", number of digital parameters "3", and a filtering algorithm "{ Color:" white "}" set according to the attribute description parameter "Color in the filtering condition are input into the function code described above, function transfer (USER [ B ], USER [ a ], { Color:" white "}, 3) { return book }, at this time, the 3 white electronic cats of the USER B are transferred to the USER a according to the filtering condition, and a result of judging whether the transfer operation is successfully performed is output.
It should be noted that, in the process of actually executing the digital element transaction request, at least two function interfaces described above may need to be called, for example, the element user total amount determining interface is called first, the element total amount value under the user a account is determined, and then the element transferring interface is called to transfer the digital element under the user a account to the user B account. Optionally, at least two functional interfaces that may be invoked in parallel and/or in a nested manner during the processing of a digital element processing transaction request are executed.
The technical scheme of the embodiment of the invention particularly introduces four functional interfaces and provides a specific method for calling each functional interface to process a transaction request of a digital element based on an element intelligent contract. Functional interfaces of other functions may be deployed in the element intelligent contracts in this embodiment, which is not limited to this embodiment. According to the embodiment, the flexibility and the universality of processing the digital elements based on the intelligent contracts can be enhanced through the interfaces with different functions deployed in the intelligent contracts, and the rich requirements of processing the digital elements are met.
Example III
Fig. 2 is a flowchart of a data processing method for a digital element according to a third embodiment of the present invention, where the embodiment is further optimized based on the foregoing embodiment, and specifically provides an introduction of a specific method for publishing a digital element to a blockchain, where the method specifically includes:
S201, a digital element issuing transaction request initiated by a user based on an element intelligent contract is received, wherein the digital element issuing transaction request comprises at least one digital element description parameter.
The digital element issuing transaction request can be a digital element issuing transaction request initiated based on an element intelligent contract through a local node, a terminal device capable of interacting with the blockchain or an interactive interface of a client side in order to enable other users in the blockchain to know the change condition of the digital element when the digital element of the user changes. Optionally, the transaction request includes at least one digital element description parameter of the digital element. The digital element description parameters are digital element description parameters set by a user aiming at the digital element released at the time, and the digital element description parameters are set for the digital element, so that when the functional interface of the element intelligent contract is operated, the digital element meeting the requirement can be rapidly and accurately screened out through the element description parameters set for the digital element owned by the user when the user releases the digital element. Optionally, the digital element issuing transaction request may further include, but is not limited to: digital element change status (e.g., add, delete, or modify), release time, user account information, and so forth.
It should be noted that, the difference between the digital element description parameter in the digital element issuing transaction request and the digital element description parameter in the screening condition in the digital element processing transaction request is that the former is set for the own digital element when the user issues the digital element; the latter is set for digital elements with searching according to the searching requirement when the user searches the digital elements in the blockchain.
Optionally, when a digital element owned by a user changes (such as a digital element increases, decreases, changes in attribute parameters, etc.), an interaction device (such as a local node device, a terminal device or a client capable of interacting with a blockchain) may be triggered to display an interaction interface to the user based on the element intelligent contract, the user may fill in relevant information (such as a digital element change state, a digital element description parameter, a release time, user account information, etc.) of the digital element released this time based on the interaction interface, and at this time, the interaction device may initiate a transaction request of releasing the digital element based on the element intelligent contract according to the relevant information of the digital element filled in by the user and send the transaction request to the blockchain network. The block link point receives a digital element issuing transaction request initiated by a user through the interactable device that includes at least one digital element description parameter.
For example, the processing that the user wants to perform on the digital element is: a new white electronic cat is issued. At this time, the user can trigger the electronic cat management client installed on the terminal device to display an electronic cat issuing interface on the client interface based on the electronic cat intelligent contract, the user inputs a white electronic cat newly added under the user A account on the interface, clicks the determining key, at this time, the electronic cat management client can acquire the digital element description parameter color, white, the user account information is the user A, the change state is newly added, then an electronic cat issuing transaction request of the user A including the digital element description parameter color, white is generated based on the electronic cat intelligent contract, the electronic cat issuing transaction request is sent to the blockchain network, and the blockchain node can acquire the electronic cat issuing transaction request.
S202, issuing a new digital element according to the digital element issuing transaction request.
Optionally, after receiving the digital element issuing transaction request, the blockchain node processes the digital element issuing transaction request based on the element intelligent contract, stores transaction data including at least one digital element description parameter on the blockchain, and issues the transaction data into the blockchain. And when the subsequent blockchain node processes the digital element processing transaction request, the functional interface of the element intelligent contract is called, and the digital elements meeting the conditions are screened from the digital elements released in the blockchain.
Optionally, when storing the digital element description parameter in the transaction data, in order to facilitate searching of the digital element, a storage mode of the digital element description parameter in the digital element issuing transaction request may be consistent with a storage mode of the digital element description parameter in the filtering condition in the digital element processing transaction request, and the format may be stored in a key value. Specifically, the foregoing embodiment has described the format storage of the digital element description parameters in the form of key values, which will not be described in detail herein.
S203, a digital element processing transaction request initiated based on the element intelligent contract is acquired, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, and each digital element comprises at least one digital element description parameter.
S204, calling the functional interface of the element intelligent contract according to the digital element processing transaction request, and using the element screening condition as an input parameter of the functional interface to process the digital element meeting the element screening condition.
According to the scheme of the embodiment of the invention, when a user issues a digital element issuing transaction request, a digital element description parameter is added into the digital element issuing transaction request, and a block link point receives and issues the digital element according to the digital element issuing transaction request containing the digital element description parameter. When a digital element processing transaction request including element screening conditions initiated based on an element intelligent contract is received, a functional interface of the element intelligent contract is called according to the request, the element screening conditions are used as input parameters of the functional interface, and program codes of the functional interface are operated, so that the processing of the digital element meeting the element screening conditions is completed. The embodiment of the invention comprises the digital element description parameters when the digital element is released, the processed digital element processing transaction request also comprises the screening conditions corresponding to the digital element description parameters, and the digital element meeting the screening conditions is screened out according to the digital description parameters when the digital element is released by calling the functional interface of the intelligent contract of the element, so that the flexibility and the universality of processing the digital element based on the intelligent contract can be enhanced, and the rich requirements of digital element processing are met.
Example IV
FIG. 3 is a block diagram illustrating a digital element data processing apparatus according to a fourth embodiment of the present invention, which may be configured in a blockchain node. The device can execute the data processing method of the digital element provided by the embodiments of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
As shown in fig. 3, the apparatus includes:
a transaction request acquiring module 301, configured to acquire a digital element processing transaction request initiated based on an element intelligent contract, where the digital element processing transaction request includes an element filtering condition, the element filtering condition includes a digital element description parameter, and each digital element includes at least one digital element description parameter;
The transaction request processing module 302 is configured to call a function interface of the element intelligent contract according to a digital element processing transaction request, and use the element screening condition as an input parameter of the function interface to process a digital element that meets the element screening condition.
According to the technical scheme, when a digital element processing transaction request including element screening conditions initiated based on an element intelligent contract is received, the block chain node calls a functional interface of the element intelligent contract according to the request, takes the element screening conditions as input parameters of the functional interface, and operates program codes of the functional interface to finish processing digital elements meeting the element screening conditions. The scheme of the embodiment of the invention solves the problems that the prior art cannot meet the processing demands of users on various types and multi-attribute digital elements, and when new demands and new digital elements are added, a new intelligent contract is not required to be developed and deployed, and only a corresponding functional interface is required to be additionally arranged in the original intelligent contract, so that the flexibility and the universality of processing the digital elements based on the intelligent contract can be enhanced, and the abundant demands of digital element processing are met.
Further, the transaction request processing module 302 is specifically configured to:
and calling an element information acquisition interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule of the attribute description parameter of the digital element as an input parameter of the element information acquisition interface to acquire the element information of the digital element meeting the filtering rule.
Further, the transaction request processing module 302 is specifically configured to:
and calling an element global total amount determining interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule comprising the attribute description parameters of the digital element as an input parameter of the element global total amount determining interface to obtain a global total amount value of the digital element meeting the filtering rule.
Further, the transaction request processing module 302 is specifically configured to:
And calling an element user total amount determining interface of the element intelligent contract according to the digital element processing transaction request, and taking the filtering rule comprising the attribute description parameters of the digital element and the user account information as the input parameters of the element user total amount determining interface to obtain the user total amount value of the digital element meeting the filtering rule.
Further, the transaction request processing module 302 is specifically configured to:
And calling an element transfer interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule comprising attribute description parameters of the digital element, user account information and the number of digital parameters as input parameters of the element transfer interface so as to carry out element transfer operation on the digital element meeting the filtering rule according to the user account information.
Further, the user account information includes: information of the digital element transferring out of the account and information of the digital element transferring into the account.
Further, the filtering rule includes at least one filtering algorithm expressed in a set format, where the filtering algorithm includes a mathematical operation matching algorithm for numbers and character strings, and/or a regular matching algorithm for character strings.
Further, the set format is a key value pair format, wherein a key field in the key value pair is a keyword in the digital element description parameter, and a value field in the key value pair is description information of the keyword in the digital element description parameter.
Further, the transaction request processing module 302 is specifically configured to, when the functional interface of the element smart contract is called according to the digital element processing transaction request:
calling the function interfaces of at least two element intelligent contracts according to the digital element processing transaction request;
the calling mode of the at least two function interfaces comprises the following steps: parallel calls and/or nested calls.
Further, the transaction request acquisition module 301 is further configured to: receiving a digital element issuing transaction request initiated by a user based on the element intelligent contract, wherein the digital element issuing transaction request comprises at least one digital element description parameter;
the device further comprises: and the digital element issuing module is used for issuing a new digital element according to the digital element issuing transaction request.
Example five
Fig. 4 is a schematic structural diagram of an apparatus provided in a fifth embodiment of the present invention, and fig. 4 is a block diagram of an exemplary apparatus suitable for implementing an embodiment of the present invention. The device shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the invention. The device may typically be a device configured with blockchain nodes.
As shown in fig. 4, device 400 is in the form of a general purpose computing device. The components of device 400 may include, but are not limited to: one or more processors or processing units 416, a memory 428, and a bus 418 that connects the various system components (including the memory 428 and the processing units 416).
Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 400 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 400 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 430 and/or cache memory 432. Device 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 418 via one or more data medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored in, for example, memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 442 generally perform the functions and/or methodologies in the embodiments described herein.
Device 400 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), one or more devices that enable a user to interact with device 400, and/or any devices (e.g., network card, modem, etc.) that enable device 400 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 422. Also, device 400 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 420. As shown, network adapter 420 communicates with other modules of device 400 over bus 418. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with device 400, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 416 performs various functional applications and data processing by running a program stored in the memory 428, for example, implementing a data processing method of digital elements provided by any of the embodiments of the present invention.
Example six
A sixth embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program (or referred to as computer-executable instructions) which, when executed by a processor, is configured to perform a data processing method of a digital element, the method comprising:
acquiring a digital element processing transaction request initiated based on an element intelligent contract, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, and each digital element comprises at least one digital element description parameter;
and calling a functional interface of the element intelligent contract according to the digital element processing transaction request, and taking the element screening condition as an input parameter of the functional interface so as to process the digital element meeting the element screening condition.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having 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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the embodiments of the present invention have been described in connection with the above embodiments, the embodiments of the present invention are not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (13)

1. A method of data processing of digital elements, performed by block link points, the method comprising:
Acquiring a digital element processing transaction request initiated based on an element intelligent contract, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, each digital element comprises at least one digital element description parameter, the digital element description parameters are parameter information obtained by simply describing certain characteristics of the digital element, and the digital element description parameters are stored in a format in a key value; the key domain in the key value pair is a keyword in the digital element description parameter, and the value domain in the key value pair is description information of the keyword in the digital element description parameter; the digital element is an asset credential in a blockchain network;
calling a functional interface of the element intelligent contract according to a digital element processing transaction request, and taking the element screening condition as an input parameter of the functional interface so as to process the digital element meeting the element screening condition; wherein the functional interface of the intelligent contract is a functional function interface which is contained in the intelligent contract and is used for realizing a certain processing operation function of the digital element; the function interface comprises an element information acquisition interface, an element global total amount determination interface, an element user total amount determination interface and an element transfer interface; the element information acquisition interface is used for acquiring digital element information meeting screening conditions; the element global total amount determining interface is used for obtaining total amount values of all digital elements meeting the screening conditions; the element user total amount determining interface is used for acquiring the total amount value of the digital elements meeting the screening conditions under a certain user account; the element transfer interface is used for executing transfer operation of digital elements under different user accounts.
2. The method of claim 1, wherein invoking the functional interface of the element intelligence contract according to a digital element processing transaction request takes the element screening condition as an input parameter of the functional interface to process digital elements that satisfy the element screening condition, comprising:
and calling an element information acquisition interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule of the attribute description parameter of the digital element as an input parameter of the element information acquisition interface to acquire the element information of the digital element meeting the filtering rule.
3. The method of claim 1, wherein invoking the functional interface of the element intelligence contract according to a digital element processing transaction request takes the element screening condition as an input parameter of the functional interface to process digital elements that satisfy the element screening condition, comprising:
and calling an element global total amount determining interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule comprising the attribute description parameters of the digital element as an input parameter of the element global total amount determining interface to obtain a global total amount value of the digital element meeting the filtering rule.
4. The method of claim 1, wherein invoking the functional interface of the element intelligence contract according to a digital element processing transaction request takes the element screening condition as an input parameter of the functional interface to process digital elements that satisfy the element screening condition, comprising:
And calling an element user total amount determining interface of the element intelligent contract according to the digital element processing transaction request, and taking the filtering rule comprising the attribute description parameters of the digital element and the user account information as the input parameters of the element user total amount determining interface to obtain the user total amount value of the digital element meeting the filtering rule.
5. The method of claim 1, wherein invoking the functional interface of the element intelligence contract according to a digital element processing transaction request takes the element screening condition as an input parameter of the functional interface to process digital elements that satisfy the element screening condition, comprising:
And calling an element transfer interface of the element intelligent contract according to the digital element processing transaction request, and taking a filtering rule comprising attribute description parameters of the digital element, user account information and the number of digital parameters as input parameters of the element transfer interface so as to carry out element transfer operation on the digital element meeting the filtering rule according to the user account information.
6. The method of claim 5, wherein the user account information comprises: information of the digital element transferring out of the account and information of the digital element transferring into the account.
7. The method according to any of claims 2-6, wherein the filtering rules comprise at least one filtering algorithm expressed in a set format, the filtering algorithm comprising a mathematical operation matching algorithm of numbers and strings, and/or a regular matching algorithm of strings.
8. The method of claim 7, wherein the set format is a key-value pair format, a key field in the key-value pair is a keyword in a digital element description parameter, and a value field in the key-value pair is description information of the keyword in the digital element description parameter.
9. The method of any of claims 1-6, wherein invoking the functional interface of the element intelligence contract based on a digital element processing transaction request comprises:
calling the function interfaces of at least two element intelligent contracts according to the digital element processing transaction request;
the calling mode of the at least two function interfaces comprises the following steps: parallel calls and/or nested calls.
10. The method of claim 1, wherein prior to obtaining the digital element transaction request initiated based on the element intelligence contract, further comprising:
Receiving a digital element issuing transaction request initiated by a user based on the element intelligent contract, wherein the digital element issuing transaction request comprises at least one digital element description parameter;
And issuing a new digital element according to the digital element issuing transaction request.
11. A data processing apparatus for digital elements, configured in a blockchain node, the apparatus comprising:
The transaction request acquisition module is used for acquiring a digital element processing transaction request initiated based on an element intelligent contract, wherein the digital element processing transaction request comprises element screening conditions, the element screening conditions comprise digital element description parameters, each digital element comprises at least one digital element description parameter, the digital element description parameters are parameter information obtained by simply describing certain characteristics of the digital element, and the digital element description parameters are stored in a format by key values; the key domain in the key value pair is a keyword in the digital element description parameter, and the value domain in the key value pair is description information of the keyword in the digital element description parameter; the digital element is an asset credential in a blockchain network;
The transaction request processing module is used for calling the functional interface of the element intelligent contract according to the digital element processing transaction request, and taking the element screening condition as an input parameter of the functional interface so as to process the digital element meeting the element screening condition; wherein the functional interface of the intelligent contract is a functional function interface which is contained in the intelligent contract and is used for realizing a certain processing operation function of the digital element; the function interface comprises an element information acquisition interface, an element global total amount determination interface, an element user total amount determination interface and an element transfer interface; the element information acquisition interface is used for acquiring digital element information meeting screening conditions; the element global total amount determining interface is used for obtaining total amount values of all digital elements meeting the screening conditions; the element user total amount determining interface is used for acquiring the total amount value of the digital elements meeting the screening conditions under a certain user account; the element transfer interface is used for executing transfer operation of digital elements under different user accounts.
12. An electronic device, the electronic device comprising:
One or more processors;
a memory for storing one or more programs;
When executed by the one or more processors, causes the one or more processors to implement the data processing method of a digital element as claimed in any one of claims 1 to 10.
13. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a data processing method of a digital element according to any one of claims 1-10.
CN201910380726.5A 2019-05-08 2019-05-08 Data processing method, device, equipment and storage medium for digital element Active CN111915304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910380726.5A CN111915304B (en) 2019-05-08 2019-05-08 Data processing method, device, equipment and storage medium for digital element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910380726.5A CN111915304B (en) 2019-05-08 2019-05-08 Data processing method, device, equipment and storage medium for digital element

Publications (2)

Publication Number Publication Date
CN111915304A CN111915304A (en) 2020-11-10
CN111915304B true CN111915304B (en) 2024-06-07

Family

ID=73242544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910380726.5A Active CN111915304B (en) 2019-05-08 2019-05-08 Data processing method, device, equipment and storage medium for digital element

Country Status (1)

Country Link
CN (1) CN111915304B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
CN108510389A (en) * 2018-03-30 2018-09-07 深圳前海微众银行股份有限公司 Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
CN108664650A (en) * 2018-05-17 2018-10-16 百度在线网络技术(北京)有限公司 A kind of transaction methods, device, equipment and the storage medium of block chain network
CN108665253A (en) * 2018-05-18 2018-10-16 百度在线网络技术(北京)有限公司 A kind of data processing method, device, equipment and the storage medium of block chain network
CN109033316A (en) * 2018-07-18 2018-12-18 上海源啟信息科技有限公司 Data processing method, device, system, equipment and storage medium
CN109146681A (en) * 2018-07-26 2019-01-04 百度在线网络技术(北京)有限公司 A kind of element processing method, device, equipment and the storage medium of block chain
CN109241359A (en) * 2018-08-18 2019-01-18 深圳市网心科技有限公司 Block chain node device, block catenary system, block data processing system and method
CN109656889A (en) * 2018-12-26 2019-04-19 百度在线网络技术(北京)有限公司 File system implementation method, device, equipment and storage medium based on block chain
CN109711200A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Accurate poverty alleviation method, apparatus, equipment and medium based on block chain
CN109710405A (en) * 2018-12-21 2019-05-03 平安科技(深圳)有限公司 Block chain intelligence contract administration method, apparatus, electronic equipment and storage medium
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190005469A1 (en) * 2015-07-14 2019-01-03 Fmr Llc Collateral Management With Blockchain and Smart Contracts Apparatuses, Methods and Systems
US20170140408A1 (en) * 2015-11-16 2017-05-18 Bank Of America Corporation Transparent self-managing rewards program using blockchain and smart contracts

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
CN108510389A (en) * 2018-03-30 2018-09-07 深圳前海微众银行股份有限公司 Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
CN108664650A (en) * 2018-05-17 2018-10-16 百度在线网络技术(北京)有限公司 A kind of transaction methods, device, equipment and the storage medium of block chain network
CN108665253A (en) * 2018-05-18 2018-10-16 百度在线网络技术(北京)有限公司 A kind of data processing method, device, equipment and the storage medium of block chain network
CN109033316A (en) * 2018-07-18 2018-12-18 上海源啟信息科技有限公司 Data processing method, device, system, equipment and storage medium
CN109146681A (en) * 2018-07-26 2019-01-04 百度在线网络技术(北京)有限公司 A kind of element processing method, device, equipment and the storage medium of block chain
CN109241359A (en) * 2018-08-18 2019-01-18 深圳市网心科技有限公司 Block chain node device, block catenary system, block data processing system and method
CN109710405A (en) * 2018-12-21 2019-05-03 平安科技(深圳)有限公司 Block chain intelligence contract administration method, apparatus, electronic equipment and storage medium
CN109656889A (en) * 2018-12-26 2019-04-19 百度在线网络技术(北京)有限公司 File system implementation method, device, equipment and storage medium based on block chain
CN109711200A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Accurate poverty alleviation method, apparatus, equipment and medium based on block chain
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform

Also Published As

Publication number Publication date
CN111915304A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
US7921075B2 (en) Generic sequencing service for business integration
US9304835B1 (en) Optimized system for analytics (graphs and sparse matrices) operations
WO2020015190A1 (en) Method for generating business rule, electronic device, and readable storage medium
US10417248B2 (en) Field extension in database system
CN101183379A (en) Attribute level federation from multiple data sources
US6658644B1 (en) Services-based architecture for a telecommunications enterprise
CN110109983B (en) Method and device for operating Redis database
CN113625998B (en) Request processing method and device
CN110737425A (en) billing platform system application program establishing method and device
US9854047B2 (en) Service pool for multi-tenant applications
CN114297119A (en) Intelligent contract execution method, device, equipment and storage medium
CN111324395B (en) Calling method, device and computer readable storage medium
US20060265387A1 (en) Method and apparatus for loading artifacts
CN111459991B (en) Information query method and device
US8776098B2 (en) Exchanging data using data transformation
CN116932147A (en) Streaming job processing method and device, electronic equipment and medium
CN111915304B (en) Data processing method, device, equipment and storage medium for digital element
CN108959294A (en) A kind of method and apparatus accessing search engine
CN115269040B (en) Tenant business application expanding method, device and system
CN113641633B (en) File processing method, apparatus, electronic device, medium, and computer program
KR20210122212A (en) Transaction processing method, device, equipment, program and medium of Ethereum virtual machine
KR20210105317A (en) A transaction processing method, a device, an equipment, a program and a medium of ethereum virtual machine
CN112905273A (en) Service calling method and device
CN114244912A (en) Data transmission method and device, computer equipment 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