CN117370396A - Asset processing method, device, equipment, medium and product based on block chain - Google Patents

Asset processing method, device, equipment, medium and product based on block chain Download PDF

Info

Publication number
CN117370396A
CN117370396A CN202311394966.3A CN202311394966A CN117370396A CN 117370396 A CN117370396 A CN 117370396A CN 202311394966 A CN202311394966 A CN 202311394966A CN 117370396 A CN117370396 A CN 117370396A
Authority
CN
China
Prior art keywords
data
asset
target digital
digital asset
service
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.)
Pending
Application number
CN202311394966.3A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202311394966.3A priority Critical patent/CN117370396A/en
Publication of CN117370396A publication Critical patent/CN117370396A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/253Fusion techniques of extracted features

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides an asset processing method, device, equipment, medium and product based on a blockchain. The method comprises the following steps: receiving a data query request initiated by a client, wherein the data query request is used for requesting to query asset trend data related to a target digital asset; acquiring a plurality of data sources of a target digital asset; the data sources are respectively from a plurality of data sources, and each data source is used for providing one data source; the plurality of data sources includes a first data source on a blockchain and a second data source under the blockchain; performing data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data for the target digital asset is returned to the client. The method and the device can acquire a plurality of data sources of the target digital asset from a plurality of data sources on and under the blockchain, and can provide more comprehensive and accurate asset trend data for the target digital asset.

Description

