CN117240605B - Data transaction method, device, equipment and storage medium - Google Patents

Data transaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN117240605B
CN117240605B CN202311491776.3A CN202311491776A CN117240605B CN 117240605 B CN117240605 B CN 117240605B CN 202311491776 A CN202311491776 A CN 202311491776A CN 117240605 B CN117240605 B CN 117240605B
Authority
CN
China
Prior art keywords
data
transaction
blockchain
nodes
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311491776.3A
Other languages
Chinese (zh)
Other versions
CN117240605A (en
Inventor
冉大亮
罗攀峰
曾纪才
雷瑞恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ctj Info Tech Co ltd
Original Assignee
Beijing Ctj Info Tech Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ctj Info Tech Co ltd filed Critical Beijing Ctj Info Tech Co ltd
Priority to CN202311491776.3A priority Critical patent/CN117240605B/en
Publication of CN117240605A publication Critical patent/CN117240605A/en
Application granted granted Critical
Publication of CN117240605B publication Critical patent/CN117240605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present disclosure provides a data transaction method, device, equipment and storage medium, and relates to the technical field of blockchain. In some embodiments of the present disclosure, first data uploaded by a data owner device is received; preprocessing the first data to obtain preprocessed first data; performing digital signature operation on the preprocessed first data to obtain first data after data signing; the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction; broadcasting the blockchain transaction to other nodes in the blockchain except for the data transaction link points for storing the first data after the data signature in a distributed ledger of the blockchain; the method and the system apply the blockchain technology to data transaction, ensure the credibility of the data, ensure that the blockchain has the characteristic of decentralization and the data can not be modified, can be maintained by multiple parties, and simultaneously facilitate the data tracing and improve the safety of the data.

Description

Data transaction method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a data transaction method, apparatus, device, and storage medium.
Background
The data is an important production element, and the data transaction can effectively play the data value and release the potential of the data element. However, the data has the characteristic of high sensitivity and carries complex rights contents and rights bodies, so that the data transaction needs to be limited in a specific range and conforms to the specific rule specification.
Under the big data environment, the data which the enterprise can contact can be roughly divided into four types, namely, personal information data of the user, data issued by the user, data collection collected by the enterprise, derivative data and the like. For any of the first three types of data, the enterprise can perform classification integration, deep processing, anonymization processing and the like through specific logic and algorithms to form more abstract and visual derivative data (which can be generally embodied as a data product or service). For the derivative data, enterprises carry out deep processing, and a large amount of manpower, material resources and financial resources are input, so the enterprises also have related rights and interests, and the derivative data is protected by property ownership and competitive property rights.
At present, the data market trade is not the bottom layer and the original data, but the labor result formed by processing the bottom layer and the original data in the modes of cleaning, analyzing, modeling, visualizing and the like is the data product and service, namely the derivative data, formed by deep analysis processing and integrated processing on the basis of the original data.
The current data commodity transaction includes a direct transaction data mode, an API access mode, a resource exchange mode, a member account service mode and the like. The credibility of the data cannot be guaranteed in the data acquisition stage in the current data transaction, the existing data cannot be well analyzed and modeled, and the ownership of the data cannot be well proved before the data is uploaded. At present, no good way is available to change the original data into safe and compliant data products which can be put on shelf for transaction. The source, collection mode, content and the like of the data are key nodes which cannot be ignored, and whether the data have the qualification of safe and compliant circulation is directly influenced. In summary, the security of the current data is low.
Disclosure of Invention
The disclosure provides a data transaction method, a device, equipment and a storage medium, so as to at least solve the problem of low security of existing data.
The technical scheme of the present disclosure is as follows:
the embodiment of the disclosure provides a data transaction method, which comprises the following steps:
receiving first data uploaded by data owner equipment;
preprocessing the first data to obtain preprocessed first data;
performing digital signature operation on the preprocessed first data to obtain first data after data signing;
The target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction;
broadcasting the blockchain transaction to other nodes in the blockchain except the data transaction link point for storing the first data signed by the data in a distributed ledger of the blockchain.
Optionally, after the receiving the first data uploaded by the data owner, the method comprises:
performing right-confirming operation on the first data to obtain ownership and transaction right of the first data;
ownership and transaction rights of the first data are recorded in the blockchain.
Optionally, the preprocessing operation on the first data includes at least one of the following preprocessing operation modes:
performing deduplication operation on the first data;
modifying the missing value operation for the first data;
operating on the first data processing outlier;
and converting the data format of the first data into a data format supported by the blockchain.
Optionally, broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for storing the first data signed with the data in a distributed ledger of the blockchain, including:
Broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point;
the other nodes verify the blockchain transaction to obtain a verification result;
if the verification result is that the verification is passed, adding the blockchain transaction into a transaction pool to be packaged;
the miner node selects a target transaction from the transaction pool and packages the target transaction into blocks, wherein the target transaction comprises: the blockchain transaction;
and under the condition that the number of the other nodes for which the block is valid is determined to be greater than a set number threshold, storing the first data after the data signature in a distributed ledger of a blockchain.
Optionally, after broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for saving the data signed first data in a distributed ledger of the blockchain, the method further includes:
receiving a data request sent by data requesting equipment;
according to the data request, matching second data corresponding to the data request from a blockchain through a data transaction chain;
And determining the data value of the second data according to the aging value, the gain ratio and the production cost of the second data.
Optionally, after the determining the data value of the second data according to the aging value, the gain ratio and the production cost of the second data, the method further comprises:
receiving a purchase completion message sent by the data requester device;
according to the purchase completion message, a download port of the second data is sent to the data requester equipment;
receiving a download request of the data requester device;
and sending the second data to the data requester equipment according to the downloading request, wherein the downloading request is a request generated by the data requester equipment after responding to the triggering operation of the downloading inlet.
Optionally, after the sending the second data to the data requester device according to the download request, the method further includes:
generating a transaction record of the second data;
uploading the transaction record to a data transaction chain in the blockchain.
The embodiment of the disclosure also provides a data transaction device, which comprises:
the receiving module is used for receiving the first data uploaded by the data owner device;
The preprocessing module is used for preprocessing the first data to obtain preprocessed first data;
the digital signature module is used for carrying out digital signature operation on the preprocessed first data to obtain first data after data signing;
the sending module is used for sending the target data after the digital signature to a data transaction chain node to obtain blockchain transaction;
and the broadcasting module is used for broadcasting the blockchain transaction to other nodes except the data transaction chain link point in the blockchain so as to store the first data after the data signature in a distributed account book of the blockchain.
The embodiment of the disclosure also provides an electronic device, which is characterized by comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the steps in the method as described above.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
In some embodiments of the present disclosure, first data uploaded by a data owner device is received; preprocessing the first data to obtain preprocessed first data; performing digital signature operation on the preprocessed first data to obtain first data after data signing; the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction; broadcasting the blockchain transaction to other nodes in the blockchain except for the data transaction link points for storing the first data after the data signature in a distributed ledger of the blockchain; the method and the system apply the blockchain technology to data transaction, ensure the credibility of the data, ensure that the blockchain has the characteristic of decentralization and the data can not be modified, can be maintained by multiple parties, and simultaneously facilitate the data tracing and improve the safety of the data.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flow chart of a data transaction method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a block diagram of a data transaction chain provided by an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a data transaction device according to an exemplary embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of the present disclosure.
It should be noted that, the user information related to the present disclosure includes, but is not limited to: user equipment information and user personal information; the processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the user information in the present disclosure all conform to the regulations of the relevant laws and regulations and do not violate the well-known and popular public order.
In view of the foregoing technical problems, in some embodiments of the present disclosure, first data uploaded by a data owner device is received; preprocessing the first data to obtain preprocessed first data; performing digital signature operation on the preprocessed first data to obtain first data after data signing; the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction; broadcasting the blockchain transaction to other nodes in the blockchain except for the data transaction link points for storing the first data after the data signature in a distributed ledger of the blockchain; the method and the system apply the blockchain technology to data transaction, ensure the credibility of the data, ensure that the blockchain has the characteristic of decentralization and the data can not be modified, can be maintained by multiple parties, and simultaneously facilitate the data tracing and improve the safety of the data.
The following describes in detail the technical solutions provided by the embodiments of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a flow chart of a data transaction method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the method includes:
s101: receiving first data uploaded by data owner equipment;
s102: preprocessing the first data to obtain preprocessed first data;
s103: performing digital signature operation on the preprocessed first data to obtain first data after data signing;
s104: the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction;
s105: broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for storing the first data signed with the data in a distributed ledger of the blockchain.
In this embodiment, the execution body of the method is a server, and in this embodiment, the implementation form of the server is not limited. For example, the server may be a conventional server, a cloud host, a virtual center, or the like server device. The server mainly comprises a processor, a hard disk, a memory, a system bus and the like, and a general computer architecture type.
In order to better explain the present disclosure, the following description first explains the terms of art that appear in the present disclosure.
The block chain is a distributed and decentralised database technology, and is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The data in the blockchain is linked together in blocks, each block containing a number of transaction records or data. Each block contains the hash value of the previous block, forming a tamper-proof chain structure. Since any tampering with a ring will cause the hash value of the subsequent block to change, thereby breaking the consistency of the entire blockchain. The method mainly comprises key technologies such as decentralization, digital signature, intelligent contract and the like.
A blockchain network is made up of a plurality of nodes, each maintaining a complete copy of the blockchain. The decentralized architecture of the blockchain allows user nodes to conduct transactions worldwide without the need for third parties or central servers. Nodes can be divided into two types: full nodes and light nodes. The full node contains all transaction data and through a redundant storage mechanism, while the light node generally only stores part of the block head to avoid excessive waste of hard disk resources of users.
Digital signature is a method for authenticating digital information based on public key encryption system. The user constructs a public-private key pair, the public key can be regarded as the identity of the owner, and the private key is secret information of the owner proving the ownership of the public key. Digital signatures are the basis for blockchain construction blocks, mainly used to verify the authenticity of transactions. When a user submits a transaction, they must be certified with their identity rights to each node in the system.
Intelligent contracts, in blockchain technology, refer to computer programs that support automatic execution during satisfaction of predetermined conditions or transactions. The intelligent contracts are combined with the blockchain, on one hand, the contracts ensure the non-censorability of the contracts by utilizing the characteristics of the blockchain and can avoid human malicious intervention, and on the other hand, the intelligent contracts enable the blockchain to have programmability, so that the technology and the application width of the blockchain are expanded.
There are four main types of blockchains: public, private, federation, and permission chains.
Public chains, as the name implies, are blockchains that are composed of public participation. The public chain is decentralised, does not contain a single entity to control the network, i.e. does not contain an administrator or controller, and everyone can read, trade and audit the chain by providing means, the public chain being open and transparent to everyone.
Private chains, which are blockchains whose write rights are controlled by an organization and organization, are subject to strict restrictions on the qualification of participating nodes. Because the participating nodes are limited and controllable, the private chain can often have extremely fast transaction speed, better information protection, lower transaction cost, difficult malicious attack and can meet the requirements necessary for financial industries such as identity authentication and the like. Compared with a centralized database, the private chain can prevent single nodes in an organization from deliberately hiding or tampering with data, and can quickly discover the source even if errors occur. Many large financial institutions are now more inclined to use private chain technology.
The alliance chain is proposed to eliminate the disadvantage of the private chain, and a blockchain is proposed that is intermediate between the public chain and the private chain. The federated chain allows certain organizations and nodes to participate in the consensus, and is partially decentralised in that the federated chain chooses to join a portion of the organization to determine the consensus, as opposed to a centralized network of private chains. The system is characterized in that a plurality of institutions participate in a managed blockchain, each institution runs one or more nodes, data in the blockchain only allows different institutions in the system to read, write and send transactions, and transaction data is recorded together. The rights of design information may vary between private chains and federation chains, and the rights design requirements in federation chains tend to be more complex.
License chain means that every node participating in the blockchain system is licensed, and that unlicensed nodes are not accessible to the system, so both private and federation links belong to the license chain. Some license chains are devoid of a token mechanism because there is no need to encourage nodes to compete for accounting by tokens.
In some embodiments of the present disclosure, first data uploaded by a data owner device is received; preprocessing the first data to obtain preprocessed first data; performing digital signature operation on the preprocessed first data to obtain first data after data signing; the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction; broadcasting the blockchain transaction to other nodes in the blockchain except for the data transaction link points for storing the first data after the data signature in a distributed ledger of the blockchain; the method and the system apply the blockchain technology to data transaction, ensure the credibility of the data, ensure that the blockchain has the characteristic of decentralization and the data can not be modified, can be maintained by multiple parties, and simultaneously facilitate the data tracing and improve the safety of the data.
In some embodiments of the present disclosure, a server receives first data uploaded by a data owner, wherein the server may be a cloud server having a large amount of storage space. The server performs right-confirming operation on the first data to obtain ownership and transaction right of the first data; ownership and transaction rights of the first data are recorded in the blockchain. For example, the cloud server performs preliminary processing and validation on the first data, and identity authentication and authority control are improved for the first data. Ownership and transaction authority of the first data are recorded in the alliance chain, and safety and reliability of the data are ensured.
In some embodiments of the present disclosure, a preprocessing operation is performed on the first data, resulting in preprocessed first data. Including but not limited to at least one of the following pretreatment modes of operation:
pretreatment mode one: and performing a deduplication operation on the first data. And removing repeated data in the first data by performing a deduplication operation on the first data.
Pretreatment mode II: the missing value operation is modified for the first data.
Pretreatment mode III: an outlier operation is processed on the first data. And the accuracy and the integrity of the data are ensured.
Pretreatment mode four: the data format of the first data is converted to a data format supported by the blockchain. Blockchains typically use specific data structures and encoding schemes to store and process data, e.g., convert the first data to JSON format or binary format, etc.
In some embodiments of the present disclosure, a digital signature operation is performed on the preprocessed first data, to obtain the first data after the data signature. Specifically, after preliminary data processing, a unique hash value is generated on the preprocessed data by using a hash function, so that a summary of the data is generated, and then a digital signature is performed on the hash value of the data. An asymmetric encryption algorithm may be used to confirm that the sender holds the corresponding private key by the public key and the signature information without revealing the sender's own private key. Signing the hash also binds the sender's identity and information, while also preventing others from masquerading as the sender. This way of processing ensures that the information is tamper-proof, while the identity of the sender is authenticated against repudiation.
In some embodiments of the present disclosure, digitally signed target data is sent to a data transaction chain node, resulting in a blockchain transaction; broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for storing the first data signed with the data in a distributed ledger of the blockchain. One way that may be implemented is to broadcast the blockchain transaction to other nodes in the blockchain than the data transaction link points; other nodes verify the blockchain transaction to obtain a verification result; if the verification result is that the verification is passed, adding the blockchain transaction into a transaction pool to be packaged; the miner node selects a target transaction from the transaction pool and packages the target transaction into blocks, wherein the target transaction comprises: block chain transactions; and under the condition that the number of other nodes for which the block is determined to be valid is greater than a set number threshold, storing the first data after the data signature in a distributed ledger of the block chain. After the data after the digital signature is finished is sent to a data transaction chain node, a blockchain transaction is formed. After receiving the transaction, each node broadcasts the received transaction to other nodes, and the other nodes verify the transaction, including verifying the validity of the transaction, the correctness of the digital signature, and the like. Only validated transactions can be added to the blockchain. Once the transaction is validated, it is added to the pool of transactions to be packaged. The mineworker node selects transactions from the pool and packages them into a block. The block contains information about this transaction as well as other transactions. Data chaining is successful when enough nodes confirm the validity of a block and add it to their own local copy. At this time, the data will be saved in the distributed ledger of the blockchain and cannot be tampered with or deleted. It should be a partner for the coalition chain employed in this disclosure to be able to send transactions, so the principle of processing transactions is to package transactions that can be processed into blocks as much as possible.
In other embodiments of the present disclosure, a data request sent by a data requester device is received; according to the data request, matching second data corresponding to the data request from the blockchain through a data transaction chain; and determining the data value of the second data according to the aging value, the gain ratio and the production cost of the second data. The server matches second data corresponding to the data request from the blockchain according to the data request, and the server can further determine the data value of the second data so as to be used for the data purchase of the data requester.
In the above embodiment, the data requester may perform data searching, data displaying, data viewing, viewing data details, and the like through the data requester device.
Wherein, data searching: a data search function is provided, and a user can search for data according to keywords, classifications, tags, etc., so as to find desired data.
Data presentation: the search results are presented to the user in the form of a list or grid, including basic information, summaries, prices, etc. of the data. The user may click on the data to view more detailed information.
Data preview: a data preview function is provided whereby a user may preview a portion of the content or sample of the data to assess the quality and applicability of the data.
Data details: the user may click on the data to view detailed data descriptions, attributes, and features. The data detail page can also display information such as the source, production mode, data format and the like of the data so that a user can more comprehensively know the data.
In the above embodiment, the data value of the second data is determined according to the aging value, the gain ratio, and the production cost of the second data. The calculation formula is as follows:
1+R)
wherein,is the lowest price in data transaction>,/>Representing the production cost of the data, including the cost of data acquisition, screening, management and operation and maintenance,/->For the age value, representing the freshness of the data, representing the timeliness of the data asset, which affects the pricing of the data, R is 0 or more, and R is the gain, e.g., the interest rate.
The present disclosure employs smart contract technology to effect data transactions and processing. The intelligent contract is an automatic contract based on a blockchain, is a programmable code, ensures the validity of transaction and correctly executes a data requester to pay deposit, and purchases related data after the transaction data is reasonably priced by a data provider. The data owner gets paid. The data transaction is confirmed and broadcast to all nodes to become irreversible transaction records, and the data requester has data ownership.
It should be noted that a shopping cart function is also provided, and the user can add interesting data to the shopping cart. The user can view the data in the shopping cart at any time, and manage and adjust the data. In addition, the price of the data and the purchase options can be displayed, and the user can select the purchased data and the corresponding authorization mode. The system calculates the total price according to the selection of the user and provides a safe payment mode for settlement. Before the user confirms the purchase, a purchase confirmation page may be provided displaying a data list of the purchase and a price summary. The user needs to confirm the intent of the purchase and may need to agree to the relevant purchase agreements and terms.
After the user purchases the second data in some embodiments of the present disclosure, receiving a purchase completion message sent by the data requester device; according to the purchase completion message, a download port of the second data is sent to the data requester equipment; receiving a downloading request of data requesting equipment; and sending the second data to the data requester device according to a download request, wherein the download request is a request generated by the data requester device after responding to the trigger operation of the download portal.
In the above embodiment, the user can select a plurality of data for comparison. The system provides the ability to select data that a user can add to the comparison list. The system presents the comparison result in the form of a table or graph, and compares the attribute, the characteristic and the index of the data. The user can evaluate the difference and similarity of the data by comparing the results, thereby making a better choice.
In the above embodiment, the transaction record of the second data is generated; the transaction record is uploaded to a data transaction chain in the blockchain.
The present disclosure provides a blockchain-based data distributed transaction method in which a coalition chain is used to build a data transaction chain. By utilizing the access mechanism and the open transparent characteristic of the alliance chain, the security of the user identity and the authenticity of the information in the alliance chain are ensured, and the automation of the transaction process and the transparency of the transaction are realized by deploying intelligent contracts on the alliance chain nodes. The block chain technology is used for forming a data transaction chain, and the defects of single point failure, opaque transaction and the like in the traditional centralized transaction mode are overcome through the processes of data storage, data uplink, data request, demand matching, data pricing, data purchase and data downloading, so that the reliability of data transaction is ensured, and the efficiency of data transaction is improved.
Fig. 2 is a diagram of a data transaction chain structure provided in an exemplary embodiment of the present disclosure. As shown in fig. 2, where the Block ID is a Block identifier, block is a Block, and Merkle root is Merkle root. Taking the example of the type of data that is a virtual prop in a game, the data requester and the data owner will trade the data for the virtual prop. The following describes the specific flow of data transactions:
Step one: data storage
The data owner A stores the data of the virtual prop on the cloud server.
Step two: data chaining
(1) Preliminary processing of data
And performing preliminary processing on the data by using a cloud server. Firstly, verifying the integrity and the authenticity of data, and then cleaning and preprocessing the data: remove duplicate data, repair missing values, handle outliers, etc. And converts the data into a format supported by the blockchain, such as JSON format or binary format, etc.
(2) Information signature
And generating a unique hash value by using a hash function on the data, so as to generate a summary of the data, and then digitally signing the hash value of the data.
(3) Transaction broadcast
And sending the signed data to a data transaction chain node, wherein a blockchain transaction is formed. The transaction is broadcast to other nodes of the data transaction chain, which verify the transaction. After the transaction verification is passed, the transaction verification is added into a transaction pool to be packaged. The mineworker node selects transactions from the pool and packages them into a block. The block contains information of the transaction and other transactions.
Step three: data request
The data requester B issues a data request on the data transaction chain that requires the game virtual prop.
Step four: demand matching
Through the data transaction chain, the data owner a matches the corresponding data requester B and pays the corresponding deposit.
Step five: and (5) pricing data. The data is priced based on the above-described calculation formula for the value of the data.
Step six: data purchase
The data requester B pays the deposit and purchases the relevant data. The data owner gets paid. This data transaction is acknowledged and broadcast to all nodes as an irreversible transaction record, and the data requester B has ownership of the data of the game virtual prop. The security of the transaction is ensured by using the intelligent contract.
Step seven: data download
The data request B downloads the data purchased by the user from a cloud server storing the data, and the cloud server uploads the record of the data download to a data transaction chain, so that the transaction is completed.
Fig. 3 is a schematic diagram of a data transaction device 30 according to an exemplary embodiment of the present disclosure. As shown in fig. 3, the data transaction device 30 includes: a receiving module 31, a preprocessing module 32, a digital signature module 33, a transmitting module 34 and a broadcasting module 35.
The receiving module 31 is configured to receive first data uploaded by the data owner device;
A preprocessing module 32, configured to perform a preprocessing operation on the first data, so as to obtain preprocessed first data;
the digital signature module 33 is configured to perform a digital signature operation on the preprocessed first data, so as to obtain first data after the data is signed;
a sending module 34, configured to send the digitally signed target data to a data transaction chain node, to obtain a blockchain transaction;
the broadcasting module 35 is configured to broadcast the blockchain transaction to other nodes in the blockchain except for the link point of the data transaction, so as to store the first data after the data signature in the distributed ledger of the blockchain.
Optionally, after receiving the first data uploaded by the data owner, the receiving module 31 is further configured to:
performing right-determining operation on the first data to obtain ownership and transaction right of the first data;
ownership and transaction rights of the first data are recorded in the blockchain.
Optionally, the preprocessing module 32 performs preprocessing operations on the first data, including at least one of the following preprocessing operations:
performing deduplication operation on the first data;
modifying the missing value operation for the first data;
processing an outlier operation on the first data;
the data format of the first data is converted to a data format supported by the blockchain.
Optionally, the broadcasting module 35, when broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for saving the data signed first data in the distributed ledger of the blockchain, is configured to:
broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point;
other nodes verify the blockchain transaction to obtain a verification result;
if the verification result is that the verification is passed, adding the blockchain transaction into a transaction pool to be packaged;
the miner node selects a target transaction from the transaction pool and packages the target transaction into blocks, wherein the target transaction comprises: block chain transactions;
and under the condition that the number of other nodes for which the block is determined to be valid is greater than a set number threshold, storing the first data after the data signature in a distributed ledger of the block chain.
Optionally, the broadcasting module 35, after broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for saving the data signed first data in the distributed ledger of the blockchain, may be further configured to:
receiving a data request sent by data requesting equipment;
According to the data request, matching second data corresponding to the data request from the blockchain through a data transaction chain;
and determining the data value of the second data according to the aging value, the gain ratio and the production cost of the second data.
Optionally, the broadcasting module 35 is further configured to, after determining the data value of the second data according to the aging value, the gain ratio, and the production cost of the second data:
receiving a purchase completion message sent by a data requester device;
according to the purchase completion message, a download port of the second data is sent to the data requester equipment;
receiving a downloading request of data requesting equipment;
and sending the second data to the data requester device according to a download request, wherein the download request is a request generated by the data requester device after responding to the trigger operation of the download portal.
Optionally, the broadcasting module 35 is further configured to, after transmitting the second data to the data requester device according to the download request:
generating a transaction record of the second data;
the transaction record is uploaded to a data transaction chain in the blockchain.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 4 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. As shown in fig. 4, the electronic device includes: a memory 41 and a processor 42. In addition, the electronic device further comprises a power supply component 43 and a communication component 44.
The memory 41 is used for storing a computer program and may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on an electronic device.
The memory 41 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
A communication component 44 for data transmission with other devices.
A processor 42, executable computer instructions stored in memory 41, for: receiving first data uploaded by data owner equipment; preprocessing the first data to obtain preprocessed first data; performing digital signature operation on the preprocessed first data to obtain first data after data signing; the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction; broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for storing the first data signed with the data in a distributed ledger of the blockchain.
Optionally, after receiving the first data uploaded by the data owner, the processor 42 is further operable to:
performing right-determining operation on the first data to obtain ownership and transaction right of the first data;
ownership and transaction rights of the first data are recorded in the blockchain.
Optionally, the processor 42, when performing the preprocessing operation on the first data, includes at least one of the following preprocessing operations:
performing deduplication operation on the first data;
modifying the missing value operation for the first data;
processing an outlier operation on the first data;
the data format of the first data is converted to a data format supported by the blockchain.
Optionally, the processor 42, when broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for saving the data signed first data in the distributed ledger of the blockchain, is to:
broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point;
other nodes verify the blockchain transaction to obtain a verification result;
if the verification result is that the verification is passed, adding the blockchain transaction into a transaction pool to be packaged;
the miner node selects a target transaction from the transaction pool and packages the target transaction into blocks, wherein the target transaction comprises: block chain transactions;
And under the condition that the number of other nodes for which the block is determined to be valid is greater than a set number threshold, storing the first data after the data signature in a distributed ledger of the block chain.
Optionally, the processor 42, after broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for saving the data signed first data in the distributed ledger of the blockchain, may be further operable to:
receiving a data request sent by data requesting equipment;
according to the data request, matching second data corresponding to the data request from the blockchain through a data transaction chain;
and determining the data value of the second data according to the aging value, the gain ratio and the production cost of the second data.
Optionally, the processor 42, after determining the data value of the second data according to the age value, the gain ratio, and the production cost of the second data, is further operable to:
receiving a purchase completion message sent by a data requester device;
according to the purchase completion message, a download port of the second data is sent to the data requester equipment;
receiving a downloading request of data requesting equipment;
and sending the second data to the data requester device according to a download request, wherein the download request is a request generated by the data requester device after responding to the trigger operation of the download portal.
Optionally, the processor 42 is further configured to, after sending the second data to the data requester device according to the download request:
generating a transaction record of the second data;
the transaction record is uploaded to a data transaction chain in the blockchain.
Accordingly, the disclosed embodiments also provide a computer-readable storage medium storing a computer program. The computer-readable storage medium stores a computer program that, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 1.
Accordingly, the disclosed embodiments also provide a computer program product comprising a computer program/instructions for executing the steps of the method embodiment of fig. 1 by a processor.
The communication assembly of fig. 4 is configured to facilitate wired or wireless communication between the device in which the communication assembly is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as a mobile communication network of WiFi,2G, 3G, 4G/LTE, 5G, etc., or a combination thereof. In one exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
The power supply assembly shown in fig. 4 provides power for various components of the device in which the power supply assembly is located. The power components may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the devices in which the power components are located.
The electronic device further comprises a display screen and an audio component.
The display screen includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation.
An audio component, which may be configured to output and/or input an audio signal. For example, the audio component includes a Microphone (MIC) configured to receive external audio signals when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signal may be further stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
In the above-described apparatus, device, storage medium, and computer program product embodiments of the present disclosure, first data uploaded by a data owner device is received; preprocessing the first data to obtain preprocessed first data; performing digital signature operation on the preprocessed first data to obtain first data after data signing; the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction; broadcasting the blockchain transaction to other nodes in the blockchain except for the data transaction link points for storing the first data after the data signature in a distributed ledger of the blockchain; the method and the system apply the blockchain technology to data transaction, ensure the credibility of the data, ensure that the blockchain has the characteristic of decentralization and the data can not be modified, can be maintained by multiple parties, and simultaneously facilitate the data tracing and improve the safety of the data.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method of data transaction, comprising:
receiving first data uploaded by data owner equipment;
preprocessing the first data to obtain preprocessed first data;
performing digital signature operation on the preprocessed first data to obtain first data after data signing;
the target data after digital signature is sent to a data transaction chain node to obtain blockchain transaction;
broadcasting the blockchain transaction to other nodes except the data transaction link points in the blockchain for storing the first data after the data signature in a distributed ledger of the blockchain;
wherein after broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point for saving the signed first data in a distributed ledger of the blockchain, the method further comprises:
receiving a data request sent by data requesting equipment;
according to the data request, matching second data corresponding to the data request from a blockchain through a data transaction chain;
determining the data value of the second data according to the aging value, the gain ratio and the production cost of the second data;
The data value of the second data is determined, and the corresponding calculation formula is as follows:1+R),/>is the lowest price in data transaction>,/>Representing the production cost of the data, including the cost of data acquisition, screening, management and operation and maintenance,/->The aging value represents the freshness of data, the aging of data assets is represented, and R is the gain ratio and is more than or equal to 0.
2. The method of claim 1, wherein after the receiving the first data uploaded by the data owner, the method comprises:
performing right-confirming operation on the first data to obtain ownership and transaction right of the first data;
ownership and transaction rights of the first data are recorded in the blockchain.
3. The method of claim 1, wherein the preprocessing the first data comprises at least one of:
performing deduplication operation on the first data;
modifying the missing value operation for the first data;
operating on the first data processing outlier;
and converting the data format of the first data into a data format supported by the blockchain.
4. The method of claim 1, wherein broadcasting the blockchain transaction to nodes in the blockchain other than the data transaction link point for saving the first data signed in a distributed ledger of the blockchain comprises:
Broadcasting the blockchain transaction to other nodes in the blockchain than the data transaction link point;
the other nodes verify the blockchain transaction to obtain a verification result;
if the verification result is that the verification is passed, adding the blockchain transaction into a transaction pool to be packaged;
the miner node selects a target transaction from the transaction pool and packages the target transaction into blocks, wherein the target transaction comprises: the blockchain transaction;
and under the condition that the number of the other nodes for which the block is valid is determined to be greater than a set number threshold, storing the first data after the data signature in a distributed ledger of a blockchain.
5. The method of claim 1, wherein after said determining the data value of the second data based on the age value, gain rate, and production cost of the second data, the method further comprises:
receiving a purchase completion message sent by the data requester device;
according to the purchase completion message, a download port of the second data is sent to the data requester equipment;
receiving a download request of the data requester device;
And sending the second data to the data requester equipment according to the downloading request, wherein the downloading request is a request generated by the data requester equipment after responding to the triggering operation of the downloading inlet.
6. The method of claim 5, wherein after said sending said second data to said data requestor device according to said download request, said method further comprises:
generating a transaction record of the second data;
uploading the transaction record to a data transaction chain in the blockchain.
7. A data transaction device, comprising:
the receiving module is used for receiving the first data uploaded by the data owner device;
the preprocessing module is used for preprocessing the first data to obtain preprocessed first data;
the digital signature module is used for carrying out digital signature operation on the preprocessed first data to obtain first data after data signing;
the sending module is used for sending the target data after the digital signature to a data transaction chain node to obtain blockchain transaction;
the broadcasting module is used for broadcasting the blockchain transaction to other nodes except the data transaction chain link point in the blockchain so as to store the first data after the data signature in a distributed account book of the blockchain;
Wherein, at the broadcasting of the blockchain transaction to other nodes in the blockchain than the data transaction link point for the broadcasting of the blockchain transactionAfter the first data after the data signature is stored in the distributed account book of the blockchain, the method further comprises the following steps: receiving a data request sent by data requesting equipment, matching second data corresponding to the data request from a blockchain through a data transaction chain according to the data request, and determining the data value of the second data according to the aging value, the gain ratio and the production cost of the second data, wherein the data value of the second data is determined, and the corresponding calculation formula is as follows:1+R),/>is the lowest price in data transaction>,/>Representing the production cost of the data, including the cost of data acquisition, screening, management and operation and maintenance,/->The aging value represents the freshness of data, the aging of data assets is represented, and R is the gain ratio and is more than or equal to 0.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the steps in the method of any of claims 1-6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1-6.
CN202311491776.3A 2023-11-10 2023-11-10 Data transaction method, device, equipment and storage medium Active CN117240605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311491776.3A CN117240605B (en) 2023-11-10 2023-11-10 Data transaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311491776.3A CN117240605B (en) 2023-11-10 2023-11-10 Data transaction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117240605A CN117240605A (en) 2023-12-15
CN117240605B true CN117240605B (en) 2024-02-02

