CN111683082A - Data sharing method and system based on block chain and electronic equipment - Google Patents

Data sharing method and system based on block chain and electronic equipment Download PDF

Info

Publication number
CN111683082A
CN111683082A CN202010501904.8A CN202010501904A CN111683082A CN 111683082 A CN111683082 A CN 111683082A CN 202010501904 A CN202010501904 A CN 202010501904A CN 111683082 A CN111683082 A CN 111683082A
Authority
CN
China
Prior art keywords
data
digital fingerprint
sharing
data sharing
participant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010501904.8A
Other languages
Chinese (zh)
Inventor
王晓亮
李耀荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Hangzhou Rivtower 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 Hangzhou Rivtower Technology Co Ltd filed Critical Hangzhou Rivtower Technology Co Ltd
Priority to CN202010501904.8A priority Critical patent/CN111683082A/en
Publication of CN111683082A publication Critical patent/CN111683082A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The embodiment of the specification relates to a data sharing method, a system and electronic equipment based on a block chain, and the method mainly comprises the following steps: the data sender processes a data original text to be shared, and performs on-chain storage after the obtained first digital fingerprint signature; the data sender transmits the encrypted data original text to the data receiver point to point; the data receiver decrypts the received encrypted data and processes the decrypted data to obtain a second digital fingerprint; and comparing the second digital fingerprint with the first digital fingerprint, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint. Through the embodiment of the invention, the data sharing records between the main bodies are linked up and stored, and the data sharing process is permanently stored, cannot be tampered, is traceable and can be examined; therefore, the data sharing efficiency among enterprises is improved, and the business disputes are reduced.

Description