Asset processing method, device, equipment, medium and product based on block chain
Technical Field
The present application relates to the field of blockchain technology, and in particular, to a blockchain-based asset processing method, a blockchain-based asset processing apparatus, a computer device, a computer readable storage medium, and a computer program product.
Background
With the widespread use of blockchain technology, the frequency of trading of a wide variety of digital assets in a blockchain has increased, and the value of any digital asset has also been fluctuated by market changes during the trading process. To facilitate a user's ability to learn the trend of changes in the asset value of a digital asset, it is often necessary to make statistics or calculations on the asset trend data of the digital asset.
At present, any exchange often generates asset trend data of a digital asset according to quotation information of the respective exchanges, generally, the same digital asset usually has exchanges in a plurality of exchanges, and quotation information of different exchanges for the same digital asset may not be the same, so at present, the method for calculating the asset trend data has the situation of data island, and the calculation mode of the asset trend data is single and inaccurate.
Disclosure of Invention
The embodiment of the application provides an asset processing method, device, equipment, medium and product based on a blockchain, which can acquire a plurality of data sources of a target digital asset from a plurality of data sources on the blockchain and under the blockchain, and can provide more comprehensive and accurate asset trend data for the target digital asset.
In one aspect, the application provides a blockchain-based asset processing method applied to an asset service processing platform, wherein the asset service processing platform is associated with a plurality of data sources, and is provided with at least one background service for carrying out data interaction with one data source; wherein the method comprises the following steps:
receiving a data query request initiated by a client, wherein the data query request is used for requesting to query asset trend data related to a target digital asset;
invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain;
Performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by carrying out data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions;
asset trend data for the target digital asset is returned to the client.
In one aspect, the application provides a blockchain-based asset processing device applied to an asset service processing platform, wherein the asset service processing platform is associated with a plurality of data sources, and is provided with at least one background service for performing data interaction with one data source; wherein the device includes:
the receiving unit is used for receiving a data query request initiated by the client, wherein the data query request is used for requesting to query asset trend data related to the target digital asset;
a processing unit for invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain;
The processing unit is also used for carrying out multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by carrying out data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions;
and the sending unit is used for returning the asset trend data of the target digital asset to the client.
In one possible implementation, the background service comprises a transaction data synchronization service, and the data source comprises a blockchain node; the processing unit invokes at least one background service to obtain a plurality of data sources for the target digital asset for performing the following operations:
invoking a transaction data synchronization service to perform transaction event detection processing on at least one decentralised exchange contract deployed by the blockchain node, wherein the transaction event detection processing mode comprises the following steps: any one or more of synchronous detection mode, asynchronous detection mode and periodic detection mode;
if a transaction event matching the target digital asset is detected in any of the decentralised exchange contracts, acquiring first transaction data associated with the transaction event;
The first transaction data is used as a first data source for the target digital asset.
In one possible implementation, the data source further comprises at least one centralized transaction platform under the blockchain; the processing unit is also configured to perform the following operations:
invoking a transaction data synchronization service to respectively acquire second transaction data associated with the target digital asset from at least one centralized transaction platform under the blockchain;
the acquired second transaction data is added to a second data source of the target digital asset.
In one possible implementation, the background service further includes an information data synchronization service, the data source further includes an information platform, and the plurality of data sources further includes a third data source; the processing unit invokes at least one background service to obtain a plurality of data sources for the target digital asset for performing the following operations:
invoking an information data synchronization service to obtain information data associated with the target digital asset from the information platform;
performing data preprocessing on the information data to obtain preprocessed information data;
and taking the preprocessed information data as a third data source of the target digital asset.
In one possible implementation, the processing unit is further configured to perform the following operations:
Calling an interface of an exchange rate inquiry service based on the transaction data synchronization service to acquire an exchange rate table associated with the target digital asset;
based on the obtained exchange rate table, respectively performing exchange rate conversion processing on the first data source, the second data source and the third data source of the target digital asset;
and taking the first data source, the second data source and the third data source after exchange rate conversion processing as a plurality of data sources of the target digital asset.
In one possible implementation, the processing unit is further configured to perform the following operations:
generating a service call request based on the transaction data synchronization service, and sending the service call request to the exchange rate inquiry service; the service invocation request is used to indicate: the transaction data synchronization service calls an interface of the exchange rate inquiry service to acquire an exchange rate table associated with the target digital asset;
if a feedback message allowing the interface to call is received, a service interface of the exchange rate query service is called to acquire an exchange rate table of the target digital asset;
wherein the feedback message is generated after the service verification executed by the exchange rate inquiry service on the transaction data synchronization service is passed; the service verification includes: white list authentication, identity authentication, service type authentication.
In one possible implementation, the background service further includes an authentication service; after receiving the data query request initiated by the client, the processing unit is further configured to perform the following operations:
analyzing the data query request to obtain signature data of a target object initiating the data query request;
invoking an authentication service to perform authentication processing on the target object, wherein the authentication processing comprises: any one or more of authority verification and signature verification;
if the authentication process for the target object passes, a step of acquiring a plurality of data sources of the target digital asset is triggered to be executed.
In one possible implementation, the processing unit performs multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension for performing the following operations:
performing format conversion processing on the multi-dimensional data sources of the target digital asset according to the format conversion rule to obtain all the data sources with the same data format;
performing data fusion processing on all data sources with the same data format to obtain a fused data source of the target digital asset;
and carrying out multidimensional data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension.
In one possible implementation, the asset trend data includes K-line data in the value dimension; the processing unit performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension, and the processing unit is used for executing the following operations:
according to the value dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a first analysis result of the target digital asset, wherein the first analysis result is used for reflecting the overall change trend of the asset value of the target digital asset;
and obtaining K-line data of the target digital asset in the value dimension based on the first analysis result of the target digital asset.
In one possible implementation, the asset trend data includes time-sharing data in a time dimension; the processing unit performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension, and the processing unit is used for executing the following operations:
according to the time dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a second analysis result of the target digital asset, wherein the second analysis result is used for reflecting the asset value trend of the target digital asset in a specified time interval;
And obtaining time-sharing data of the target digital asset in the time dimension based on the second analysis result of the target digital asset.
In one possible implementation, the asset trend data further includes information data in an information dimension; the processing unit performs data analysis on the target digital asset based on the fused data source of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension for performing the following operations:
according to the information dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a third analysis result of the target digital asset, wherein the third analysis result is used for reflecting market data of the asset value of the target digital asset in an information market;
asset trend data for the target digital asset is obtained based on the first analysis result, the second analysis result, and the third analysis result for the target digital asset.
In one possible implementation, the processing unit returns asset trend data for the target digital asset to the client for performing the following operations:
acquiring an asset type of a target digital asset;
if the asset type of the target digital asset is the appointed type, performing data protection processing on the asset trend data of the target digital asset to obtain asset trend data after the data protection processing;
Returning the asset trend data after the data protection processing to the client;
the data protection process comprises the following steps: any one or more of encryption processing and data conversion processing.
In one aspect, embodiments of the present application provide a computer device including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the above-described blockchain-based asset processing method.
In one aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that, when read and executed by a processor of a computer device, causes the computer device to perform the above-described blockchain-based asset processing method.
In one aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the computer device to perform the blockchain-based asset processing method described above.
In the embodiment of the application, a data query request initiated by a client can be received, wherein the data query request is used for requesting to query asset trend data related to a target digital asset; invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain; performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions; finally, asset trend data for the target digital asset may be returned to the client. Therefore, in the process of generating asset trend data for the target digital asset, the plurality of data sources related to the target digital asset can be acquired from the plurality of data sources, and because the plurality of data sources can provide richer and more comprehensive data sources for the target digital asset, the asset trend data in a plurality of data dimensions can be generated for the target digital asset based on the richer and more comprehensive data sources, so that more comprehensive and more accurate asset trend data can be provided for clients.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for the person skilled in the art.
FIG. 1 is a block chain system architecture diagram according to one embodiment of the present application;
FIG. 2 is a block chain architecture diagram provided in an embodiment of the present application;
FIG. 3a is a schematic block chain based asset processing system according to one embodiment of the present application;
FIG. 3b is an architecture diagram of a blockchain-based asset processing backend system provided by embodiments of the present application;
FIG. 4 is a flow diagram of a blockchain-based asset processing method provided by embodiments of the present application;
FIG. 5 is a schematic diagram of an interface for displaying asset trend data according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an interface for displaying information according to an embodiment of the present application;
FIG. 7 is an interactive flow chart of a blockchain-based asset processing method provided by embodiments of the present application;
FIG. 8 is a schematic diagram of a block chain based asset processing device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The utility model provides an asset processing scheme based on block chain, can acquire market-wide market quotation data (namely a plurality of data sources) about a target digital asset from a plurality of data sources, for example, a first data source in a decentralization exchange contract on the block chain and a second data source in a centralized exchange platform under the block chain, and combine a plurality of data sources of different sources, so that more comprehensive and high-order asset trend data is generated for the target digital asset, and a user can conveniently and more comprehensively and accurately know the asset value of the target digital asset in the market. In detail, the principles of the blockchain-based asset processing scheme provided herein generally include the following steps 1) -4):
1) When the target object needs to request to inquire the asset trend data related to the target digital asset, a data inquiry request can be initiated at the client. Optionally, the private key of the target object may be used to sign the data query request, and the signed data query request may be sent to the asset service processing platform.
2) The asset transaction processing platform may obtain a plurality of data sources associated with the target digital asset. Wherein, the plurality of data sources are respectively from a plurality of data sources, and each data source is used for providing one data source; the plurality of data sources includes a first data source on a blockchain and a second data source under the blockchain. For example, the plurality of data sources may include: at least one decentralised exchange contract on the blockchain, at least one centralized exchange platform under the blockchain, and an information platform, among others.
3) And then, carrying out data analysis on a plurality of data sources of the target digital asset to obtain asset trend data aiming at the target digital asset under at least one data dimension, wherein the asset trend data is used for reflecting the change condition of the asset value of the target digital asset under different data dimensions. For example, the data dimensions may include: any one or more of a value dimension, a time dimension, an information dimension, and the like.
4) Asset trend data for the target digital asset is returned to the client for display in the client. Optionally, the asset trend data of the target digital asset may be displayed in the client in a data graph manner, so that the target object can more intuitively understand the asset trend data.
Therefore, in the process of generating asset trend data for the target digital asset, the plurality of data sources related to the target digital asset can be acquired from the plurality of data sources, and because the plurality of data sources can provide richer and more comprehensive data sources for the target digital asset, the asset trend data in a plurality of data dimensions can be generated for the target digital asset based on the richer and more comprehensive data sources, so that more comprehensive and more accurate asset trend data can be provided for clients.
The following describes in detail the key technical terms involved in the present application.
1. Target digital asset
The target digital asset is any of a variety of digital assets that the target object is to query, and is any type of virtual asset that can be an asset on the blockchain or an asset under the blockchain. For example, the digital asset may include: any type of asset, such as digital collection, electronic invoice, game asset, etc., the type of digital asset is not specifically limited in this application.
2. Data source and data source
A data source party refers to an object that provides a data source for a target digital asset. The data source may be a platform under the blockchain or a node on the blockchain. For example, the data origins may include, but are not limited to: any one or more of blockchain nodes (e.g., decentralised exchange contracts), decentralised exchange platforms (e.g., stock exchanges), and information platforms (e.g., news websites, social forums, etc.). And, a data source for providing a data source for the target digital asset, e.g., the data source is a blockchain node, the blockchain node may provide on-chain transaction data (a first data source) for the target digital asset; for another example, the data source is a centralized transaction platform, which may provide the link transaction data (second data source) for the target digital asset; also, the data source is an information platform, which may provide information data about the target digital asset, and so on.
A data source refers to data obtained from one or more data sources that is associated with a target digital asset. The association here may include: any one or more of including the target digital asset, receiving the target digital asset, transferring the target digital asset.
3. Asset trend data for a target digital asset
Asset trend data, as the name suggests, is dynamic data that reflects the asset value trend/trend of a target digital asset, where dynamic data refers to the trend of the asset trend data that changes dynamically over time. Among other things, asset value trends for a target digital asset may include, but are not limited to: the value change of the target digital asset during the transaction, the highest transaction value of the target digital asset, the lowest transaction value of the target digital asset, the estimated trend of the transaction value of the target digital asset, and the like.
In particular, asset trend data in this application is used to reflect changes in asset value of a target digital asset over multiple data dimensions, which may include, for example: any one or more of time sharing dimension, value dimension, information dimension, etc. Wherein asset trend data in one data dimension is used to characterize trend graphs in the corresponding data dimension: (1) for example, if the data dimension is a time-sharing dimension, then the asset trend data in the time-sharing dimension may be used to characterize a time-sharing map of the target digital asset, where the time-sharing map is a map of the value rise and fall trend changes of the target digital asset over a fixed period of time (e.g., per minute) that is plotted as a trend profile of the value of the target digital asset in the time dimension. (2) For another example, if the data dimension is the value dimension, the asset trend data in the value dimension may be used to represent a K-ray diagram of the target digital asset, where the K-ray diagram is drawn based on the data such as the release value, the highest asset value, the lowest asset value, and the ending transaction value of the target digital asset, and may be used to reflect the overall trend and value information of the value of the target digital asset. (3) If the data dimension is an information dimension, the asset trend data in the information dimension can be used to reflect the information of the target digital asset, and the information can be displayed in a data form of a graph or a text, and the display form of the asset trend data in any data dimension is not specifically limited in the application.
4. Blockchain techniques
The blockchain is essentially a decentralised database, which is a string of data blocks that are generated in association using cryptographic methods, each of which contains associated information for verifying the validity of its information (anti-counterfeiting) and generating the next Block. Specifically, the present application will describe in detail the blockchain system, the blocks, and other related terms, respectively.
(1) Blockchain system:
referring to fig. 1, fig. 1 is a schematic structural diagram of a blockchain system according to an embodiment of the present application. As shown in fig. 1, the blockchain system may be a data sharing system, where the data sharing system refers to a system for performing data sharing between node devices, and the data sharing system 100 may include a plurality of node devices 101, where the plurality of node devices 101 may be respective computer devices in the data sharing system, and the computer devices may be, for example, terminal devices or servers. The device types of different node devices 101 may be the same or different, for example, one node device 101 may be a terminal device, and another node device 101 may be a server.
In the blockchain system shown in fig. 1, each node device 101 may receive input information while performing normal operation and maintain shared data within the data sharing system based on the received input information. For example, when any node device 101 in the blockchain system receives a transaction uplink request, the node device 101 may parse the transaction uplink request to obtain a transaction to be uplink, and then may send the transaction to be uplink to other blockchain nodes in the blockchain, so that each blockchain node performs blockchain consensus on the current transaction, if the consensus passes, the transaction may be written into the blockchain, so as to complete the uplink processing of the transaction, so that each blockchain node on the blockchain commonly maintains the transaction data (i.e. shared data) of the transaction in the blockchain.
(2) Blockchain nodes:
(1) node function:
a. application functions, configured to be deployed in a blockchain, to implement a specific service according to actual service requirements, where the recording of data related to implementing the service functions forms recording data (e.g., transaction data), where the service functions implemented on the blockchain by the transaction data may include, for example: resource transfer functions, game service functions, etc. In one implementation, a digital signature (e.g., a digital signature generated by signing transaction data using a private key of a ul object) may be carried in a ul request of the transaction data to represent a source of the transaction data, and the transaction data may be sent to other nodes in the blockchain system, so that the other nodes may add the transaction data to the temporary block when verifying the source and integrity of the transaction data, and thus complete the ul processing of the transaction data.
b. Contract function, any block link point in the block chain system has the function of calling and executing corresponding intelligent contracts, namely intelligent contracts (contracts for short): the intelligent contract has three major elements of commitment, agreement and digital form, so that the application range of the blockchain can be expanded to all links of transaction, payment, settlement and clearing in the financial industry. A smart contract refers to the fact that when a pre-compiled condition is triggered, the smart contract immediately executes the corresponding contract terms, the working principle of which is similar to an if-then statement of a computer program. Wherein, the blockchain node is operated with an intelligent contract virtual machine (which is a virtual machine capable of executing intelligent contracts), and the intelligent contract virtual machine can understand and execute the codes to realize the functions of the intelligent contracts. In the application, based on the contract function of the block link point, at least one decentralised exchange contract can be deployed for the block link node, and when the block link node receives a resource transaction (such as a transaction for transferring a target digital asset or a transaction for exchanging the target digital asset), the deployed decentralised exchange contract can be invoked to execute a corresponding contract transaction.
(2) And (3) node identification:
for each node in the blockchain system, the node identification corresponding to the node identification is provided, and each node in the blockchain system can store the node identifications of other nodes in the blockchain system so as to broadcast the generated blocks to other nodes in the blockchain system according to the node identifications of other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list.
The node identifier may be an IP (Internet Protocol, protocol of interconnection between networks) address, and any other information that can be used to identify the node, and the IP address is only illustrated in table 1.
TABLE 1 node identification list
Node name Node identification
Node 1 000.000.000.000
Node 2 111.111.111.111
Node N xxx.xxx.xxx.xxx
In the embodiments of the present application, different types of asset transaction scenarios, such as a digital collection type asset transaction scenario, an electronic invoice type asset transaction scenario, and the like, are involved, where the above-mentioned different types of asset transaction scenarios often involve consensus processing of asset transactions by each blockchain node (e.g., a consensus node). The consensus processing of the asset transaction generally involves data interaction among the consensus nodes, and in the data interaction process, any one of the consensus nodes can carry own node identification, so that other consensus nodes can perform authentication processing of the nodes based on the corresponding node identification before performing the consensus processing, and the data security and reliability in the blockchain consensus processing process are improved.
(3) The structure of the block:
referring to fig. 2, fig. 2 is a schematic block chain structure according to an embodiment of the present application. As shown in fig. 2, the blockchain is composed of a plurality of blocks, and each blockchain includes an initiation block, which is the first block, the initial block, as the name implies. The starting block comprises a block head and a block body, wherein the block head stores an input information characteristic value, a version number, a time stamp and a difficulty value, and the block body stores input information; the next block of the starting block takes the starting block as a father block, the next block also comprises a block head and a block body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the father block, the version number, the timestamp and the difficulty value, and the like, so that transaction data stored in each block in the block chain are associated with transaction data stored in the father block, and the security of the transaction data in the block is ensured.
In this embodiment of the present application, the present application relates to digital asset transactions of different types, where the digital asset transactions include transaction data, specifically, after the transaction data is processed in a uplink manner, the transaction data may be added to a block body of a current block in a blockchain, and according to a structure of the block, security and reliability of storage of the transaction data on the chain may be ensured, and risk of tampering of the transaction data may be avoided.
5. Cloud technology
In the asset processing scheme based on the blockchain, more data computing services and data storage services are involved in the blockchain, so that a great deal of computer operation cost is required. Then, the asset processing scheme provided by the application relates to cloud technology, and specifically, the cloud technology can provide data computing service and data storage service, and specifically, key change processing can be performed on an initial public key of a target object in a target digital asset contract based on the data computing service; and the updated public key after the key change may be written to the target digital asset contract of the target object based on the data storage service. The Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by a Cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. The cloud technology may include cloud storage technology, so called cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and the distributed cloud storage system (hereinafter referred to as a storage system for short) refers to a storage system that provides data storage and service access functions together by integrating a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces through functions such as cluster application, grid technology, and distributed storage file system.
6. Artificial intelligence
In this application, multiple data sources are acquired from different data sources for a target digital asset. In the process of acquiring a plurality of data sources, a background service can be called to acquire the data sources, wherein the background service can be an artificial intelligence service, for example, a target digital asset is a game asset, the artificial intelligence service can be a cloud game service, and the game asset is acquired from a cloud game by calling the cloud game service. Among them, the artificial intelligence (Artificial Intelligence, AI) service, which is a comprehensive discipline, involves a wide range of fields, including hardware-level technology and software-level technology. Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, cloud gaming, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and other directions.
It should be specifically noted that related data in the handling of blockchain-based assets referred to in this application, such as: multiple data sources for the target digital asset, asset trend data, and so forth. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and related data collection, use and processing processes need to comply with related laws and regulations and standards of countries and regions, comply with legal, legal and necessary principles, and do not relate to obtaining data types prohibited or limited by laws and regulations. In some alternative embodiments, the related data related to the embodiments of the present application is obtained after the object is individually authorized, and in addition, the purpose of the related data related to the object needs to be indicated to the object when the object is obtained for individual authorization.
Architecture diagrams of the blockchain-based asset processing system provided herein are described in detail below.
1. The macro system architecture provided in the present application will be described in detail with reference to fig. 3 a.
Referring to fig. 3a, fig. 3a is a schematic architecture diagram of a blockchain-based asset processing system according to an embodiment of the present application. As shown in fig. 3a, the architecture diagram of the asset processing system may include at least: a client 301, an asset transaction processing platform 302, and at least one blockchain node 303. The number of the blockchain nodes 303 is not specifically limited, and the number of the nodes can be flexibly changed according to different service scenes; in addition, the asset transaction platform 302 may be directly or indirectly connected to the client 301, and any blockchain node 303, by wired or wireless communication.
In one possible embodiment, any of the computer devices in the blockchain-based asset processing system (client 301, asset transaction platform 302, or blockchain node 302) may be a cell phone, tablet, notebook, palm top, mobile internet device (MID, mobile internet device), vehicle, on-board device, roadside device, aircraft, wearable device, smart device such as a smart watch, smart bracelet, pedometer, etc., virtual reality device.
In another possible embodiment, any of the computer devices in the blockchain-based asset processing system (client 301, asset business processing platform 302, or blockchain node 303) may also be a server. Specifically, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like.
It will be appreciated that the types of the various computer devices in the asset processing system of the present application may be the same or different, for example, the client 301 may be a cell phone, the asset service processing platform 302 may be a notebook computer, and the blockchain node 303 may be a server; for another example, the client 301 may be an on-board device and the asset transaction platform 302 and blockchain node 303 may each be a server. The number and type of individual computer devices in a blockchain-based asset processing system is not limited by the present application.
The following is in connection with FIG. 3a for each computer device in the asset processing system described above: the data interaction process between client 301, asset transaction platform 302, and blockchain node 303 is illustrated.
(1) The target object may initiate a data query request in the client 301 requesting asset trend data for querying the target digital asset. Optionally, a query interface may be displayed in the client 301, where at least one digital asset (e.g., digital collection, electronic invoice, etc.) that allows for a query is displayed in the query interface, and the target object may select any digital asset that needs to be queried from the query interface as a target digital asset (e.g., digital collection), and initiate the data query request.
(2) The client 301 sends a data query request to the asset transaction processing platform 302. Optionally, the client 301 may use the private key of the target object to sign the data query request, and then send the signed data query request to the asset service processing platform 301 to indicate the source of the data query request.
(3) After receiving the data query request, the asset service processing platform 302 may obtain multiple data sources of the target digital asset; the data sources are respectively from a plurality of data sources, and each data source is used for providing one data source; the plurality of data sources includes a first data source on a blockchain and a second data source under the blockchain. It should be appreciated that the asset transaction platform 302 is associated with and may respectively obtain multiple data sources from the associated multiple data sources. For example, the asset transaction platform 302 may obtain a first data source from the blockchain node 303.
(4) The asset business processing platform 302 performs data analysis on multiple data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension, where the asset trend data is used to reflect changes in asset value of the target digital asset in different data dimensions.
(5) Asset transaction processing platform 302 returns asset trend data for the target digital asset to client 301.
(6) The client 301 renders the asset trend data of the target digital asset, and displays the rendered graph data, such as a time-sharing graph, a K-ray graph, etc., of the target digital asset for the target object, so that the target object can intuitively understand the value trend of the target digital asset.
2. The microsystem architecture provided herein is then described in detail in connection with fig. 3 b.
Referring to fig. 3b, fig. 3b is a block chain-based architecture diagram of an asset processing backend system according to an embodiment of the present application. As shown in fig. 3b, the background system architecture depends on the macro system architecture shown in fig. 3a, and is mainly a background microsystem architecture diagram of the macro system architecture. The background implementation procedure of each computer device is correspondingly described below with reference to the respective computer devices shown in fig. 3 a:
1) Client 301: is primarily responsible for initiating data query requests for any digital asset to the asset business processing platform 302.
i. And displaying an asset trend query page in the client, wherein at least one digital asset to be queried is displayed in the asset trend query page. When the target object needs to perform data query on the target digital asset, a data query request can be initiated after the target digital asset is selected in the asset trend query page.
2) Asset business processing platform 302: it is primarily responsible for calculating and providing asset trend data for at least one data dimension for a target digital asset to be queried, the asset trend data being used to reflect changes in asset value of the target digital asset in different data dimensions. The asset business processing platform is provided with a plurality of background services, and a plurality of data sources of the target digital asset are acquired by calling each background service.
i. Trend data query service: is responsible for responding to the data query request of the client side and querying the asset trend data of the target digital asset from the database.
information service: is responsible for retrieving information data (third data source) associated with the target digital asset from the information platform and may store the retrieved information data in the database as one data source for the target digital asset.
Transaction data synchronization service: a first data source responsible for acquiring a target digital asset from each of the decentralized exchange contracts on the blockchain; and obtaining a second data source of the target digital asset from each centralized trading platform under the blockchain.
Authentication service: responsible for authentication processing of a target object initiating a data query request, for example: rights verification, signature verification, etc.
3) Blockchain node 303: is responsible for providing a first data source on the chain of zones for the asset transaction platform. Wherein a plurality of intelligent contracts run in the blockchain node.
i. Decentralizing exchange contracts: is responsible for executing transactions on the chain with respect to the target digital asset and generating transaction data that can be the data source for the target digital asset.
Service side configuration management contract: is responsible for configuration management of the asset transaction platform, for example, the transaction party configuration management contract is used for indicating information such as the type and quantity of digital assets that the asset transaction platform is allowed to detect.
Based on the background services, the asset trend data can be generated more comprehensively and accurately for the target digital asset based on the mutual calling and cooperation among the background services in the asset processing process among the computer devices.
The asset processing system based on the blockchain can receive a data query request initiated by a client, wherein the data query request is used for requesting to query asset trend data related to a target digital asset; acquiring a plurality of data sources of a target digital asset; the data sources are respectively from a plurality of data sources, and each data source is used for providing one data source; the plurality of data sources includes a first data source on a blockchain and a second data source under the blockchain; performing data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension, wherein the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions; finally, asset trend data for the target digital asset may be returned to the client. Therefore, in the process of generating asset trend data for the target digital asset, the plurality of data sources related to the target digital asset can be acquired from the plurality of data sources, and because the plurality of data sources can provide richer and more comprehensive data sources for the target digital asset, the asset trend data in a plurality of data dimensions can be generated for the target digital asset based on the richer and more comprehensive data sources, so that more comprehensive and more accurate asset trend data can be provided for clients.
It can be understood that the asset processing system based on blockchain described in the embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation on the technical solution provided by the embodiments of the present application, and as a general technical object in the art can know, with evolution of system architecture and appearance of new service scenarios, the technical solution provided by the embodiments of the present application is equally applicable to similar technical problems.
Specific embodiments related to a blockchain-based asset handling scheme are described below with reference to the accompanying drawings.
Referring to fig. 4, fig. 4 is a flowchart of a method for processing assets based on a blockchain according to an embodiment of the present application. The asset processing method may be performed by an asset transaction platform in the blockchain-based asset processing system shown in fig. 3a, the asset transaction platform having associated therewith a plurality of data originators, the asset transaction platform being deployed with at least one background service for data interaction with one data origin. Specifically, as shown in fig. 4, the asset processing method based on the blockchain mainly includes, but is not limited to, the following steps S401 to S404:
S401: a data query request initiated by a client is received, the data query request being for requesting a query for asset trend data associated with a target digital asset.
In one possible implementation, the asset service processing platform may further perform the following steps after receiving the client-initiated data query request: firstly, analyzing the data query request to obtain signature data of a target object initiating the query request; then, invoking an authentication service to perform authentication processing on the target object, wherein the authentication processing comprises: rights verification, signature verification. If the authentication processing of the target object is passed, triggering and executing a subsequent step S402; if the authentication processing of the target object is not passed, the data query request is ignored or deleted. Specifically, (1) signature data is generated after signature processing is performed by adopting a private key of a target object, then the asset business processing platform can acquire the public key of the target object, and perform signature verification processing on the signature data of the target object based on the public key of the target object, if signature verification is successful, signature verification of the target object is passed, and if signature verification is failed, signature verification of the target object is not passed. (2) Assume that an object authority list is configured in the asset service processing platform, and the object authority list may be recorded with: the identification (such as name, ID, etc.) of each object with data query authority, if the object authority list contains the identification of the target object, the asset service processing platform can determine that the authority verification of the target object is passed; if the object rights list does not contain an identification of the target object, the asset business processing platform may determine that the rights verification for the target object is not passed. Under the implementation mode, the asset business processing platform can carry out authentication processing on a target object which initiates a data query request, and can avoid the risk of data leakage or tampering, thereby ensuring the data security.
In one possible implementation manner, the data query request carries the asset identifier of the target digital asset to be queried, and the asset service processing platform can analyze the data query request after receiving the data query request initiated by the client to obtain the asset identifier of the target digital asset. The asset business processing platform may then obtain a configuration rights list having recorded therein: allowing the asset identification of the inquired digital asset, if the configuration authority list contains the asset identification of the target digital asset, indicating that the asset trend data of the target digital asset can be acquired, responding to the data inquiry request and triggering the execution of the subsequent step S402; if the configuration permission list does not contain the asset identification of the target digital asset, the asset trend data of the target digital asset cannot be acquired, and the data query request can be deleted. In this implementation, the asset transaction processing platform can verify whether the target digital asset is in the configured rights list, and if so, can provide asset trend data for the client regarding the target digital asset.
S402: invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data sources, each data source is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain.
In one possible implementation, the asset transaction processing platform acquiring multiple data sources of a target digital asset may comprise the steps of: determining a plurality of data originators associated with the asset business processing platform; invoking each deployed background service to acquire a plurality of data sources related to the target digital asset from each data source party; wherein a background service is used to obtain a data source from a data source party. In particular, a data source associated with an asset transaction processing platform may include: the number of data sources that allow for data interaction with the asset transaction platform, the data sources that provide transaction data associated with the target digital asset (e.g., blockchain nodes, centralized transaction platform), the data sources that provide information data associated with the target digital asset (e.g., information platforms such as social networking sites or news forums) are not specifically limited in this application.
The specific process of obtaining the data sources provided by the different data sources will be described in detail.
(1) Obtaining a first data source from an off-center exchange contract on a blockchain
In one possible implementation, the background service comprises a transaction data synchronization service, and the data source comprises a blockchain node; the asset business processing platform invokes each of the deployed background services to respectively obtain a plurality of data sources about the target digital asset from each of the data sources, and may comprise the steps of: invoking a transaction data synchronization service to perform transaction event detection processing on at least one decentralised exchange contract deployed by the blockchain node, wherein the transaction event detection processing mode comprises the following steps: any one or more of synchronous detection mode, asynchronous detection mode and periodic detection mode; if a transaction event matching the target digital asset is detected in any of the decentralised exchange contracts, acquiring first transaction data associated with the transaction event; the first transaction data is used as a first data source for the target digital asset.
In particular, each decentralised exchange contract detected by the transaction data synchronization service is an intelligent contract which is processed through configuration, namely, the decentralised exchange contract refers to an intelligent contract which is provided with transaction event detection authority by the asset business processing platform. The synchronous detection mode is a mode in which data acquisition can be performed on first transaction data generated by a transaction event while a transaction event trigger is detected in a decentralised exchange contract, that is, the synchronous detection mode is a mode in which data acquisition is performed while detection, and is a mode in which synchronous detection is required along with execution of the transaction event. The asynchronous detection mode is a mode of detecting a transaction event which has occurred or is being executed in a decentralised exchange contract so as to acquire first transaction data generated by the transaction event, that is, the asynchronous detection mode is a mode of acquiring data in the process of ending or being executed of the transaction event, and synchronous detection is not required along with execution of the transaction event. The periodic detection mode refers to detecting the triggered transaction event in the decentralized exchange contract at fixed time intervals, for example, detecting once a minute or detecting once a ten minute, that is, the periodic detection mode is a mode of detecting on schedule according to a time period. It should be noted that, for different decentralised exchange contracts, the transaction event detection processing may be performed by the same or different detection methods, and the decentralised exchange contracts to be detected include: contract 1, contract 2, contract 3, then the transaction event detection process can be performed on contract 1 in a synchronous detection manner, the transaction event detection process can be performed on contract 2 in an asynchronous detection manner, and the transaction event detection process can be performed on contract 3 in a periodic detection manner. Finally, the first transaction data detected from each of the decentralised exchange contracts is taken as a first data source for the target digital asset.
(2) Acquiring a second data source from a centralized transaction platform under a blockchain
In one possible implementation, the background service comprises a transaction data synchronization service, and the data source comprises at least one centralized transaction platform under a blockchain; the specific process of the asset business processing platform obtaining the second data source of the target digital asset is as follows: invoking a transaction data synchronization service to respectively acquire second transaction data associated with the target digital asset from at least one centralized transaction platform under the blockchain; the acquired second transaction data is added to a second data source of the target digital asset.
In particular implementations, the manner in which the transaction data synchronization service is invoked to obtain the second transaction data from each centralized transaction platform may include, but is not limited to: any one or more of synchronous acquisition mode and asynchronous acquisition mode, wherein the synchronous acquisition mode refers to that each time a new transaction associated with a target digital asset is generated in a centralized transaction platform, transaction data of the transaction are synchronously acquired; the asynchronous acquisition mode refers to acquiring generated historical transaction data from a centralized transaction platform, and the acquired historical transaction data may include: all transaction data associated with the target digital asset generated in the centralized transaction platform, or transaction data associated with the target digital asset generated within a preset period of time (e.g., within one month) in the centralized transaction platform, etc. Likewise, for different centralized transaction platforms, the data acquisition may be performed in the same or different manners, e.g., the data source side includes: the centralized transaction platform 1 and the centralized transaction platform 2 can acquire the second transaction data in the centralized transaction platform 1 in a synchronous acquisition mode, acquire the second transaction data in the centralized transaction platform 2 in an asynchronous acquisition mode, and finally take all the second transaction data in each centralized transaction platform as a second data source of the target digital asset.
(3) Obtaining a third data source from the information platform
In one possible implementation, the background service further includes an information data synchronization service, the data source further includes an information platform, and the plurality of data sources further includes a third data source. The specific process of the asset business processing platform obtaining the third data source from the information platform is as follows: invoking an information data synchronization service to obtain information data associated with the target digital asset from the information platform; performing data preprocessing on the information data to obtain preprocessed information data; and taking the preprocessed information data as a third data source of the target digital asset.
In particular, the information data herein may include: including relevant data for the target digital asset, relevant data for describing or interpreting the target digital asset, relevant data for predicting asset value for the target digital asset, and so forth. Alternatively, in the process of acquiring information data, a keyword extraction model may be invoked to extract information data associated with a target digital asset from the information platform, where the keyword extraction model may be used to extract information data associated with a "target digital asset" from a large amount of information data, and the keyword extraction model may be an AI model, where the AI model may be a neural network model of any network structure, for example: CNN model, RNN model, LSTM model, etc. Subsequently, after the information data associated with the target digital asset is obtained, the information data may be subjected to operations such as: preprocessing such as data de-duplication, data conversion and data cleaning is convenient to obtain more accurate and effective information data, and further a more accurate and effective third data source is obtained.
In summary, the steps (1) - (3) can be summarized, and the application can call the background service to acquire different data sources related to the target digital asset from a plurality of different data sources, and the acquired data sources are richer and more comprehensive because the data sources are richer and more diverse.
In one possible implementation, after a plurality of data sources (e.g., first data source, second data source, third data source) are acquired, an interface of an exchange rate query service may be invoked based on the transaction data synchronization service to acquire an exchange rate table associated with the target digital asset; performing exchange rate conversion processing on the first data source, the second data source and the third data source of the target digital asset based on the acquired exchange rate table; and taking each data source after exchange rate conversion processing as a plurality of data sources of the target digital asset. Specifically, the exchange rate table is adopted to perform exchange rate conversion processing on each data source, so that the asset values of the same target digital asset in different data sources can be unified, for example, the target digital asset is asset 1, the corresponding transaction prices of asset 1 in different types of transaction pairs can be different, for example, asset 1/asset 2 and asset 1/asset 3, and then the asset value of asset 1 in different transaction pairs can be calculated based on the exchange rate table.
In one possible implementation, in the process of calling the interface of the exchange rate query service based on the transaction data synchronization service, a service call request may be generated based on the transaction data synchronization service, and the service call request may be sent to the exchange rate query service; the service invocation request is used to indicate: the transaction data synchronization service calls an interface of the exchange rate inquiry service to acquire an exchange rate table associated with the target digital asset; if a feedback message allowing the interface to call is received, a service interface of the exchange rate query service is called to acquire an exchange rate table of the target digital asset; wherein the feedback message is generated after the service verification executed by the exchange rate inquiry service on the transaction data synchronization service is passed; the service verification includes: white list authentication, identity authentication, service type authentication. The service verification specifically comprises the following steps:
i. white list verification mode: the exchange rate inquiry service is configured with a white list, the white list records a service identifier of at least one service allowing the exchange rate inquiry service to be invoked, and the service identifier comprises: any one or more of a service name, a public key; if the service identifier of the transaction data synchronous service is recorded in the white list, the exchange rate inquiry service passes the service verification of the transaction data synchronous service; if the service identification of the transaction data synchronization service does not exist in the white list, the exchange rate inquiry service does not pass the service verification of the transaction data synchronization service.
identity verification mode: the service call request comprises a service signature generated after signature processing is carried out by adopting a private key of the transaction data synchronous service, the exchange rate inquiry service can acquire a public key of the transaction data synchronous service, and the public key of the transaction data synchronous service is adopted to carry out signature verification processing on the service signature, if the signature verification is passed, the exchange rate inquiry service passes the service verification of the transaction data synchronous service; if the verification signature does not pass, the exchange rate inquiry service does not pass the service verification of the transaction data synchronization service.
Service type verification means: if the exchange rate inquiry service allows the appointed type of service to be subjected to interface call, when the exchange rate inquiry service needs to be called by the transaction data synchronization service, the exchange rate inquiry service can acquire the service type of the transaction data synchronization service, and if the service type is the appointed type of service (such as operation type of service), the exchange rate inquiry service verifies the service type of the transaction data synchronization service and allows the interface to be called; otherwise, the service type verification of the transaction data synchronization service is not passed, and the interface call is not allowed.
In the implementation manner, the inter-calling among the plurality of services is involved, so that in the process of inter-calling among the plurality of services, the called service (i.e. exchange rate inquiry service) can perform the credibility verification of the service on the main call service (i.e. transaction data synchronization service), thereby improving the reliability and the safety of the inter-calling among the services, and further improving the data security.
S403: performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data of a target digital asset in one data dimension is obtained by data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions.
In one possible implementation, the asset business processing platform may determine data types of respective data sources and perform data analysis on the respective data sources according to the data sources of different data types to obtain asset trend data for the target digital asset in at least one data dimension, where the data sources of one data type may be used to analyze the asset trend data in one or more data dimensions, i.e., one data type corresponds to one or more data dimensions. For example, the data types may include: the transaction type and the information type, the data dimension corresponding to the transaction type can be a time dimension and a value dimension, and the data dimension corresponding to the information type can be an information dimension.
In one possible implementation, the data analysis is performed on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension, and specifically may include the steps of: performing format conversion processing on the multi-dimensional data sources of the target digital asset according to the format conversion rule to obtain all the data sources with the same data format; performing data fusion processing on all data sources with the same data format to obtain a fused data source of the target digital asset; and carrying out data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension. In particular, when the asset service processing platform acquires a plurality of data sources (such as a first data source, a second data source and a third data source), format conversion processing can be performed on each data source, so that the data sources provided by different data sources are unified, and data analysis on a target digital asset is facilitated. In addition, the data fusion processing may be performed on each data source (the first data source, the second data source, and the third data source) after the format conversion to obtain a fused data source, where the data fusion processing may include: and (3) any one or more of average operation processing and weighting operation processing, such as setting different weights for the first data source, the second data source and the third data source respectively, and then carrying out weighting operation on each data source according to the different weights to obtain a fusion data source. The target digital asset may then be data analyzed based on the fused data source of the target digital asset.
The specific process of data analysis of the data sources of the target digital asset is described in detail below.
(1) Data analysis by value dimension
In one possible implementation, the asset trend data includes K-line data in the value dimension; the asset business processing platform performs data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset under at least one data dimension, and specifically comprises the following steps: according to the value dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a first analysis result of the target digital asset, wherein the first analysis result is used for reflecting the overall change trend of the asset value of the target digital asset; and obtaining K-line data of the target digital asset in the value dimension based on the first analysis result of the target digital asset. Wherein, the K-line data may include: the information of the highest asset value, the lowest asset value, the first release value, and the affiliated public chain of the target digital asset, for example, the K-line data of the target digital asset may be as shown in the following table 2-1:
TABLE 2-1K line data
As shown in table 2-1 above, the K-line data may be used to reflect the overall trend of the value of the target digital asset from the time of release to the current time, i.e., the node data such as the highest value of the asset, the lowest value of the asset, and the first release value, and may be accompanied by a transaction time corresponding to each node data, e.g., t1 is the transaction time of the highest value of the target digital asset (x_high), t3 is the release time of the first release value of the target digital asset (X0), etc.; in addition, the K-wire data may also include information about the particular common chain (e.g., chain 1) to which the target digital asset belongs in the blockchain.
(2) Data analysis in the time dimension
In one possible implementation, the asset trend data includes time-sharing data in a time dimension; the asset business processing platform performs data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset under at least one data dimension, and specifically comprises the following steps: according to the time dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a second analysis result of the target digital asset, wherein the second analysis result is used for reflecting the asset value trend of the target digital asset in a specified time interval; and obtaining time-sharing data of the target digital asset in the time dimension based on the second analysis result of the target digital asset. Wherein, the time-sharing data may include: the asset value of the target digital asset over each preset time interval, for example, the time sharing data may be as shown in tables 2-2 below:
TABLE 2-2 time sharing data
Time interval Asset value
t0-t1 x1
t1-t2 x2
t3-t4 x3
As shown in Table 2-2, the time-sharing data may be used to describe the asset value of the target digital asset over different time intervals, i.e., the time-sharing data may reflect the asset value trend of the target digital asset over each time interval (e.g., one minute).
(3) Data analysis according to information dimension
In one possible implementation, the asset trend data includes: k-line data in the value dimension, time-division data in the time dimension, and information data in the information dimension. The asset business processing platform performs data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset under at least one data dimension, and specifically comprises the following steps: according to the information dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a third analysis result of the target digital asset, wherein the third analysis result is used for reflecting market data of the asset value of the target digital asset in an information market; asset trend data for the target digital asset is obtained based on the first analysis result, the second analysis result, and the third analysis result for the target digital asset. Specifically, the data analysis may be performed on the target digital asset according to a plurality of different data dimensions such as a time dimension, a value dimension, and an information dimension, so as to obtain asset trend data of the target digital asset in each data dimension (time dimension, value dimension, and information dimension). For example, asset trend data for multiple data dimensions may be as shown in tables 2-3 below:
Tables 2-3 asset trend data for various data dimensions
Data dimension Asset trend data
Value dimension X_high、X_low、X0
Time dimension x1、x2、x3
Information dimension data
Other dimensions ...
As shown in tables 2-3 above, asset trend data for a target digital asset may be counted in different data dimensions, such as the data dimensions including: value dimension, time dimension, information dimension, and the like.
In summary, the steps (1) - (3) can be seen that the method and the system can perform data analysis on the target digital asset from multiple data dimensions based on multiple data sources, so that asset trend data of the target digital asset in each data dimension is obtained, and the multi-dimensional asset trend data can more comprehensively and accurately reflect the change condition of the asset value of the target digital asset in different data dimensions.
S404: asset trend data for the target digital asset is returned to the client.
In one possible implementation, the asset business processing platform may directly return the asset trend data of the target digital asset to the client, so that the client performs interface display based on the asset trend data of the target digital asset, i.e., may display the asset trend data of the target digital asset in different data dimensions respectively.
In another possible implementation, the asset transaction processing platform may obtain asset types for the target digital asset; if the asset type of the target digital asset is a specified type (such as a digital collection type), performing data protection processing on the asset trend data of the target digital asset to obtain asset trend data after the data protection processing; finally, returning the asset trend data after data protection processing to the client; the data protection process comprises the following steps: any one or more of encryption processing and data conversion processing. Specifically, the asset trend data of the target digital asset may be encrypted by using an encryption algorithm, or the asset trend data of the target digital asset may be converted into a semantically equivalent commitment file and then transmitted to the client, for example, the asset trend data may be converted into the proving file by using a zero knowledge proving circuit. In this manner, asset trend data for certain specified types of digital assets may be transmitted encrypted, thereby improving the security of the asset trend data.
The display interface of the client for asset trend data is described below with reference to the accompanying drawings.
In one possible implementation, the client may be presented in a data diagram manner in the interface based on asset trend data for the target digital asset in at least one data dimension. Referring to fig. 5, fig. 5 is a schematic diagram of an interface for displaying asset trend data according to an embodiment of the present application. As shown in fig. 5, first, the client may display a query interface S501, where at least one digital asset to be queried may be displayed in the query interface S501, e.g., the digital asset to be queried may include: asset 1, asset 2, asset 3, asset 4, asset 5, asset 6, asset 7, asset 8, etc., the target object may select any one of the digital assets from the query interface S501 as a target digital asset (e.g., asset 5), and then may display an asset trend interface S502 for that asset 5, in which asset trend interface S502 asset trend data for asset 5 in at least one data dimension is displayed in partitions, e.g., the asset trend interface S502 includes a first display area 5021, a second display area 5022, and a third display area 5023. The first display area 5021 is used for displaying transaction detail information of the asset 5 on the current day, for example: the highest trade price on the day, the lowest trade price on the day, the total market value, the number of deals, etc.; the second display area 5022 is configured to display asset trend data of the asset 5 in at least one data dimension, where the asset trend data in any one data dimension may be displayed according to a data diagram, such as a time-sharing diagram and a K-ray diagram, and specifically may display the asset 5: at least one data graph such as a time-sharing graph, a five-day graph, a day K graph, a week K graph, a month K graph and the like; the third display area 5023 is used to display asset profiles and information for the asset 5, for example, the asset profiles may include: market ranking, high value of history, lowest value of history, first release time, belonging public chain and the like. Therefore, the method and the device can display the asset trend data of the target digital asset in multiple dimensions under each data dimension, and can help a user to comprehensively and accurately know the trading quotations of the target digital asset.
Further, in the third display area 5023, the user can select to query news information associated with the asset 5, for example, please refer to fig. 6, fig. 6 is a schematic diagram of an interface for displaying information according to an embodiment of the present application. As shown in fig. 6, the information list is displayed on the information display interface S601, and the information list is displayed with: information associated with the asset 5 is distributed among a plurality of information platforms, respectively, one of which distributes one or more pieces of information, such as: the user can click on any information and trigger to display the detail page S602 of the information, and the related information and the data diagram related to the asset 5 are displayed in the detail page S602.
In the embodiment of the application, a data query request initiated by a client can be received, wherein the data query request is used for requesting to query asset trend data related to a target digital asset; invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain; performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions; finally, asset trend data for the target digital asset may be returned to the client. Therefore, in the process of generating asset trend data for the target digital asset, the plurality of data sources related to the target digital asset can be acquired from the plurality of data sources, and because the plurality of data sources can provide richer and more comprehensive data sources for the target digital asset, the asset trend data in a plurality of data dimensions can be generated for the target digital asset based on the richer and more comprehensive data sources, so that more comprehensive and more accurate asset trend data can be provided for clients.
Referring to fig. 7, fig. 7 is an interactive flowchart of a method for processing assets based on a blockchain according to an embodiment of the present application. As shown in fig. 7, the interaction flow of the asset processing method involves: at least one background service (trend data query service, transaction data synchronization service) in the client, asset business processing platform, intelligent contracts on blockchain (business side configuration management contracts, decentralised exchange contracts), and exchange rate query service. Specifically, the interactive flow of the asset processing method mainly includes, but is not limited to, the following steps S701 to S718. The interaction flow mainly relates to: the service configuration process, the asset transaction process, and the asset trend data acquisition process are each described in detail below.
1. Service configuration flow (S701-S704).
S701: the business party invokes the business party configuration management contract to set up the asset configuration list.
In particular implementations, the asset configuration list includes a transaction data synchronization service that allows for the detection of a decentralised exchange contract and the type of digital asset that allows for detection. Thus, the configuration information set by the service party may comprise at least one of: contract address of the decentralized exchange contract to be detected, asset identification of the digital asset to be detected, for example: name, ID, etc., the business may be set as desired.
S702: the asset business processing platform invokes a transaction data synchronization service synchronization configuration.
In particular implementations, the asset transaction processing platform may invoke a transaction data synchronization service to synchronize relevant configuration information in a business party configuration management contract.
S703: the transaction data synchronization service performs an initialization configuration.
In particular, the initialization configuration means: the transaction data synchronization service allows for configuration of detected off-centered exchange contracts, and the transaction data synchronization service allows for configuration of detected digital assets.
S704: the transaction data synchronization service detects a de-centralized exchange contract.
In particular, after the configuration information is read, the transaction data synchronization service may perform detection processing of a transaction event on at least one decentralized exchange contract indicated by the configuration information, so as to obtain first transaction data associated with a transaction time from the at least one decentralized exchange contract. The method for detecting and processing the transaction event comprises the following steps: any one or more of synchronous detection, asynchronous detection, periodic detection.
In the service configuration process, the business party can correspondingly configure the type of the digital asset to be detected and the decentralization exchange contract to be detected according to the self requirement, so that the transaction data of the related digital asset can be detected in the decentralization exchange contract of the blockchain, and a data source is obtained.
2. Asset transaction flow (S705-S707).
S705: the target object initiates a uplink transaction.
Specifically, the target object may initiate an asset transaction to be uplink in the client, and sign the asset transaction to be uplink by using a private key of the target object, so as to obtain a signed asset transaction.
S706: and the client performs uplink processing on the signed asset transaction.
S707: the block link points perform transactions.
When the method is concretely implemented, after receiving a transaction request initiated by a client, the blockchain node can analyze the transaction request to obtain signature data of a target object, then obtain a public key of the target object, and perform signature verification processing on the signature data of the target object by adopting the public key of the target object, if the signature verification is passed, the blockchain node can call an intelligent contract matched with the asset transaction, for example, an off-center exchange contract on a blockchain to execute the asset transaction.
Alternatively, the blockchain node may return the transaction execution results to the client.
3. Asset trend data acquisition process (S708-S718).
S708: the transaction data synchronization service obtains transaction data from the de-centralized exchange contract.
In particular, when the transaction data synchronization service is invoked, transaction event detection processing is performed on at least one decentralised exchange contract deployed by the blockchain node, and the transaction event detection processing mode comprises the following steps: any one or more of synchronous detection mode, asynchronous detection mode and periodic detection mode; if a transaction event matching the target digital asset is detected in any of the decentralised exchange contracts, acquiring first transaction data associated with the transaction event; the first transaction data is used as a first data source for the target digital asset.
S709: the transaction data synchronization service invokes the rate lookup service to query the rate table.
In specific implementation, an interface of an exchange rate inquiry service is called based on a transaction data synchronization service, and an exchange rate table associated with a target digital asset is acquired; performing rate conversion processing on a plurality of tertiary data sources (e.g., first data source, second data source, third data source) of the target digital asset based on the obtained rate table; and taking each data source after exchange rate conversion processing as a plurality of data sources of the target digital asset.
S710: and storing the data source and analyzing the data.
In specific implementation, each acquired data source of the target digital asset may be stored in a database, and data analysis may be performed on each data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension, where the asset trend data is used to reflect a change situation of an asset value of the target digital asset in different data dimensions.
It should be noted that, the process of acquiring the plurality of data sources of the target digital asset and the process of analyzing the data may refer to the detailed process described in steps S403 to S404 in the embodiment of fig. 4, and the embodiment of the present application will not be described herein.
S711: the client requests a query for asset trend data.
In particular, a query interface may be displayed in the client, at least one digital asset to be queried is displayed in the query interface, and the target object may select any digital asset as a target digital asset, and initiate a data query request for the target digital asset, where the data query request is used to request to query asset trend data related to the target digital asset.
S712: the gateway service verifies the login state of the target object.
In particular, after receiving the data query request, the gateway service can verify whether the login state of the target object is safe, legal and effective, whether the login authority is possessed, and the like. If the verification is passed, step S713 is performed, otherwise, the data query request is not responded to.
S713: the gateway service requests the business side interface to verify the login state of the target object.
S714: and the service side returns a verification result.
S715: if the verification is successful, the gateway service invokes a trend data query service to request the query of asset trend data of the target digital asset.
S716: the trend data query service requests the transaction data synchronization service to obtain an asset configuration list.
In particular implementations, the transaction data synchronization service may obtain an asset configuration list of asset business process platform configurations from the business side configuration management contract, the asset configuration list including asset identifications of at least one digital asset permitted to be queried. If the asset configuration list includes the asset identification of the target digital asset, executing step S14; if not, deleting the data query request.
S717: asset trend data for a target digital asset in a database is queried.
Specifically, the database stores asset trend data of at least one digital asset to be queried, one digital asset corresponds to one asset trend data, and the calculation process of the asset trend data of any digital asset can be implemented with reference to the embodiment of fig. 4, which is not described herein.
Optionally, asset trend data for the target digital asset is returned to the client.
S718: the client renders asset trend data that displays the target digital asset.
According to the method and the device, the transaction data of all exchanges on and off the chain, news information related to the digital asset, real-time transaction quotation and other data are integrated, more data sources can be provided for the target digital asset from a plurality of data sources, so that comprehensive and high-order asset trend data are generated for the target digital asset, and a user can know the asset value of the target digital asset in the whole market more comprehensively and accurately.
The apparatus of the embodiments of the present application is provided below, and the related apparatus of the embodiments of the present application will be described correspondingly with reference to the above-mentioned asset processing scheme based on blockchain.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an asset processing device based on a blockchain according to an embodiment of the present application. As shown in fig. 8, the blockchain-based asset processing device 800 may be applied to the asset transaction platform mentioned in the foregoing embodiments, where a plurality of data sources are associated with the asset transaction platform, and at least one background service is deployed on the asset transaction platform, where one background service is used to interact data with one data source. In particular, the blockchain-based asset processing device 800 may be a computer program (including program code) running in a computer apparatus, for example, the asset processing device 800 is an application software; the asset processing device 800 may be used to perform the corresponding steps in the blockchain-based asset processing methods provided by embodiments of the present application. In particular, the blockchain-based asset processing device 800 may include:
a receiving unit 801, configured to receive a data query request initiated by a client, where the data query request is used to request to query asset trend data related to a target digital asset;
A processing unit 802 for invoking at least one background service to obtain a plurality of data sources of a target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain;
the processing unit 802 is further configured to perform multidimensional data analysis on a plurality of data sources of the target digital asset, so as to obtain asset trend data of the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by carrying out data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions;
and a transmitting unit 803 for returning asset trend data of the target digital asset to the client.
In one possible implementation, the background service comprises a transaction data synchronization service, and the data source comprises a blockchain node; the processing unit 802 invokes at least one background service to obtain a plurality of data sources for the target digital asset for performing the following operations:
Invoking a transaction data synchronization service to perform transaction event detection processing on at least one decentralised exchange contract deployed by the blockchain node, wherein the transaction event detection processing mode comprises the following steps: any one or more of synchronous detection mode, asynchronous detection mode and periodic detection mode;
if a transaction event matching the target digital asset is detected in any of the decentralised exchange contracts, acquiring first transaction data associated with the transaction event;
the first transaction data is used as a first data source for the target digital asset.
In one possible implementation, the data source further comprises at least one centralized transaction platform under the blockchain; the processing unit 802 is further configured to perform the following operations:
invoking a transaction data synchronization service to respectively acquire second transaction data associated with the target digital asset from at least one centralized transaction platform under the blockchain;
the acquired second transaction data is added to a second data source of the target digital asset.
In one possible implementation, the background service further includes an information data synchronization service, the data source further includes an information platform, and the plurality of data sources further includes a third data source; the processing unit 802 invokes at least one background service to obtain a plurality of data sources for the target digital asset for performing the following operations:
Invoking an information data synchronization service to obtain information data associated with the target digital asset from the information platform;
performing data preprocessing on the information data to obtain preprocessed information data;
and taking the preprocessed information data as a third data source of the target digital asset.
In one possible implementation, the processing unit 802 is further configured to perform the following operations:
calling an interface of an exchange rate inquiry service based on the transaction data synchronization service to acquire an exchange rate table associated with the target digital asset;
based on the obtained exchange rate table, respectively performing exchange rate conversion processing on the first data source, the second data source and the third data source of the target digital asset;
and taking the first data source, the second data source and the third data source after exchange rate conversion processing as a plurality of data sources of the target digital asset.
In one possible implementation, the processing unit 802 is further configured to perform the following operations:
generating a service call request based on the transaction data synchronization service, and sending the service call request to the exchange rate inquiry service; the service invocation request is used to indicate: the transaction data synchronization service calls an interface of the exchange rate inquiry service to acquire an exchange rate table associated with the target digital asset;
If a feedback message allowing the interface to call is received, a service interface of the exchange rate query service is called to acquire an exchange rate table of the target digital asset;
wherein the feedback message is generated after the service verification executed by the exchange rate inquiry service on the transaction data synchronization service is passed; the service verification includes: white list authentication, identity authentication, service type authentication.
In one possible implementation, the background service further includes an authentication service; after receiving the data query request initiated by the client, the processing unit 802 is further configured to perform the following operations:
analyzing the data query request to obtain signature data of a target object initiating the data query request;
invoking an authentication service to perform authentication processing on the target object, wherein the authentication processing comprises: any one or more of authority verification and signature verification;
if the authentication process for the target object passes, a step of acquiring a plurality of data sources of the target digital asset is triggered to be executed.
In one possible implementation, the processing unit 802 performs multidimensional data analysis on multiple data sources of a target digital asset to obtain asset trend data for the target digital asset in at least one data dimension for performing the following operations:
Performing format conversion processing on the multi-dimensional data sources of the target digital asset according to the format conversion rule to obtain all the data sources with the same data format;
performing data fusion processing on all data sources with the same data format to obtain a fused data source of the target digital asset;
and carrying out multidimensional data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension.
In one possible implementation, the asset trend data includes K-line data in the value dimension; the processing unit 802 performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset, resulting in asset trend data for the target digital asset in at least one data dimension for performing the following operations:
according to the value dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a first analysis result of the target digital asset, wherein the first analysis result is used for reflecting the overall change trend of the asset value of the target digital asset;
and obtaining K-line data of the target digital asset in the value dimension based on the first analysis result of the target digital asset.
In one possible implementation, the asset trend data includes time-sharing data in a time dimension; the processing unit 802 performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset, resulting in asset trend data for the target digital asset in at least one data dimension for performing the following operations:
according to the time dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a second analysis result of the target digital asset, wherein the second analysis result is used for reflecting the asset value trend of the target digital asset in a specified time interval;
and obtaining time-sharing data of the target digital asset in the time dimension based on the second analysis result of the target digital asset.
In one possible implementation, the asset trend data further includes information data in an information dimension; the processing unit 802 performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset, resulting in asset trend data for the target digital asset in at least one data dimension for performing the following operations:
according to the information dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a third analysis result of the target digital asset, wherein the third analysis result is used for reflecting market data of the asset value of the target digital asset in an information market;
Asset trend data for the target digital asset is obtained based on the first analysis result, the second analysis result, and the third analysis result for the target digital asset.
In one possible implementation, the processing unit 802 returns asset trend data for the target digital asset to the client for performing the following operations:
acquiring an asset type of a target digital asset;
if the asset type of the target digital asset is the appointed type, performing data protection processing on the asset trend data of the target digital asset to obtain asset trend data after the data protection processing;
returning the asset trend data after the data protection processing to the client;
the data protection process comprises the following steps: any one or more of encryption processing and data conversion processing.
In the embodiment of the application, a data query request initiated by a client can be received, wherein the data query request is used for requesting to query asset trend data related to a target digital asset; invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain; performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions; finally, asset trend data for the target digital asset may be returned to the client. Therefore, in the process of generating asset trend data for the target digital asset, the plurality of data sources related to the target digital asset can be acquired from the plurality of data sources, and because the plurality of data sources can provide richer and more comprehensive data sources for the target digital asset, the asset trend data in a plurality of data dimensions can be generated for the target digital asset based on the richer and more comprehensive data sources, so that more comprehensive and more accurate asset trend data can be provided for clients.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 900 is configured to perform the steps performed by the asset transaction platform or the blockchain node in the foregoing method embodiment, where the computer device 900 includes: one or more processors 901; one or more input devices 902, one or more output devices 903, and a memory 904. The processor 901, the input device 902, the output device 903, and the memory 904 described above are connected by a bus 905. The memory 904 is used to store a computer program, including program instructions, among other things. Specifically, the processor 901 is configured to call program instructions stored in the memory 904, and is configured to perform the following operations:
receiving a data query request initiated by a client, wherein the data query request is used for requesting to query asset trend data related to a target digital asset;
invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain;
Performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by carrying out data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions;
asset trend data for the target digital asset is returned to the client.
In one possible implementation, the background service comprises a transaction data synchronization service, and the data source comprises a blockchain node; processor 901 invokes at least one background service to obtain a plurality of data sources for the target digital asset for performing the operations of:
invoking a transaction data synchronization service to perform transaction event detection processing on at least one decentralised exchange contract deployed by the blockchain node, wherein the transaction event detection processing mode comprises the following steps: any one or more of synchronous detection mode, asynchronous detection mode and periodic detection mode;
if a transaction event matching the target digital asset is detected in any of the decentralised exchange contracts, acquiring first transaction data associated with the transaction event;
The first transaction data is used as a first data source for the target digital asset.
In one possible implementation, the data source further comprises at least one centralized transaction platform under the blockchain; the processor 901 is also configured to perform the following operations:
invoking a transaction data synchronization service to respectively acquire second transaction data associated with the target digital asset from at least one centralized transaction platform under the blockchain;
the acquired second transaction data is added to a second data source of the target digital asset.
In one possible implementation, the background service further includes an information data synchronization service, the data source further includes an information platform, and the plurality of data sources further includes a third data source; processor 901 invokes at least one background service to obtain a plurality of data sources for the target digital asset for performing the operations of:
invoking an information data synchronization service to obtain information data associated with the target digital asset from the information platform;
performing data preprocessing on the information data to obtain preprocessed information data;
and taking the preprocessed information data as a third data source of the target digital asset.
In one possible implementation, the processor 901 is further configured to:
Calling an interface of an exchange rate inquiry service based on the transaction data synchronization service to acquire an exchange rate table associated with the target digital asset;
based on the obtained exchange rate table, respectively performing exchange rate conversion processing on the first data source, the second data source and the third data source of the target digital asset;
and taking the first data source, the second data source and the third data source after exchange rate conversion processing as a plurality of data sources of the target digital asset.
In one possible implementation, the processor 901 is further configured to:
generating a service call request based on the transaction data synchronization service, and sending the service call request to the exchange rate inquiry service; the service invocation request is used to indicate: the transaction data synchronization service calls an interface of the exchange rate inquiry service to acquire an exchange rate table associated with the target digital asset;
if a feedback message allowing the interface to call is received, a service interface of the exchange rate query service is called to acquire an exchange rate table of the target digital asset;
wherein the feedback message is generated after the service verification executed by the exchange rate inquiry service on the transaction data synchronization service is passed; the service verification includes: white list authentication, identity authentication, service type authentication.
In one possible implementation, the background service further includes an authentication service; after receiving the data query request initiated by the client, the processor 901 is further configured to:
analyzing the data query request to obtain signature data of a target object initiating the data query request;
invoking an authentication service to perform authentication processing on the target object, wherein the authentication processing comprises: any one or more of authority verification and signature verification;
if the authentication process for the target object passes, a step of acquiring a plurality of data sources of the target digital asset is triggered to be executed.
In one possible implementation, the processor 901 performs multidimensional data analysis on multiple data sources of a target digital asset to obtain asset trend data for the target digital asset in at least one data dimension for performing the following operations:
performing format conversion processing on the multi-dimensional data sources of the target digital asset according to the format conversion rule to obtain all the data sources with the same data format;
performing data fusion processing on all data sources with the same data format to obtain a fused data source of the target digital asset;
and carrying out multidimensional data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension.
In one possible implementation, the asset trend data includes K-line data in the value dimension; the processor 901 performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension for performing the following operations:
according to the value dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a first analysis result of the target digital asset, wherein the first analysis result is used for reflecting the overall change trend of the asset value of the target digital asset;
and obtaining K-line data of the target digital asset in the value dimension based on the first analysis result of the target digital asset.
In one possible implementation, the asset trend data includes time-sharing data in a time dimension; the processor 901 performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension for performing the following operations:
according to the time dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a second analysis result of the target digital asset, wherein the second analysis result is used for reflecting the asset value trend of the target digital asset in a specified time interval;
And obtaining time-sharing data of the target digital asset in the time dimension based on the second analysis result of the target digital asset.
In one possible implementation, the asset trend data further includes information data in an information dimension; the processor 901 performs multidimensional data analysis on the target digital asset based on the fused data source of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension for performing the following operations:
according to the information dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a third analysis result of the target digital asset, wherein the third analysis result is used for reflecting market data of the asset value of the target digital asset in an information market;
asset trend data for the target digital asset is obtained based on the first analysis result, the second analysis result, and the third analysis result for the target digital asset.
In one possible implementation, the processor 901 returns asset trend data for the target digital asset to the client for performing the following operations:
acquiring an asset type of a target digital asset;
if the asset type of the target digital asset is the appointed type, performing data protection processing on the asset trend data of the target digital asset to obtain asset trend data after the data protection processing;
Returning the asset trend data after the data protection processing to the client;
the data protection process comprises the following steps: any one or more of encryption processing and data conversion processing.
In the embodiment of the application, a data query request initiated by a client can be received, wherein the data query request is used for requesting to query asset trend data related to a target digital asset; invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data source sides, each data source side is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source side; the plurality of data sources includes: a first data source associated with the target digital asset generated in the blockchain, and a second data source associated with the target digital asset generated outside the blockchain; performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions; finally, asset trend data for the target digital asset may be returned to the client. Therefore, in the process of generating asset trend data for the target digital asset, the plurality of data sources related to the target digital asset can be acquired from the plurality of data sources, and because the plurality of data sources can provide richer and more comprehensive data sources for the target digital asset, the asset trend data in a plurality of data dimensions can be generated for the target digital asset based on the richer and more comprehensive data sources, so that more comprehensive and more accurate asset trend data can be provided for clients.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer storage medium, and the computer storage medium stores a computer program, where the computer program includes program instructions, when executed by a processor, can perform the method in the corresponding embodiment, and therefore, a detailed description will not be given here. For technical details not disclosed in the embodiments of the computer storage medium related to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed on one computer device or executed on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network.
According to one aspect of the present application, the present application embodiments also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device can perform the method in the foregoing corresponding embodiment, and therefore, a detailed description will not be given here.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data processing device, such as a server, data center, or the like, that contains an integration of one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (16)

