CN110543773A - Method and device for signing private key of block chain of knowledge question and answer platform user - Google Patents

Method and device for signing private key of block chain of knowledge question and answer platform user Download PDF

Info

Publication number
CN110543773A
CN110543773A CN201910805819.8A CN201910805819A CN110543773A CN 110543773 A CN110543773 A CN 110543773A CN 201910805819 A CN201910805819 A CN 201910805819A CN 110543773 A CN110543773 A CN 110543773A
Authority
CN
China
Prior art keywords
user
knowledge question
answer
private key
public key
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
CN201910805819.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.)
Beijing Ai Morui Strategic Technology Co Ltd
Original Assignee
Beijing Ai Morui Strategic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ai Morui Strategic Technology Co Ltd filed Critical Beijing Ai Morui Strategic Technology Co Ltd
Priority to CN201910805819.8A priority Critical patent/CN110543773A/en
Publication of CN110543773A publication Critical patent/CN110543773A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

the application discloses a method and a device for signing a private key of a block chain of a knowledge question and answer platform user, wherein the method comprises the following steps: the method comprises the steps that a knowledge question-answering server receives a user operation data uplink request sent by user equipment, wherein the user operation data uplink request comprises a user ID; when the knowledge question-answering server judges that the user operation meets the preset condition, inquiring a user public key corresponding to the user ID according to the user ID; the knowledge question-answering server sends the user public key, the user operation data uplink request and the knowledge question-answering server private key signature information to the signature machine; the knowledge question-answering server receives a user operation data uplink request signed by a user private key; the knowledge question-answering server sends a user operation data uplink request signed by a user private key to any one block chain node, so that the user operation is stored in a block chain account book by any one block chain node. The server in the application ensures the safety of the private key, can help the user equipment to sign on behalf of others, and can improve the experience of the user.

Description