Family

ID=89088355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311491776.3A Active CN117240605B (en) 2023-11-10 2023-11-10 Data transaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117240605B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117635333A (en) * 2024-01-11 2024-03-01 国网山东省电力公司电力科学研究院 Block chain transaction execution method and block chain link point

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110619520A (en) * 2018-06-20 2019-12-27 深圳市红砖坊技术有限公司 Block chain system and routing method of routing node applied to block chain system
CN110889137A (en) * 2019-11-21 2020-03-17 云南群林科技有限公司 Data exchange method based on block chain
CN114528346A (en) * 2022-01-27 2022-05-24 中科大数据研究院 Method for sharing transaction of multi-source heterogeneous data assets by depending on block chain
WO2022253865A1 (en) * 2021-05-31 2022-12-08 Billon Sp. Z O.O. A system and method for trading cryptocurrencies, tokenized assets and/or fiat currencies on a permission-less unified and interoperable blockchain distributed ledger system with anchor-of-trust organizations

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11315115B2 (en) * 2019-04-12 2022-04-26 Advanced New Technologies Co., Ltd. Blockchain-based data processing system, method, computing device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110619520A (en) * 2018-06-20 2019-12-27 深圳市红砖坊技术有限公司 Block chain system and routing method of routing node applied to block chain system
CN110889137A (en) * 2019-11-21 2020-03-17 云南群林科技有限公司 Data exchange method based on block chain
WO2022253865A1 (en) * 2021-05-31 2022-12-08 Billon Sp. Z O.O. A system and method for trading cryptocurrencies, tokenized assets and/or fiat currencies on a permission-less unified and interoperable blockchain distributed ledger system with anchor-of-trust organizations
CN114528346A (en) * 2022-01-27 2022-05-24 中科大数据研究院 Method for sharing transaction of multi-source heterogeneous data assets by depending on block chain