1. The asset processing method based on the blockchain is characterized by being applied to an asset business processing platform, wherein the asset business processing platform is associated with a plurality of data sources, at least one background service is deployed on the asset business processing platform, and one background service is used for carrying out data interaction with one data source; the method comprises the following steps:
receiving a data query request initiated by a client, wherein the data query request is used for requesting to query asset trend data related to a target digital asset;
invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data sources, each data source is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source; the plurality of data sources includes: a first data source associated with the target digital asset generated in a blockchain, and a second data source associated with the target digital asset generated outside the blockchain;
Performing multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions;
and returning asset trend data of the target digital asset to the client.
2. The method of claim 1, wherein the background service comprises a transaction data synchronization service, the data source comprises a blockchain node; the invoking at least one background service to obtain a plurality of data sources for the target digital asset comprises:
invoking a transaction data synchronization service to perform transaction event detection processing on at least one decentralised exchange contract deployed by a blockchain node, wherein the transaction event detection processing mode comprises the following steps: any one or more of synchronous detection mode, asynchronous detection mode and periodic detection mode;
if a transaction event matched with the target digital asset is detected in any off-center exchange contract, acquiring first transaction data associated with the transaction event;
The first transaction data is used as a first data source associated with the target digital asset.
3. The method of claim 2, wherein the data source further comprises at least one centralized transaction platform under a blockchain; the method further comprises the steps of:
invoking a transaction data synchronization service to respectively obtain second transaction data associated with the target digital asset from at least one centralized transaction platform under a blockchain;
the acquired second transaction data is added to a second data source associated with the target digital asset.
4. The method of claim 1, wherein the background service further comprises an informative data synchronization service, the data source further comprises an informative platform, and the plurality of data sources further comprises a third data source; the invoking at least one background service to obtain a plurality of data sources for the target digital asset comprises:
invoking an information data synchronization service to obtain information data associated with the target digital asset from the information platform;
performing data preprocessing on the information data to obtain preprocessed information data;
and taking the preprocessed information data as a third data source of the target digital asset.
5. The method of any one of claims 1-4, wherein the method further comprises:
an interface for calling an exchange rate inquiry service based on a transaction data synchronization service, and acquiring an exchange rate table associated with the target digital asset;
based on the obtained exchange rate table, respectively performing exchange rate conversion processing on a first data source, a second data source and a third data source of the target digital asset;
and taking the first data source, the second data source and the third data source after exchange rate conversion processing as a plurality of data sources of the target digital asset.
6. The method of claim 5, wherein the method further comprises:
generating a service call request based on the transaction data synchronization service, and sending the service call request to an exchange rate inquiry service; the service invocation request is used for indicating: the transaction data synchronization service calls an interface of the exchange rate query service to obtain an exchange rate table associated with the target digital asset;
if a feedback message allowing the interface to call is received, a service interface of the exchange rate inquiry service is called to acquire an exchange rate table of the target digital asset;
wherein the feedback message is generated after a service verification performed by the exchange rate query service on the transaction data synchronization service is passed; the service verification includes: white list authentication, identity authentication, service type authentication.
7. The method of claim 1, wherein the background service further comprises an authentication service; after receiving the data query request initiated by the client, the method further comprises the following steps:
analyzing the data query request to obtain signature data of a target object which initiates the data query request;
invoking the authentication service to perform authentication processing on the target object, wherein the authentication processing comprises: any one or more of authority verification and signature verification;
and triggering the step of executing the plurality of data sources for acquiring the target digital asset if the authentication process of the target object is passed.
8. The method of claim 1, wherein the multi-dimensional data analysis of the plurality of data sources of the target digital asset to obtain asset trend data for the target digital asset in at least one data dimension comprises:
performing format conversion processing on the multi-dimensional data sources of the target digital asset according to a format conversion rule to obtain all the data sources with the same data format;
performing data fusion processing on each data source with the same data format to obtain a fusion data source of the target digital asset;
And carrying out multidimensional data analysis on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension.
9. The method of claim 8, wherein the asset trend data comprises K-line data in a value dimension; the multi-dimensional data analysis is performed on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension, including:
according to the value dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a first analysis result of the target digital asset, wherein the first analysis result is used for reflecting the overall change trend of the asset value of the target digital asset;
and obtaining K-line data of the target digital asset in the value dimension based on the first analysis result of the target digital asset.
10. The method of claim 9, wherein the asset trend data comprises time-sharing data in a time dimension; the multi-dimensional data analysis is performed on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension, including:
According to the time dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a second analysis result of the target digital asset, wherein the second analysis result is used for reflecting the asset value trend of the target digital asset in a specified time interval;
and obtaining time-sharing data of the target digital asset in the time dimension based on the second analysis result of the target digital asset.
11. The method of claim 9 or 10, wherein the asset trend data further comprises information data in an information dimension; the multi-dimensional data analysis is performed on the target digital asset based on the fusion data source of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension, including:
according to the information dimension, carrying out data analysis on the asset value of the target digital asset in the fusion data source to obtain a third analysis result of the target digital asset, wherein the third analysis result is used for reflecting market data of the asset value of the target digital asset in an information market;
and obtaining asset trend data of the target digital asset based on the first analysis result, the second analysis result and the third analysis result of the target digital asset.
12. The method of claim 1, wherein the returning asset trend data for the target digital asset to the client comprises:
acquiring an asset type of the target digital asset;
if the asset type of the target digital asset is a designated type, performing data protection processing on the asset trend data of the target digital asset to obtain asset trend data after the data protection processing;
returning the asset trend data after the data protection processing to the client;
wherein the data protection process includes: any one or more of encryption processing and data conversion processing.
13. The asset processing device based on the blockchain is characterized by being applied to an asset service processing platform, wherein the asset service processing platform is associated with a plurality of data sources, at least one background service is deployed on the asset service processing platform, and one background service is used for carrying out data interaction with one data source; the device comprises:
the receiving unit is used for receiving a data query request initiated by the client, wherein the data query request is used for requesting to query asset trend data related to the target digital asset;
A processing unit for invoking at least one background service to obtain a plurality of data sources of the target digital asset; the data sources are respectively from a plurality of data sources, each data source is used for providing one data source, and a background service is used for acquiring one or more data sources from one data source; the plurality of data sources includes: a first data source associated with the target digital asset generated in a blockchain, and a second data source associated with the target digital asset generated outside the blockchain;
the processing unit is further used for carrying out multidimensional data analysis on a plurality of data sources of the target digital asset to obtain asset trend data of the target digital asset in at least one data dimension; asset trend data of the target digital asset in one data dimension is obtained by data analysis according to one or more data sources, and the asset trend data is used for reflecting the change condition of the asset value of the target digital asset in different data dimensions;
and the sending unit is used for returning the asset trend data of the target digital asset to the client.
14. A computer device, comprising: a memory device and a processor;
a memory in which one or more computer programs are stored;
a processor for loading the one or more computer programs to implement the blockchain-based asset processing method of any of claims 1-12.
15. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor and to perform the blockchain-based asset processing method of any of claims 1-12.
16. A computer program product, characterized in that the computer program product comprises a computer program adapted to be loaded by a processor and to perform the blockchain-based asset processing method according to any of the claims 1-12.
CN202311394966.3A 2023-10-25 2023-10-25 Asset processing method, device, equipment, medium and product based on block chain Pending CN117370396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311394966.3A CN117370396A (en) 2023-10-25 2023-10-25 Asset processing method, device, equipment, medium and product based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311394966.3A CN117370396A (en) 2023-10-25 2023-10-25 Asset processing method, device, equipment, medium and product based on block chain