Method and device for signing private key of block chain of knowledge question and answer platform user
Technical Field
the invention relates to the technical field of internet big data, in particular to a method and a device for signing a private key of a block chain of a knowledge question and answer platform user.
Background
currently, the blockchain technology is a distributed stored ledger that uses technologies such as encryption algorithm and consensus mechanism. With the use of blockchain technology, more and more internet data is stored on the blockchain.
at this time, on the blockchain, the user has a pair of public key and private key, and the public key and the private key are corresponding. When a user operates on the block chain, the user needs to sign with a private key; on the blockchain, the private key represents the user, so the user needs to keep the private key.
However, the private key is a string of characters, which is difficult for the user to remember; and for the existing internet users, the most familiar mode of the users is the corresponding use mode of user names and passwords. Therefore, how to find a way that the user can ensure the security of the private key without storing the private key is a problem to be solved.
the foregoing description is merely for convenience in understanding and is not to be construed as limiting the prior art to the present application.
Disclosure of Invention
based on the problems, the method and the device for signing the block chain private key of the knowledge question and answer platform user can enable the management authority of the private key to a server, and user equipment does not need to store the private key; the server ensures the safety of the private key and can help the user equipment to sign; therefore, the user can experience the service of the block chain under the condition of not perceiving the private key, and the experience of the user is further improved.
the first aspect of the application discloses a method for signing a private key of a block chain of a knowledge question and answer platform user, which comprises the following steps:
The method comprises the steps that a knowledge question-answering server receives a user operation data uplink request sent by user equipment, wherein the user operation data uplink request comprises a user ID; the user operation data uplink request comprises one or more of a knowledge question data uplink request, a knowledge answer data uplink request, a comment data uplink request of a knowledge question answer, a like data uplink request of a knowledge question answer, a collection data uplink request of a knowledge question answer and a browsing data uplink request of a knowledge question answer;
when the knowledge question-answering server judges that the user operation meets a preset condition, inquiring a user public key corresponding to the user ID according to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, and the at least one user ID corresponds to the at least one user public key one by one;
The knowledge question-answering server sends the user public key, the user operation data uplink request and the signature information of the knowledge question-answering server private key to a signature machine, so that the signature machine inquires the user private key corresponding to the user public key after passing the verification of the knowledge question-answering server private key, and signs the user operation data uplink request by using the user private key; the private key signature information of the knowledge question and answer server comprises private key signature information of the private key of the knowledge question and answer server on the user public key and the uplink request of the user operation data, the signature machine stores at least one user private key and at least one user public key, and the at least one user private key and the at least one user public key are in one-to-one correspondence;
The knowledge question-answering server receives the user operation data uplink request signed by the user private key;
And the knowledge question-answering server sends the user operation data chaining request signed by the user private key to any one block chain node, so that the user private key is verified by the any one block chain node, and the user operation is stored in a block chain account book after consensus is completed.
in a possible implementation manner, the user operation data in the user operation data uplink request includes an associated attribute and a non-associated attribute, and the numerical values of the associated attributes are automatically superimposed; the user operation data association attribute comprises one or more of the number of praise, the number of comments and the number of browsing.
In one possible implementation, the knowledgeable answer server pays an uplink resource fee for the ue, the uplink resource fee includes one or more of block link node CPU resource usage fee, block link point RAM resource usage fee, block link point network bandwidth resource usage fee, and block link point packed uplink fee.
In one possible implementation, the method includes: the knowledge question-answering server judges whether the user operation meets preset conditions, wherein the preset conditions comprise whether the user is a registered user of the knowledge question-answering server or not, and whether the user operation is legal operation provided by the knowledge question-answering server or not; wherein the content of the first and second substances,
the legal operation of the knowledge question and answer server comprises one or more of knowledge question and answer operation, knowledge answer operation, comment operation of the knowledge question and answer, praise operation of the knowledge question and answer, collection operation of the knowledge question and answer and browse operation of the knowledge question and answer.
In one possible implementation, the method further includes: the knowledge question-answering server receives a user registration request sent by the user equipment;
The knowledge question-answering server sends the user registration request to the signature machine so that the signature machine can generate and store the user public key and the user private key according to the user registration request;
The knowledge question-answering server receives the user public key sent by the signature machine, generates the user ID, and stores the user ID and the user public key corresponding to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, wherein the user ID and the user public key are in one-to-one correspondence;
and the knowledge question and answer server sends the user ID and a response message of the completion of the user registration to the user equipment.
The second aspect of the application discloses a device for signing a private key of a block chain of a knowledge question and answer platform user, wherein the device is a knowledge question and answer server and comprises a sending unit, a processing unit and a receiving unit; wherein the content of the first and second substances,
The receiving unit receives a user operation data uplink request sent by user equipment, wherein the user operation data uplink request comprises a user ID; the user operation data uplink request comprises one or more of a knowledge question data uplink request, a knowledge answer data uplink request, a comment data uplink request of a knowledge question answer, a like data uplink request of a knowledge question answer, a collection data uplink request of a knowledge question answer and a browsing data uplink request of a knowledge question answer;
The processing unit is used for inquiring a user public key corresponding to the user ID according to the user ID when judging that the user operation meets a preset condition; the knowledge question-answering server stores at least one user ID and at least one user public key, and the at least one user ID corresponds to the at least one user public key one by one;
the sending unit is used for sending the user public key, the user operation data uplink request and the private key signature information of the knowledge question and answer server to a signature machine so as to enable the signature machine to inquire a user private key corresponding to the user public key after the private key of the knowledge question and answer server is verified by the signature machine, and sign the user operation data uplink request by using the user private key; the private key signature information of the knowledge question and answer server comprises private key signature information of the private key of the knowledge question and answer server on the user public key and the uplink request of the user operation data, the signature machine stores at least one user private key and at least one user public key, and the at least one user private key and the at least one user public key are in one-to-one correspondence;
The receiving unit is used for receiving the user operation data uplink request signed by the user private key;
The sending unit sends the user operation data uplink request signed by the user private key to any block chain node, so that the user private key is verified by any block chain node, and the user operation is stored in a block chain account book after consensus is completed.
In a possible implementation manner, the user operation data in the user operation data uplink request includes an associated attribute and a non-associated attribute, and the numerical values of the associated attributes are automatically superimposed; the user operation data association attribute comprises one or more of the number of praise, the number of comments and the number of browsing.
In one possible implementation, the knowledgeable answer server pays an uplink resource fee for the ue, the uplink resource fee includes one or more of block link node CPU resource usage fee, block link point RAM resource usage fee, block link point network bandwidth resource usage fee, and block link point packed uplink fee.
In one possible implementation, the method includes: the processing unit is used for judging whether the user operation meets preset conditions, wherein the preset conditions comprise whether the user is a registered user of the knowledge question and answer server or not, and whether the user operation is legal operation provided by the knowledge question and answer server or not; wherein the content of the first and second substances,
The legal operation of the knowledge question and answer server comprises one or more of knowledge question and answer operation, knowledge answer operation, comment operation of the knowledge question and answer, praise operation of the knowledge question and answer, collection operation of the knowledge question and answer and browse operation of the knowledge question and answer.
in one possible implementation, the method further includes: the receiving unit receives a user registration request sent by the user equipment;
the sending unit is used for sending the user registration request to the signing machine so that the signing machine can generate and store the user public key and the user private key according to the user registration request;
the receiving unit is used for receiving the user public key sent by the signature machine, generating the user ID and storing the user ID and the user public key corresponding to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, wherein the user ID and the user public key are in one-to-one correspondence;
The sending unit sends the user ID and a response message of the user registration completion to the user equipment.
the method and the device can enable the management authority of the private key to the server, and the user equipment does not need to store the private key; the server ensures the safety of the private key and can help the user equipment to sign; therefore, the user can experience the service of the block chain under the condition of not perceiving the private key, and the experience of the user is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for signing a private key of a block chain of a knowledge question and answer platform user disclosed in the present application;
FIG. 2 is a schematic flow chart illustrating another method for signing a blockchain private key of a knowledge question and answer platform user disclosed in the present application;
FIG. 3 is a schematic diagram of a configuration of a token device for a blockchain private key of a knowledge question and answer platform user according to the present disclosure;
Fig. 4 is a schematic structural diagram of a device for signing a private key of a block chain of a user of a knowledge question and answer platform disclosed in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in this application are used for convenience of understanding only, and are not to be construed as sequential or limiting in any way.
for the purpose of facilitating understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
As shown in fig. 1, the method for signing a blockchain private key of a user of a knowledge question and answer platform includes steps S101-S105.
S101, a knowledge question-answering server receives a user operation data uplink request sent by user equipment, wherein the user operation data uplink request comprises a user ID; the user operation data uplink request comprises one or more of a knowledge question data uplink request, a knowledge answer data uplink request, a comment data uplink request of a knowledge question and answer, a like data uplink request of a knowledge question and answer, a collection data uplink request of a knowledge question and answer and a browsing data uplink request of a knowledge question and answer.
In one example, the user operation data in the uplink user operation data request comprises an associated attribute and a non-associated attribute, and the numerical values of the associated attributes are automatically superposed; the user operation data association attribute comprises one or more of the number of praise, the number of comments and the number of browsing.
s102, when the knowledge question answering server judges that the user operation meets a preset condition, inquiring a user public key corresponding to the user ID according to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, and the at least one user ID corresponds to the at least one user public key one to one.
In one example, the method comprises: the knowledge question-answering server judges whether the user operation meets preset conditions, wherein the preset conditions comprise whether the user is a registered user of the knowledge question-answering server or not, and whether the user operation is legal operation provided by the knowledge question-answering server or not; the legal operation of the knowledge question and answer server comprises one or more of knowledge question and answer operation, knowledge answer operation, comment operation of the knowledge question and answer, praise operation of the knowledge question and answer, collection operation of the knowledge question and answer and browse operation of the knowledge question and answer.
s103, the knowledge question and answer server sends the user public key, the user operation data uplink request and the signature information of the knowledge question and answer server private key to a signature machine, so that the signature machine inquires the user private key corresponding to the user public key after passing the verification of the knowledge question and answer server private key, and signs the user operation data uplink request by using the user private key; the private key signature information of the knowledge question and answer server comprises private key signature information of the private key of the knowledge question and answer server on the user public key and the user operation data uplink request, the signature machine stores at least one user private key and at least one user public key, and the at least one user private key and the at least one user public key are in one-to-one correspondence.
S104, the knowledge question answering server receives the user operation data uplink request signed by the user private key.
And S105, the knowledge question answering server sends the user operation data chaining request signed by the user private key to any one block chain node, so that the user private key is verified by the any one block chain node, and the user operation is stored in a block chain account book after consensus is completed.
in one example, the knowledgeable answer server pays an uplink resource fee for the user equipment, the uplink resource fee including one or more of a block link node CPU resource usage fee, a block link point RAM resource usage fee, a block link point network bandwidth resource usage fee, and a block link point packed uplink fee.
In one example, the method further comprises: the knowledge question-answering server receives a user registration request sent by the user equipment; the knowledge question-answering server sends the user registration request to the signature machine so that the signature machine can generate and store the user public key and the user private key according to the user registration request; the knowledge question-answering server receives the user public key sent by the signature machine, generates the user ID, and stores the user ID and the user public key corresponding to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, wherein the user ID and the user public key are in one-to-one correspondence; and the knowledge question and answer server sends the user ID and a response message of the completion of the user registration to the user equipment.
The method and the device can enable the management authority of the private key to the server, and the user equipment does not need to store the private key; the server ensures the safety of the private key and can help the user equipment to sign; therefore, the user can experience the service of the block chain in a user name and password mode under the condition of not perceiving the private key, and the user experience is further improved; in addition, the private key is stored in the signature machine, the signature machine can only access through an intranet, and the server cannot acquire the private key, so that the storage safety of the private key is further ensured.
In addition, the private key of the user is not lost, and the operation authority of the user is limited; when the operation of the user is illegal, the server does not execute the signing process.
the following describes the private key signing method of the present application in detail by taking fig. 2 as an example, as shown in fig. 2.
s201, the user equipment sends a user registration request to the knowledge question answering server.
S202, the knowledge question-answering server forwards the user registration request to the signature machine.
S203, the signature machine generates a user public key and a user private key for the user and stores the user public key and the user private key.
The signature machine can only receive intranet access, namely only the knowledge question and answer server can access the signature machine, so that the safety of the private key is ensured. The signature machine is stored with a plurality of public keys and a plurality of private keys, and the public keys correspond to the private keys one by one.
and S204, the signature machine returns the public key of the user to the knowledge question-answering server.
S205, the knowledge question answering server generates a user ID and stores a plurality of user IDs and a plurality of user public keys, wherein the user IDs correspond to the user public keys one to one.
the user ID is the unique identification of the user at the knowledge question and answer server.
s206, the knowledge question answering server returns the user ID to the user equipment, and prompts the user equipment that the user registration is completed.
s207, the ue sends a user operation data uplink request to the knowledgeable question answering server, where the uplink request includes a user ID.
The user operation refers to legal operation on a knowledge question-answering platform, and the operation is a user using function provided by a knowledge question-answering server; the user operation includes a uplink operation of user operation data.
S208, the knowledge question-answering server judges that the uplink request of the user operation data meets the preset condition, and inquires the public key corresponding to the user ID.
The preset conditions mainly comprise: and whether the transaction user ID is a registered user of the knowledge question-answering platform or not is checked, and whether the user operation data is a legal operation data type or not is checked.
S209, the knowledge question answering server signs the user public key and the user operation data by using a self private key, and sends the signature information, the user public key and the user operation data to the signature machine.
S210, the signature machine verifies the signature of the server private key, after the verification is passed, the user private key corresponding to the user public key is inquired, and the operation data of the user is signed by the user private key.
S211, the signature machine sends the user operation data uplink request signed by the user private key to the knowledge question-answering server.
S212, the knowledge question answering server sends the uplink request of the user operation data signed by the user private key to any one of the blockchain nodes.
S213, the block link point verifies the private key of the user, and after the verification passes and the consensus is completed, the user operation data uplink requested by the user operation data uplink is performed.
the uplink refers to storing user operation data on a distributed block chain account book; for a specific uplink operation, those skilled in the art can perform the operation according to a conventional manner, and the detailed description thereof is omitted here.
As shown in fig. 4, the device for signing a block chain private key of a user of a knowledge question and answer platform is a knowledge question and answer server, and includes a sending unit, a processing unit, and a receiving unit.
The receiving unit receives a user operation data uplink request sent by user equipment, wherein the user operation data uplink request comprises a user ID; the user operation data uplink request comprises one or more of a knowledge question data uplink request, a knowledge answer data uplink request, a comment data uplink request of a knowledge question answer, a like data uplink request of a knowledge question answer, a collection data uplink request of a knowledge question answer and a browsing data uplink request of a knowledge question answer;
the processing unit is used for inquiring a user public key corresponding to the user ID according to the user ID when judging that the user operation meets a preset condition; the knowledge question-answering server stores at least one user ID and at least one user public key, and the at least one user ID corresponds to the at least one user public key one by one;
The sending unit is used for sending the user public key, the user operation data uplink request and the private key signature information of the knowledge question and answer server to a signature machine so as to enable the signature machine to inquire a user private key corresponding to the user public key after the private key of the knowledge question and answer server is verified by the signature machine, and sign the user operation data uplink request by using the user private key; the private key signature information of the knowledge question and answer server comprises private key signature information of the private key of the knowledge question and answer server on the user public key and the uplink request of the user operation data, the signature machine stores at least one user private key and at least one user public key, and the at least one user private key and the at least one user public key are in one-to-one correspondence;
The receiving unit is used for receiving the user operation data uplink request signed by the user private key;
The sending unit sends the user operation data uplink request signed by the user private key to any block chain node, so that the user private key is verified by any block chain node, and the user operation is stored in a block chain account book after consensus is completed.
In one example, the user operation data in the uplink user operation data request comprises an associated attribute and a non-associated attribute, and the numerical values of the associated attributes are automatically superposed; the user operation data association attribute comprises one or more of the number of praise, the number of comments and the number of browsing.
In one example, the knowledgeable answer server pays an uplink resource fee for the user equipment, the uplink resource fee including one or more of a block link node CPU resource usage fee, a block link point RAM resource usage fee, a block link point network bandwidth resource usage fee, and a block link point packed uplink fee.
in one example, the method comprises: the processing unit is used for judging whether the user operation meets preset conditions, wherein the preset conditions comprise whether the user is a registered user of the knowledge question and answer server or not, and whether the user operation is legal operation provided by the knowledge question and answer server or not; wherein the content of the first and second substances,
The legal operation of the knowledge question and answer server comprises one or more of knowledge question and answer operation, knowledge answer operation, comment operation of the knowledge question and answer, praise operation of the knowledge question and answer, collection operation of the knowledge question and answer and browse operation of the knowledge question and answer.
in one example, the method further comprises: the receiving unit receives a user registration request sent by the user equipment;
The sending unit is used for sending the user registration request to the signing machine so that the signing machine can generate and store the user public key and the user private key according to the user registration request;
The receiving unit is used for receiving the user public key sent by the signature machine, generating the user ID and storing the user ID and the user public key corresponding to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, wherein the user ID and the user public key are in one-to-one correspondence;
The sending unit sends the user ID and a response message of the user registration completion to the user equipment.
The method and the device can enable the management authority of the private key to the server, and the user equipment does not need to store the private key; the server ensures the safety of the private key and can help the user equipment to sign; therefore, the user can experience the service of the block chain under the condition of not sensing the private key, and the experience of the user is further improved; in addition, the private key is stored in the signature machine, the signature machine can only access through an intranet, and the server cannot acquire the private key, so that the storage safety of the private key is further ensured.
The application further discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of the above embodiments when executing the program.
The present application also discloses a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above embodiments.
Fig. 3 shows a schematic diagram of a computer device, which may include: a processor 310, a memory 320, an input/output interface 330, a communication interface 340, and a bus 350. Wherein the processor 340, the memory 320, the input/output interface 330, and the communication interface 340 are communicatively coupled to each other within the device via a bus 350.
The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
the Memory 320 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 320 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 320 and called to be executed by the processor 310.
The input/output interface 330 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 340 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 350 includes a path that transfers information between the various components of the device, such as processor 310, memory 320, input/output interface 330, and communication interface 340.
it should be noted that although the above-mentioned device only shows the processor 310, the memory 320, the input/output interface 330, the communication interface 340 and the bus 350, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
the above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the scope of the present invention should be included in the scope of the present invention.

