CPC H04L 9/0869 (2013.01) [H04L 9/0838 (2013.01); H04L 9/3247 (2013.01); H04L 9/50 (2022.05)] | 20 Claims |
1. A key generation method based on a blockchain network, performed by a first device, the method comprising:
transmitting a key negotiation request to a consensus node in a blockchain network, to request a key verification parameter;
negotiating a collaboration key pair with a second device when the key verification parameter returned by the consensus node is received, to obtain a first private key component and a shared public key in the collaboration key pair, a second private key component in the collaboration key pair being held by the second device, and the shared public key being used for verifying validity of collaboration signature information obtained by collaboration signature using the first private key component and the second private key component;
signing the key verification parameter by using the first private key component, to obtain a first signature component;
generating transaction data according to the first signature component and the key verification parameter; and
transmitting the transaction data to the second device, the second device signing the transaction data by using the second private key component to obtain a second signature component, and obtaining the collaboration signature information according to the first signature component and the second signature component, and transmitting negotiation result data to the consensus node, the negotiation result data comprising the collaboration signature information, the shared public key, and the key verification parameter, wherein the consensus node performs a consensus on the negotiation result data, and after the negotiation result data passes the consensus, submits the negotiation result data to a blockchain of the blockchain network.
|