Publications (1)

Publication Number Publication Date
CN117370396A true CN117370396A (en) 2024-01-09

Family

ID=89400077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311394966.3A Pending CN117370396A (en) 2023-10-25 2023-10-25 Asset processing method, device, equipment, medium and product based on block chain

Country Status (1)

Country Link
CN (1) CN117370396A (en)

Similar Documents

Publication Publication Date Title
US10841100B2 (en) Dynamically managing exchanges of data using a distributed ledger and homomorphic commitments
US10740411B2 (en) Determining repeat website users via browser uniqueness tracking
WO2019097322A1 (en) Optimization of high volume transaction performance on a blockchain
CN112132198A (en) Data processing method, device and system and server
CN105556552A (en) Fraud detection and analysis
CN111163182A (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN110266872B (en) Address book data management and control method and device, cloud address book system, computer equipment and computer readable storage medium
CN111488372A (en) Data processing method, device and storage medium
WO2021042746A1 (en) Information recommendation method and apparatus, and storage medium and electronic device
CN109614327B (en) Method and apparatus for outputting information
CN111339141A (en) Data transmission method, block link node equipment and medium
CN112508733A (en) Big data intelligence service system in electric wire netting space-time based on big dipper
CN114386896A (en) Information sending method, page display device, electronic equipment and medium
CN110807209B (en) Data processing method, device and storage medium
CN112035350A (en) Test method and device for block chain system and computer equipment
CN109544165B (en) Resource transfer processing method, device, computer equipment and storage medium
CN117370396A (en) Asset processing method, device, equipment, medium and product based on block chain
CN112039893B (en) Private transaction processing method and device, electronic equipment and readable storage medium
CN108551484B (en) User information synchronization method, device, computer device and storage medium
CN110910091A (en) Data processing method, device and medium
CN110659476A (en) Method and apparatus for resetting password
CN111008251B (en) Data processing method and device
CN116862679B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN111259298B (en) Topic generation method based on block chain, node server and storage medium
CN117407834A (en) Data processing method based on block chain network and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication