CN113645211B - Universal data uplink credit system and method - Google Patents

Universal data uplink credit system and method Download PDF

Info

Publication number
CN113645211B
CN113645211B CN202110881814.0A CN202110881814A CN113645211B CN 113645211 B CN113645211 B CN 113645211B CN 202110881814 A CN202110881814 A CN 202110881814A CN 113645211 B CN113645211 B CN 113645211B
Authority
CN
China
Prior art keywords
data
protocol
module
uplink
service data
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
CN202110881814.0A
Other languages
Chinese (zh)
Other versions
CN113645211A (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.)
Anhui Zhongke Lattice Technology Co ltd
Original Assignee
Anhui Zhongke Lattice Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Zhongke Lattice Technology Co ltd filed Critical Anhui Zhongke Lattice Technology Co ltd
Priority to CN202110881814.0A priority Critical patent/CN113645211B/en
Publication of CN113645211A publication Critical patent/CN113645211A/en
Application granted granted Critical
Publication of CN113645211B publication Critical patent/CN113645211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a universal data uplink storage system and a method thereof, wherein the system comprises: a protocol generation module and a data uplink module; the invention obtains a corresponding protocol and a data contract according to a protocol object determined by the business data to be uplink-linked through a protocol generation module, and sends the protocol, the data contract and the business data to be uplink-linked to a data uplink-linked module; the data uplink module uplinks the service data to be uplinked according to the protocol and the data contract to obtain target service data so as to realize the storage of the service data to be uplinked; the invention defines the service data type to be uplink by using the protocol, generates the corresponding data contract according to the service data type to be uplink, stores and uplinks the same service data type to be uplink by directly calling the number contract, and can effectively improve the flexibility of data uplink compared with the prior art that different service data or the same service data are independent without association and need to establish an uplink contract for uplink.

Description