Claims (10)

1. The method for signing the private key of the block chain of the knowledge question and answer platform user is characterized by comprising the following steps:
the method comprises the steps that a knowledge question-answering server receives a user operation data uplink request sent by user equipment, wherein the user operation data uplink request comprises a user ID; the user operation data uplink request comprises one or more of a knowledge question data uplink request, a knowledge answer data uplink request, a comment data uplink request of a knowledge question answer, a like data uplink request of a knowledge question answer, a collection data uplink request of a knowledge question answer and a browsing data uplink request of a knowledge question answer;
when the knowledge question-answering server judges that the user operation meets a preset condition, inquiring a user public key corresponding to the user ID according to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, and the at least one user ID corresponds to the at least one user public key one by one;
The knowledge question-answering server sends the user public key, the user operation data uplink request and the signature information of the knowledge question-answering server private key to a signature machine, so that the signature machine inquires the user private key corresponding to the user public key after passing the verification of the knowledge question-answering server private key, and signs the user operation data uplink request by using the user private key; the private key signature information of the knowledge question and answer server comprises private key signature information of the private key of the knowledge question and answer server on the user public key and the uplink request of the user operation data, the signature machine stores at least one user private key and at least one user public key, and the at least one user private key and the at least one user public key are in one-to-one correspondence;
the knowledge question-answering server receives the user operation data uplink request signed by the user private key;
and the knowledge question-answering server sends the user operation data chaining request signed by the user private key to any one block chain node, so that the user private key is verified by the any one block chain node, and the user operation is stored in a block chain account book after consensus is completed.
2. The method of claim 1, wherein the user operation data in the ul request comprises associated attributes and non-associated attributes, and values of the associated attributes are automatically superimposed; the user operation data association attribute comprises one or more of the number of praise, the number of comments and the number of browsing.
3. the method of claim 1, wherein the knowledgeable answer server pays an uplink resource fee for the UE, the uplink resource fee comprising one or more of block link node (CPU) resource usage fees, block link point (RAM) resource usage fees, block link point (BBP) network bandwidth resource usage fees, and block link point (BC) uplink bundling fees.
4. the method according to claim 1, characterized in that it comprises:
the knowledge question-answering server judges whether the user operation meets preset conditions, wherein the preset conditions comprise whether the user is a registered user of the knowledge question-answering server or not, and whether the user operation is legal operation provided by the knowledge question-answering server or not; wherein the content of the first and second substances,
The legal operation of the knowledge question and answer server comprises one or more of knowledge question and answer operation, knowledge answer operation, comment operation of the knowledge question and answer, praise operation of the knowledge question and answer, collection operation of the knowledge question and answer and browse operation of the knowledge question and answer.
5. The method of claim 1, further comprising:
The knowledge question-answering server receives a user registration request sent by the user equipment;
the knowledge question-answering server sends the user registration request to the signature machine so that the signature machine can generate and store the user public key and the user private key according to the user registration request;
the knowledge question-answering server receives the user public key sent by the signature machine, generates the user ID, and stores the user ID and the user public key corresponding to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, wherein the user ID and the user public key are in one-to-one correspondence;
And the knowledge question and answer server sends the user ID and a response message of the completion of the user registration to the user equipment.
6. The device is a knowledge question and answer server and comprises a sending unit, a processing unit and a receiving unit; wherein the content of the first and second substances,
the receiving unit receives a user operation data uplink request sent by user equipment, wherein the user operation data uplink request comprises a user ID; the user operation data uplink request comprises one or more of a knowledge question data uplink request, a knowledge answer data uplink request, a comment data uplink request of a knowledge question answer, a like data uplink request of a knowledge question answer, a collection data uplink request of a knowledge question answer and a browsing data uplink request of a knowledge question answer;
the processing unit is used for inquiring a user public key corresponding to the user ID according to the user ID when judging that the user operation meets a preset condition; the knowledge question-answering server stores at least one user ID and at least one user public key, and the at least one user ID corresponds to the at least one user public key one by one;
The sending unit is used for sending the user public key, the user operation data uplink request and the private key signature information of the knowledge question and answer server to a signature machine so as to enable the signature machine to inquire a user private key corresponding to the user public key after the private key of the knowledge question and answer server is verified by the signature machine, and sign the user operation data uplink request by using the user private key; the private key signature information of the knowledge question and answer server comprises private key signature information of the private key of the knowledge question and answer server on the user public key and the uplink request of the user operation data, the signature machine stores at least one user private key and at least one user public key, and the at least one user private key and the at least one user public key are in one-to-one correspondence;
The receiving unit is used for receiving the user operation data uplink request signed by the user private key;
the sending unit sends the user operation data uplink request signed by the user private key to any block chain node, so that the user private key is verified by any block chain node, and the user operation is stored in a block chain account book after consensus is completed.
7. The apparatus of claim 6, wherein the user operation data in the ul request comprises associated attributes and non-associated attributes, and values of the associated attributes are automatically superimposed; the user operation data association attribute comprises one or more of the number of praise, the number of comments and the number of browsing.
8. The apparatus of claim 6, wherein the knowledgeable answer server pays an uplink resource fee for the UE, the uplink resource fee comprising one or more of block link node (CPU) resource usage fees, block link point (RAM) resource usage fees, block link point (BBP) network bandwidth resource usage fees, and block link point (BC) uplink bundling fees.
9. The apparatus of claim 6, wherein the method comprises:
The processing unit is used for judging whether the user operation meets preset conditions, wherein the preset conditions comprise whether the user is a registered user of the knowledge question and answer server or not, and whether the user operation is legal operation provided by the knowledge question and answer server or not; wherein the content of the first and second substances,
The legal operation of the knowledge question and answer server comprises one or more of knowledge question and answer operation, knowledge answer operation, comment operation of the knowledge question and answer, praise operation of the knowledge question and answer, collection operation of the knowledge question and answer and browse operation of the knowledge question and answer.
10. the apparatus of claim 6, wherein the method further comprises:
the receiving unit receives a user registration request sent by the user equipment;
The sending unit is used for sending the user registration request to the signing machine so that the signing machine can generate and store the user public key and the user private key according to the user registration request;
the receiving unit is used for receiving the user public key sent by the signature machine, generating the user ID and storing the user ID and the user public key corresponding to the user ID; the knowledge question-answering server stores at least one user ID and at least one user public key, wherein the user ID and the user public key are in one-to-one correspondence;
the sending unit sends the user ID and a response message of the user registration completion to the user equipment.
CN201910805819.8A 2019-08-29 2019-08-29 Method and device for signing private key of block chain of knowledge question and answer platform user Pending CN110543773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910805819.8A CN110543773A (en) 2019-08-29 2019-08-29 Method and device for signing private key of block chain of knowledge question and answer platform user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910805819.8A CN110543773A (en) 2019-08-29 2019-08-29 Method and device for signing private key of block chain of knowledge question and answer platform user

