Method and apparatus for public key management using blockchain
By managing the certification transactions of the public key infrastructure on the blockchain network, the problem of difficulty in revoking digital certificates after the public key is leaked is solved, rapid verification and timely revocation of the public key is achieved, and security risks are reduced.
Patent Information
- Application Number
- CN202080042877.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-05-10
- Filing Date
- 2020-05-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-05-05
AI Technical Summary
The existing public key infrastructure is difficult to quickly revoke digital certificates after the public key is leaked, resulting in verification delays and potential security risks.
Create and manage certified transactions through the blockchain network, generate and verify digital certificates, revoke and update public keys in a timely manner, and utilize the decentralization and non-tampering characteristics of the blockchain to achieve rapid verification and revocation.
It achieves rapid verification and timely revocation of public keys, reduces digital certificate verification delays and security risks, and avoids the delay problem of certificate authorities maintaining revocation lists.
Smart Images

Figure CN113950801B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to blockchain networks, and more particularly to using blockchain to facilitate public key management for public key infrastructure. Background Art
[0002] In a public key infrastructure, a computing device may have a public-private key pair to facilitate secure communications, digital signatures, non-repudiation, and other functions. As part of a public key infrastructure, a computing device may register its public key with a certification authority, which provides the computing device with a digital certificate confirming ownership and authorization of the public key.
[0003] The problem with using certification authorities is that once they have issued a digital certificate, it remains valid until its specified expiration date. However, the public key may be compromised, necessitating the revocation of the certification. To address this problem, certification authorities maintain "revocation lists" detailing which digital certificates should be considered revoked, and certification authorities regularly update and publish these lists. An entity wishing to verify a public key can rely on a digital certificate, but must also obtain and review the corresponding certificate revocation list to see if the certification authority has invalidated the digital certificate. This system and its inherent delays mean that some digital certificates may be revoked and the revocation may not have been announced to or known to the entities that intended to rely on the digital certificate. Summary of the invention
[0004] In one aspect, a computer-implemented method for managing a public key infrastructure using a blockchain network may be provided. The method may include: generating a digital certificate for a first entity by creating an authentication transaction, the first entity having a first public key, wherein the authentication transaction includes: a digital signature from a certificate authority, a first output to an address based on a second public key, and a second output having an information field including the first public key; determining an authentication transaction identifier from a hash of the authentication transaction; and propagating the authentication transaction on the blockchain network. The digital certificate includes the first public key and the authentication transaction identifier. The authentication transaction does not involve cryptocurrency buying and selling activities.
[0005] In some implementations, the second output includes an OP_RETURN field that includes at least the first public key. In some implementations, the first output includes a pay-to-public-key-hash (P2PKH) operation that references an address obtained as a hash of the second public key. In some implementations, the certificate authority holds a second private key corresponding to the second public key.
[0006] In some implementations, the method may further include: verifying the digital certificate. Verifying the digital certificate may include: obtaining a copy of the authentication transaction from the blockchain based on the authentication transaction identifier in the digital certificate; determining that the first output is an unspent transaction output; and determining that the first public key contained in the second output in the authentication transaction matches the public key in the digital certificate. In some such implementations, the determining that the first output is an unspent transaction output includes: determining that the first output exists in a pool of unspent transaction outputs of the blockchain network. In some such implementations, the input of the authentication transaction may further include a certificate authority public key, and wherein verifying the digital certificate may further include: determining that the authentication transaction is issued by a certificate authority based on the certificate authority public key.
[0007] In some implementations, the method may also include revoking the digital certificate by generating a revocation transaction and propagating the revocation transaction on the blockchain network, the revocation transaction including the first output of the authentication transaction as an input.
[0008] In some implementations, the method may further include: replacing the digital certificate with a new digital certificate for the new public key. The replacement may include: creating a new authentication transaction, wherein the new authentication transaction includes as input a first output of the authentication transaction, a first new output to a new address based on the third public key, and a second new output having an information field, wherein the information field includes the new public key; determining a new authentication transaction identifier based on a hash of the new authentication transaction; and propagating the new authentication transaction on the blockchain network. The new digital certificate may include the new public key and the new authentication transaction identifier.
[0009] In some implementations, this information field is an OP_RETURN output.
[0010] In some implementations, the authentication transaction includes an input referencing an unspent transaction out-point address, the unspent transaction out-point address being obtained from a hash of a certificate authority public key, and wherein the authentication transaction includes an unlocking script for the unspent transaction out-point address, the unlocking script including the certificate authority public key and a digital signature, and wherein the digital signature is generated based on a private key corresponding to the certificate authority public key.
[0011] In some implementations, the first output includes a multi-signature locking script that enables any one of the two or more private keys to utilize the first output.
[0012] In another aspect, the present application describes a computer-implemented method for verifying a digital certificate using a blockchain network. The digital certificate includes a first public key and an authentication transaction identifier. The method may include: receiving a digital certificate from a first entity, and obtaining a copy of an authentication transaction from a blockchain based on the authentication transaction identifier in the digital certificate, wherein the authentication transaction includes: a digital signature from a certificate authority, a first output to an address based on a second public key, and a second output with an information field. The method may also include: determining that the information field contains a public key that matches the first public key in the digital certificate; querying a pool of unspent transaction outputs to determine that the first output in the authentication transaction has not been used in any subsequent transactions; and based on these determinations, verifying that the first public key is authenticated as valid. The authentication transaction does not involve cryptocurrency buying and selling activities.
[0013] In another aspect, a computing device implementing a node in a network may be provided. The computing device may include a memory, one or more processors, and computer executable instructions that, when executed, cause the processor to perform one or more of the methods described herein.
[0014] In yet another aspect, a computer-readable medium storing processor-executable instructions for operating a node in a network may be provided, the processor-executable instructions including instructions that, when executed by one or more processors, cause the processor to perform at least one of the methods described herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Reference will now be made, by way of example, to the accompanying drawings which show example embodiments of the present application, in which:
[0016] Figure 1 An example block structure of a blockchain network is shown;
[0017] Figure 2 A flow chart illustrating an example method of block propagation;
[0018] Figure 3 An example method of verifying a public key is shown in flowchart form; and
[0019] Figure 4 A simplified example of a specialized network node is shown in block diagram form.
[0020] The same reference numbers are used throughout the drawings to represent the same elements and features.
[0021] Specific implementation method
[0022] Other example embodiments of the present disclosure will become apparent to those of ordinary skill in the art by reviewing the following detailed description in conjunction with the accompanying drawings.
[0023] In the present application, the term “and / or” is intended to cover all possible combinations and subcombinations of the listed elements, including any one, any subcombination or all of the elements listed individually, and does not necessarily exclude additional elements.
[0024] In the present application, the phrase "at least one of... or..." is intended to cover any one or more of the listed elements, including any one of the listed elements alone, any subcombination or all elements, without necessarily excluding any additional elements and without necessarily requiring all elements.
[0025] This application will refer to hashing or hash functions, which are intended to include any of a number of cryptographic hash functions that, when applied to an arbitrary set of data or "messages", deterministically produce a unique fixed-length alphanumeric string. The result of a hash function may be referred to as a hash value, fingerprint, hash result, or equivalent. Examples include, but are not limited to, SHA-2, SHA-3, and BLAKE2.
[0026] In this document, the term "blockchain" is understood to include all forms of electronic, computer-based distributed ledgers. These include consensus-based blockchain and transaction chain technologies, permissioned and permissionless ledgers, shared ledgers, and their variations.
[0027] A blockchain is a peer-to-peer electronic ledger implemented using a decentralized, distributed computer system. The blockchain consists of blocks, which in turn consist of transactions. Each transaction is a data structure that encodes, among other possible information, the transfer of control of digital assets between participants in the blockchain system and includes at least one input and at least one output. Each block header contains a summary of the block's contents, for example in the form of a Merkle root, and each block header contains a hash of the previous block header so that blocks are linked together to create a permanent, unchangeable record of all transactions that have been written to the blockchain since its inception. Transactions contain small programs called scripts embedded in their inputs and outputs that specify how and by whom the outputs of the transaction can be accessed.
[0028] Blockchain is implemented on a network of nodes. Each node is a computing device with network connectivity and executing software that executes the applicable blockchain protocol. Nodes validate transactions and propagate them to other nodes in the network. Specialized network nodes collect sets of unconfirmed transactions (i.e., pending transactions) into blocks and attempt to "mine" the blocks. In these examples, mining refers to solving the proof of work (POW) before any other specialized network node in the network successfully solves the proof of work (POW) for its corresponding block. Variations in the mining process are familiar to those of ordinary skill in the art.
[0029] Among the various things checked when validating a transaction, the node determines whether the inputs of the transaction are valid. In particular, the node evaluates whether the unlocking script evaluates to true and determines whether the input references an "unspent transaction output" (UTXO) from an earlier transaction. Some nodes may maintain a running list or UTXO pool so that they can quickly determine whether a referenced transaction output is in UTXO. A transaction can be identified by its unique transaction identifier TxID, which in some implementations is a hash of the transaction. Some transactions may have more than one output, so a unique transaction "output (i.e., out-point)" can be identified by a TxID and an index, where the index points to one of the outputs from the ordered set of outputs from the transaction. If a transaction output is present in the UTXO pool, the output of that transaction is "unspent" and can be used as an input.
[0030] The unlocking script of the transaction output defines how to prove "control" of the output in order to be used. In many cases, the address associated with the transaction output is a hash of the public key. In order to prove control of the output, the unlocking script usually requires a public key and a digital signature generated using the corresponding private key. In this way, the node that controls the private key can control when and how the transaction output is used in any subsequent input. As will be discussed further below, this has the following corollary: when a transaction input corresponding to a particular public key includes a digital signature generated using the corresponding private key, then the entity associated with the particular public key effectively issues or authenticates the transaction content.
[0031] Public key cryptography has become ubiquitous in online communications. In many cases, procedures and policies are needed to provide certainty that a public key is owned by an entity associated with a specific entity. The most common way to ensure that a public key is authentic and has not been leaked is a public key infrastructure (PKI). PKI relies on a trusted third party to "identify" whether a public key is valid. These entities are "certificate authorities" (CAs). CAs provide registration and issuance of digital certificates that confirm the binding between a public key and a specific owner. The holder of a public key provides its public key and its digital certificate to another entity. Then, the other entity can verify the authenticity of the public key by confirming that a trusted CA has digitally signed the public key as belonging to the holder.
[0032] One of the problems with existing PKIs is that sometimes public keys can be compromised, for example, if the private key is lost or disclosed before the specified expiration date of the certificate. To this end, the CA may maintain a certificate revocation list. Thus, any entity that wishes to rely on a certificate associated with a public key must also locate and review the associated certificate revocation list to confirm that the certificate has not been revoked by the CA. This compromises the ability to authenticate keys offline and creates risk due to the delay between revocation and publication of a new certificate revocation list (typically 24 hours or more).
[0033] According to one aspect of the present application, a blockchain network can be used to improve public key infrastructure by providing fast and secure verification, revocation, and renewal of digital certificates. A certificate authority can record a public key on a blockchain in such a way that any third party can quickly and easily verify that the public key is authenticated by the certificate authority and that the authentication has not been revoked. By recording the public key in the manner described below, the certificate authority can revoke the authentication almost immediately, or can certify a new key for the same entity at the same time as revoking the old key. In some cases, the ability to revoke authentication can be given to all parties to the public key, or in some cases, to one other entity or even a group of other entities.
[0034] Now refer to Figure 1 , which diagrammatically illustrates an example system 100 for managing a public key infrastructure. The system 100 in this example includes a first computing device 102, a second computing device 104, and a server 106. The first computing device 102 and the second computing device 104 can be implemented by any network-enabled computing device, including a server, a personal computer, a tablet, a smart phone, a connected car, an Internet of Things device, or any other such device. The server 106 is operated by a certificate authority (CA) and is configured to receive and respond to requests for digital certificates. Although the CA is depicted as being implemented by the server 106, it should be understood that the CA functionality can be implemented by one or more servers or other computing devices.
[0035] The system 100 also includes a blockchain network 108. The blockchain network 108 includes a network of nodes operating according to an applicable blockchain protocol. In some implementations, one or more of the first computing device 102, the second computing device 104, and / or the server 106 may also be nodes in the blockchain network 108, although in this example, for ease of explanation, they are described as nodes separate from the blockchain network 108.
[0036] In this example system 100, a first computing device 102, labeled "Alice", has a public key private key pair for use in asymmetric cryptographic communications. In order to use the public key in certain cryptographic scenarios, Alice may need to have a corresponding digital certificate that identifies the public key and its association with Alice. Therefore, in operation 110, Alice sends the public key PK A The CA may perform some level of authentication to ensure Alice's identity as the owner of the public key. In some cases, the identity verification (authentication) may be an automated online operation performed by server 106 based on the data provided in operation 110. In some cases, the identity verification may also or alternatively include an offline identity verification operation. Two-factor authentication and other such techniques may be employed.
[0037] Once the CA determines that the public key PK A After authentication, it generates a blockchain transaction, the “Authentication Transaction” (CTX), which includes the public key PK A and is issued by the CA. The certified transaction also includes an output controlled by the CA. As indicated in operation 112, the transaction is submitted to the blockchain network 108. Then in operation 114, the CA provides Alice with the certified transaction identifier TxID CTX _ PKA In some implementations, Alice can obtain a copy of the authentication transaction from the blockchain network 108 based on the transaction identifier to confirm that it is as expected and contains the public key PK A .
[0038] Transaction Identifier TxID CTX _ PKA With public key PK A Together, they effectively form Alice's digital certificate. In conjunction with some communications with the second communication device 104 (labeled "Bob" in this example), Alice can send her digital certificate to Bob in operation 116. Bob is then able to authenticate the public key PK based on the blockchain maintained by the blockchain network 108. A and verify that the certification has not been revoked.
[0039] In particular, in operations 118 and 120, Bob can request and receive a copy of the authentication transaction. From the authentication transaction, Bob can verify that it contains Alice's purported public key PK A, and it has been issued by a trusted certification authority. Bob can also verify that the certification has not been revoked by querying whether the transaction output controlled by the CA remains "unspent" (i.e., the transaction output point exists in the UTXO pool 130 of the blockchain network 108), as shown in operations 122 and 124. The UTXO pool 130 is a pool of "unspent" transaction output points maintained by any one of the multiple nodes of the blockchain network 108.
[0040] Now refer to Figure 2 , which shows in flowchart form an example method 200 for registering a public key with a certification authority. The example method 200 is implemented by an authorized certification authority and may be implemented by one or more servers that are appropriately programmed to perform the described functions.
[0041] In operation 202, the certification authority receives the public key PK from Alice. A 206. The authentication transaction includes an input (which includes the public key of the authentication authority and a digital signature from the authentication authority), an output controlled by the authentication authority, and a public key PK. A As a specific example, the input may be a UTXO of some nominal or arbitrary value for which the certification authority has a private key that is used to generate a signature in a valid unlocking script. The UTXO may be associated with sufficient digital value to offset any transaction fees incurred in mining the certification transaction.
[0042] The authentication transaction may include two outputs: the first output is based on the CA public key PK selected and controlled by the authentication authority CTX_PKA , and the second output contains the public key PK in the non-operational information field, for example A OP_RETURN is actually an output, and once a transaction is mined, arbitrary data can be put into this output to be recorded on the blockchain.
[0043] For example, the first output may be a P2PKH (payment to public key hash) operation, which specifies a transfer to a public key hash selected and controlled by a certification authority.
[0044] The certification authority authorizes the input of UTXO into the transaction through its digital signature in the transaction, thereby satisfying the unlocking script, and provides that the certification authority has proved the public key PKA Verifiable evidence that appears in an OP_RETURN output. Note that in some implementations, additional information (e.g., a digital signature from Alice or other such data) may appear in the OP_RETURN output field.
[0045] Once the authentication transaction has been created, in operation 208, the authentication authority hashes the transaction to find the transaction identifier TxID CTX _ PKA , and the certification authority propagates the transaction on the blockchain network as indicated by operation 210. It should be understood that "propagating" a transaction includes submitting the transaction to a node of the blockchain network, validating the transaction there, and then transmitting the transaction to all other nodes, which in turn validate and retransmit until the transaction reaches substantially all nodes in the network. In some embodiments, the certification authority itself is one of the nodes in the blockchain network.
[0046] In operation 212, the certification authority waits for the mining of a block containing the certification transaction, i.e., the "confirmation" of the transaction, and then in operation 214 sends the transaction identifier TxID CTX _ PKA In some implementations, the certification authority may provide Alice with a transaction identifier before the transaction is mined.
[0047] Alice can then provide any third party with Alice's public key PK A and certificate transaction identifier TxID CTX _ PKA Thus, a third party can verify that Alice's public key is authenticated by the CA.
[0048] A simplified example of an authentication transaction is shown below:
[0049]
[0050] It should be noted that the unlocking script for the input includes the public key of the certification authority and the signature generated by the certification authority. Alice's public key PK A Appears in the OP_RETURN field as the second output. The first output is any public key hash controlled by the certification authority.
[0051] Reference now Figure 3 , which illustrates an example method 300 for verifying a public key. The operations described in the example method 300 may be performed by a computing device that attempts to use Figure 2 The process illustrated in is used to verify a public key that is claimed to be authenticated. Example computing devices include any network-enabled computing device.
[0052] The method 300 includes, at operation 302, receiving another entity (eg, a first computing device 102 (labeled as “Alice”) Figure 1 )) digital certificate. The digital certificate at least includes the public key PK A and authentication transaction identifier TxID CTX _ PKA In operation 304, an authentication transaction is obtained from the blockchain network using the authentication transaction identifier. It should be understood that the authentication transaction may be obtained from a copy of the blockchain, whether local to the computing device or maintained by a node in the blockchain network. In the unlikely event that the transaction has not yet been confirmed (i.e., is not yet in a mined block), then the transaction may exist in a pool of unconfirmed transactions; however, in many implementations, the authentication authority may only provide Alice with the authentication transaction identifier after the authentication transaction has been mined.
[0053] Based on the authentication transaction, the computing device may verify certain things. In particular, in operation 306, the computing device may verify whether the authentication transaction was issued by a certification authority. The computing device may have or have access to a list of identified or recognized certification authorities and their corresponding public keys, which may enable the computing device to verify the digital signature. As described, the digital signature may form part of the input to the authentication transaction. By confirming that the authentication transaction was issued by a trusted or identified certification authority, the computing device is able to confirm that the authentication is legitimate. Note that if the transaction is on a blockchain, the computing device does not necessarily need to verify the digital signature in the input, as it has been confirmed and verified by a dedicated network node. Instead, the computing device may simply verify that the public key identified in the input is associated with the certification authority.
[0054] As shown in operation 308, the computing device may also verify that one of the output points of the authentication transaction remains "unspent" (i.e., the output point is found in the UTXO pool). This verification operation confirms that the authentication remains valid and has not been revoked. As described above, in most embodiments (alternatives are described below), the output point is controlled by the certification authority, which enables the certification authority to cancel the authentication when the key is leaked, expired, or otherwise no longer valid. Revocation or cancellation is easily facilitated by having the certification authority "spend" the output point, thereby removing the output point from the UTXO pool. Confirmation of whether the output point exists in the UTXO pool can be performed by, for example, querying the UTXO pool based on the TxID number and the output index. In some examples, the computing device can query the UTXO pool through an intermediary (e.g., a node of a blockchain network).
[0055] In operation 310, the computing device confirms the public key PK in the second output of the authentication transaction A The public key PK received from Alice as part of the digital certificate A match.
[0056] If operations 306, 308, and 310 are all confirmed, then in operation 312, the computing device determines the public key PK in the digital certificate received from Alice. A is effective.
[0057] By using a blockchain network to record public key certifications, a certification authority is able to quickly and easily revoke certification by "spending" an output point, causing the verification at operation 308 to fail. Thus, a certification authority can revoke certification for a public key by generating and propagating a transaction that uses the first output of the certification transaction. As described above, the first output can be a P2PKH operation that transfers a nominal digital asset to a public key hash address specified in the first output. In these examples, the unlocking script for this first output may require a digital signature from the certification authority, which requires control of the CA public key PK corresponding to the CA used in the P2PKH operation. CTX_PKA The private key of
[0058] In some cases, the certification authority may not simply revoke the certification, but may be required to replace / update the certified public key. For example, if the private key is lost or compromised, then the owner (e.g., Alice) can request that the certification authority replace the certified public key with a new public key PK. A_new Update or replace a previously certified public key. The certification authority authenticates the request using any online or offline authentication mechanisms in place, and if it determines that an update operation is to be performed, it creates a new certification transaction CTX new to revoke the old certification and issue a new one.
[0059] The new authentication transaction has the same type of output (i.e., a P2PKH operation using a new public key chosen by the CA), e.g., PK CTX_new and contains PK A_new However, the input may include the TxID from the original authentication transaction. CTX _ PKA An output point controlled by a CA. Revocation is achieved by removing the output point from the UXTO pool by "spending" that output as input to a new certification transaction. Advantageously, revocation of the old public key certification and registration of the new public key certification occurs in a single transaction. Furthermore, the certification authority does not need to maintain a separate, periodically published list of certificate revocations, nor does it need to make that list available to the certification authority.
[0060] As described above, in many cases, the first output point of an authentication transaction may be controlled by a certification authority such that only the certification authority can revoke the certification of a public key. Revocation is based on "spending" the first output point using the private key corresponding to that output point. However, in some cases, it may be advantageous to structure the authentication transaction to allow other entities to revoke the authentication.
[0061] For example, in some cases, the owner of the public key (e.g., Alice) may have the right to revoke her own public key. In this arrangement, the first output point in the certificate transaction is controlled by Alice, that is, the public key (public key hash) corresponding to the private key owned by Alice is referenced. That is, the unlocking script of the first output point requires a digital signature from Alice. This arrangement may be beneficial to certain public key authentication scenarios, such as registration of online services. An example of an online service is a social media account on a social media platform. The platform can use the above mechanism to register the user's public key for use by the platform, so that the user can interact with the platform and / or other users of the platform on a trusted basis because their digital certificates are backed up through the authentication transaction. Then, the user is able to revoke the authentication to terminate his account without the cooperation of the platform.
[0062] In another scenario, more than one output point may be provided, one of which may be "spent" in order to terminate the authentication. In this case, the third party is configured to test whether two (or all) such output points of the authentication transaction exist in the UTXO pool as unspent transaction outputs.
[0063] Alternatively, if you want to facilitate revocation from any of multiple parties, the first output can be configured to use multiple signatures, i.e., any one of the multiple signatures can be used to "spend" the output. To this end, multiple signatures can be used in the output.
[0064] In yet another scenario, the multi-signature may be configured to ensure that at least a threshold number of entities agree to revoke the certification. The multi-signature may be configured to require n signatures out of m signatures to unlock the output, where n≤m. For example, in the case of an institution (e.g., a business, partnership, or other such collection of individuals), the certified public key associated with the institution is revocable only if all or at least a threshold number of certain entities (e.g., the Chief Executive Officer (CEO), Chief Operating Officer (COO), Chief Technology Officer (CTO), or other executives or individuals involved in the business) issue the revocation.
[0065] It should be understood that some or all of the above-described operations of the various above-described example methods may be performed in an order different than that shown and / or may be performed simultaneously without changing the overall operation of those methods.
[0066] Reference now Figure 4 , which shows a simplified computing device 400 according to an example of the present application in block diagram form. The computing device 400 can perform one or more of the above functions. In this sense, in some implementations, it can be used as the first computing device 102 ( Figure 1 )、Second computing device 104( Figure 1 ) or server 106( Figure 1 ).
[0067] The computing device 400 includes a processor 402, which may include one or more microprocessors, application specific integrated circuits (ASICs), microcontrollers, or similar computer processing devices. The computing device 400 may also include a memory 404 and a network interface 406, the memory 404 may include persistent and non-persistent memory to store values, variables, and in some cases processor executable program instructions.
[0068] Computing device 400 may include processor-executable applications 408 that contain processor-executable instructions that, when executed, cause processor 402 to perform one or more functions or operations described herein.
[0069] The various embodiments presented above are merely examples and are by no means meant to limit the scope of the present application. The changes in the innovations described herein will be apparent to those of ordinary skill in the art, and such changes are within the intended scope of the present application. In particular, features from one or more of the above-described example embodiments may be selected to create alternative example embodiments, which include sub-combinations of features that may not be explicitly described above. In addition, features may be selected from one or more of the above-described example embodiments and combined to create alternative example embodiments, which include combinations of features that may not be explicitly described above. Those skilled in the art will readily appreciate the features that are suitable for such combinations and sub-combinations when reviewing the present application as a whole. The subject matter described herein and in the claims cited is intended to encompass and include all suitable technical changes.
Claims
1. A computer-implemented method for managing a public key infrastructure using a blockchain network, comprising: At a certificate authority, a digital certificate is generated for a first entity, the first entity having a first public key, by: creating an authentication transaction, wherein the authentication transaction includes a digital signature from the certificate authority, a first output to an address based on a second public key, and a second output having an information field including the first public key; determining an authentication transaction identifier from a hash of the authentication transaction; and Propagating said authentication transaction on said blockchain network, wherein the digital certificate includes the first public key and the authentication transaction identifier, and The method further comprises: At the computing device, the digital certificate is verified by: obtaining a copy of the authentication transaction from a blockchain based on an authentication transaction identifier in the digital certificate; determining that the first output is an unspent transaction output; and determining that a first public key included in a second output in the authentication transaction matches a public key in the digital certificate, The authentication transaction does not involve cryptocurrency trading activities.
2. The method according to claim 1, wherein The second output includes an OP_RETURN field, and the OP_RETURN field includes at least the first public key.
3. The method according to claim 1 or claim 2, wherein: The first output comprises a payment-to-public-key-hash (P2PKH) operation referencing an address obtained as a hash of the second public key.
4. The method according to any one of claims 1 to 2, wherein The certificate authority holds a second private key corresponding to the second public key.
5. The method according to claim 1, wherein Determining that the first output is an unspent transaction output includes determining that the first output exists in an unspent transaction output pool of the blockchain network.
6. The method according to any one of claims 1 to 2, wherein The input to the authentication transaction further includes a certificate authority public key, and wherein verifying the digital certificate further comprises determining, based on the certificate authority public key, that the authentication transaction was signed by the certificate authority.
7. The method according to any one of claims 1 to 2, further comprising: The digital certificate is revoked by generating a revocation transaction and propagating the revocation transaction on the blockchain network, the revocation transaction including the first output of the authentication transaction as input.
8. The method according to any one of claims 1 to 2, further comprising: Replace the digital certificate with a new one for the new public key by: creating a new authentication transaction, wherein the new authentication transaction includes as input the first output of the authentication transaction, a first new output to a new address based on a third public key, and a second new output having the information field, wherein the information field contains the new public key; determining a new authentication transaction identifier from a hash of the new authentication transaction; and Propagate the new authentication transaction on the blockchain network, The new digital certificate includes the new public key and the new authentication transaction identifier.
9. The method according to any one of claims 1 to 2, wherein: The information field is an OP_RETURN output.
10. The method according to any one of claims 1 to 2, wherein: The authentication transaction includes an input referencing an unspent transaction output address, the unspent transaction output address being obtained from a hash of a certificate authority public key, and wherein the authentication transaction includes an unlocking script for the unspent transaction output address, the unlocking script including the certificate authority public key and the digital signature, and wherein the digital signature is generated based on a private key corresponding to the certificate authority public key.
11. The method according to any one of claims 1 to 2, wherein: The first output includes a multi-signature locking script that enables any one of two or more private keys to utilize the first output.
12. A computing device for managing a public key infrastructure using a blockchain network, the computing device comprising: one or more processors; Memory; Computer executable instructions stored in the memory, when executed by the one or more processors, cause the processors to perform the method according to any one of claims 1 to 11.
13. A computer-readable medium storing processor-executable instructions for managing a public key infrastructure using a blockchain network, the processor-executable instructions comprising instructions that, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 11.
14. A computer-implemented method for verifying a digital certificate using a blockchain network, the digital certificate comprising a first public key and an authentication transaction identifier, the method comprising: receiving the digital certificate from the first entity; obtaining a copy of an authentication transaction from a blockchain based on an authentication transaction identifier in the digital certificate, wherein the authentication transaction includes a digital signature from a certificate authority, a first output to an address based on a second public key, and a second output having an information field; determining that the information field contains a public key that matches a first public key in the digital certificate; Querying the pool of unspent transaction outputs to determine that the first output in the authenticated transaction has not been spent in any subsequent transaction; and Based on the above two determinations, verify that the first public key is authenticated and valid, The authentication transaction does not involve cryptocurrency trading activities.
