<oembed><type>rich</type><version>1.0</version><title>Erik Aronesty [ARCHIVE] wrote</title><author_name>Erik Aronesty [ARCHIVE] (npub1y2…5taj0)</author_name><author_url>https://yabu.me/npub1y22yec0znyzw8qndy5qn5c2wgejkj0k9zsqra7kvrd6cd6896z4qm5taj0</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2023-07-25&#xA;🗒️ Summary of this message: The discussion is about the security of the blind MuSig scheme and the potential vulnerabilities it may have.&#xA;📝 Original message:&#xA;posk is &#34;proof of secret key&#34;.   so you cannot use wagner to select R&#xA;&#xA;On Mon, Jul 24, 2023 at 1:59 PM AdamISZ via bitcoin-dev &lt;&#xA;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&#xA;&gt; @ZmnSCPxj:&#xA;&gt;&#xA;&gt; yes, Wagner is the attack you were thinking of.&#xA;&gt;&#xA;&gt; And yeah, to avoid it, you should have the 3rd round of MuSig1, i.e. the R&#xA;&gt; commitments.&#xA;&gt;&#xA;&gt; @Tom:&#xA;&gt; As per above it seems you were more considering MuSig1 here, not MuSig2.&#xA;&gt; At least in this version. So you need the initial commitments to R.&#xA;&gt;&#xA;&gt; Jonas&#39; reply clearly has covered a lot of what matters here, but I wanted&#xA;&gt; to mention (using your notation):&#xA;&gt;&#xA;&gt; in s1 = c * a1 * x1 + r1, you expressed the idea that the challenge c&#xA;&gt; could be given to the server, to construct s1, but since a1 = H(L, X1) and&#xA;&gt; L is the serialization of all (in this case, 2) keys, that wouldn&#39;t work&#xA;&gt; for blinding the final key, right?&#xA;&gt; But, is it possible that this addresses the other problem?&#xA;&gt; If the server is given c1*a1 instead as the challenge for signing (with&#xA;&gt; their &#34;pure&#34; key x1), then perhaps it avoids the issue? Given what&#39;s on the&#xA;&gt; blockchain ends up allowing calculation of &#39;c&#39; and the aggregate key a1X1 +&#xA;&gt; a2X2, is it the case that you cannot find a1 and therefore you cannot&#xA;&gt; correlate the transaction with just the quantity &#39;c1*a1&#39; which the server&#xA;&gt; sees?&#xA;&gt;&#xA;&gt; But I agree with Jonas that this is just the start, i.e. the fundamental&#xA;&gt; requirement of a blind signing scheme is there has to be some guarantee of&#xA;&gt; no &#39;one more forgery&#39; possibility, so presumably there has to be some proof&#xA;&gt; that the signing request is &#39;well formed&#39; (Jonas expresses it below as a&#xA;&gt; ZKP of a SHA2 preimage .. it does not seem pretty but I agree that on the&#xA;&gt; face of it, that is what&#39;s needed).&#xA;&gt;&#xA;&gt; @Jonas, Erik:&#xA;&gt; &#39;posk&#39; is probably meant as &#39;proof of secret key&#39; which may(?) be a mixup&#xA;&gt; with what is sometimes referred to in the literature as &#34;KOSK&#34; (iirc they&#xA;&gt; used it in FROST for example). It isn&#39;t clear to me yet how that factors&#xA;&gt; into this scenario, although ofc it is for sure a potential building block&#xA;&gt; of these constructions.&#xA;&gt;&#xA;&gt; Sent with Proton Mail secure email.&#xA;&gt;&#xA;&gt; ------- Original Message -------&#xA;&gt; On Monday, July 24th, 2023 at 08:12, Jonas Nick via bitcoin-dev &lt;&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&gt;&#xA;&gt;&#xA;&gt; &gt; Hi Tom,&#xA;&gt; &gt;&#xA;&gt; &gt; I&#39;m not convinced that this works. As far as I know blind musig is still&#xA;&gt; an open&#xA;&gt; &gt; research problem. What the scheme you propose appears to try to prevent&#xA;&gt; is that&#xA;&gt; &gt; the server signs K times, but the client ends up with K+1 Schnorr&#xA;&gt; signatures for&#xA;&gt; &gt; the aggregate of the server&#39;s and the clients key. I think it&#39;s possible&#xA;&gt; to&#xA;&gt; &gt; apply a variant of the attack that makes MuSig1 insecure if the nonce&#xA;&gt; commitment&#xA;&gt; &gt; round was skipped or if the message isn&#39;t determined before sending the&#xA;&gt; nonce.&#xA;&gt; &gt; Here&#39;s how a malicious client would do that:&#xA;&gt; &gt;&#xA;&gt; &gt; - Obtain K R-values R1[0], ..., R1[K-1] from the server&#xA;&gt; &gt; - Let&#xA;&gt; &gt; R[i] := R1[i] + R2[i] for all i &lt;= K-1&#xA;&gt; &gt; R[K] := R1[0] + ... + R1[K-1]&#xA;&gt; &gt; c[i] := H(X, R[i], m[i]) for all i &lt;= K.&#xA;&gt; &gt; Using Wagner&#39;s algorithm, choose R2[0], ..., R2[K-1] such that&#xA;&gt; &gt; c[0] + ... + c[K-1] = c[K].&#xA;&gt; &gt; - Send c[0], ..., c[K-1] to the server to obtain s[0], ..., s[K-1].&#xA;&gt; &gt; - Let&#xA;&gt; &gt; s[K] = s[0] + ... + s[K-1].&#xA;&gt; &gt; Then (s[K], R[K]) is a valid signature from the server, since&#xA;&gt; &gt; s[K]G = R[K] + c[K]a1X1,&#xA;&gt; &gt; which the client can complete to a signature for public key X.&#xA;&gt; &gt;&#xA;&gt; &gt; What may work in your case is the following scheme:&#xA;&gt; &gt; - Client sends commitment to the public key X2, nonce R2 and message m&#xA;&gt; to the&#xA;&gt; &gt; server.&#xA;&gt; &gt; - Server replies with nonce R1 = k1G&#xA;&gt; &gt; - Client sends c to the server and proves in zero knowledge that c =&#xA;&gt; &gt; SHA256(X1 + X2, R1 + R2, m).&#xA;&gt; &gt; - Server replies with s1 = k1 + c*x1&#xA;&gt; &gt;&#xA;&gt; &gt; However, this is just some quick intuition and I&#39;m not sure if this&#xA;&gt; actually&#xA;&gt; &gt; works, but maybe worth exploring.&#xA;&gt; &gt; _______________________________________________&#xA;&gt; &gt; bitcoin-dev mailing list&#xA;&gt; &gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt; &gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt; _______________________________________________&#xA;&gt; bitcoin-dev mailing list&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230725/717e4669/attachment-0001.html&gt;</html></oembed>