Universal data uplink credit system and method
Technical Field
The present invention relates to the field of block chaining technologies, and in particular, to a universal data uplink credit system and method.
Background
With the increasing awareness of data security and the continuous development of the blockchain technology, the application of data storage based on the blockchain technology is more and more extensive and the application scenarios are increased, so that more and more internet data are stored on the blockchain, and data needs to be uplinked when the data is stored on the blockchain.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The present invention mainly aims to provide a universal data uplink credit system and method, and aims to solve the technical problem that the prior art cannot effectively improve the flexibility of data uplink.
To achieve the above object, the present invention provides a universal data uplink credit system, including: a protocol generation module and a data uplink module;
the protocol generation module is used for acquiring service data to be uplink-linked, determining a corresponding protocol object according to the service data to be uplink-linked, obtaining a corresponding protocol and a corresponding data contract according to the protocol object, and sending the protocol, the data contract and the service data to be uplink-linked to the data uplink-linking module;
and the data uplink module is used for performing uplink on the service data to be uplink according to the protocol and the data contract to obtain target service data so as to realize the evidence storage of the service data to be uplink.
Optionally, the protocol generation module includes an object serialization module and a protocol generation module;
the object serialization module is used for carrying out serialization processing on the protocol object, carrying out uplink on the serialized protocol object to obtain a target protocol number, and sending the target protocol number to the protocol generation module;
the protocol generation module is used for determining a corresponding data type according to the target protocol number, obtaining a corresponding data contract according to the data type, acquiring target scene information, and generating a corresponding protocol according to the target scene information and the target protocol number.
Optionally, the object serialization module includes an array determination module and an attribute fusion module;
the array determining module is used for writing the protocol object into a target type array and sending the target type array written into the protocol object to the attribute fusion module;
and the attribute fusion module is used for extracting the attribute information of the protocol object and fusing the attribute information with the target type array written into the protocol object.
Optionally, the protocol generation module includes a protocol addition module and a protocol query module;
the protocol adding module is used for acquiring protocol request information, generating a current protocol according to the protocol request information, performing additional update on a target protocol content array according to the current protocol, and sending the target protocol content array subjected to the additional update to the protocol query module;
and the protocol query module is used for acquiring user demand information and querying the target protocol content array according to the user demand information.
Optionally, the protocol generation module includes a format extraction module and a protocol definition module;
the format extracting module is used for acquiring service data to be uplink, extracting format information of the service data to be uplink, and sending the service data to be uplink to the protocol defining module when the format information is target format information;
and the protocol definition module is used for defining a corresponding protocol object according to the service data to be uplink.
Optionally, the universal data uplink credit system further includes a data format determination module and a file storage module;
the data format determining module is configured to send the service data to be uplink to the file storage module when the format information is not the target format information;
and the file storage module is used for storing the service data to be uplink through a preset file storage strategy.
Optionally, the data uplink module includes a protocol number determining module and a data contract invoking module;
the protocol number determining module is used for selecting a corresponding protocol number according to interface information of a protocol and service data to be uplinked, obtaining a corresponding data contract address according to the protocol number, and sending the data contract address to the data contract calling module;
and the data contract calling module is used for obtaining a corresponding data contract according to the data contract address, and chaining the service data to be chained according to the data contract to obtain target service data.
Optionally, the data uplink module includes a data evidence storage module, a data update module, and a time determination module;
the data storage module is used for recording the target service data in real time to obtain block height information and sending the block height information to the time determination module;
the data updating module is used for acquiring updated service data, updating target service data according to the updated service data, extracting index information of a hash value of the updated target service data, determining current service data according to the index information, and sending the current service data to the time determining module;
and the time determining module is used for obtaining corresponding change time according to the block height information and the current service data, and updating the storage time of the current service data according to the change time.
Optionally, the universal data uplink credit system further includes a block chain data analysis module and a data display module;
the data uplink module is further configured to send the stored target service data to the block chain data analysis module;
the block chain data analysis module is used for acquiring target protocol information, performing deserialization processing on the stored target service data according to the target protocol information to obtain a service data instance, and sending the service data instance to the data display module;
and the data display module is used for displaying the service data instance.
In addition, to achieve the above object, the present invention further provides a universal data uplink evidence storing method, where the universal data uplink evidence storing method is applied to a universal data uplink evidence storing system, and the system includes: a protocol generation module and a data uplink module, the method comprising:
the protocol generation module acquires service data to be uplink, determines a corresponding protocol object according to the service data to be uplink, obtains a corresponding protocol and a corresponding data contract according to the protocol object, and sends the protocol, the data contract and the service data to be uplink to the data uplink module;
and the data uplink module uplinks the service data to be uplinked according to the protocol and the data contract to obtain target service data so as to realize the evidence storage of the service data to be uplinked.
The method comprises the steps that a corresponding protocol object is determined according to business data to be uplink through a protocol generation module, a corresponding protocol and a corresponding data contract are obtained according to the protocol object, and the protocol, the data contract and the business data to be uplink are sent to a data uplink module; the data uplink module uplinks the service data to be uplinked according to the protocol and the data contract to obtain target service data so as to realize the storage of the service data to be uplinked; the invention defines the service data type to be uplink by using the protocol, generates the corresponding data contract according to the service data type, stores the uplink by directly calling the number contract for the same service data type, and can effectively improve the flexibility of data uplink compared with the prior art that different service data or the same service data are independent without association and the uplink contract needs to be established for uplink.
Drawings
FIG. 1 is a block diagram of a first embodiment of a universal data link credit system according to the present invention;
FIG. 2 is a diagram illustrating a protocol definition of a universal data uplink credit system according to an embodiment of the present invention;
fig. 3 is a schematic view of a business-common data uplink certificate storage according to an embodiment of the universal data uplink certificate storage system of the present invention;
fig. 4 is a schematic diagram illustrating a change of business data certificate of an embodiment of a universal data uplink certificate storing system according to the present invention;
FIG. 5 is a block diagram of a second embodiment of a universal data uplink credit system in accordance with the present invention;
fig. 6 is a schematic diagram of a universal data link certificate store of a file according to an embodiment of the universal data link certificate store system of the present invention;
FIG. 7 is a block diagram of a second embodiment of a universal data link credit system according to the present invention;
fig. 8 is a flowchart illustrating a general method for data uplink credentialing according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Referring to fig. 1, fig. 1 is a block diagram illustrating a first embodiment of a universal data uplink credit system according to the present invention. The universal data uplink credit system comprises: a protocol generation module 10 and a data uplink module 20.
In this embodiment, a protocol generation module 10 in a universal data uplink storage system 100 obtains service data to be uplink, determines a corresponding protocol object according to the service data to be uplink, obtains a corresponding protocol and data contract according to the protocol object, and sends the protocol, the data contract and the service data to be uplink to a data uplink module 20, where the service data to be uplink refers to service data that a user needs to uplink, and is divided into two types according to the size of the service data, one type is service data smaller than or equal to a data threshold, and the other type is file data larger than the data threshold.
Further, the protocol generation module 10 includes a format extraction module and a protocol definition module.
In this embodiment, the format extracting module obtains service data to be uplink, extracts format information of the service data to be uplink, and sends the service data to be uplink to the protocol defining module when the format information is target format information, where the target format information refers to format information in which the size of the service data to be uplink is smaller than or equal to a data threshold, after the service data to be uplink is obtained, it is necessary to determine whether the format information of the service data to be uplink is the target format information, and when the format information is the target format information, the service data to be uplink is sent to the protocol defining module.
In this embodiment, the protocol definition module defines a corresponding protocol object according to the to-be-uplink service data, where when the format information of the to-be-uplink service data is obtained as the target format information, the protocol information of the to-be-uplink service data is defined to obtain the corresponding protocol object, and at this time, the type of the to-be-uplink service data needs to be determined, and the protocol types of different types of to-be-uplink service data are also different when defining the protocol, referring to fig. 2, fig. 2 is a protocol definition schematic diagram of an embodiment of the universal data uplink storage system of the present invention, specifically: the protocol Object is a combination of multiple types, such as Object1 and Object2, and further includes a protocol cluster (Suite) and a protocol Number (Number), the Object is composed of multiple attributes, such as Property1, property2, property3 and Property4, and the Property is composed of a type (type), a name (name), a description (description) and a subtype (subtype), wherein the protocol cluster is equivalent to the type of the protocol, and is divided according to industry or type, for example, 0 is divided into a system protocol, the protocol Number is the Number of the protocol, the numerical value of the protocol cluster and the protocol Number is 64 bits, that is, the uniquely identified protocol, for example, 0 or 1 is the protocol itself.
Further, the protocol generation module 10 includes an object serialization module and a protocol generation module.
In this embodiment, the object serialization module performs serialization processing on the protocol object, performs uplink transmission on the serialized protocol object to obtain a target protocol number, and sends the target protocol number to the protocol generation module, where after the protocol object is obtained, the target protocol number is obtained by performing uplink transmission on the serialized protocol object, and the target protocol number refers to a protocol serial number after uplink transmission on the serialized protocol object, where the protocol number corresponds to a block number in a block chain in a one-to-one manner, and serialization refers to a process of converting state information of the protocol object into a form capable of being stored or transmitted.
Further, the object serialization module comprises an array determination module and an attribute fusion module.
In this embodiment, the array determining module writes the protocol object into a target type array, and sends the target type array written into the protocol object to the attribute fusion module, where the target type array refers to an array that stores the protocol object, and the target type array may be a byte array or other arrays.
In this embodiment, the attribute fusion module extracts attribute information of the protocol object, fuses the attribute information with a target type array written in the protocol object, where the attribute information refers to attribute information corresponding to service data to be uplinked, such as name, class, score, and other attribute information, and fusing the byte array containing the protocol object with the attribute information is to perform serialization processing on the protocol object.
In this embodiment, the protocol generation module determines a corresponding data type according to the target protocol number, obtains a corresponding data contract according to the data type, acquires target scenario information, and generates a corresponding protocol according to the target scenario information and the target protocol number, where after the target protocol number is obtained, because data types of different protocol number objects are different, the data type to which the protocol number belongs is determined according to the target protocol number, the target scenario information refers to actual scenario information when the protocol object links up, and generates a corresponding data contract according to the target scenario information and the target protocol number, so as to facilitate query of service data after linking up.
Further, the protocol generating module 10 includes a protocol adding module and a protocol querying module.
In this embodiment, a protocol adding module obtains protocol request information, generates a current protocol according to the protocol request information, performs additional update on a target protocol content array according to the current protocol, and sends the additional updated target protocol content array to a protocol query module, where preset protocol request information refers to protocol addition request information, generates a current protocol according to a preset request protocol, the current protocol refers to a protocol that needs to be newly added, the target protocol content array refers to an array in which protocol content is maintained, after the current protocol is obtained, the current protocol is added to the target protocol content array to complete the additional update of the target protocol content array, and sends the additional updated target protocol content array to the protocol query module.
In this embodiment, the protocol query module obtains user requirement information, queries the target protocol content array according to the user requirement information, where the user requirement information refers to protocol information that a user wants to query, and queries the target protocol content array according to the user requirement information after receiving the user requirement information to obtain protocol information corresponding to the user requirement information.
In this embodiment, the data chaining module 20 in the universal data chaining verification system 100 performs chaining on the service data to be chained according to the protocol and the data contract to obtain the target service data, so as to implement the verification of the service data to be chained.
Further, the data uplink module 20 includes a protocol number determination module and a data contract invoking module.
In this embodiment, the protocol number determining module selects a corresponding protocol number according to interface information of a protocol and service data to be uplinked, obtains a data contract address of a corresponding point according to the protocol number, and sends the data contract address to the data contract invoking module, wherein after the protocol and the service data to be uplinked are obtained, the protocol number corresponding to the service data to be uplinked is selected through the interface information in the protocol, different protocol numbers correspond to different data contract addresses, after the protocol number is obtained, the corresponding data contract address is determined according to the protocol number, and the determined data contract address is sent to the data contract invoking module.
In this embodiment, the data contract invoking module uplinks the service data to be uplinked according to the data contract address to obtain the target service data, where the data contract invoking module invokes a class method in the data contract to uplink the service data to be uplinked according to the data contract address, and after the uplink is successful, the target service data is obtained.
In this embodiment, referring to fig. 3, fig. 3 is a schematic view of a data uplink certificate of a general service in an embodiment of a universal data uplink certificate storing system of the present invention, where a specific uplink certificate storing process includes: after determining the Protocol object, the Protocol object is written into a byte array by a Protocol object Server (Protocol Server), and the byte array containing the Protocol object is transmitted to a corresponding Protocol map Contract data Contract, and the to-be-uplink service data is to-be-uplink service data corresponding to the transcript attribute information and the subject attribute information, such as a name: xiaoming; class: two shifts; subject name: chinese, math, and English; achievement: 99. 98 and 96, after obtaining the service Data to be uplinked, writing the service Data to be uplinked into the byte array through a block chain Server (Blockchain Server), transmitting the byte array containing the service Data to be uplinked to a corresponding Data Contract, and calling a method in a Data Contract through a protocol number to carry out uplinking on the service Data to be uplinked to obtain target service Data, wherein at the moment, different service Data of the same Data type do not need to establish Contract uplinking, and only the Contract is called to complete storage and certification uplinking.
Further, the data uplink module 20 includes a data storage module, a data update module, and a time determination module.
In this embodiment, the data storage module records the target service data in real time to obtain block height information, and sends the block height information to the time determination module, before the target service data is obtained, uplink time information of the service data to be uplink, uplink block information, and the like need to be recorded, where the block height information refers to information about the number of blocks linked to the main chain, that is, information about the number of blocks connected to the block chain.
In this embodiment, the data updating module obtains updated service data, updates target service data according to the updated service data, extracts index information where a hash value of the updated target service data is located, determines current service data according to the index information, and sends the current service data to the time determining module, where the updated service data refers to service data for updating a target type array, and after the updated service data is obtained, the target service data in the target type array is updated according to the updated service data, and the index information refers to index information corresponding to the hash value of the updated service data, that is, directory information, and determines the current service data according to the index information, and the current service data refers to service data that a user needs to obtain.
In this embodiment, the time determination module obtains a corresponding change time according to the block height information and the current service data, and updates the storage time of the current service data according to the change time, wherein after the block height information and the current service data are obtained, the change time of the current service data is obtained according to the block height information and the current service data, the change time is the time for obtaining the current service data, and the storage time of the current service data is updated according to the change time, which is the uplink time or the last change time.
In this embodiment, referring to fig. 4, fig. 4 is a schematic diagram of a business data certificate change of an embodiment of a universal data uplink certificate storage system according to the present invention, where a specific change process is as follows: when a data change request is received, determining to update service data, for example, the mathematical discipline score 89, finding index information where the data to be updated is located in the byte array by using the hash value of the previous data, adding the update service data in the byte array according to the address in the index information, and after the update is completed, obtaining the updated service data, wherein the index information in the data contract at this time is T1 and T2, and meanwhile, the time information of the updated service data needs to be updated.
In this embodiment, a protocol generation module determines a corresponding protocol object according to-be-uplink service data, obtains a corresponding protocol and a corresponding data contract according to the protocol object, and sends the protocol, the data contract and the to-be-uplink service data to a data uplink module; the data uplink module uplinks the service data to be uplinked according to the protocol and the data contract to obtain target service data so as to realize the storage of the service data to be uplinked; the method comprises the steps of defining the service data type to be uplink by utilizing a protocol, generating a corresponding data contract according to the service data type, and storing uplink by directly calling a number contract for the same service data type.
Referring to fig. 5, fig. 5 is a block diagram illustrating a second embodiment of the universal data link storage system according to the present invention, and the second embodiment of the universal data link storage system according to the present invention is proposed based on the embodiment shown in fig. 1.
In this embodiment, the universal data uplink storage system 100 further includes a data format determining module 30 and a file storage module 40, and when the format information is not the target format information, the data format determining module 30 sends the to-be-uplink service data to the file storage module, wherein in this embodiment, the format information of the to-be-uplink service data is divided into the target format information and the non-target format information, and when the format information of the to-be-uplink service data is not the target format information, that is, the non-target format information, the to-be-uplink service data is used as the file data for uplink.
In this embodiment, the File storage module 40 stores the to-be-uplink service data through a preset File storage policy, where the preset File storage policy refers to a policy for performing uplink storage for the File data, the preset File storage policy may be an Inter-satellite File System (IPFS) storage policy or other storage policies, and this embodiment does not limit this, and is described by taking an IPFS as an example, and after it is determined that the to-be-uplink service data is not target format information, the to-be-uplink service data is stored through the preset File storage policy.
In this embodiment, referring to fig. 6, fig. 6 is a schematic diagram of a universal data uplink certificate storage for a file according to an embodiment of the universal data uplink certificate storage system of the present invention, where a specific uplink process includes: the method comprises the steps that file data are uploaded to an IPFS through an IPFS interface to obtain corresponding file address information, when a protocol is defined, the type of the file data is defined as an IPFS address, the file data are subjected to uplink storage through the IPFS address, if a user needs to inquire the corresponding file data, after the corresponding data on a chain are obtained, the IPFS address is obtained according to a field of the file type, and then the file is obtained through the IPFS interface.
In this embodiment, when the format information is not the target format information, the data format determining module sends the to-be-uplink service data to the file storage module; the file storage module stores the business data to be linked through a preset file storage strategy; when the format information of the business data to be uplink is not the target format information, the business data to be uplink is stored through a preset file storage strategy, so that the accuracy of storing the business data to be uplink can be effectively improved.
Referring to fig. 7, fig. 7 is a block diagram illustrating a third embodiment of the universal data uplink storage system according to the present invention, and the third embodiment of the universal data uplink storage system according to the present invention is proposed based on the embodiment illustrated in fig. 1.
In this embodiment, the universal data uplink storage and verification system 100 further includes a block chain data analysis module 50 and a data display module 60, where the block chain data analysis module 50 obtains target protocol information, performs deserialization on stored target service data according to the target protocol information to obtain a service data instance, and sends the service data instance to the data display module, where the target protocol information refers to protocol information for analyzing service data on a block chain, deserializes the target service data stored on the chain through the target protocol information to obtain a corresponding service data instance, and deserialization refers to analyzing and reconstructing the target service data, that is, analyzing the target service data, and reconstructing the analyzed target service data after the analysis is completed to obtain the service data instance.
In this embodiment, the data display module 60 displays the service data instance, wherein after the service data instance is obtained, the service data needs to be displayed in real time, that is, after the service data instance is obtained, the target service data is updated, and the service data instance at this time needs to display the latest service data.
In this embodiment, the stored target service data is sent to the block chain data analysis module through the data uplink module; the block chain data analysis module acquires target protocol information, performs deserialization processing on the stored target service data according to the target protocol information to obtain a service data instance, and sends the service data instance to the data display module; the data display module displays the business data example; and performing deserialization on the stored target service data through the target protocol information to obtain a service data instance, and displaying the service data instance, so that the service data instance is more open and transparent.
Referring to fig. 8, the universal data uplink certificate storing system of the present invention provides a universal data uplink certificate storing method, and fig. 7 is a flowchart illustrating a first embodiment of the universal data uplink certificate storing method of the present invention, where the universal data uplink certificate storing system includes: a protocol generation module and a data uplink module;
the universal data uplink certificate storing method comprises the following steps:
step S10, the protocol generation module obtains service data to be uplink, determines a corresponding protocol object according to the service data to be uplink, obtains a corresponding protocol and a corresponding data contract according to the protocol object, and sends the protocol, the data contract and the service data to be uplink to the data uplink module.
It can be understood that the service data to be uplinked refers to service data that needs to be uplinked by a user, and the service data is divided into two types according to the size of the service data, one type is service data smaller than or equal to a data threshold, and the other type is file data larger than the data threshold.
Further, the protocol generation module comprises a format extraction module and a protocol definition module.
It should be understood that, the format extracting module obtains the service data to be uplink, extracts the format information of the service data to be uplink, and sends the service data to be uplink to the protocol defining module when the format information is the target format information, where the target format information refers to the format information in which the size of the service data to be uplink is smaller than or equal to the data threshold, after the service data to be uplink is obtained, it is necessary to determine whether the format information of the service data to be uplink is the target format information, and when the format information is the target format information, the service data to be uplink is sent to the protocol defining module.
It can be understood that, the protocol definition module defines a corresponding protocol object according to the to-be-uplink service data, wherein when the format information of the to-be-uplink service data is obtained as the target format information, the protocol information of the to-be-uplink service data is defined to obtain the corresponding protocol object, at this time, the type of the to-be-uplink service data needs to be determined, and the protocol types of different types of to-be-uplink service data are also different when defining the protocol, referring to fig. 2, fig. 2 is a protocol definition schematic diagram of an embodiment of the universal data uplink storage system of the present invention, specifically: the protocol Object is a combination of multiple types, such as Object1 and Object2, and further includes a protocol cluster (Suite) and a protocol Number (Number), the Object is composed of multiple attributes, such as Property1, property2, property3 and Property4, and the Property is composed of a type (type), a name (name), a description (description) and a subtype (subtype), wherein the protocol cluster is equivalent to the type of the protocol, and is divided according to industry or type, for example, 0 is divided into a system protocol, the protocol Number is the Number of the protocol, the numerical value of the protocol cluster and the protocol Number is 64 bits, that is, the uniquely identified protocol, for example, 0 or 1 is the protocol itself.
Further, the protocol generation module comprises an object serialization module and a protocol generation module.
It should be understood that, the object serialization module serializes the protocol object, chains the serialized protocol object to obtain a target protocol number, and sends the target protocol number to the protocol generation module, wherein after the protocol object is obtained, the target protocol number is obtained by chaining the serialized protocol object, and the target protocol number refers to a protocol serial number after the serialized protocol object is chain-linked, wherein the protocol number corresponds to a block number in a block chain one to one, and the serialization refers to a process of converting state information of the protocol object into a form capable of being stored or transmitted.
Further, the object serialization module comprises an array determination module and an attribute fusion module.
It can be understood that the array determining module writes the protocol object into the target type array, and sends the target type array in which the protocol object is written to the attribute fusion module, where the target type array refers to an array in which the protocol object is stored, and the target type array may be a byte array or other arrays.
It should be understood that, the attribute fusion module extracts attribute information of the protocol object, fuses the attribute information with the target type array written in the protocol object, where the attribute information refers to attribute information corresponding to the business data to be uplink, such as name, class, score, and the like, and fusing the byte array containing the protocol object with the attribute information is to perform serialization processing on the protocol object.
It can be understood that, the protocol generation module determines a corresponding data type according to the target protocol number, obtains a corresponding data contract according to the data type, acquires target scenario information, and generates a corresponding protocol according to the target scenario information and the target protocol number, wherein after the target protocol number is obtained, because the data types of different protocol number objects are different, the data type to which the protocol number belongs is determined according to the target protocol number, the target scenario information refers to actual scenario information when the protocol object is uplink, and generates a corresponding data contract according to the target scenario information and the target protocol number, so as to query the uplink service data.
Further, the protocol generation module comprises a protocol adding module and a protocol query module.
It should be understood that the protocol adding module obtains protocol request information, generates a current protocol according to the protocol request information, updates a target protocol content array according to the current protocol, and sends the updated target protocol content array to the protocol query module, wherein the preset protocol request information refers to protocol adding request information, the current protocol is generated according to the preset request protocol, the current protocol refers to a protocol which needs to be added newly, the target protocol content array refers to an array for maintaining protocol content, after the current protocol is obtained, the current protocol is added to the target protocol content array to complete updating of the target protocol content array, and the updated target protocol content array is sent to the protocol query module.
It can be understood that the protocol query module acquires user requirement information, queries the target protocol content array according to the user requirement information, wherein the user requirement information refers to protocol information that a user wants to query, and queries the target protocol content array according to the user requirement information after receiving the user requirement information to obtain protocol information corresponding to the user requirement information.
Step S20, the data uplink module uplinks the service data to be uplinked according to the protocol and the data contract to obtain target service data, so as to implement storage of the service data to be uplinked.
It should be understood that, after the protocol and the data contract are obtained, the service data to be uplink is uplink-linked through the interface information and the data contract of the protocol, after the uplink is finished, the service data to be uplink at this time is the target service data, and the target service data can be queried on the public link of the block chain, that is, the evidence of the service data to be uplink is stored.
Furthermore, the data uplink module comprises a protocol number determining module and a data contract calling module.
It can be understood that the protocol number determining module selects a corresponding protocol number according to the interface information of the protocol and the service data to be uplinked, obtains a data contract address of a corresponding point according to the protocol number, and sends the data contract address to the data contract invoking module, wherein after the protocol and the service data to be uplinked are obtained, the protocol number corresponding to the service data to be uplinked is selected through the interface information in the protocol, different protocol numbers correspond to different data contract addresses, after the protocol number is obtained, the corresponding data contract address is determined according to the protocol number, and the determined data contract address is sent to the data contract invoking module.
It should be understood that, the data contract invoking module uplinks the service data to be uplinked according to the data contract address to obtain the target service data, where a class method in the data contract is invoked according to the data contract address to uplink the service data to be uplinked, and after the uplink is successful, the target service data is obtained.
It should be understood that, referring to fig. 3, fig. 3 is a schematic view of a business-oriented data uplink certificate storage according to an embodiment of the present invention, and a specific uplink certificate storage process includes: the Protocol object Protocol includes transcript attribute information and subject attribute information, where the transcript attribute information is composed of a name (stu _ name) and a class (stu _ class), the subject attribute information is composed of a subject name (sub _ name) and a score (score), after the Protocol object is determined, the Protocol object is written into a byte array through a Protocol object Server (Protocol Server), and the byte array containing the Protocol object is transmitted to a corresponding Protocol map Contract data, and the to-be-uplink service data is to-be-uplink service data corresponding to the transcript attribute information and the subject attribute information, such as a name: xiaoming; class: two shifts; subject name: chinese, math, and English; achievement: 99. 98 and 96, after obtaining the service Data to be uplinked, writing the service Data to be uplinked into a byte array through a block chain Server (Blockchain Server), transmitting the byte array containing the service Data to be uplinked to a corresponding Data Contract, and uplinking the service Data to be uplinked through a method in a protocol number calling Data Contract to obtain target service Data, wherein at the moment, different service Data of the same Data type do not need to create uplinks, and only the Contract is called to complete storage and authentication uplinking.
Further, the data uplink module comprises a data evidence storage module, a data updating module and a time determining module.
It can be understood that, the data storage module records the target service data in real time to obtain block height information, and sends the block height information to the time determination module, before obtaining the target service data, uplink time information of the service data to be uplink, uplink block information, and the like need to be recorded, where the block height information refers to information of the number of blocks linked to the main chain, that is, information of the number of blocks connected to the block chain.
It should be understood that the data updating module obtains updated service data, updates target service data according to the updated service data, extracts index information where a hash value of the updated target service data is located, determines current service data according to the index information, and sends the current service data to the time determining module, where the updated service data refers to service data for updating a target type array, and updates the target service data in the target type array through the updated service data after the updated service data is obtained, and the index information refers to index information corresponding to the hash value of the updated service data, that is, directory information, and determines the current service data according to the index information, and the current service data refers to service data that a user needs to obtain.
It can be understood that, the time determining module obtains a corresponding change time according to the block height information and the current service data, and updates the storage time of the current service data according to the change time, wherein after the block height information and the current service data are obtained, the change time of the current service data is obtained according to the block height information and the current service data, the change time is the time for obtaining the current service data, and the storage time of the current service data is updated according to the change time, which is the uplink time or the last change time.
It should be understood that, referring to fig. 4, fig. 4 is a schematic diagram of a change of a business data certificate of a universal data uplink certificate storing system according to an embodiment of the present invention, where a specific change process is as follows: when a data change request is received, determining to update business data, for example, a mathematical discipline score 89, finding index information where the data to be updated is located in a byte array by using a previous data hash value, adding the updated business data in the byte array according to an address in the index information, and obtaining the updated business data after the update is completed, wherein the index information in a data contract at the moment is T1 and T2, and meanwhile, time information of the updated business data needs to be updated.
In this embodiment, a protocol generation module determines a corresponding protocol object according to-be-uplink service data, obtains a corresponding protocol and a corresponding data contract according to the protocol object, and sends the protocol, the data contract and the to-be-uplink service data to a data uplink module; the data uplink module uplinks the service data to be uplinked according to the protocol and the data contract to obtain target service data so as to realize the storage of the service data to be uplinked; the service data types to be uplink-linked are well defined by utilizing the protocol, the corresponding data contracts are generated according to the service data types, and for the same service data type, the data contracts are directly called to store uplink.
Other embodiments or implementations of the universal data link credit system apparatus of the present invention can refer to the above method embodiments, and are not intended to be redundant.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. a Read Only Memory (ROM)/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A universal data link credit system, the universal data link credit system comprising: a protocol generation module and a data uplink module;
the protocol generation module is used for acquiring service data to be uplink-linked, determining a corresponding protocol object according to the service data to be uplink-linked, obtaining a corresponding protocol and a corresponding data contract according to the protocol object, and sending the protocol, the data contract and the service data to be uplink-linked to the data uplink-linking module;
the data uplink module is used for performing uplink on the service data to be uplink according to the protocol and the data contract to obtain target service data so as to realize the evidence storage of the service data to be uplink;
the protocol generation module comprises an object serialization module and a protocol generation module; the object serialization module is used for carrying out serialization processing on the protocol object, carrying out uplink on the serialized protocol object to obtain a target protocol number, and sending the target protocol number to the protocol generation module; the protocol generation module is used for determining a corresponding data type according to the target protocol number, obtaining a corresponding data contract according to the data type, acquiring target scene information, and generating a corresponding protocol according to the target scene information and the target protocol number;
the object serialization module comprises an array determination module and an attribute fusion module; the array determining module is used for writing the protocol object into a target type array and sending the target type array written into the protocol object to the attribute fusion module; the attribute fusion module is used for extracting the attribute information of the protocol object and fusing the attribute information and a target type array written into the protocol object so as to realize serialization of the protocol object; the protocol object is an assembly of multiple types.
2. The universal data uplink credit system of claim 1, wherein the protocol generation module comprises a protocol addition module and a protocol inquiry module;
the protocol adding module is used for acquiring protocol request information, generating a current protocol according to the protocol request information, performing additional updating on a target protocol content array according to the current protocol, and sending the additionally updated target protocol content array to the protocol query module;
and the protocol query module is used for acquiring user demand information and querying the target protocol content array according to the user demand information.
3. The universal data uplink credit system of claim 1, wherein the protocol generation module comprises a format extraction module and a protocol definition module;
the format extracting module is used for acquiring service data to be uplink, extracting format information of the service data to be uplink, and sending the service data to be uplink to the protocol defining module when the format information is target format information;
and the protocol definition module is used for defining a corresponding protocol object according to the business data to be uplink-linked.
4. The universal data uplink storage system according to claim 1, wherein the universal data uplink storage system further comprises a data format determination module and a file storage module;
the data format determining module is used for sending the business data to be linked to the file storage module when the format information is not the target format information;
the file storage module is used for storing the business data to be uplink through a preset file storage strategy.
5. The universal data uplink credit system of claim 1, wherein the data uplink module comprises a protocol number determination module and a data contract invocation module;
the protocol number determining module is used for selecting a corresponding protocol number according to interface information of a protocol and service data to be uplinked, obtaining a corresponding data contract address according to the protocol number, and sending the data contract address to the data contract calling module;
and the data contract calling module is used for obtaining a corresponding data contract according to the data contract address and chaining the service data to be chained according to the data contract to obtain target service data.
6. The universal data uplink credit system according to claim 1, wherein the data uplink module includes a data credit module, a data update module, and a time determination module;
the data evidence storage module is used for recording the target service data in real time to obtain block height information and sending the block height information to the time determination module;
the data updating module is used for acquiring updated service data, updating target service data according to the updated service data, extracting index information of a hash value of the updated target service data, determining current service data according to the index information, and sending the current service data to the time determining module;
and the time determining module is used for obtaining corresponding change time according to the block height information and the current service data, and updating the storage time of the current service data according to the change time.
7. The universal data link credit system according to any of claims 1 to 6, further comprising a block chain data parsing module and a data presentation module;
the data uplink module is also used for sending the stored target service data to the block chain data analysis module;
the block chain data analysis module is used for acquiring target protocol information, performing deserialization processing on the stored target service data according to the target protocol information to obtain a service data instance, and sending the service data instance to the data display module;
and the data display module is used for displaying the business data instance.
8. A universal data uplink credentialing method, wherein the universal data uplink credentialing method is applied to the universal data uplink credentialing system according to any one of claims 1 to 6, and the system comprises: the universal data uplink certificate storing method comprises the following steps:
the protocol generation module acquires service data to be uplink, determines a corresponding protocol object according to the service data to be uplink, obtains a corresponding protocol and a corresponding data contract according to the protocol object, and sends the protocol, the data contract and the service data to be uplink to the data uplink module;
and the data uplink module uplinks the service data to be uplinked according to the protocol and the data contract to obtain target service data so as to realize the evidence storage of the service data to be uplinked.
CN202110881814.0A 2021-08-02 2021-08-02 Universal data uplink credit system and method Active CN113645211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110881814.0A CN113645211B (en) 2021-08-02 2021-08-02 Universal data uplink credit system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110881814.0A CN113645211B (en) 2021-08-02 2021-08-02 Universal data uplink credit system and method