Also Published As

Publication number Publication date
CN117240605A (en) 2023-12-15

Similar Documents

Publication Publication Date Title
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
Pasdar et al. Connect API with blockchain: A survey on blockchain oracle implementation
US20210272140A1 (en) Systems and methods for an online music marketplace
US20210390549A1 (en) Systems and methods for building blockchains for verifying assets for smart contracts
Zhang et al. A design of digital rights management mechanism based on blockchain technology
US20220391887A1 (en) Systems and Methods for Maintenance of NFT Assets
US20230055618A1 (en) Systems and Methods for Management of Token Interactions
CN117240605B (en) Data transaction method, device, equipment and storage medium
US20230134095A1 (en) Systems, devices and methods for tracking authenticated clean energy with blockchains
Gupta et al. TrailChain: Traceability of data ownership across blockchain-enabled multiple marketplaces
CN116743768B (en) Method, apparatus, device and computer readable storage medium for trading computing power resources
US20230120534A1 (en) Methods for Conditional Transaction Tokens, Secure Sharing of Token Assets, Wallet Spam Protection, and User Interfaces for Acceptance of Terms
US20230100422A1 (en) Systems and Methods for Transaction Management in NFT-Directed Environments
US20240289879A1 (en) System and method for content stake via blockchain
WO2020081102A1 (en) System and method for supplier information management
CN110766548A (en) Block chain based information processing method and device, storage medium and electronic equipment
CN111008852A (en) Artwork anti-counterfeiting identification method, server, terminal and storage medium
Xiong et al. Data resource protection based on smart contract
CN115131034A (en) Block chain-based rights and interests digital collection verification method and equipment
US20230421377A1 (en) Systems and Methods for Node Facilitation, Communication, and Maintenance
US20240078574A1 (en) System and method for a fair marketplace for time-sensitive and location-based data
KR102450412B1 (en) SLA-Based Sharing Economy Service with Smart Contract for Resource Integrity in the Internet of Things
Zhang Internet of things supervision system and supply chain financial supervision methods based on blockchain technology
Yuan Legal model construction approach of big data transaction management in the digital information perspective
CN110807684A (en) Block chain technology-based sales document storage method, device, server and medium

Legal Events

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