Generate a digital signature share
By using hierarchical deterministic wallets and ephemeral keys, the method ensures that participants can prove their contribution to signature generation, addressing the lack of accountability in threshold signature schemes.
Patent Information
- Application Number
- JP2024508061
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-09
- Filing Date
- 2022-07-11
- Publication Date
- 2024-09-10
AI Technical Summary
Threshold signature schemes do not provide a way to determine which participant created a given signature, resulting in identical signatures regardless of the shares used, lacking accountability.
A method involving hierarchical deterministic wallets and ephemeral keys, where participants generate signature shares using a shared private key structure, ensuring each participant's unique contribution is traceable through a hash-based index, allowing proof of participation.
Enables participants to prove their contribution to the signature generation, enhancing accountability and security by ensuring only a threshold number of participants can create valid signatures.
Smart Images

Figure 00000000_0000
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a method for generating shares of digital signatures, in particular, the method allows a participant to self-certify that he or she generated a share of a digital signature. [Background technology]
[0002] In general, a shared secret may be used to share a data item that is distributed among a group of participants. Each participant has a different share of the secret. Typically, the secret can be reconstructed only when a certain number of participants (called a "threshold") make their respective shares available to be combined together, e.g., to compute the secret.
[0003] Public key cryptography is a type of cryptosystem that uses a key pair: a private key known only to its owner, and a public key that is generated based on the corresponding private key and may be disseminated without compromising the security of the private key.
[0004] Public key cryptography allows a sender to encrypt a message using the recipient's public key (i.e., the public key that corresponds to a private key known only to the recipient), and the encrypted message can only be decrypted using the recipient's private key.
[0005] Similarly, a sender may sign a message using his / her private key, for example, to prove that the message was sent by the sender and / or to indicate that the sender agrees with the message. The signer (i.e., the person generating the signature) creates a digital signature based on the message using his / her private key. Creating a digital signature based on a message means feeding the message and the private key to a function that generates a signature based on both the message and the private key. The signature is appended to the message (e.g., tagged to the message) or otherwise associated with the message. Anyone who has the signer's corresponding public key can use the same message and the digital signature on the message to verify whether the signature was validly created, i.e., whether the signature was really created using the signer's private key. In addition to ensuring the authenticity of the message, a digital signature also ensures the integrity and non-repudiation of the message. That is, a digital signature may be used to prove that the message has not been altered since it was signed and that the creator of the signature cannot deny in the future that they created the signature.
[0006] A digital signature scheme typically involves three steps, or algorithms: a key generation algorithm is used to generate a random private key and a corresponding public key; a signing algorithm is used to generate a signature based on a message and the private key; and a verification algorithm is used to verify whether a signature was generated according to the signing algorithm using the corresponding private key, given a public key and a message.
[0007] A common use of a shared secret is as the shared private key of a private-public key pair. That is, the private key may be distributed among a group of participants such that no single participant has access to the private key. Thus, no single participant can generate a valid signature of a message. Instead, some or all of the participants must generate the private key together in order for a signature to be generated.
[0008] Rather than participants sharing their private key shares to generate a signature, participants may instead use a threshold signature scheme. A threshold signature scheme allows a threshold number of participants in a group to create a digital signature based on a message using individual shares of a shared private key, without the private key being made available to any one participant. Here, the digital signature is a signature generated based on the message to be signed. In such a scheme, a signature can only be generated if a threshold number of participants agree to generate a signature on the message. Any attempt to generate a signature using a smaller number of participants will not generate a valid signature. Thus, a valid signature by a group (i.e., a signature generated using the message and the shared private key) clearly has a threshold number of people agreeing to generate the signature. This also implies that any adversary would need to obtain a threshold number of shares of the private key to forge a signature with that private key. Summary of the Invention [Problem to be solved by the invention]
[0009] As mentioned above, threshold signature schemes require participants to contribute their respective signature shares in order to generate a valid signature. A valid signature proves that at least the threshold number of participants contributed signature shares, but does not prove which participants in the group contributed their signature shares. In other words, in a threshold signature scheme, there is no way to identify who created a given signature, and the resulting signature will always be the same no matter which shares were used to create that signature. Therefore, there is a need for a threshold signature scheme that allows a signer (i.e., a participant who contributed a signature) to be able to prove that he or she truly contributed a signature share. [Means for solving the problem]
[0010] According to one aspect disclosed herein, there is provided a computer-implemented method for generating respective signature shares of a digital signature for signing a message, wherein each participant of a group of participants has i) a respective private key share of a shared private key that can only be generated with at least a threshold number of respective private key shares, ii) a respective ephemeral private key share of a shared ephemeral private key, iii) a first coordinate of a temporary public key corresponding to the shared ephemeral private key, and iv) a first common private key of a first hierarchical key structure, each participant being associated with a respective participant index, the method being performed by a first participant of the group, the method comprising the steps of: obtaining at least the threshold number of respective participant indices, the obtained respective participant index being a first shared participant index associated with the first participant; The method includes the steps of: generating a private key index, the private key index being generated based on a hash of a combination of the obtained respective participant indexes; generating a second common private key of the first hierarchical key structure, the second common private key being generated based on the first common private key and a first hash value, the first hash value being generated by inputting at least a) the first common private key or a corresponding public key and b) the private key index into a hash function; and generating a first signature share of a digital signature, the first signature share being generated based on the first temporary key share, the message, the second common private key, a first coordinate of the temporary public key, and the first private key share.
[0011] A key structure, of which a hierarchical deterministic (HD) wallet is an example, is a collection of deterministically linked private keys, with at least some of the keys associated with different levels and positions in the hierarchical structure. For example, a master private key is at the top of the hierarchy (i.e., level 0) and one or more child keys are at the next level (i.e., level 1). Each child key at level 1 is linked to the master private key. Each child key at level 1 may be linked to one or more respective sets of child keys at level 2. Thus, while being a child of the master key, a child key at level 1 may also be a parent to a child key at level 2. It will be understood that an HD wallet may include any number of levels and keys. Each child key in the key structure is generated based on a parent key and an index (referred to herein as a "private key index" or "key index"). Each child key may also be generated based on additional data, such as, for example, a chain code of the parent key. Chain codes themselves are known in the art.
[0012] An embodiment of the present invention requires that each participant contributing a signature share generates the same child private key of the same key structure, and each participant's respective signature share is generated using that same child private key. Each participant is associated with a respective participant index. A key index for the child private key is generated based on the respective participant index for each participant contributing a signature share. For example, if participants 1, 3, and 5 (intend to) contribute a signature share, then the key index for the child private key is generated based on participant indexes 1, 3, and 5. The key index is generated by hashing a combination (e.g., the sum or concatenation) of the participant indexes.
[0013] Each signature share is also generated based on a respective share of the shared private key. Thus, the shared private key is used to implement the threshold aspect of the threshold scheme. As described, the signature key (i.e., the private key corresponding to the signature) is based on the shared private key (not accessible to any individual participant) and a child private key common to each participant. A participant (the "attesting party") can prove to the verifying party that the common child private key was generated using a key index based on the attesting party's respective participant index. Thus, the attesting party can identify itself as the signing party. This can be used to prevent other participants from falsely claiming that they contributed to the signature or that the attesting party did not contribute to the signature.
[0014] To facilitate an understanding of embodiments of the present disclosure and to show how such embodiments may be put into effect, reference is made by way of example only to the accompanying drawings, in which: [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 is a schematic block diagram of a system for implementing an embodiment of the present invention. [Diagram 2] FIG. 2 is a schematic representation of a hierarchical deterministic key structure. [Diagram 3] 1 is a flow chart illustrating an exemplary embodiment of the present invention. [Figure 4] 4 is a flow diagram illustrating an exemplary signature generation method according to some embodiments of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] 1. Cryptography background Although the following examples are described in terms of elliptic curve cryptography, the invention is not limited to any one particular cryptography scheme and may be applied generally to any cryptography scheme, e.g., RSA or other public key cryptography schemes.
[0017] 1.1 Elliptic Curve Groups An elliptic curve E is given by the formula y 2 = x 3 + ax + b mod p where
[0018]
number
[0019] and a and b are 4a 3 + 27b 2 A constant ≠ 0. A group on this elliptic curve is defined as the set of elements (x, y) that satisfy this equation, with the identity point O at infinity. The group operation on the elements of this group is called elliptic curve point addition, denoted by +. This group is
[0020]
number
[0021] and its order is denoted by n.
[0022] This group operation can be used to define another operation on elements called point multiplication, denoted by ·.
[0023]
number
[0024] and scalar
[0025]
number
[0026] For , the point k·G is defined to be the point G added to itself k times.
[0027] In elliptic curve cryptography, the private key is a scalar
[0028]
number
[0029] is defined as:
[0030]
number
[0031] is the notation for the set {1, ..., n-1}, and the corresponding public key is a point k · G on an elliptic curve. For example, in some blockchain protocols, the elliptic curve is chosen to be the secp256k1 elliptic curve, and the values a, b, and p are fully specified by this elliptic curve. The order n of this group is calculated given these values, which is prime in the case of this curve, and the secp256k1 standard also specifies the point G that should be used as a generator of this group.
[0032] 1.2 Elliptic Curve Digital Signature Algorithm To create a signature for a message msg with private key a, the following steps are taken: 1. Compute the message digest e = hash(msg), where hash can be any hash function. For example, in some examples, hash(msg) = SHA256(SHA256(msg)), where SHA256 (solid squares) is the SHA-256 hash function. Note that instead, the message may be hashed only once, or may be hashed three or more times with the same or different hash functions. 2. Choose a random integer k ∈ {1, ..., n-1}, where n is the order of the elliptic curve, e.g., the secp256k1 curve. In the following, k is called the ephemeral private key. 3. The temporary public key k G = (R x , R y ) to calculate 4. r = R x Calculate r mod n. If r = 0, go back to step 2. 5. Multiplicative inverse of the temporary key k -1 Calculate the square root of n. 6. s = k -1 Calculate (e + ar) mod n. If s = 0, go back to step 2. 7. The signature of the message msg is (r, s).
[0033] The ephemeral key is kept secret; otherwise, given the message and the signature, the private key can be calculated. Furthermore, a different ephemeral key must be used each time a signature is generated; otherwise, given two different signatures and their corresponding messages, it would be possible to derive the private key a.
[0034] Given a message msg, a public key P = a G, and the corresponding signature (r, s), we can verify the signature by completing the following steps: 1. Compute the message digest e = hash(msg), for example, e = SHA256(SHA256(msg)). 2. Multiplicative inverse s of s -1 Calculate modulo n. 3. j1= es -1 mod n and j2 = rs -1 Calculate the square root of n. 4. Calculate the point Q = j1 G + j2 P. 5. If Q = O (point at infinity), the signature is invalid. 6. If Q ≠ O, then Q := (Q x , Q y ), and u = Q x Compute mod n. If u = r, the signature is valid.
[0035] In a threshold signature scheme, this private key a is divided into key shares that are distributed among participants in a threshold signature group.
[0036] 1.3 Joint Verifiable Random Secret Sharing Suppose N participants want to create a joint secret that can be regenerated in a scheme only by at least (t + 1) of the participants. To create the shared secret, the following steps are taken: 1. Participants agree on a unique label for each participant, i. Each participant, i, receives (t + 1) random numbers.
[0037]
number
[0038] where ∈ R is a set
[0039]
number
[0040] means a randomly generated element of , where
[0041]
number
[0042] is the notation for the set {1, ..., n-1}. Then, each participant has a secret polynomial of degree t for i = 1, ..., N. f i (x) = a i0 + a i1 x + + a it x t mod n Note that from now on we will omit the mod n notation and assume that all arithmetic operations on integers are done modulo n. 2. Each participant i sends f to participant j using a secure communication channel only with j. i (j) is transmitted. 3. Each participant i obtains his / her private secret share of the shared secret polynomial.
[0043]
number
[0044] Calculate as follows.
[0045] The shared secret share is (i, a i ) where i is the label of a participant in the scheme. This method for creating a secret share a as described in steps 1-3 is referred to herein as a i = JVRSS(i). Note that JVRSS usually stands for "Joint verification random secret sharing" and also includes steps 4 and 5. However, throughout this specification JVRSS is taken to mean performing at least steps 1 to 3, with steps 4 and 5 being optional steps.
[0046] Now that the participants have generated a shared polynomial, they can each verify that the other participants have shared the correct information with all participants and that all participants have the same shared polynomial. This is done in the following way. 4. Each participant i calculates the obfuscated coefficients for k = 0, ..., t. a ik G Broadcast to all participants. 5. Each participant i has f j (i) Calculate G,
[0047]
number
[0048] Each participant j can find the polynomial point f by verifying that j Check that you have calculated (i) correctly. If all participants find this to be true for each polynomial, then the group can be collectively confident that they all created the same shared polynomial.
[0049] 1.4 Reconstructing the Shared Secret Suppose a participant wishes to reconstruct a shared secret a, which is the zeroth degree of a shared polynomial. (1, a1), ..., ((t + 1), a t+1 ) Given (t + 1) points on this polynomial of the form
[0050]
number
[0051] Calculate.
[0052] 1.5 Public Key Calculation Public keys a of coefficients of N private polynomials of degree 0 for j = 1, ..., N, shared in step 4 of JVRSS j0 Given G, each participant has a shared secret a corresponding to
[0053]
number
[0054] to compute the shared public key P.
[0055] 1.6 Shared Secret Addition To compute the addition of two shared secrets shared within a group of N participants, where each secret polynomial has degree t, without anyone knowing the individual secrets, the following steps are taken: 1. Generate a first shared secret a, where participant i’s share is a for i = 1, ..., N at threshold (t + 1). i = JVRSS(i). 2. Generate a second shared secret b, where participant i’s share is the threshold (t + 1), b i = JVRSS(i). 3. Each participant i determines his / her additive share ν i = a i + b i mod n Calculate. 4. Every participant contributes his / her additive share ν i to all other participants. 5. Each participant interpolates at least (t + 1) of the shares ν = interpolate(ν1, ...,ν t+1 ) = a + b Calculate. This method for adding shared secrets is denoted by ADDSS(i) for participant i, and as a result, each participant i knows v = (a + b).
[0056] 1.7 Multiplication of Shared Secrets To compute the product of two shared secrets that are both shared within a group of N participants, where each secret polynomial has degree t, the group takes the following steps. 1. Generate a first shared secret a, where participant i’s share is a for i = 1, ..., N. i= JVRSS(i). The shared secret polynomial has degree t, i.e., (t + 1) participants are required to recreate the shared secret polynomial. 2. Generate a second shared secret b, where participant i’s share is b i = JVRSS(i), and the shared secret polynomial also has degree t. 3. Each participant: μ i = a i b i Use your multiplicative share μ i Calculate. 4. Every participant receives his / her multiplicative share μ i to all other participants. 5. Each participant has a share of 0 μ i Interpolate at least (2t + 1) of μ = interpolate(μ i , ...,μ 2t+1 ) = ab Calculate. This method for computing the product of two shared secrets is denoted herein by μ=ab=PROSS(i), for participant i.
[0057] 1.8 Inverse of a Shared Secret To compute the inverse of the shared secret a, the following steps are taken: 1. All participants compute the product PROSS(i) of their shared secrets, the result of which is μ = ab mod n. 2. Each participant computes the modular inverse of μ, which is μ -1 = (a b ) -1 mod n It becomes. 3. Each participant i sends his / her inverse secret share
[0058]
number
[0059] This is calculated by: This method for computing the inverse of the shared secret is
[0060]
number
[0061] As shown by:
[0062] 1.9 Generating and Verifying a Shared Secret Key To compute a shared private key a among N ≥ 2t + 1 participants (of which t + 1 are required to create a signature), the participants perform a threshold t + 1 JVRSS and public key computation as described above. As a result, every participant i = 1, ..., N has a private key share a i and the corresponding shared public key P = (a·G).
[0063] 1.10 Generation of Ephemeral Key Shares To generate the ephemeral key shares and the corresponding r needed for signing, a group of size N using a shared secret key a of threshold (t + 1) performs the following steps: 1. Inverse share of a shared secret
[0064]
number
[0065] where (t + 1) shares are needed to recreate it. 2. Each participant has k i Using the shared obfuscated coefficients in the verification of
[0066]
number
[0067] Calculate, and then, r = x mod n Calculate. 3. Each participant i:
[0068]
number
[0069] Memorize.
[0070] 1.11 Non-optimal signature generation Suppose that at least 2t + 1 participants wish to create a signature for a message, and one of the participants chooses to coordinate this. To create a signature by the group with a shared private key a, the following steps are taken: 1. The coordinator asks at least 2t + 1 participants to sign the message. 2. Each participant i receives the ephemeral key calculated in the previous section.
[0071]
number
[0072] All users must use shares that correspond to the same temporary key. 3. Each participant computes the message digest e = SHA-256(SHA-256(message)). 4. Each participant i receives his / her signature share s i , i.e.
[0073]
number
[0074] Calculate where a i is the participant's private key share. 5. Each participant calculates his / her signature share (r, s i ) to the coordinator. 6. When the coordinator receives 2t + 1 signature shares, s = interpolate(s1, ..., s 2t+1 ) Calculate the signature (r, s) and output it as (r, s). 7. The coordinator verifies the signature using standard ECDSA verification. If this fails, then at least one of the shares must be incorrect and the signature generation algorithm should be run again.
[0075] 1.12 Secret Addition with Different Thresholds For secret addition of orders t and t', the addition of two secrets requires max(t, t') + 1 shares to compute it. The reason is that the addition step of the shares of the shared secret creates a new polynomial share. This new additive polynomial is equivalent to the result of the addition of the individual polynomials of the two shared secrets. Adding two polynomials is adding the corresponding coefficients of each degree of x. Therefore, the degree of the additive polynomial must be the same as the highest degree of the two polynomials. This can be generalized to the addition of more than two polynomials, where the degree of the resulting polynomial is the same as the degree of the individual polynomial of the highest degree.
[0076] When two secret sums with different thresholds are computed, the security of the secret with the higher threshold is reduced. This is because if we now know the result (a + b) along with the respective thresholds t, t', we can compute a with t shares, assuming t < t', and then compute (a + b) - a = b, and thus the value b was computed with only t shares. This lower threshold is referred to below as the "implicated threshold" of b.
[0077] 1.13 Secret multiplication with different thresholds For two secret multiplications with thresholds t and t', the computation of the multiplication requires t + t' + 1 shares. In this case, the multiplication of the shares of the two polynomials results in a share on a new polynomial. This new polynomial is the result of multiplying the two individual polynomials, and therefore the degree of the result is the sum of the degrees of the two individual polynomials.
[0078] Multiplication can also be generalized to any number of shared secrets, and the resulting threshold is the sum of the individual thresholds plus 1,Σ ρ t ρ + 1, where ρ runs the range of each shared secret.
[0079] As with addition, multiplication of two secrets with different thresholds results in an implicit threshold for the secret with a higher threshold. As before, if ab is known, where a has threshold t and b has threshold t', with t < t', then both a and b can be computed with t shares. First compute a, then (ab)a -1 Using the above, we can obtain b with only t shares of the secret.
[0080] 1.14 Combining Addition and Multiplication of a Shared Secret in One Step It is possible to generalize the above to compute any combination of additions and multiplications in one step. Suppose a group of N participants wants to compute a result ab + c, where a, b, and c are each above a threshold (ta + 1), (t b + 1), (t c + 1), max(t a + t b , t c ) < N, i.e., the number of participants in the scheme must be greater than the maximum of the order of secret c and the order of the result of the multiplication of secrets a and b. 1. Each participant i determines the threshold (t a + 1), (t b + 1), (t c + 1) own secret share a i = JVRSS(i), b i = JVRSS(i), c i = JVRSS(i). 2. Each participant i has λ i = a i b i + c i Calculate. 3. Each participant i shares the outcome λ with other participants. i Share. 4. Each participant has max(t a + t b , t c ) + 1 shares, resulting in λ = int(λ1, ..., λ i , ...) = ab + c. This is done in the computation of a shared signature according to some embodiments below, i.e.
[0081]
number
[0082] There is an interpolation of
[0083]
number
[0084] and
[0085]
number
[0086] In this case, t a + t b = 2t and t c = t, and the interpolation is max(t a + t b , t c ) + 1 = 2t + 1 shares.
[0087] 1.15 HD Wallet A hierarchical deterministic wallet, of which Bitcoin Improvement Proposal 32 (BIP32) wallet is a type, is a deterministic wallet in which many keys can be derived from a single input. The input is some random entropy, called a seed, from which a master key is derived. The master key is then used to derive multiple child keys, as shown in Figure 2.
[0088] In BIP32, the master private key is the left 32 bytes of the HMAC-SHA512 result of the seed, or explicitly: sk master = HMAC-SHA512 L ('Bitcoin Seed', seed) and the chaincode is c master = HMAC-SHA512 R ('Bitcoin Seed', seed) then all child keys can be derived from these, where
[0089]
number
[0090] is an HMAC using the SHA512 hash function. In the above formula, opad is the outer padding of the block size, and ipad is the inner padding of the block size.
[0091] HMAC requires two inputs, namely c and K. For simplicity, and so that users are only required to remember or memorize a single seed, the BIP32 protocol sets the first input as the string "Bitcoin Seed", i.e., c = 'Bitcoin Seed'. It will be understood that this is one exemplary protocol for generating HD wallets, and that different protocols may require different inputs, e.g., two randomly generated seeds. In other words, the use of the string "Bitcoin Seed" is not a necessary requirement for generating HD wallets.
[0092] parent private key sk parent to the hardened child private key sk child The formula for calculating is: sk child = sk parent + HMAC-SHA512 L (c parent , sk parent ||index) where c parent is the parent chaincode, 0 ≦ index < 2 31 is the child index, and HMAC-SHA512 L are the left 32 bytes of the result of the HMAC function computed with the SHA-512 hash function. The corresponding formula for the child public key is derived by simply dot-multiplying this formula by a base point G.
[0093] Parent public key pk parent and the parent private key sk parent to the non-hardened child private key sk child The formula for calculating is: sk child= sk parent + HMAC-SHA512 L (c parent , pk parent ||index) where c parent is the parent chaincode, and 2 31 ≦ index < 2 32 where is the child index, and HMAC-SHA512 is the HMAC function computed with the SHA-512 hash function. This second type of child key can be obtained by someone who knows the parent public key and the chaincode using the formula pk child = pk parent + HMAC-SHA512 L (c parent , pk parent ||index)·G This allows the child public key to be derived by using
[0094] This can be used by external parties to derive various payment addresses as needed, preventing key reuse while reducing rounds of communication and storage.
[0095] In general, HD wallets should generate a hierarchical tree-like structure of private-public key pairs, providing for a large number of key pairs that can all be regenerated from a single seed.
[0096] 2. Generating Signature Shares FIG. 1 illustrates an exemplary system 100 for implementing an embodiment of the present invention. As shown, the system 100 includes a plurality of parties (hereinafter also referred to as "participants") 102. Although only three participants 102a, 102b, 102c are shown in FIG. 1, it will be understood that in general the system may include any number of participants. The system 100 also includes a coordinating party 104 (or simply a "coordinator"), which may or may not be one of the participants 102. Each of the participants 102 and the coordinating party 104 operates a respective computing device.
[0097] Each of the respective computing devices includes a respective processing unit including one or more processors, e.g., one or more central processing units (CPUs), accelerator processors such as graphics processing units (GPUs), other application specific processors, and / or field programmable gate arrays (FPGAs). Each computing device may also include memory, i.e., computer readable storage in the form of one or more non-transitory computer readable media. The memory may include one or more memory units employing one or more memory media, e.g., magnetic media such as hard disks, electronic media such as solid state drives (SSDs), flash memory, or EEPROMs, and / or optical media such as optical disk drives. Each computing device may include at least one user terminal, e.g., a desktop or laptop computer, a tablet, a smartphone, or a wearable device such as a smart watch. Alternatively or additionally, each computing device may include one or more other networked resources, such as cloud computing resources accessed via the user terminal (cloud computing resources including resources of one or more physical server devices implemented in one or more locations). It will be understood that all acts described as being performed by a participant of system 100 may be performed by a respective computing device operated by that participant.
[0098] Each of the participants 102 may be configured to transmit data to one, some, or all of the other participants 102 via a network, such as the Internet using a LAN or WAN connection, or via alternative wired or wireless communication means. Unless the context requires otherwise, references to a participant 102 transmitting data may be understood as transmitting data individually to the other participants 102, for example, via a secure communication channel between a first participant 102a and a second participant 102b, or broadcasting to the entire group, for example, via email or other means. Also, unless the context requires otherwise, each participant 102 may transmit data in raw or encrypted form. For example, data may be encrypted using the public key of the receiving participant before being sent to the receiving participant. The same applies to the coordinator 104 transmitting or receiving data to one, some, or all of the participants 102.
[0099] Embodiments of the present invention are described primarily from the perspective of the first participant 102a. However, it will be understood that, in general, the steps of the methods described may be performed by other participants as well, e.g., the second participant 102b or the third participant 102c. It will also be understood that terms such as "first," "second," "third," etc. are used herein merely as distinguishing labels and do not necessarily imply any order, unless otherwise required by the particular context in which these terms are used.
[0100] The present invention allows each participant 102 in a group of participants 102 to generate a respective share of the threshold signature.
[0101] Each participant 102 has access to (e.g., stores in memory of their respective computing device) a respective share of the shared private key. These private key shares may be generated using a secret sharing scheme such as, for example, JVRSS (described above) or Shamir's Secret Sharing Scheme (SSSS). Alternative schemes for generating the shares of the shared private key may be used. Each participant 102 also has access to a respective share of the shared temporary private key. The temporary private key shares may be generated using JVRSS, SSSS, or an alternative scheme. Each participant 102 may also have access to the inverse of their respective temporary private key share, or the inverse may be generated when needed, for example, using the INVSS function described above. Each participant also has access to a temporary public key, i.e., a public key that corresponds to the shared temporary private key. As is known in the art, the public key includes a first (x) coordinate and a second (y) coordinate, and the first coordinate is used to generate the signature share, as described below. Each participant 102 may also have access to a respective message independent component (MIC) of the signature share, i.e., the signature share may be generated based on the respective MIC. The MIC itself may be generated by a given participant 102 based on its respective private key share and respective ephemeral private key, and also the first coordinates of the ephemeral public key.
[0102] Each participant 102 also has access to the same parent private key of a hierarchical key structure (e.g., BIP32 HD wallet). That is, the parent private key is common to and known to each participant. This is in contrast to a shared private key, where each participant 102 has access only to their respective share of the shared private key. It should be understood that while each participant 102 may have access to many private keys of the key structure, reference to a "parent private key" is taken to mean the same specific one of those private keys. For example, the parent private key may be a master private key. Alternatively, the parent private key may belong to a different level of the key structure.
[0103] Each participant is associated with a respective index, referred to herein as a "participant index." For example, a first participant 102a is associated with a first participant index, a second participant 102b is associated with a second participant index, and so on. Each participant index may be an integer, e.g., "1" for the first participant 102a, "2" for the second participant 102b, etc. The particular value of the participant index is not important, rather, it is only important that each participant has a unique participant index.
[0104] All of the above data items (e.g., private key shares, ephemeral key shares, etc.) may be generated during a setup phase prior to the signing phase. For example, the data items may be generated prior to receiving a request from the coordinator 104 to provide the signing shares.
[0105] The shared private key has a threshold, i.e., the private key can only be successfully generated based on at least the threshold number of distinct private key shares. Similarly, the signature has a threshold, i.e., at least the threshold number of distinct signature shares are required to generate a valid signature. It should be understood that all references to a "threshold" are to be taken to mean a number corresponding to the private key threshold. For example, the threshold may be 2, or 3, or 10, etc.
[0106] To generate the signature share, the first participant 102a first obtains at least a threshold number of respective participant indices. One of the obtained respective participant indices is the respective participant index of the first participant 102a. For example, if the threshold is 5, the first participant 102a obtains 5 participant indices, one of which is the participant index of the first participant 102a. The participant index may be obtained from the coordinator 104, e.g., the coordinator 104 may determine the participant index and inform the participants. Alternatively, the participant index may be obtained from the participant 102 itself, or the participant index may be predetermined, in which case obtaining the participant index may include obtaining it from a memory of the first participant 102a.
[0107] Upon obtaining the threshold number (or more) of participant indices, the first participant 102a generates a private key index for generating a child private key based on a parent private key known to each participant. The private key index is generated based on a hash of a combination of the obtained participant indices. For example, the participant indices may be concatenated and then hashed. In general, any suitable hash function may be used, for example, SHA256 or SHA512. Also, the participant indices may be combined in other ways, for example, summation, other than by concatenation. In some examples, the hash digest, i.e., the result of hashing the combined participant indices, may undergo additional processing to generate a private key index. For example, a modulo function may be applied to the hash digest to generate an index of a particular length. Additionally or alternatively, an integer may be added to the hash digest (or a modulo of the hash digest) to generate an index of a minimum size.
[0108] A child private key is then generated (i.e., derived) based on the parent public key. That is, if the parent public key belongs to level n of the key structure, the derived child private key belongs to level n+1 of the key structure. The coordinator 104 may inform the first participant which of the private keys of the key structure should be used as the parent private key. Alternatively, the parent private key to be used may be predetermined.
[0109] The child private key is a function of the parent private key, a first hash value. The first hash value is generated by inputting at least the parent private key and the private key index into a hash function, e.g., SHA256 or SHA512. In some embodiments, the hash function is an HMAC function. In these embodiments, a chain code of the parent private key may also be input into the HMAC function to generate the first hash value. Depending on the hash function used, e.g., if an HMAC function is used, the first hash value may include only a portion of the hash digest generated by inputting the data into the hash function. For example, the first hash value may be the leftmost amount x bytes of the hash digest.
[0110] The first participant 102a then generates a respective signature share based on the message, which may have been obtained (e.g., sent by the coordinator 104 to the first participant 102a) before generating the child private key or after generating the child private key. The signature share is generated based on (i.e., is a function of) the first ephemeral key share (or more specifically, its inverse), the first coordinate of the ephemeral public key (or more specifically, the first coordinate mod n, where n is the order of the elliptic curve), the child private key, the message (or more specifically, a hash of the message), and the first MIC share.
[0111] Other participants (e.g., the second participant 102b) who intend to generate their respective signature shares perform an equivalent process of obtaining a participant index, generating a private key index, generating a child private key, and generating their respective signature shares.
[0112] The first participant 102a may send the first signature shares to the coordinator 104 for generating a signature based on at least a threshold number of signature shares. Alternatively, the first participant 102a may be the coordinator 104, in which case the first participant 102a may obtain respective signature shares from each participant and then generate a signature based on the respective signature shares.
[0113] In some examples, the first participant 102a may generate a public key corresponding to the child private key and a public key corresponding to the shared private key. From the two public keys, a public key (the "target public key") may be generated that corresponds to a signing private key (i.e., a private key that could be used to generate a signature if it existed in the clear). The first participant 102a or the coordinator 104 may make the target public key available to a verifying party to verify the signature.
[0114] In these or alternative examples, the first participant 102a may provide proof to a verifier that the private key index used to generate the child private key was based on a first participant index associated with the first participant, which provides proof that the first participant 102a provided a signature share to generate the signature.
[0115] FIG. 3 illustrates an exemplary method 300 according to some embodiments of the present invention. In step S301, the first participant 102a obtains a participant index. In step S302, the first participant 102a generates a private key index based on the obtained participant index. In step S303, the first participant 102a generates a common child private key based on the common parent private key and the private key index. In step S304, the first participant 102a generates a signature share based on the common child private key. If the first participant is a coordinator, in step S305, the first participant generates a signature based on at least a threshold number of signature shares.
[0116] In some embodiments, each participant 102 may have a respective share of a single shared private key. That is, each participant 102 uses the same respective private key share when generating their respective signature shares. In other embodiments, each participant 102 may generate a shared key structure, where instead of including a complete private key, the shared key structure includes a private key share. For example, a first participant 102a has a first share of a shared master private key, a second participant 102b has a second share of the same shared master private key, a third participant 102c has a third share of the same shared master private key, and so on. The participants 102 also have respective shares of one or more shared auxiliary private keys, where each shared auxiliary private key is traceable to (i.e., is a function of) the shared master private key. No individual participant 102 has access to any of the complete private keys of the shared key structure. When generating its respective signature shares, each participant 102 uses either its respective share of the shared master private key or its respective share of one of the shared auxiliary private keys as its respective share of the shared private key needed to generate its respective signature share.
[0117] In the following, an exemplary method for generating a shared key structure is described. The first participant 102a obtains, e.g., generates or receives, a first seed share. As mentioned above, "first" is used here simply as a label. The "seed share" may be an integer or a string, preferably known only to the first participant 102a. The seed share may be generated randomly or pseudo-randomly. It is not excluded that the seed share is known a priori to the first participant 102a. Although referred to as a share, it is preferred, but not excluded, that the seed shares of each of the participants are not shares (i.e., components) of a common seed. The second participant 102b and the third participant 102c also obtain respective seed shares, e.g., the second participant 102b generates a second seed share.
[0118] The first participant 102a generates a first master private key share, i.e., a share of the shared master private key. The first master private key share is generated based on, i.e., is a function of, the first seed share (i.e., the first participant's share) and each of the other participants' respective seed shares. For example, continuing the above example, the first master private key share is generated based on each of the first, second, and third seed shares. Similarly, the second participant 102b and the third participant 102c generate a second master private key share and a third master private key share, respectively.
[0119] Upon generating the first master private key share, the first participant 102a generates one or more first private key shares, each of which is a share of a different shared private key. Again, "first" is used as a label to refer to a private key share that is generated based on the master private key share, i.e., a function of the master private key share. There may be many different "first private key shares." Each other participant, e.g., the second participant 102b and the third participant 102c, may also generate a respective share of the shared private key. The private key shares (e.g., the first master private key share and each of the first private key shares) may be generated all at once, or may be generated as needed, when needed. Similarly, each of the generated private key shares may be stored together or separately. One or more of the generated private key shares may be deleted after use.
[0120] In some embodiments, the first participant 102a may generate a first data item based on the first seed share, i.e., as a function of the first seed share. Generating the first data item may include applying a hash function to at least the first seed share to generate a first component of the first data item, i.e., the first component is at least some or all of a hash of the first seed share. Any hash function may be used, e.g., SHA256, SHA512, etc. In some examples, a hash function that performs two or more hash operations, such as a double hash, e.g., SHA256 followed by SHA256, may be used. The other participants generate their respective data items in a similar manner, e.g., the second participant 102b generates a second data item and the third participant 102c generates a third data item. The first participant 102a obtains, e.g., receives, the other data items and generates a first master private key share based on the first data item and the other data items, i.e., as a function of the first data item and the other data items. The other participants generate their respective master private key shares in a similar manner.
[0121] Preferably, the hash function is a hash-based message authentication code (HMAC) function. In these examples, since the HMAC function requires two inputs, the first participant 102a inputs both the first seed share and another input to the HMAC. The other input may be a different seed share, the same seed share, or data known to each participant, e.g., a known integer or string. In these examples, the first component may be the entire output of the HMAC function, or a portion of the output, e.g., the left 256 bytes.
[0122] Each master secret key share may be generated using a secret sharing scheme. That is, each participant 102 participates in a secret sharing scheme to generate a respective share of a shared secret. For example, the secret sharing scheme may be a joint verifiable secret sharing scheme (JVRSS), a Shamir secret sharing scheme (SSSS), or a different scheme. For example, as described above, in a JVRSS, each participant shares t + 1 random numbers a ij t, and then use those numbers as coefficients of a polynomial of degree t. Here, in the context of the present invention, the first participant generates a “first component”, e.g., a value a t ... i0 Then, the "first data item" is f i (x) = a i0 + a i1 x + + a it x t mod n, and the first master private key share is
[0123]
number
[0124] where N is the number of participants. Although JVRSS is an example of a dealerless scheme that may be used to share secrets, schemes with a dealer (e.g., a trusted third party) may also be used to generate master private key shares.
[0125] The concept of HD key structure (or HD wallet) is introduced above. The first participant 102a may generate an HD key structure of private key shares, each of which is ultimately derivable from a first master key share. The HD key structure may include multiple levels of parent and / or child private key shares. Some private key shares may be parents of respective child private key shares and children of respective parent private key shares.
[0126] Before describing how the HD key structure may be generated, the master private key share a i-master An exemplary method for generating a master key a is provided. This particular example uses JVRSS to generate a master key a master and derive the master private key
[0127]
number
[0128] where seed i is the seed for participant i, which may come from the participant’s personal BIP32 wallet branch. No single participant knows this result; instead, participants receive their share of it, a, calculated using JVRSS. i-master This is the same as step 1 of JVRSS. i0 Instead of random values like normal JVRSS, a i0 = HMAC-SHA512 L ('Bitcoin seed of participant i', seed i ) This is achieved by defining the right half of the HMAC result as the corresponding chaincode for participant i’s seed. c i-master = HMAC-SHA512 R ('Bitcoin seed of participant i', seed i )
[0129] At this point, participant 102 is i The secret share a of the secret master key corresponding to i-master and individual chaincodes c i-master The participant 102 has a share a i-master Since we have,i,=,i,=1,, the key is still recoverable if any of the shares are lost. In the unlikely event that all shares are lost, the key can be re-derived using the seeds from each participant i.
[0130] Next, options for generating the first private key share based on the first master private key share are described. One option includes using a set of auxiliary private keys, e.g., an auxiliary HD key structure or an auxiliary wallet. The first participant 102a may use an existing set of auxiliary private keys or generate a new set. Each first private key share is then generated based on, i.e., is a function of, the first master private key share and each auxiliary private key of the set of auxiliary private keys. For example, the first participant 102a may generate a shared HD key structure (or shared wallet) using an HD key structure that includes auxiliary private keys at different levels and / or positions of the structure, and the shared HD key structure includes a share of the private key at a corresponding level and / or position. For example, a share of a parent private key in the shared HD key structure may be generated based on an auxiliary parent private key at a corresponding position in the auxiliary key structure. Similarly, a share of a child private key in the shared HD key structure may be generated based on an auxiliary child private key at a corresponding position in the auxiliary key structure.
[0131] Each other participant 102 may similarly use the same ancillary private key and their respective master private key share to generate their respective shares of the same shared private key. To do so, each participant needs the same ancillary private key. In some examples, each participant 102 uses a common master ancillary private key known to each participant, and derives any other required ancillary private keys from the master ancillary private key.
[0132] In some examples, each participant derives the auxiliary master private key using a common seed. The common seed may be generated by one participant, e.g., the first participant 102a, and shared with the other participants 102. Alternatively, the common seed may be collectively generated using a secret sharing scheme, e.g., JVRSS or SSSS. The common seed may be generated based on a first shared secret (e.g., a shared master private key) and a second shared secret (e.g., a blinding or obfuscating key). That is, each participant has a respective share of the first shared secret and a respective share of the second shared secret. Each participant combines his two respective shares to generate a respective "combined share". A participant may share his respective combined share with each other participant 102, i.e., the first participant 102a obtains a respective combined share from each other participant 102. The combined shares may then be combined, e.g., interpolated, to generate a common seed from which a supplemental master private key is generated. If the shared secret is a threshold secret, rather than requiring each common share from each other participant, the first participant 102a only requires a threshold number of common shares to generate the common seed.
[0133] The supplementary master private key may be generated by applying a hash function to at least the common seed. The hash function may be an HMAC function, in which case both the common seed and the additional seed are input to the HMAC function. The supplementary master private key may be a portion of the HMAC output, for example the left 256 bytes.
[0134] These embodiments may be used to create a shared HD wallet, e.g. a shared BIP32 wallet. i-master The key sk added to parent , sk childA separate BIP32 wallet may be used to derive the master private key sk etc. master is generated from a seed in the usual way and is known to every participant. The master private key is not used to calculate new key shares, but the master key sk master The first child key derived from sk may be used, hereafter referred to as sk parent The private child key share is labeled as a i-child = a i-master + sk parent The subkey is defined as follows: a i-grandchild = a i-master + sk child Here, sk child is treated as a normal BIP32 child key. parent This means that the (hopefully non-existent) complete child private key is derived from a child = a + sk parent and an equivalent formula for the subkey. These keys are defined as hardened or non-hardened depending on whether the auxiliary wallet key is hardened or non-hardened.
[0135] One option with this wallet is to allow the value sk to be known without any single party knowing a explicitly. master The goal is to let a be a blinded private key a + ρ, derive all further child keys from this and relate them to the shared private key a. Specifically, the steps for this are: 1. Participants perform two rounds of JVRSS, one corresponding to a shared secret key a and the other corresponding to a blinding secret ρ. Each participant i shares the corresponding secret key a i and blinding secret share ρ i has. 2. Each participant i adds his / her secret share a i +ρ iand broadcast it to other participants. 3. Each participant interpolates at least t + 1 additive shares to obtain a + ρ. 4. The result is, sk master = HMAC-SHA512 L ('Bitcoin Seed', a + ρ) Like sk master The chaincode is used as a seed in c master = HMAC-SHA512 R ('Bitcoin Seed', a + ρ) And they are sk parent This is used to derive , which is then used in the formula above. The method of adding a secondary key, which is a regular BIP32 wallet key, does not require an additional round of communication since the necessary information can be shared in parallel with the shared secret setup.
[0136] Another option for generating the first private key share based on the first master private key share includes the use of a hash (e.g., HMAC) function. This option is particularly suitable for generating a shared HD key structure. As shown in Figure 2, each private key in the HD key structure has a parent private key. The parent of the first level private key of the HD key structure may be the master private key, which is at the 0th level.
[0137] A shared HD key structure may be generated, where each private key share (i.e., child key share) is generated based on a respective parent private key share and an index assigned to the child private key share. The index indicates the position of the key in the tree. Each child private key share may also be generated based on a respective chain code of the respective parent private key share. More specifically, each child private key share may be generated based on a first term and a second term. The first term is generated based on the parent private key share, i.e., is a function of the parent private key share. In some examples, the first term may be the parent private key share. The second term is generated by inputting at least the parent private key share or the corresponding public key into a hash function. Also input into the hash function is an index of the child private key share being generated. In some examples, the parent private key share and the index may be concatenated.
[0138] A child private key generated by inputting a parent private key into a hash function is sometimes referred to as a "hardened child private key." Similarly, a child private key share generated by inputting a parent private key share into a hash function is hereinafter referred to as a "hardened child private key share." In contrast, a child private key generated by inputting a public key corresponding to a parent private key into a hash function is sometimes referred to as a "non-hardened child private key." Similarly, a child private key share generated by inputting a public key corresponding to a parent private key share into a hash function is hereinafter referred to as a "non-hardened child private key share."
[0139] The hash function may be an HMAC function. The child private key share may be generated based on a first portion of the HMAC output, for example the left 256 bytes if the HMAC uses a SHA256 hash function.
[0140] For example, if the hash function requires two separate inputs, the chain code share of the parent private key share may also be input to the hash function. The purpose of the chain code is to add more entropy to the derivation of the child key. For a given private key share, the chain code share of that private key share may be the second part of the HMAC output. For example, the chain code share may be the right 256 bytes. The chain code share of a given private key share (call it the "target key share") is based on the parent private key share, the index of the target key share, and the chain code share of the parent private key share.
[0141] The above examples derive a child private key using a parent private key share or a public key corresponding to the parent private key share. The child private key share may also be generated using a master public key, or more broadly, a parent public key. That is, a public key corresponding to the complete master private key or the complete parent private key is used, rather than a public key corresponding to the private key share. In these cases, there is no complete private key chaincode, since there is no complete private key itself, i.e., no participant knows the complete private key. Thus, each participant 102 may use a common chaincode for each child private key share derived in this way. That is, the participants 102 may agree on a common chaincode to use. The common chaincode may be generated, for example, based on the respective parent chaincode shares of the respective parent private key shares corresponding to the complete parent private key, and may include, for example, the sum of their respective parent chaincode shares. As an example, the first participant 102 may obtain the corresponding master chaincode shares from each participant and use them together with the first master chaincode share of the first master private key share to generate a common chaincode. Then, when generating the first child private key share, the second term is generated by inputting the common chaincode, the public key corresponding to the parent private key, and the index of each of the first child private key shares into a hash function (e.g., an HMAC function). The public key and the index may be concatenated. These child key shares are called "non-hardened key shares" because they are derived using the public key.
[0142] Below we provide details on how to generate the child private key shares and corresponding public keys.
[0143] Hardened child keys may be derived using the sum of individual BIP32 terms.
[0144]
number
[0145] At that time, Magoken,
[0146]
number
[0147] and so on. Note that the perfect private key itself is not actually generated.
[0148] The second term of these equations indicates that the constant term of participant i's secret polynomial is HMAC-SHA512. L (c i-parent , a i-parent The function is calculated using JVRSS, which is the ||index. And
[0149]
number
[0150] After computing the shares corresponding to this JVRSS, which are labeled as, they simply replace the shares with their old shares a i-parent and so the new share is
[0151]
number
[0152] It is.
[0153] An equivalent relationship exists for the subkey, and so on. Interpolating this result yields the child key above. By deriving the child key in this way, even if the key is compromised the child key cannot be calculated, which is even more secure than regular BIP32 wallets.
[0154] In the following we describe two methods for generating non-hardened child key shares. The first method is similar to the above-mentioned method for generating hardened keys. It has the drawback that the individual public keys corresponding to the key shares must be shared, but this can be done at the same time as the corresponding chaincode, and in any case there is no additional communication. The second method solves this problem of needing to share more information, and can be computed by any external party who knows the public key and the chaincode, similar to a regular BIP32 wallet.
[0155] In the first method, each participant in the shared secret scheme
[0156]
number
[0157] Derive your child private key share using the pair (a i-child , a child ·G) is the share (a i , a·G) can be used in the same way.
[0158]
number
[0159] Additional information for external parties who want to derive j-parent and (a j-parent G) must be shared first. After the first iterations, external parties can calculate this information themselves.
[0160] In the second method, when considering the derivation of the first child key, a single chain code c parent does not exist. In this case, c parent teeth,
[0161]
number
[0162] Participants add their individual chaincodes together to obtain the first parent chaincode. After the first non-hardened child key is derived, the chaincode reverts to its normal definition.
[0163] Then, each participant in the scheme is a i-child = a i-parent + HMAC-SHA512 L (c parent , a parent ·G||index) derives its child private key share using a child G = a parent G+HMAC-SHA512 L (c parent , a parent ·G||index)·G It can be calculated by an external party using
[0164] As described above, private key shares (e.g., parent private key shares of child private key shares) generated based on the master private key share may be used as part of the signature scheme described above to sign a message. For example, each private key share used by each participant 102 to generate its respective signature share may occupy a position in the shared key structure that corresponds to the position of the common parent private key of the common child private key (i.e., the child private key derived based on the participant index) used by each participant 102 to generate the signature share.
[0165] In the following, a specific example of generating signature shares according to the described embodiment is given. As mentioned above, in a threshold signature scheme, there is no way to identify who created a given signature due to the signature derivation, and the resulting signature will always be the same no matter which shares were used to create it. To attest to a subset of the group, the target is to have some record of the index or identity of the signers who create the signature with the derived key. Assume that the threshold signature scheme implements a shared secondary key structure (e.g., a wallet) as described above. To create a signature where the shared private key identifies who created the signature, the derived HD key sk child The index of t is generated depending on the index of the signer in the scheme. Without loss of generality, we assume that the signers have indices 1, ..., t + 1 for convenience. The derived key sk child The index for hardened keys is index = hash(1|| ... ||t + 1) mod 2 31 or for non-hardened keys index = (hash(1|| ... ||t + 1) mod 2 31 + 2 31 That is, the signing key used is a child = a parent + sk child Here, sk child The indices used to derive sk are as above. child Recall that the expression for may take the form sk child = sk parent + HMAC-SHA512 L (c parent , sk parent ||index)
[0166] During signature creation, participants receive a request to create a signature, and participants who are willing to sign respond with a broadcast message to that effect. The coordinator then selects the first t + 1 participants to respond, and communicates the indices of the signers to each other (and, as explained in the previous section, a parent (If the identifier of i changes for each key, the identifier is transmitted.) Each signer i
[0167]
number
[0168] Calculate where:
[0169]
number
[0170] , σ i , and r are pre-computed during pre-signature generation. i is the temporary private key share, and σ i where is the MIC share, r is derived from the x coordinate of the ephemeral public key, and e is the hash of the message, which is then returned to the coordinator to create a valid signature. The signer (or coordinator) then calculates the formula a child G = a parent G + sk child G also computes a public key corresponding to the signing key using , which may be used by any verifier of the signature.
[0171] Finally, to prove who created this signature, the signer writes child is derived from an index derived from the signer's index in the threshold signature scheme, and a child G = a parent G + sk childG, and finally, that the generated signature corresponds to this public key.
[0172] The key may be derived by any participant in the scheme as needed, even though this includes information about who creates the signature. parent The term provides the threshold requirements for derived keys, and sk child can be thought of as a constant that is added to the parent key shares. By using HD key derivation, this is the sum of sk from the seed alone. child To increase recoverability, this index may be included in the message being signed.
[0173] The signer can then verify the signature in one of several ways. child It may be stipulated that the private key sk is derived from an index derived from each of the signers' participant indices. child If sk is a non-hardened key (i.e., derived from a parent public key), it is safe to reveal the complete derivation of the index. child If is a hardened key (i.e., derived from the parent private key), the signer may provide a zero-knowledge proof of the index, or an equivalent proof. As another example, the proof may be provided by a trusted third party. For example, the serialized extended public key includes the index, so that the index can be trusted if the public key is provided by a trusted third party.
[0174] 4 illustrates an exemplary method 400 for generating a signature for a message, according to an embodiment of the present invention. Steps S401 to S409 are performed, in this example, by each of a threshold number of participants 102 (including the first participant 102a). Step S410 is performed by a coordinator 104, which may be one of the participants performing steps S401 to S409. It will be understood that some of the steps may be omitted or performed in a different order.
[0175] The exemplary method 400 enables the creation of a threshold (t + 1) shared secret in a group of N≧2t + 1 participants, where the signature threshold is also (t + 1).
[0176] set up: In step S401, each participant 102 receives a child private key share a i-child and calculate the corresponding public key. i-child The generation of is described above. At this point, each participant i has a private child key share and a public key (a i-child , P), where P is the public key corresponding to the shared private key, i.e., a child · Notation for G. The shared secret key has a threshold (t + 1).
[0177] Precomputation: In step S402, each participant 102 calculates a shared ephemeral key share and a corresponding public key. For example, each participant 102 may calculate a shared ephemeral key using the JVRSS given in the prior knowledge and the calculation of the public key. Then, each participant 102 may calculate a reverse share based on the ephemeral private key. As a result of this, each participant may receive a threshold (t + 1) reverse share.
[0178]
number
[0179] has.
[0180] In step S403, each participant 102 creates two different blinding key shares. For example, each participant 102 may create two shared secrets, so that participant i has a share α i = JVRSS(i) and β i = JVRSS(i), where each shared secret has a threshold (t + 1). Note that in some instances, not all shared secrets need to have the same threshold.
[0181] In step S404, each participant 102 calculates its intermediate share and broadcasts its intermediate share to the other participants. For example, each participant i calculates its intermediate share
[0182]
number
[0183] This value has a threshold of (2t + 1).
[0184] In step S405, each participant 102 calculates an intermediate value based on at least the intermediate share. For example, each participant 102 may calculate an interpolation of (2t + 1) shares, λ=interpolate(λ1, ..., λ 2t+1 ) = k -1 In some cases, intermediate values may be calculated using a +β.
[0185] In step S406, each participant 102 calculates a pre-signature share (i.e., the message-independent component of the signature share). For example, each participant i calculates its pre-signature share σ i = λ-β i = (k -1 a +β) -β i Each participant 102 may calculate
[0186]
number
[0187] and the private key share and the corresponding public key (a i-child , P).
[0188] Note that since a different temporary key is used for each signature, multiple temporary keys can be set up at once, i.e. steps S402 to S406 can be repeated to create multiple temporary keys during pre-computation and store them for later use. These can be performed simultaneously, so there are no additional rounds of communication. Note that preferably different values of α and β should be used for each signature.
[0189] Generate a signature In order to sign the message msg, at least (t + 1) participants must perform steps S407 and S408.
[0190] In step S407, at least a threshold number of participants 102 obtain the message to be signed and calculate a message digest. For example, the coordinator 104 may send a request to (t + 1) participants to create signature shares for the message msg. Each participant i may calculate a message digest e = hash(msg). In some examples, this hash function is a double SHA-256 hash function. Alternative hash functions may be used.
[0191] In step S408, at least a threshold number of participants 102 generate a common child private key, as described above.
[0192] In step S409, at least a threshold number of participants 102 calculate signature shares and transmit the signature shares to the coordinator 104. For example, each participant i may
[0193]
number
[0194] Then, calculate your signature share (r, s i) to the coordinator. Note that the value r may not be sent by all participants.
[0195] In step S410, the coordinator 104 calculates a signature. For example, the coordinator 104 calculates a signature s = interpolate(s1, ..., s t+1 ), and finally compute the signature (r, s).
[0196] In general, embodiments of the present invention may be used to generate a signature for any message. As a specific exemplary use case, the message may be part or all of a blockchain transaction, as shown in FIG. 1. That is, the signature may be used to sign one or more inputs and / or one or more outputs of the blockchain transaction. For example, the generated signature may be used at least in part to unlock an output of the blockchain transaction. As a specific example, the output of a previous transaction may be a pay-to-public-key-hash (P2PKH) output that is locked to a hash of a public key. To be unlocked, an input of a later transaction referencing the P2PKH output must include the (unhashed) public key and a signature generated based on the private key corresponding to the public key. The coordinator 104 may sign the blockchain transaction and submit the signed transaction to one or more blockchain nodes of the blockchain network 106.
[0197] Expressed in script form, a "locking script" and an "unlocking script" may take the following form: Locking script = OP_DUP OP_HASH160<Public KeyHash> OP_EQUAL OP_CHECKSIG Unlocking script =<signature><Public Key>
[0198] With reference to the above embodiment,<Public Key> P = a child · may be equal to G, <signature>contains a threshold signature s, where the previous transaction is the message to be signed. Note that, as above, ECDSA signatures are of the form (r, s).
[0199] It should be noted that the described signature generation method is not limited to any particular use case and may be used broadly to generate a signature based on any message. Signing all or part of a blockchain transaction is just one illustrative example. The described method may be used, for example, to sign and / or authorize legal documents (e.g., wills, deeds, or other contracts), correspondence between one or more parties, digital certificates (e.g., issued by a certificate authority), medical prescriptions, bank transfers or financial instruments, mortgage or loan applications, etc.
[0200] As a particular example, a group of participants (e.g., five participants total) may form a board of directors for a company. Resolutions for the company may require that a majority of the board (i.e., at least three participants) agree on a particular vote. The board may use the described signature generation method to prove that at least three directors agreed to vote in favor of a particular outcome. In this example, the threshold for the signature generation scheme is three. That is, at least three of the directors must provide their respective signature shares for the coordinator to successfully generate a signature. For a signature to be successfully created, at least the threshold number (i.e., three) of directors must have agreed to vote in favor of that outcome. The successful generation of the signature thus serves as a record of the vote and proves that a majority of the board voted in a particular way.
[0201] Another use case of the invention is in the field of digital certificates, for example digital certificates issued according to the X.509 standard. A digital certificate contains a signature that signs some data. Although the data can generally be any data, one particular example of data contained in a digital certificate is a public key. The public key in a digital certificate is often called a "certified public key". The issuer of the digital certificate (a "certification authority") may perform one or more checks (e.g., know-your-customer checks) on the owner of the public key, and if the checks are passed, the certification authority issues a digital certificate that contains the certified public key. For example, a user can use the certified public key to prove that he is who he claims to be, by signing a message with the private key that corresponds to the certified public key. One particular use for a certification authority is to sign certificates used in HTTPS for secure browsing on the Internet. Another common use is in the issuance of identity cards by national governments for use in digitally signing documents. The certificate authority uses its private key to sign the public key (or any other data to be authenticated).
[0202] As described above, embodiments of the present invention may include encrypting a message with a public key corresponding to a private key share and decrypting the message with the private key share as well. In that case, the first participant 102a may decrypt a message encrypted by a different party. As another option, the message may be encrypted with a full private key, e.g., a public key corresponding to a full child key. In that case, at least a threshold number of participants may make their respective shares of the child private key available to decrypt the message. The encrypted message may include some or all of a blockchain transaction, e.g., the encrypted data may be included in the transaction to be recorded in the blockchain.
[0203] conclusion Other variations or use cases of the disclosed technology will be apparent to one of ordinary skill in the art given the disclosure herein. The scope of the present disclosure is not limited by the described embodiments, but only by the claims that follow.
[0204] It will be appreciated that the above embodiments have been described by way of example only. More broadly, there may be provided a method, apparatus or program according to any one or more of the following statements:
[0205] Statement 1. 1. A computer-implemented method for generating respective signature shares of a digital signature for signing a message, wherein each participant of a group of participants has i) a respective private key share of a shared private key that can only be generated with at least a threshold number of respective private key shares, ii) a respective ephemeral private key share of a shared ephemeral private key, iii) first coordinates of a temporary public key corresponding to the shared ephemeral private key, and iv) a first common private key of a first hierarchical key structure, each participant being associated with a respective participant index, the method being performed by a first participant of the group; obtaining at least a threshold number of respective participant indexes, the obtained respective participant indexes including a first participant index associated with a first participant; generating a private key index, the private key index being generated based on a hash of a combination of the obtained respective participant indexes; generating a second common private key of the first hierarchical key structure, the second common private key being generated based on the first common private key and a first hash value, the first hash value being generated by inputting at least a) the first common private key or a corresponding public key and b) a private key index into a hash function; generating a first signature share of a digital signature, the first signature share being generated based on a first temporary key share, a message, a second common private key, a first coordinate of the temporary public key, and the first private key share.
[0206] Statement 2. 2. The method of statement 1, wherein each participant has v) a respective share of a message-independent component MIC of the respective signature share, each respective share of the MIC being generated based on the respective ephemeral private key share, the respective private key share, and a first coordinate of the ephemeral public key, and the first signature share is based on the first share of the MIC.
[0207] Statement 3. The first participant is the coordinating party and the method is obtaining at least a threshold number of respective signature shares of digital signatures from each participant, said obtaining respective signature shares including said generating a first signature share of digital signatures; and generating a digital signature based on at least the obtained threshold number of respective signature shares.
[0208] Statement 4. 3. The method of statement 1 or statement 2, comprising making a first signature share of the digital signatures available to a coordinating party to generate a digital signature based on respective signature shares of at least a threshold number of the digital signatures generated by each participant.
[0209] Statement 5. The method of statement 4, wherein said obtaining at least a threshold number of respective participant indexes includes obtaining a portion of all of the respective participant indexes from a coordinating party.
[0210] Statement 6. The method of any preceding statement, wherein said obtaining at least a threshold number of respective participant indexes includes obtaining at least a portion of the respective participant indexes from the respective participants.
[0211] Statement 7. The method of any preceding statement, wherein the hash function is an HMAC function.
[0212] Statement 8. 8. The method of statement 7, wherein a first shared secret key is associated with the first chaincode, and the first hash value is generated by inputting at least the first chaincode, the first shared secret key, and a secret key index into an HMAC function.
[0213] Statement 9. The method of statement 7 or statement 8, wherein the first hash value is a first portion of a result of inputting at least the first shared secret key and the secret key index into an HMAC function.
[0214] Statement 10. The method of any preceding statement, wherein the first common private key is a master private key of a first hierarchical key structure.
[0215] Statement 11. The method of any of statements 1 to 9, wherein the first common private key is a private key of the first hierarchical key structure other than the master private key.
[0216] Statement 12. The method of any preceding statement including the step of obtaining an indication of which private key of the first hierarchical key structure should be used as the first common private key.
[0217] Indications may be obtained from coordinating parties.
[0218] Statement 13. A first private key share of the shared private key is acquiring a first seed share, each other participant having a respective seed share; The method of any preceding statement, by generating a first master private key share of the shared master private key, where the first master private key share is generated based on the first seed share and a respective seed share of each other participant, each other participant having a respective master private key share, and the first private key share is the first master private key share or one of the one or more auxiliary private key shares generated based on the first master private key share.
[0219] Statement 14. 14. The method of statement 13, wherein the first master private key share and each of the one or more auxiliary private key shares are arranged in a second hierarchical key structure, the one or more auxiliary private key shares being a respective parent private key share and / or a respective child private key share, each parent private key share at a given level in the second hierarchical key structure being a parent of one or more child private key shares at a subsequent level in the second hierarchical key structure, and the first private key share occupies the same position in the second hierarchical key structure as the second common private key in the first hierarchical key structure.
[0220] Statement 15. Each participant has a public key corresponding to a shared private key, and the method comprises: generating a second public key corresponding to the second common private key; The method of any preceding statement includes a step of generating a target public key for verifying the digital signature, the target public key being generated based on a public key corresponding to the shared private key and a second public key corresponding to a second common private key.
[0221] Statement 16. 16. The method of statement 15, comprising the step of transmitting to a verifying party the target public key for verifying the digital signature.
[0222] Statement 17. The method of any preceding statement including the step of transmitting to the verifying party proof that the private key index used to generate the second common private key was generated based on a first participant index associated with the first participant, thereby proving that the first participant generated the signature share of the digital signature.
[0223] Statement 18. The method of any preceding statement, wherein the message includes at least a portion of a blockchain transaction.
[0224] Statement 19. a memory including one or more memory units; 19. A computing device comprising: a processing device including one or more processing units, wherein the memory stores code arranged to be executed on the processing device, the code being configured to perform any of the methods of statements 1 to 18 when on the processing device.
[0225] Statement 20. A computer program embodied on a computer readable storage and configured to, when executed on one or more processors, perform the method of any of statements 1 to 18.
[0226] According to another aspect disclosed herein, a method may be provided that includes actions of each participant.
[0227] According to another aspect disclosed herein, a system may be provided that includes a computing device of each participant. [Explanation of symbols]
[0228] 100 Systems 102 Stakeholders and Participants 102a Participants 102b Participants 102c participants 104 Coordinating parties, coordinators 106 Blockchain Network 300 ways 400 ways< / signature> < / signature>
Claims
1. 1. A computer-implemented method for generating respective signature shares of a digital signature for signing a message, comprising: each participant of a group of participants has i) a respective private key share of a shared private key that can only be generated with at least a threshold number of respective private key shares, ii) a respective temporary private key share of a shared temporary private key, iii) first coordinates of a temporary public key corresponding to said shared temporary private key, and iv) a first common private key of a first hierarchical key structure; Each participant is associated with a participant index, the method being performed by a first participant of the group; obtaining at least the threshold number of respective participant indexes, the obtained respective participant indexes including a first participant index associated with the first participant; generating a private key index, the private key index being generated based on a hash of a combination of the obtained respective participant indexes; generating a second common private key of the first hierarchical key structure, the second common private key being generated based on the first common private key and a first hash value, the first hash value being generated by inputting at least a) the first common private key or a corresponding public key and b) the private key index into a hash function; generating a first signature share of the digital signature, the first signature share being generated based on a first ephemeral key share of the shared ephemeral private key, the message, the second common private key, the first coordinates of the ephemeral public key, and a first private key share of the shared private key; A method comprising:
2. each participant having v) a respective share of a message-independent component MIC of said respective signature share; each respective share of the MIC is generated based on the respective temporary private key share, the respective private key share, and the first coordinates of the temporary public key; The method of claim 1 , wherein the first signature share is based on a first share of the MIC.
3. the first participant is a coordinating party, and the method further comprises: obtaining, from each participant, at least the threshold number of respective signature shares of the digital signature, the obtaining of the respective signature shares including the generation of the first signature share of the digital signature; generating said digital signature based on at least said threshold number of respective signature shares; 3. The method of claim 1 or claim 2, comprising:
4. 3. The method of claim 1 or claim 2, comprising making the first signature share of the digital signatures available to a coordinating party to generate the digital signature based on respective signature shares of at least the threshold number of the digital signatures generated by respective participants.
5. The method of claim 4 , wherein the obtaining of at least the threshold number of respective participant indexes comprises obtaining a portion of all of the respective participant indexes from the coordinating party.
6. The method of claim 1 , wherein the obtaining of at least the threshold number of respective participant indexes comprises obtaining at least a portion of the respective participant indexes from the respective participants.
7. The method according to claim 1 , wherein the hash function is an HMAC function.
8. the first shared private key is associated with a first chaincode; 8. The method of claim 7, wherein the first hash value is generated by inputting at least the first chaincode, the first shared secret key, and the secret key index into the HMAC function.
9. 9. The method of claim 7 or claim 8, wherein the first hash value is a first portion of a result of inputting at least the first common secret key and the secret key index into the HMAC function.
10. 10. The method of claim 1, wherein the first common private key is a master private key of the first hierarchical key structure.
11. 10. The method of claim 1, wherein the first common private key is a private key of the first hierarchical key structure other than the master private key.
12. 12. A method according to any preceding claim, comprising obtaining an indication of which private key of the first hierarchical key structure should be used as the first common private key.
13. the first private key share of the shared private key; acquiring a first seed share, each other participant having a respective seed share; generating a first master private key share of a shared master private key, the first master private key share being generated based on the first seed share and the respective seed share of each other participant, each other participant having a respective master private key share, the first private key share being the first master private key share or one of one or more auxiliary private key shares generated based on the first master private key share; The method of any one of claims 1 to 12, wherein the compound is produced by
14. the first master private key share and each of the one or more auxiliary private key shares are arranged within a second hierarchical key structure; said one or more auxiliary private key shares being a respective parent private key share and / or a respective child private key share; each parent private key share at a given level in the second hierarchical key structure is a parent to one or more child private key shares at a subsequent level in the second hierarchical key structure; 14. The method of claim 13, wherein the first private key share occupies the same position in the second hierarchical key structure as the second common private key in the first hierarchical key structure.
15. Each participant has a public key corresponding to the shared private key, and the method comprises: generating a second public key corresponding to the second common private key; generating a target public key for verifying the digital signature, the target public key being generated based on the public key corresponding to the shared private key and the second public key corresponding to the second common private key; 15. The method of any one of claims 1 to 14, comprising:
16. 16. The method of claim 15, comprising the step of transmitting the target public key to a verifying party for verifying the digital signature.
17. 17. The method of claim 1, further comprising the step of transmitting to the verifying party proof that the private key index used to generate the second common private key was generated based on the first participant index associated with the first participant, thereby proving that the first participant generated the signature share of the digital signature.
18. 18. The method of claim 1, wherein the message comprises at least a portion of a blockchain transaction.
19. a memory including one or more memory units; A processing device comprising one or more processing units, the memory storing code configured to be executed on the processing device, the code being configured to execute, on the processing device, a method according to any one of claims 1 to 18; Including, computer equipment.
20. A computer program embodied on a computer readable storage and configured to, when executed on one or more processors, perform the method of any one of claims 1 to 18.
Citation Information
Patent Citations
Method of electronic signature with threshold, and apparatus and program using it
JP2006203754A
Method and system for secure data record distribution using blockchain
JP2020516164A
Systems and methods for generating signatures
US20210036841A1
Method and system for secure data record distribution using a blockchain
US20210090072A1
Digital asset transfer method, digital asset transfer device, and program
WO2020230695A1