Publications (2)

Publication Number Publication Date
CN113645211A CN113645211A (en) 2021-11-12
CN113645211B true CN113645211B (en) 2023-02-28

Family

ID=78419341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110881814.0A Active CN113645211B (en) 2021-08-02 2021-08-02 Universal data uplink credit system and method

Country Status (1)

Country Link
CN (1) CN113645211B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801152A (en) * 2019-01-24 2019-05-24 中国农业银行股份有限公司 Supplementary pension method for processing business and system based on block chain
CN111369730A (en) * 2020-02-20 2020-07-03 腾讯科技(深圳)有限公司 Voting processing method and device based on block chain
CN111666337A (en) * 2020-05-19 2020-09-15 武汉理工大学 Patent technology conversion operation platform and transaction method based on block chain technology
CN111930852A (en) * 2020-09-29 2020-11-13 北京百度网讯科技有限公司 Data processing method, device and equipment based on block chain and storage medium
CN111933292A (en) * 2020-09-27 2020-11-13 浙江杜比医疗科技有限公司 Block chain-based hospital body and medical data interaction method and storage medium
CN112231284A (en) * 2020-09-28 2021-01-15 广西犇云科技股份有限公司 Block chain-based big data sharing system, method, device and storage medium
CN112910985A (en) * 2021-01-27 2021-06-04 南京中兴力维软件有限公司 Protocol conversion method, device, equipment and storage medium based on intelligent contract
CN113098876A (en) * 2021-04-02 2021-07-09 中南大学 Product data chaining method and medium based on block chain and intelligent contract

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI667625B (en) * 2018-08-16 2019-08-01 卓昭明 Method and system for financial investment program transaction based on blockchain smart contract

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801152A (en) * 2019-01-24 2019-05-24 中国农业银行股份有限公司 Supplementary pension method for processing business and system based on block chain
CN111369730A (en) * 2020-02-20 2020-07-03 腾讯科技(深圳)有限公司 Voting processing method and device based on block chain
CN111666337A (en) * 2020-05-19 2020-09-15 武汉理工大学 Patent technology conversion operation platform and transaction method based on block chain technology
CN111933292A (en) * 2020-09-27 2020-11-13 浙江杜比医疗科技有限公司 Block chain-based hospital body and medical data interaction method and storage medium
CN112231284A (en) * 2020-09-28 2021-01-15 广西犇云科技股份有限公司 Block chain-based big data sharing system, method, device and storage medium
CN111930852A (en) * 2020-09-29 2020-11-13 北京百度网讯科技有限公司 Data processing method, device and equipment based on block chain and storage medium
CN112910985A (en) * 2021-01-27 2021-06-04 南京中兴力维软件有限公司 Protocol conversion method, device, equipment and storage medium based on intelligent contract
CN113098876A (en) * 2021-04-02 2021-07-09 中南大学 Product data chaining method and medium based on block chain and intelligent contract