Publications (1)

Publication Number Publication Date
CN110543773A true CN110543773A (en) 2019-12-06

Family

ID=68710801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910805819.8A Pending CN110543773A (en) 2019-08-29 2019-08-29 Method and device for signing private key of block chain of knowledge question and answer platform user

Country Status (1)

Country Link
CN (1) CN110543773A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877639A (en) * 2009-05-01 2010-11-03 索尼公司 Messaging device, key updating method and program
CN104468476A (en) * 2013-09-16 2015-03-25 华为终端有限公司 Method and device for certificateless multi-proxy signature
CN104618120A (en) * 2015-03-04 2015-05-13 青岛微智慧信息有限公司 Digital signature method for escrowing private key of mobile terminal
CN108242999A (en) * 2017-10-26 2018-07-03 招商银行股份有限公司 Key escrow method, equipment and computer readable storage medium
CN108566274A (en) * 2018-03-15 2018-09-21 中国地质大学(武汉) Method, equipment and the storage device of slitless connection between a kind of block chain Verification System
CN207895450U (en) * 2018-03-30 2018-09-21 李欣宇 Knowledge Q-A system based on the double-chain block chain of same root
CN108900464A (en) * 2018-04-26 2018-11-27 平安科技(深圳)有限公司 Electronic device, data processing method and computer storage medium based on block chain
CN109150536A (en) * 2017-06-27 2019-01-04 中思博安科技(北京)有限公司 The execution method of allograph method and system and intelligent contract
US20190074979A1 (en) * 2015-11-13 2019-03-07 Minghua Xu Methods and systems for pki-based authentication
CN110009356A (en) * 2019-04-16 2019-07-12 北京艾摩瑞策科技有限公司 A kind of business datum cochain method and its system based on block chain

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877639A (en) * 2009-05-01 2010-11-03 索尼公司 Messaging device, key updating method and program
CN104468476A (en) * 2013-09-16 2015-03-25 华为终端有限公司 Method and device for certificateless multi-proxy signature
CN104618120A (en) * 2015-03-04 2015-05-13 青岛微智慧信息有限公司 Digital signature method for escrowing private key of mobile terminal
US20190074979A1 (en) * 2015-11-13 2019-03-07 Minghua Xu Methods and systems for pki-based authentication
CN109150536A (en) * 2017-06-27 2019-01-04 中思博安科技(北京)有限公司 The execution method of allograph method and system and intelligent contract
CN108242999A (en) * 2017-10-26 2018-07-03 招商银行股份有限公司 Key escrow method, equipment and computer readable storage medium
CN108566274A (en) * 2018-03-15 2018-09-21 中国地质大学(武汉) Method, equipment and the storage device of slitless connection between a kind of block chain Verification System
CN207895450U (en) * 2018-03-30 2018-09-21 李欣宇 Knowledge Q-A system based on the double-chain block chain of same root
CN108900464A (en) * 2018-04-26 2018-11-27 平安科技(深圳)有限公司 Electronic device, data processing method and computer storage medium based on block chain
CN110009356A (en) * 2019-04-16 2019-07-12 北京艾摩瑞策科技有限公司 A kind of business datum cochain method and its system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李智虎: "新应用中的密码关键技术", 《信息安全与通信保密》 *