Data sharing method and system based on block chain and electronic equipment
Technical Field
The embodiment of the specification relates to the technical field of networks, in particular to a data sharing method and system based on a block chain and an electronic device.
Background
In a traditional IT system, data sharing is limited to a complete trust subject inside an enterprise, and the data sharing can use a direct transmission sharing method. However, with the development of business and IT technologies, inter-enterprise collaboration becomes more and more important, and inter-enterprise IT system data sharing technologies become more frequent. Most of the current IT system data sharing between enterprises adopts a data owner to provide an API interface, and a data user actively obtains data through the API interface; or the data user provides an API interface, and the data provider actively uploads data through the API interface.
The following problems may exist in the data sharing process: the sharing process is not recorded; or only the API provider carries out data sharing record; even if both parties perform data sharing recording, there may be a deviation in the recorded contents. Therefore, when data inconsistency occurs in data sharing across trust principals and affects benefit distribution, it becomes difficult to judge the responsible principal, thereby causing business disputes.
Disclosure of Invention
Embodiments of the present specification provide a data sharing method and system based on a block chain, and an electronic device, so as to solve a dispute problem in the prior art caused by unreliable records and difficult verifications when data is shared across subjects.
In order to solve the above technical problem, the embodiments of the present specification adopt the following technical solutions:
in a first aspect, a method for sharing data based on a block chain is provided, where the method includes:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
a data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
comparing the second digital fingerprint with a first digital fingerprint acquired from a chain, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint; if the two are different, the data sharing is abandoned.
In a second aspect, a method for sharing data based on a block chain is provided, the method including:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
and the data sender encrypts the original data text to be shared by using the public key of the data receiver and transmits the encrypted original data text to the data receiver point to point.
In a third aspect, a method for sharing data based on a block chain is provided, where the method includes:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data receiver decrypts the received encrypted data and processes the original text to obtain a second digital fingerprint;
comparing the second digital fingerprint with a first digital fingerprint acquired from a chain, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint; if the two are different, the data sharing is abandoned;
the first digital fingerprint is obtained by processing a data original text to be shared by a data sender, and is stored on a link after being signed.
In a fourth aspect, a data sharing system based on a block chain is provided, the system comprising:
a data-sharing-account registration unit: the method comprises the following steps that a participant for data sharing performs data sharing account registration so as to associate identification information of the participant with a public key of the participant;
a public key obtaining unit: the public key is used for the data sender to obtain the public key of the data receiver;
a certificate storage unit: the data sender is used for processing a data original text to be shared to obtain a first digital fingerprint, and performing on-chain storage after signing the first digital fingerprint;
an encryption transmission unit: the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
a decryption unit: the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
a storage verification unit: comparing the second digital fingerprint with a first digital fingerprint acquired from a chain, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint; if the two are different, the data sharing is abandoned.
In a fifth aspect, an electronic device is provided, comprising: a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
and the data sender encrypts the original data text to be shared by using the public key of the data receiver and transmits the encrypted original data text to the data receiver point to point.
In a sixth aspect, an electronic device is provided, comprising: a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data receiver decrypts the received encrypted data and processes the original text to obtain a second digital fingerprint;
comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, if the second digital fingerprint is the same as the first digital fingerprint, the data receiver carries out signature confirmation on the received data, and if the second digital fingerprint is different from the first digital fingerprint, the data sharing is abandoned;
the first digital fingerprint is obtained by processing a data original text to be shared by a data sender, and is stored on a link after being signed.
In a seventh aspect, the present invention also provides a computer-readable storage medium storing one or more programs which, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
a data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
and comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, if the second digital fingerprint is the same as the first digital fingerprint, performing signature confirmation on the received data by the data receiver, and if the second digital fingerprint is different from the first digital fingerprint, giving up the data sharing.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects: through the data sharing method based on the block chain, the data sharing record uplink among the cross main bodies is stored, and the participants of the data sharing do not need to uplink the shared data in the original text, but only need to sign and confirm the digital fingerprints of the data sent and received by the participants, so that the data sharing process is permanently stored, non-falsifiable, traceable and auditable; therefore, the data sharing efficiency among enterprises is improved, and the business disputes are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative efforts.
Fig. 1 is a schematic diagram illustrating one step of a block chain-based data sharing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating encryption and decryption of shared data in an embodiment of the present disclosure;
fig. 3 is a second schematic diagram illustrating steps of a block chain-based data sharing method according to an embodiment of the present disclosure;
fig. 4 is a third schematic diagram illustrating steps of a block chain-based data sharing method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a data sharing system based on a block chain according to an embodiment of the present specification;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of this specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the embodiments in the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Example one
Referring to fig. 1, a schematic diagram of steps of a data sharing method based on a block chain provided in an embodiment of the present specification is shown, where the data sharing method may include the following steps:
step 101: the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
step 102: a data sender obtains a public key of a data receiver;
step 103: the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
step 104: the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
step 105: the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
step 106: comparing the second digital fingerprint with a first digital fingerprint acquired from a chain, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint; if the two are different, the data sharing is abandoned.
It should be noted that: the participants of the data sharing may agree in advance to calculate the data text in a uniform manner to obtain the digital fingerprint, for example, the sha256 algorithm may be adopted. And the signatures of the digital fingerprints of the data sender and the data receiver can adopt a secp256k1 algorithm or a sm2 algorithm.
Wherein, step 101 may further comprise the steps of:
the data sharing account registration is realized by adopting an intelligent contract mode: before the system is started, an account is deployed to register an intelligent contract on a block chain, and a map (address- > pubkey) is adopted to manage a public key of a data sharing participant.
The data sharing party sends an account registration transaction to the account registration intelligent contract;
the account registration transaction comprises a signature (sign) and a public key (pubkey) of a participant of the data sharing;
the account registration intelligent contract obtains an address (address) of the account registration intelligent contract through a signature (sign) of a data sharing participant, and writes the address (address) into a map to complete data sharing account registration;
the data sharing account registration is realized by adopting a centralized server mode: before the system is started, an account registration centralization server is deployed, and a map (userID- > pubkey) is adopted to manage the public keys of the data sharing participants. The data sharing participant calls an account registration interface of the data sharing participant and uploads a public key and identity identification information; for example, the upload registration parameters are user public key pubkey and user real name information, the account registration centralization server generates corresponding userID for the user, and writes pubkey into corresponding map to complete data sharing account registration.
Correspondingly, in step 102, the data sender obtains the public key of the data receiver through the account registration centralized server or the account registration intelligent contract.
Further, the method may further include: setting a storage certificate management interface; for example, the credit management interface is implemented by using Restful interface protocol;
storing the signed first digital fingerprint on a link through a certificate storage interface in the certificate storage management interface, and distributing corresponding certificate storage interface parameters (such as certificate storage ID 001); the evidence storing interface parameter can be sent to the data receiver along with encrypted data;
and the data receiver acquires a corresponding first digital fingerprint from a chain through the certificate storage parameter (certificate storage ID001) through an inquiry interface in the certificate storage interface, and compares the first digital fingerprint with the second digital fingerprint.
Further, the method may further include: deploying a data sharing rule intelligent contract, and performing on-chain storage on sharing rules which are negotiated by participants of data sharing through the data sharing rule intelligent contract;
the data receiver sends a data request transaction including the sharing rule to the data sharing rule intelligent contract;
the data sharing rule intelligent contract informs a corresponding data sending party and provides a public key of the data requesting party.
The setting of the sharing rule is a precondition flow which needs to be carried out before data sharing is carried out, and the precondition flow is used for appointing a data rule provided by a data sender, and a data receiver requests and analyzes data according to the sharing rule. For example, the two parties negotiate online before the data sharing begins, and the agreed data sharing rule is
Rule 1 take the annual income of the seller by (name/year of the seller).
Rule 2 take dealer sales ranking by (dealer name/year).
The data receiver sends a data request transaction including the rule and attaches a digital signature of the data request transaction to the data sharing rule intelligent contract to request data;
the data sharing rule intelligent contract informs a corresponding data sending party of a data request related to a rule 1 and provides a public key of the data requesting party; the data sender prepares a data original to be shared according to rule 1.
Referring to fig. 2, a schematic diagram of encryption and decryption of shared data in an embodiment of the present specification; which comprises the following steps:
(1) and the symmetric encryption module generates a temporary key, symmetrically encrypts the original text of the data to be shared and obtains a data ciphertext.
(2) And the asymmetric encryption module uses the public key of the receiver to perform asymmetric encryption on the temporary secret key to obtain a temporary secret key ciphertext.
(3) And the point-to-point transmission module transmits the data ciphertext and the temporary key ciphertext to a data receiver.
(4) And after the data receiving party receives the data, the data receiving party uses the private key of the data receiving party to asymmetrically decrypt the temporary key ciphertext to obtain the temporary key.
(5) And the symmetric decryption module symmetrically decrypts the data ciphertext to obtain a data original text.
Another alternative embodiment mode may refer to fig. 3, which is a schematic diagram illustrating steps of a data sharing method based on a block chain provided in this specification, where an execution main body of the method may be a sender of data, and the method may include the following steps:
step 301: the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
step 302: the data sender obtains a public key of a data receiver;
step 303: the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
step 304: and the data sender encrypts the original data text to be shared by using the public key of the data receiver and transmits the encrypted original data text to the data receiver point to point.
In another alternative embodiment, referring to fig. 4, a schematic diagram of steps of a block chain-based data sharing method provided in this embodiment is shown, where an execution subject of the method may be a data receiver, and the method may include the following steps:
step 401: the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
step 402: the data receiver decrypts the received encrypted data and processes the original text to obtain a second digital fingerprint;
step 403: comparing the second digital fingerprint with a first digital fingerprint acquired from a chain, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint; if the two are different, the data sharing is abandoned;
the first digital fingerprint is obtained by processing a data original text to be shared by a data sender, and is stored on a link after being signed.
According to the data sharing method based on the block chain, the data sharing records among the main bodies are linked up and stored, and the participants of the data sharing do not need to link up the original shared data, but only need to sign and confirm the digital fingerprints of the data sent and received by the participants, so that the data sharing process is permanently stored, can not be tampered, can be traced to the source and can be examined; therefore, the data sharing efficiency among enterprises is improved, and the business disputes are reduced.
Example two
Referring to fig. 5, a schematic structural diagram of a data sharing system based on a block chain provided in an embodiment of the present specification is shown, where the system mainly includes:
data-sharing account registration unit 501: the method comprises the following steps that a participant for data sharing performs data sharing account registration so as to associate identification information of the participant with a public key of the participant;
public key obtaining unit 502: the public key is used for the data sender to obtain the public key of the data receiver;
a verification unit 503: the data sender is used for processing a data original text to be shared to obtain a first digital fingerprint, and performing on-chain storage after signing the first digital fingerprint;
the encryption transmission unit 504: the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
the decryption unit 505: the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
the storage verification unit 506: the data receiver is used for comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, and if the second digital fingerprint is the same as the first digital fingerprint, the data receiver signs the second digital fingerprint and then stores the second digital fingerprint in the chain; if the two are different, the data sharing is abandoned.
The data sharing account registering unit 501 further includes: an account registration smart contract or an account registration centralized server.
When the registration process is realized through the account registration intelligent contract, the data sharing participant sends an account registration transaction to the account registration intelligent contract; the account registration transaction includes a signature and a public key of a party to the data sharing; and the account registration intelligent contract completes data sharing account registration.
When the registration process is realized through an account registration centralized server, the data sharing participant calls an account registration interface of the data sharing participant and uploads a public key and identity identification information; and the account registration centralization server completes the registration of the data sharing account.
Further, the system may further include: a certificate storage management interface; performing on-chain storage on the signed first digital fingerprint through the certificate storage management interface, and distributing corresponding certificate storage interface parameters;
and the data receiver acquires a corresponding first digital fingerprint from a chain through the evidence storage interface parameter and compares the first digital fingerprint with the second digital fingerprint.
The credit management interface can be realized by adopting Restful interface protocol.
Further, the system may further include: the intelligent contract of the data sharing rule stores the sharing rule which is agreed by the participants of the data sharing on the chain by the intelligent contract of the data sharing rule;
the data receiver sends a data request transaction including the sharing rule to the data sharing rule intelligent contract;
the data sharing rule intelligent contract informs a corresponding data sending party and provides a public key of the data requesting party.
The setting of the sharing rule is a precondition flow which needs to be carried out before data sharing is carried out, and the precondition flow is used for appointing a data rule provided by a data sender, and a data receiver requests and analyzes data according to the sharing rule. For example, the two parties negotiate online before the data sharing begins, and the agreed data sharing rule is
Rule 1 take the annual income of the seller by (name/year of the seller).
Rule 2 take dealer sales ranking by (dealer name/year).
The data receiver sends a data request transaction including the rule and attaches a digital signature of the data request transaction to the data sharing rule intelligent contract to request data;
the data sharing rule intelligent contract informs a corresponding data sending party of a data request related to a rule 1 and provides a public key of the data requesting party; the data sender prepares a data original to be shared according to rule 1.
According to the data sharing system based on the block chain, the data sharing records among the main bodies are linked up and stored, and the participants of the data sharing do not need to link up the original shared data, but only need to sign and confirm the digital fingerprints of the data sent and received by the participants, so that the data sharing process is permanently stored, can not be tampered, can be traced to the source and can be examined; therefore, the data sharing efficiency among enterprises is improved, and the business disputes are reduced.
It should be understood that the data sharing system based on the block chain in the second embodiment may execute all technical solutions related to the data sharing method based on the block chain in the form of a functional module, and implement corresponding technical effects, which are not described herein again.
EXAMPLE III
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present specification. Referring to fig. 6, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry standard architecture) bus, a PCI (Peripheral component interconnect) bus, an EISA (Extended Industry standard architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads a corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the block chain consensus device on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
and the data sender encrypts the original data text to be shared by using the public key of the data receiver and transmits the encrypted original data text to the data receiver point to point.
Alternatively, the first and second electrodes may be,
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data receiver decrypts the received encrypted data and processes the original text to obtain a second digital fingerprint;
comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, if the second digital fingerprint is the same as the first digital fingerprint, the data receiver carries out signature confirmation on the received data, and if the second digital fingerprint is different from the first digital fingerprint, the data sharing is abandoned;
the first digital fingerprint is obtained by processing a data original text to be shared by a data sender, and is stored on a link after being signed.
The methods performed by the apparatuses disclosed in the embodiments of fig. 1, fig. 3, and fig. 4 in this specification may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps, and logic blocks disclosed in one or more embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in hardware, in a software module executed by a hardware decoding processor, or in a combination of the hardware and software modules executed by a hardware decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
Of course, besides the software implementation, the electronic device of the embodiment of the present disclosure does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
According to the invention, through the provided electronic equipment for data sharing based on the block chain, the data sharing record uplink is stored among the main bodies, and the participants of the data sharing do not need to uplink the shared data in the original text, but only need to perform signature confirmation on the digital fingerprints of the data sent and received by the participants, so that the data sharing process is permanently stored, can not be tampered, can be traced to the source and can be examined; therefore, the data sharing efficiency among enterprises is improved, and the business disputes are reduced.
Example four
Embodiments of the present specification also propose a computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a plurality of application programs, are capable of causing the portable electronic device to perform the method of the embodiments shown in fig. 1, 3 and 4, and in particular to perform the method of:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
a data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
and comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, if the second digital fingerprint is the same as the first digital fingerprint, performing signature confirmation on the received data by the data receiver, and if the second digital fingerprint is different from the first digital fingerprint, giving up the data sharing.
According to the data sharing method and device, the data sharing record uplink is stored among the main bodies through the provided computer readable medium based on the block chain, and the participants of the data sharing do not need to uplink the shared data in original texts, and only need to perform signature confirmation on the digital fingerprints of the data sent and received by the participants, so that the data sharing process is permanently stored, is not falsifiable, is traceable and can be censored; therefore, the data sharing efficiency among enterprises is improved, and the business disputes are reduced.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present specification shall be included in the protection scope of the present specification.
The system, apparatus, module or unit illustrated in one or more of the above embodiments may be implemented by a computer chip or an entity, or by an article of manufacture with a certain functionality. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

Claims (13)

1. A method of data sharing based on blockchains, the method comprising:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
a data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
comparing the second digital fingerprint with a first digital fingerprint acquired from a chain, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint; if the two are different, the data sharing is abandoned.
2. The method of claim 1, wherein a participant in data sharing registers for a data sharing account to associate participant identification information with their public key; further comprising:
deploying an account registration smart contract to which a participant of the data sharing sends an account registration transaction;
the account registration transaction includes a signature and a public key of a party to the data sharing;
the account registration intelligent contract completes data sharing account registration;
or
Deploying an account registration centralized server, calling an account registration interface of the data sharing participant, and uploading a public key and identity identification information;
and the account registration centralization server completes the registration of the data sharing account.
3. The method of claim 2, further comprising:
setting a storage certificate management interface;
performing on-chain storage on the signed first digital fingerprint through the certificate storage management interface, and distributing corresponding certificate storage interface parameters;
and the data receiver acquires a corresponding first digital fingerprint from a chain through the evidence storage interface parameter and compares the first digital fingerprint with the second digital fingerprint.
4. The method of claims 1-3, further comprising:
deploying a data sharing rule intelligent contract, and performing on-chain storage on sharing rules which are negotiated by participants of data sharing through the data sharing rule intelligent contract;
the data receiver sends a data request transaction including the sharing rule to the data sharing rule intelligent contract;
the data sharing rule intelligent contract informs a corresponding data sending party and provides a public key of the data requesting party.
5. A method of data sharing based on blockchains, the method comprising:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
and the data sender encrypts the original data text to be shared by using the public key of the data receiver and transmits the encrypted original data text to the data receiver point to point.
6. A method of data sharing based on blockchains, the method comprising:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data receiver decrypts the received encrypted data and processes the original text to obtain a second digital fingerprint;
comparing the second digital fingerprint with a first digital fingerprint acquired from a chain, and if the second digital fingerprint is the same as the first digital fingerprint, performing on-chain storage after the data receiver signs the second digital fingerprint; if the two are different, the data sharing is abandoned;
the first digital fingerprint is obtained by processing a data original text to be shared by a data sender, and is stored on a link after being signed.
7. A system for blockchain-based data sharing, the system comprising:
a data-sharing-account registration unit: the method comprises the following steps that a participant for data sharing performs data sharing account registration so as to associate identification information of the participant with a public key of the participant;
a public key obtaining unit: the public key is used for the data sender to obtain the public key of the data receiver;
a certificate storage unit: the data sender is used for processing a data original text to be shared to obtain a first digital fingerprint, and performing on-chain storage after signing the first digital fingerprint;
an encryption transmission unit: the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
a decryption unit: the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
a storage verification unit: the data receiver is used for comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, and if the second digital fingerprint is the same as the first digital fingerprint, the data receiver signs the second digital fingerprint and then stores the second digital fingerprint in the chain; if the two are different, the data sharing is abandoned.
8. The system of claim 7, wherein the data sharing account registration unit further comprises: an account registration smart contract to which a participant of the data sharing sends an account registration transaction;
the account registration transaction includes a signature and a public key of a party to the data sharing;
the account registration intelligent contract completes data sharing account registration;
or
The data sharing participant calls an account registration interface of the data sharing participant and uploads a public key and identity identification information;
and the account registration centralization server completes the registration of the data sharing account.
9. The system of claim 8, further comprising a credit management interface; performing on-chain storage on the signed first digital fingerprint through the certificate storage management interface, and distributing corresponding certificate storage interface parameters;
and the data receiver acquires a corresponding first digital fingerprint from a chain through the evidence storage interface parameter and compares the first digital fingerprint with the second digital fingerprint.
10. The system of claims 7-9, further comprising:
the intelligent contract of the data sharing rule stores the sharing rule which is agreed by the participants of the data sharing on the chain by the intelligent contract of the data sharing rule;
the data receiver sends a data request transaction including the sharing rule to the data sharing rule intelligent contract;
the data sharing rule intelligent contract informs a corresponding data sending party and provides a public key of the data requesting party.
11. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
and the data sender encrypts the original data text to be shared by using the public key of the data receiver and transmits the encrypted original data text to the data receiver point to point.
12. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
the data receiver decrypts the received encrypted data and processes the original text to obtain a second digital fingerprint;
comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, if the second digital fingerprint is the same as the first digital fingerprint, the data receiver carries out signature confirmation on the received data, and if the second digital fingerprint is different from the first digital fingerprint, the data sharing is abandoned;
the first digital fingerprint is obtained by processing a data original text to be shared by a data sender, and is stored on a link after being signed.
13. A computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform:
the data sharing participant registers a data sharing account so as to associate the participant identity identification information with the public key of the participant;
a data sender obtains a public key of a data receiver;
the data sender processes a data original text to be shared to obtain a first digital fingerprint, and carries out on-chain storage after signing the first digital fingerprint;
the data sender encrypts the data original text to be shared by using the public key of the data receiver and transmits the encrypted data original text to the data receiver point to point;
the data receiving party decrypts the received encrypted data by using a private key and processes the encrypted data to obtain a second digital fingerprint;
and comparing the second digital fingerprint with the first digital fingerprint acquired from the chain, if the second digital fingerprint is the same as the first digital fingerprint, performing signature confirmation on the received data by the data receiver, and if the second digital fingerprint is different from the first digital fingerprint, giving up the data sharing.
CN202010501904.8A 2020-06-04 2020-06-04 Data sharing method and system based on block chain and electronic equipment Pending CN111683082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010501904.8A CN111683082A (en) 2020-06-04 2020-06-04 Data sharing method and system based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010501904.8A CN111683082A (en) 2020-06-04 2020-06-04 Data sharing method and system based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
CN111683082A true CN111683082A (en) 2020-09-18

Family

ID=72434932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010501904.8A Pending CN111683082A (en) 2020-06-04 2020-06-04 Data sharing method and system based on block chain and electronic equipment

Country Status (1)

Country Link
CN (1) CN111683082A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202552A (en) * 2020-09-24 2021-01-08 建信金融科技有限责任公司 Method, device, medium and electronic equipment for monitoring quality of block chain data
CN112600890A (en) * 2020-12-03 2021-04-02 杭州溪塔科技有限公司 Data management method and system based on block chain
CN112651713A (en) * 2020-12-24 2021-04-13 傲普(上海)新能源有限公司 Energy statistical report sharing method based on block chain
CN112738233A (en) * 2020-12-29 2021-04-30 福州数据技术研究院有限公司 Medical data safety sharing method and system based on block chain under multi-party cooperation analysis scene and storage device
CN113239376A (en) * 2021-05-14 2021-08-10 北京邮电大学 Data sharing method, request method and device based on block chain
WO2022095426A1 (en) * 2020-11-03 2022-05-12 平安科技(深圳)有限公司 Blockchain-based joint account creation method, system, device, and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503995A (en) * 2016-11-17 2017-03-15 中国银行股份有限公司 A kind of data sharing method, source node, destination node and system
US20180139056A1 (en) * 2016-11-15 2018-05-17 Fujitsu Limited Apparatus and method to perform secure data sharing in a distributed network by using a blockchain
US20180322587A1 (en) * 2017-05-06 2018-11-08 Adp, Llc Payroll based blockchain identity
CN109002732A (en) * 2018-07-17 2018-12-14 深圳前海微众银行股份有限公司 Data deposit card method, apparatus and system and data evidence collecting method
CN109741162A (en) * 2018-09-03 2019-05-10 上海奥若拉信息科技集团有限公司 The storage of personal collage-credit data, processing, sharing method and system based on block chain
CN109816386A (en) * 2019-01-24 2019-05-28 杭州趣链科技有限公司 Data get through method on a kind of chain of the unified identity authentication based on block chain
CN109871709A (en) * 2018-12-20 2019-06-11 顺丰科技有限公司 Block chain private data deposits card method, system and storage medium
CN110138733A (en) * 2019-04-03 2019-08-16 华南理工大学 Object storage system based on block chain is credible to deposit card and access right control method
CN110545325A (en) * 2019-09-06 2019-12-06 重庆华医康道科技有限公司 data encryption sharing method based on intelligent contract
CN110691078A (en) * 2019-09-25 2020-01-14 东北大学 Block chain-based data dynamic reliability verification method
CN110784463A (en) * 2019-10-24 2020-02-11 深圳市超算科技开发有限公司 File storage and access method and system based on block chain
CN110971392A (en) * 2019-11-25 2020-04-07 远光软件股份有限公司 Decentralized electronic academic certificate acquisition method and system
CN111224786A (en) * 2019-12-30 2020-06-02 山东爱城市网信息技术有限公司 Block chain-based data security sharing method, device and medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180139056A1 (en) * 2016-11-15 2018-05-17 Fujitsu Limited Apparatus and method to perform secure data sharing in a distributed network by using a blockchain
CN106503995A (en) * 2016-11-17 2017-03-15 中国银行股份有限公司 A kind of data sharing method, source node, destination node and system
US20180322587A1 (en) * 2017-05-06 2018-11-08 Adp, Llc Payroll based blockchain identity
CN109002732A (en) * 2018-07-17 2018-12-14 深圳前海微众银行股份有限公司 Data deposit card method, apparatus and system and data evidence collecting method
CN109741162A (en) * 2018-09-03 2019-05-10 上海奥若拉信息科技集团有限公司 The storage of personal collage-credit data, processing, sharing method and system based on block chain
CN109871709A (en) * 2018-12-20 2019-06-11 顺丰科技有限公司 Block chain private data deposits card method, system and storage medium
CN109816386A (en) * 2019-01-24 2019-05-28 杭州趣链科技有限公司 Data get through method on a kind of chain of the unified identity authentication based on block chain
CN110138733A (en) * 2019-04-03 2019-08-16 华南理工大学 Object storage system based on block chain is credible to deposit card and access right control method
CN110545325A (en) * 2019-09-06 2019-12-06 重庆华医康道科技有限公司 data encryption sharing method based on intelligent contract
CN110691078A (en) * 2019-09-25 2020-01-14 东北大学 Block chain-based data dynamic reliability verification method
CN110784463A (en) * 2019-10-24 2020-02-11 深圳市超算科技开发有限公司 File storage and access method and system based on block chain
CN110971392A (en) * 2019-11-25 2020-04-07 远光软件股份有限公司 Decentralized electronic academic certificate acquisition method and system
CN111224786A (en) * 2019-12-30 2020-06-02 山东爱城市网信息技术有限公司 Block chain-based data security sharing method, device and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
盛念祖等: "基于区块链智能合约的物联网数据资产化方法", 《浙江大学学报(工学版)》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202552A (en) * 2020-09-24 2021-01-08 建信金融科技有限责任公司 Method, device, medium and electronic equipment for monitoring quality of block chain data
CN112202552B (en) * 2020-09-24 2022-12-13 中国建设银行股份有限公司 Method, device, medium and electronic equipment for monitoring quality of block chain data
WO2022095426A1 (en) * 2020-11-03 2022-05-12 平安科技(深圳)有限公司 Blockchain-based joint account creation method, system, device, and storage medium
CN112600890A (en) * 2020-12-03 2021-04-02 杭州溪塔科技有限公司 Data management method and system based on block chain
CN112651713A (en) * 2020-12-24 2021-04-13 傲普(上海)新能源有限公司 Energy statistical report sharing method based on block chain
CN112651713B (en) * 2020-12-24 2022-10-21 傲普(上海)新能源有限公司 Energy statistical report sharing method based on block chain
CN112738233A (en) * 2020-12-29 2021-04-30 福州数据技术研究院有限公司 Medical data safety sharing method and system based on block chain under multi-party cooperation analysis scene and storage device
CN112738233B (en) * 2020-12-29 2023-07-11 福州数据技术研究院有限公司 Medical data secure sharing method, system and storage device based on block chain under multiparty cooperative analysis scene
CN113239376A (en) * 2021-05-14 2021-08-10 北京邮电大学 Data sharing method, request method and device based on block chain
CN113239376B (en) * 2021-05-14 2023-01-20 北京邮电大学 Data sharing method, request method and device based on block chain

Similar Documents

Publication Publication Date Title
CA3057385C (en) Methods and devices for protecting sensitive data of transaction activity based on smart contract in blockchain
US11799668B2 (en) Electronic identification verification methods and systems with storage of certification records to a side chain
CN109327314B (en) Service data access method, device, electronic equipment and system
US10972274B2 (en) Trusted identity solution using blockchain
CN111683082A (en) Data sharing method and system based on block chain and electronic equipment
US10735202B2 (en) Anonymous consent and data sharing on a blockchain
US10742424B2 (en) Trusted identity solution using blockchain
US20210319132A1 (en) Methods and Devices For Managing User Identity Authentication Data
US20190182042A1 (en) Methods and systems for recovering data using dynamic passwords
WO2020062668A1 (en) Identity authentication method, identity authentication device, and computer readable medium
CN111986764B (en) Medical data sharing method, device, terminal and storage medium based on blockchain
CN111931238B (en) Block chain-based data asset transfer method, device and equipment
CN112215608A (en) Data processing method and device
US10936552B2 (en) Performing bilateral negotiations on a blockchain
KR20200083935A (en) Blockchain-based crowdsourcing of map applications
CN110246039B (en) Transaction monitoring method and device based on alliance chain and electronic equipment
FR2930390A1 (en) METHOD FOR SECURE DIFFUSION OF DIGITAL DATA TO AN AUTHORIZED THIRD PARTY
CN111339565B (en) Business service providing method, device, equipment and system based on block chain
CN112861102B (en) Method and system for processing electronic file based on block chain
CN113557508A (en) Method, computer program product and apparatus for transferring ownership rights to digital assets
EP4092984A1 (en) Data processing method and apparatus, device and medium
CN113704775A (en) Service processing method based on distributed digital identity and related device
US20200082391A1 (en) Performing bilateral negotiations on a blockchain
CN113704734A (en) Distributed digital identity-based method for realizing certificate verification and related device
CN112966309A (en) Service implementation method and device based on block chain

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
CB02 Change of applicant information

Address after: Room 2339, 2nd Floor, No. 92, Huancheng North Road, Gongshu District, Hangzhou City, Zhejiang Province 310005

Applicant after: Hangzhou Xita Technology Co.,Ltd.

Address before: 310000 No. 1001, floor 10, tower a, Huaxing Times Square, No. 478, Wensan Road, Xihu District, Hangzhou, Zhejiang Province

Applicant before: Hangzhou Xita Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200918

RJ01 Rejection of invention patent application after publication