Also Published As

Publication number Publication date
CN113645211A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
US8078880B2 (en) Portable personal identity information
CN101267299B (en) A method and system for securely display data on the webpage
US8099386B2 (en) Method and apparatus for synchronizing databases connected by wireless interface
CN108846753B (en) Method and apparatus for processing data
US20170371625A1 (en) Content delivery method
US9396277B2 (en) Access to supplemental data based on identifier derived from corresponding primary application data
CN101669113A (en) Method of deriving web service interfaces from form and table metadata
CN113094334B (en) Digital service method, device, equipment and storage medium based on distributed storage
CN111427613B (en) Application program interface API management method and device
EP2778968A1 (en) Mobile telecommunication device remote access to cloud-based or virtualized database systems
CN105825115A (en) Digital Data Content Authentication System, Data Authentication Device, User Terminal, Computer Program and Method
CN108829753A (en) A kind of information processing method and device
CN109951318A (en) The function configuration method and device of application
Fidler et al. Metadata, infrastructure, and computer‐mediated communication in historical perspective
CN113515395B (en) Application access method and device based on multi-cloud management platform
CN108809896A (en) A kind of information calibration method, device and electronic equipment
CN114491462A (en) Method, system, equipment and storage medium for signing multiple electronic documents once
CN111737764B (en) Method and device for generating description information
CN113645211B (en) Universal data uplink credit system and method
US20100191766A1 (en) Method and apparatus for information retrieval via electronic mail
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN103379022B (en) A kind of instant communication method based on Internet map search and system
CN110297945B (en) Data information processing method and system based on XBRL
CN115292415A (en) Database access method and device

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