CN-115529158-B - Data transmission method and device, storage medium and electronic equipment
Abstract
The specification discloses a data transmission method, a data transmission device, a storage medium and an electronic device, and firstly, an encryption key created by a key management system is received. And secondly, encrypting the blockchain private key of the user according to the encryption key to obtain encrypted data. And then, storing the encrypted data into a bridging system to complete the deployment of the bridging system. And then, when receiving a service request aiming at the user, sending an indication message to the bridging system so that the bridging system obtains a decryption key corresponding to the encryption key from the key management system based on the indication message, and decrypting the encrypted data through the decryption key to obtain a blockchain private key of the user. And finally, executing the block chain service corresponding to the service request according to the block chain private key of the user through the bridging system. The method can avoid the risk of revealing the blockchain private key of the user when the blockchain private key of the user in the plaintext is stored in the bridging system, and improves the safety of the blockchain private key of the user.
Inventors
- HAN ZHE
Assignees
- 支付宝实验室(新加坡)有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20220812
Claims (10)
- 1. A method of data transmission, comprising: receiving an encryption key created by a key management system; Encrypting the blockchain private key of the user according to the encryption key to obtain encrypted data; storing the encrypted data into a bridging system to complete the deployment of the bridging system, so as to avoid the occurrence of a blockchain private key of a user in the process of deploying the bridging system; when a service request aiming at the user is received, sending an indication message to the bridging system, so that the bridging system obtains a decryption key corresponding to the encryption key from the key management system based on the indication message, and decrypts the encrypted data through the decryption key to obtain a blockchain private key of the user; And executing the blockchain service corresponding to the service request according to the blockchain private key of the user through the bridging system.
- 2. The method of claim 1, the method further comprising: If the user's blockchain private key is determined to be unsuccessfully decrypted, determining an error type of decryption failure of the encrypted data according to a task log generated by decrypting the encrypted data; And repairing the bridging system according to the error type.
- 3. The method of claim 1, wherein the encryption key comprises a public key of the asymmetric keys and the decryption key corresponding to the encryption key comprises a private key corresponding to the public key of the asymmetric keys.
- 4.A method of data transmission, comprising: the bridging system acquires encrypted data and stores the encrypted data, wherein the encrypted data is obtained by encrypting a blockchain private key of a user through an encryption key created by a key management system, so that the blockchain private key of the user is prevented from appearing in the process of deploying the bridging system; responding to an indication message sent by a server, acquiring a decryption key corresponding to the encryption key from the key management system, and decrypting the encrypted data through the decryption key to obtain a blockchain private key of the user, wherein the indication message is sent to the bridging system by the server when receiving a service request aiming at the user; and executing the blockchain service corresponding to the service request according to the blockchain private key of the user.
- 5. The method of claim 4, the method further comprising: and caching the decrypted blockchain private key of the user to the bridging system.
- 6. The method of claim 4, wherein the encryption key comprises a public key of the asymmetric keys and the decryption key corresponding to the encryption key comprises a private key corresponding to the public key of the asymmetric keys.
- 7. An apparatus for data transmission, comprising: The receiving module is used for receiving the encryption key created by the key management system; The encryption module is used for encrypting the private key of the blockchain of the user according to the encryption key to obtain encrypted data; The deployment module is used for storing the encrypted data into a bridging system to complete the deployment of the bridging system, and the blockchain private key of a user is prevented from appearing in the process of deploying the bridging system; The decryption module is used for sending an indication message to the bridging system when receiving a service request aiming at the user, so that the bridging system obtains a decryption key corresponding to the encryption key from the key management system based on the indication message, and decrypts the encrypted data through the decryption key to obtain a blockchain private key of the user; And the execution module is used for executing the blockchain service corresponding to the service request according to the blockchain private key of the user through the bridging system.
- 8. An apparatus for data transmission, comprising: The acquisition module is used for acquiring and storing the encrypted data by the bridging system, wherein the encrypted data is obtained by encrypting the blockchain private key of the user through the encryption key created by the key management system, so that the blockchain private key of the user is prevented from appearing in the process of deploying the bridging system; The decryption module is used for responding to an indication message sent by the server, obtaining a decryption key corresponding to the encryption key from the key management system, decrypting the encrypted data through the decryption key, and obtaining a blockchain private key of the user, wherein the indication message is sent to the bridging system by the server when a service request aiming at the user is received; And the execution module is used for executing the blockchain service corresponding to the service request according to the blockchain private key of the user.
- 9. A computer readable storage medium storing a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-6.
- 10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the preceding claims 1-6 when the program is executed.
Description
Data transmission method and device, storage medium and electronic equipment Technical Field The present disclosure relates to the field of blockchain technologies, and in particular, to a method and apparatus for data transmission, a storage medium, and an electronic device. Background With the continuous development of computer technology, the blockchain technology has developed, and according to actual service requirements, data (such as service data, privacy data and the like of users) needing to be stored in the blockchain can be stored so as to prevent the stored data from being tampered, thereby ensuring the security of the data. Currently, when different users access blockchain nodes, service requests are typically sent to the bridging system to interact with blockchain nodes through the bridging system. Before using the bridging system, the plaintext blockchain private key of the user is usually required to be stored in the bridging system and then deployed by a technician, which results in that the blockchain private key of the user may be known to the technician, i.e. there is a risk that the blockchain private key of the user is revealed. Therefore, how to ensure the security of the private key of the user blockchain is a problem to be solved. Disclosure of Invention The specification provides a data transmission method, a data transmission device, a storage medium and electronic equipment, so as to solve the problem of lower security in the data transmission process. The technical scheme adopted in the specification is as follows: the specification provides a method for data transmission, comprising: receiving an encryption key created by a key management system; Encrypting the blockchain private key of the user according to the encryption key to obtain encrypted data; Storing the encrypted data into a bridging system to complete the deployment of the bridging system; when a service request aiming at the user is received, sending an indication message to the bridging system, so that the bridging system obtains a decryption key corresponding to the encryption key from the key management system based on the indication message, and decrypts the encrypted data through the decryption key to obtain a blockchain private key of the user; And executing the blockchain service corresponding to the service request according to the blockchain private key of the user through the bridging system. Optionally, the method further comprises: If the user's blockchain private key is determined to be unsuccessfully decrypted, determining an error type of decryption failure of the encrypted data according to a task log generated by decrypting the encrypted data; And repairing the bridging system according to the error type. Optionally, the encryption key comprises a public key in the asymmetric key, and the decryption key corresponding to the encryption key comprises a private key corresponding to the public key in the asymmetric key. The specification provides a method for data transmission, comprising: the bridging system acquires encrypted data and stores the encrypted data, wherein the encrypted data is obtained by encrypting a blockchain private key of a user through an encryption key created by the key management system; responding to an indication message sent by a server, acquiring a decryption key corresponding to the encryption key from the key management system, and decrypting the encrypted data through the decryption key to obtain a blockchain private key of the user, wherein the indication message is sent to the bridging system by the server when receiving a service request aiming at the user; and executing the blockchain service corresponding to the service request according to the blockchain private key of the user. Optionally, the method further comprises: and caching the decrypted blockchain private key of the user to the bridging system. Optionally, the encryption key comprises a public key in the asymmetric key, and the decryption key corresponding to the encryption key comprises a private key corresponding to the public key in the asymmetric key. The present specification provides an apparatus for data transmission, comprising: The receiving module is used for receiving the encryption key created by the key management system; The encryption module is used for encrypting the private key of the blockchain of the user according to the encryption key to obtain encrypted data; the deployment module is used for storing the encrypted data into a bridging system so as to complete the deployment of the bridging system; The decryption module is used for sending an indication message to the bridging system when receiving a service request aiming at the user, so that the bridging system obtains a decryption key corresponding to the encryption key from the key management system based on the indication message, and decrypts the encrypted data through the decryption key to obtain a blockchain private key of the