Similar Documents

Publication Publication Date Title
CN110380870B (en) Block chain private key signing method and device for e-commerce platform user
CN107911222B (en) Digital signature generating method, digital signature verifying method, digital signature generating apparatus, digital signature verifying apparatus, and storage medium storing digital signature verifying program
US20130262696A1 (en) Proxy server apparatus, client terminal apparatus, remote access system, transfer control method, access method, and recording medium
CN111355723A (en) Single sign-on method, device, equipment and readable storage medium
CN110674376A (en) Interface parameter checking method, device, equipment and computer readable storage medium
CN110545189A (en) Block chain private key signing method and device for community platform users
CN110674218A (en) Company business license tracing method and device related to block chain
CN108092947B (en) Method and device for identity authentication of third-party application
CN109951487A (en) A kind of portal authentication method and device
CN110545177A (en) Block chain private key signing method and device for life service platform user
CN110545188A (en) User block chain private key signing method and device related to self-media platform
CN110543786A (en) method and device for signing block chain private key of shared economic platform user
CN110598389A (en) Method and device for storing account book certificate based on block chain
CN111078715A (en) Synchronous storage method and device for internet advertisement data on block chain
CN110543773A (en) Method and device for signing private key of block chain of knowledge question and answer platform user
CN110545178A (en) block chain private key signing method and device for investigation platform user
CN110545186A (en) Block chain private key signing method and device for advertisement platform user
CN110545185A (en) block chain private key signing method and device relating to voting platform user
CN110544093A (en) block chain private key signing method and device related to renting platform user
CN110545187A (en) User block chain private key signing method and device relating to travel platform
CN115086040A (en) Login authentication method, device, storage medium and electronic equipment
CN111935138B (en) Protection method and device for secure login and electronic equipment
US20230216686A1 (en) User authentication system, user authentication server, and user authentication method
CN110351389B (en) UpLink method and device for user community associated data
CN110647768A (en) Passport deposit method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: No.108, 1 / F, No.9, shangdijiu street, Haidian District, Beijing 100085

Applicant after: Beijing ruice Technology Co.,Ltd.

Address before: No.108, 1 / F, No.9, shangdijiu street, Haidian District, Beijing 100085

Applicant before: BEIJING AIMO RUICE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination