Contents
Merkle signature scheme
In hash-based cryptography, the Merkle signature scheme is a digital signature scheme based on Merkle trees (also called hash trees) and one-time signatures such as the Lamport signature scheme. It was developed by Ralph Merkle in the late 1970s and is an alternative to traditional digital signatures such as the Digital Signature Algorithm or RSA. NIST has approved specific variants of the Merkle signature scheme in 2020. An advantage of the Merkle signature scheme is that it is believed to be resistant against attacks by quantum computers. The traditional public key algorithms, such as RSA and ElGamal would become insecure if an effective quantum computer could be built (due to Shor's algorithm). The Merkle signature scheme, however, only depends on the existence of secure hash functions. This makes the Merkle signature scheme very adjustable and resistant to quantum computer-based attacks. The Merkle signature is a one time signature with finite signing potential. The work of Moni Naor and Moti Yung on signature based one-way permutations and functions (and the invention of universal one-way hash functions) gives a way to extend a Merkle-like signature to a complete signature scheme.
Key generation
The Merkle signature scheme can be used to sign a limited number of messages with one public key \text{pub}. The number of possible messages must be a power of two, so we denote the possible number of messages as N = 2^n. The first step of generating the public key \text{pub} is to generate N private/public key pairs (X_i, Y_i) of some one-time signature scheme (such as the Lamport signature scheme). For each, a hash value of the public key is computed. With these hash values h_i a hash tree is built, by placing these 2^n hash values as leaves and recursively hashing to form a binary tree. Let a_{i,j} denote the node in the tree with height i and left-right position j. Then, the hash values are the leaves. The value for each inner node of the tree is the hash of the concatenation of its two children. For example, and. In this way, a tree with 2^n leaves and 2^{n+1} - 1 nodes is built. The private key of the Merkle signature scheme is the entire set of (X_i, Y_i) pairs. A shortcoming with the scheme is that the size of the private key scales linearly with the number of messages to be sent. The public key \text{pub} is the root of the tree, a_{n,0}. The individual public keys Y_i can be made public without breaking security. However, they are not needed in the public key, so they can be kept secret to minimize the size of the public key.
Signature generation
To sign a message M with the Merkle signature scheme, the signer picks a key pair (X_i, Y_i), signs the message using the one-time signature scheme, and then adds additional information to prove that the key pair used was one of the original key pairs (rather than one newly generated by a forger). First, the signer chooses a (X_i, Y_i) pair which had not previously been used to sign any other message, and uses the one-time signature scheme to sign the message, resulting in a signature \text{sig}' and corresponding public key Y_i. To prove to the message verifier that (X_i, Y_i) was in fact one of the original key pairs, the signer simply includes intermediate nodes of the Merkle tree so that the verifier can verify was used to compute the public key a_{n,0} at the root of the tree. The path in the hash tree from a_{0,i} to the root is n + 1 nodes long. Call the nodes, with being a leaf and being the root. A_i is a child of A_{i+1}. To let the verifier calculate the next node A_{i+1} given the previous, they need to know the other child of A_{i+1}, the sibling node of A_i. We call this node, so that. Hence, n nodes are needed, to reconstruct from. An example of an authentication path is illustrated in the figure on the right. Together, the nodes, the Y_i, and the one-time signature \text{sig}' constitute a signature of M using the Merkle signature scheme:. Note that when using the Lamport signature scheme as the one-time signature scheme, \text{sig}' contains a part of the private key X_i.
Signature verification
The receiver knows the public key \text{pub}, the message M, and the signature. First, the receiver verifies the one-time signature \text{sig}' of the message M using the one-time signature public key Y_i. If \text{sig}' is a valid signature of M, the receiver computes by hashing the public key of the one-time signature. For, the nodes of A_j of the path are computed with. If A_n equals the public key \text{pub} of the Merkle signature scheme, the signature is valid.
This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.
Wikipedia® is a registered trademark of the
Wikimedia Foundation, Inc.
Bliptext is not
affiliated with or endorsed by Wikipedia or the
Wikimedia Foundation.