<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2023-06-09T12:25:07Z</updated>
  <generator>https://yabu.me</generator>

  <title>Nostr notes by Tom Trevethan [ARCHIVE]</title>
  <author>
    <name>Tom Trevethan [ARCHIVE]</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://yabu.me/npub1axshsyxsl3vasj4z9549rvwdvhjmh52fw0ayj3ghtmdezx8cnuxqlwyw7n.rss" />
  <link href="https://yabu.me/npub1axshsyxsl3vasj4z9549rvwdvhjmh52fw0ayj3ghtmdezx8cnuxqlwyw7n" />
  <id>https://yabu.me/npub1axshsyxsl3vasj4z9549rvwdvhjmh52fw0ayj3ghtmdezx8cnuxqlwyw7n</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://yabu.me/nevent1qqsp9g78pj92hsw6jkjydgh2u2rarjg94r8kn0fzfgj47kx9qcphjdqzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sce03eug</id>
    
      <title type="html">📅 Original date posted:2023-08-10 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsp9g78pj92hsw6jkjydgh2u2rarjg94r8kn0fzfgj47kx9qcphjdqzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sce03eug" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs8rm8r5j75mvqh57y0d75ycqwm823s6yp96vgga05w6kmvzy4jfdgs8tmxg&#39;&gt;nevent1q…tmxg&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-08-10&lt;br/&gt;🗒️ Summary of this message: Blind signatures are used in the statechain protocol for bitcoin transactions to ensure security and prevent malicious signatures. The server generates partial signatures, but does not have access to the full key, message, or final signature. The receiver must verify all previous backup transactions and the total number of signatures before accepting the coin.&lt;br/&gt;📝 Original message:&lt;br/&gt;HI Lloyd,&lt;br/&gt;&lt;br/&gt;Yes, the blind signatures are for bitcoin transactions (these are&lt;br/&gt;timelocked &amp;#39;backup txs&amp;#39; if the server disappears). This is not standard&lt;br/&gt;&amp;#39;Schnorr blind signature&amp;#39; (like&lt;br/&gt;&lt;a href=&#34;https://suredbits.com/schnorr-applications-blind-signatures/&#34;&gt;https://suredbits.com/schnorr-applications-blind-signatures/&lt;/a&gt;) but a 2-of-2&lt;br/&gt;MuSig where two keys are required to generate the full signature, but one&lt;br/&gt;of them (the server) does not learn of either the full key, message (tx) or&lt;br/&gt;final signature.&lt;br/&gt;&lt;br/&gt;The server is explicitly trusted to report the total number of partial&lt;br/&gt;signatures it has generated for a specific key. If you can verify that ALL&lt;br/&gt;the signatures generated for a specific key were generated correctly, and&lt;br/&gt;the total number of them matches the number reported by the server, then&lt;br/&gt;there can be no other malicious valid signatures in existence. In this&lt;br/&gt;statechain protocol, the receiver of a coin must check all previous backup&lt;br/&gt;txs are valid, and that the total number of them matches the server&lt;br/&gt;reported signature count before accepting it.&lt;br/&gt;&lt;br/&gt;On Thu, Aug 10, 2023 at 4:30 AM Lloyd Fournier &amp;lt;lloyd.fourn at gmail.com&amp;gt;&lt;br/&gt;wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Hi Tom,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; These questions might be wrongheaded since I&amp;#39;m not familiar enough with&lt;br/&gt;&amp;gt; the statechain protocol. Here goes:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Why do you need to use schnorr blind signatures for this? Are the blind&lt;br/&gt;&amp;gt; signatures being used to produce on-chain tx signatures or are they just&lt;br/&gt;&amp;gt; for credentials for transferring ownership (or are they for both). If they&lt;br/&gt;&amp;gt; are for on-chain txs then you won&amp;#39;t be able to enforce that the signature&lt;br/&gt;&amp;gt; used was not generated maliciously so it doesn&amp;#39;t seem to me like your trick&lt;br/&gt;&amp;gt; above would help you here. I can fully verify that the state chain&lt;br/&gt;&amp;gt; signatures were all produced non-maliciously but then there may be another&lt;br/&gt;&amp;gt; hidden forged signature that can take the on-chain funds that were produced&lt;br/&gt;&amp;gt; by malicious signing sessions I was never aware of (or how can you be sure&lt;br/&gt;&amp;gt; this isn&amp;#39;t the case).&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Following on from that point, is it not possible to enforce sequential&lt;br/&gt;&amp;gt; blind signing in the statechain protocol under each key. With that you&lt;br/&gt;&amp;gt; don&amp;#39;t have the problem of wagner&amp;#39;s attack.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; LL&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Wed, 9 Aug 2023 at 23:34, Tom Trevethan via bitcoin-dev &amp;lt;&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; @moonsettler&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; When anyone receives a coin (either as payment or as part of a swap) they&lt;br/&gt;&amp;gt;&amp;gt; need to perform a verification of all previous signatures and&lt;br/&gt;&amp;gt;&amp;gt; corresponding backup txs. If anything is missing, then the verification&lt;br/&gt;&amp;gt;&amp;gt; will fail. So anyone &amp;#39;breaking the chain&amp;#39; by signing something&lt;br/&gt;&amp;gt;&amp;gt; incorrectly simply cannot then send that coin on.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; The second point is important. All the &amp;#39;transfer data&amp;#39; (i.e. new and all&lt;br/&gt;&amp;gt;&amp;gt; previous backup txs, signatures and values) is encrypted with the new owner&lt;br/&gt;&amp;gt;&amp;gt; public key. But the server cannot know this pubkey as this would enable it&lt;br/&gt;&amp;gt;&amp;gt; to compute the full coin pubkey and identify it on-chain. Currently, the&lt;br/&gt;&amp;gt;&amp;gt; server identifies individual coins (shared keys) with a statechain_id&lt;br/&gt;&amp;gt;&amp;gt; identifier (unrelated to the coin outpoint), which is used by the coin&lt;br/&gt;&amp;gt;&amp;gt; receiver to retrieve the transfer data via the API. But this means the&lt;br/&gt;&amp;gt;&amp;gt; receiver must be sent this identifier out-of-band by the sender, and also&lt;br/&gt;&amp;gt;&amp;gt; that if anyone else learns it they can corrupt the server key&lt;br/&gt;&amp;gt;&amp;gt; share/signature chain via the API. One solution to this is to have a second&lt;br/&gt;&amp;gt;&amp;gt; non-identifying key used only for authenticating with the server. This&lt;br/&gt;&amp;gt;&amp;gt; would mean a &amp;#39;statchain address&amp;#39; would then be composed of 2 separate&lt;br/&gt;&amp;gt;&amp;gt; pubkeys 1) for the shared taproot address and 2) for server authentication.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Thanks,&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Tom&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; On Tue, Aug 8, 2023 at 6:44 PM moonsettler &amp;lt;moonsettler at protonmail.com&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Very nice! Is there an authentication mechanism to avoid &amp;#39;breaking the&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; chain&amp;#39; with an unverifiable new state by a previous owner? Can the current&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; owner prove the knowledge of a non-identifying secret he learned as&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; recipient to the server that is related to the statechain tip?&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; BR,&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; moonsettler&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ------- Original Message -------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; On Monday, August 7th, 2023 at 2:55 AM, Tom Trevethan via bitcoin-dev &amp;lt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; A follow up to this, I have updated the blinded statechain protocol&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; description to include the mitigation to the Wagner attack by requiring the&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; server to send R1 values only after commitments made to the server of the&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; R2 values used by the user, and that all the previous computed c values are&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; verified by each new statecoin owner.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://github.com/commerceblock/mercury/blob/master/layer/protocol.md&#34;&gt;https://github.com/commerceblock/mercury/blob/master/layer/protocol.md&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Essentially, the attack is possible because the server cannot verify&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; that the blinded challenge (c) value it has been sent by the user has been&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; computed honestly (i.e. c = SHA256(X1 &#43; X2, R1 &#43; R2, m) ), however this CAN&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; be verified by each new owner of a statecoin for all the previous&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; signatures.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Each time an owner cooperates with the server to generate a signature on&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; a backup tx, the server will require that the owner send a commitment to&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; their R2 value: e.g. SHA256(R2). The server will store this value before&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; responding with it&amp;#39;s R1 value. This way, the owner cannot choose the value&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; of R2 (and hence c).&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; When the statecoin is received by a new owner, they will receive ALL&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; previous signed backup txs for that coin from the sender, and all the&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; corresponding R2 values used for each signature. They will then ask the&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; server (for each previous signature), the commitments SHA256(R2) and the&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; corresponding server generated R1 value and c value used. The new owner&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; will then verify that each backup tx is valid, and that each c value was&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; computed c = SHA256(X1 &#43; X2, R1 &#43; R2, m) and each commitment equals&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; SHA256(R2). This ensures that a previous owner could not have generated&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; more valid signatures than the server has partially signed.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; On Thu, Jul 27, 2023 at 2:25 PM Tom Trevethan &amp;lt;tom at commerceblock.com&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Thu, Jul 27, 2023 at 9:08 AM Jonas Nick &amp;lt;jonasdnick at gmail.com&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; No, proof of knowledge of the r values used to generate each R does&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not prevent&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Wagner&amp;#39;s attack. I wrote&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; Using Wagner&amp;#39;s algorithm, choose R2[0], ..., R2[K-1] such that&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; c[0] &#43; ... &#43; c[K-1] = c[K].&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You can think of this as actually choosing scalars r2[0], ..., r2[K-1]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; define R2[i] = r2[i]*G. The attacker chooses r2[i]. The attack&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; wouldn&amp;#39;t make&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; sense if he didn&amp;#39;t.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230810/e3f1fcb8/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230810/e3f1fcb8/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-08-10T23:09:38Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqs96nygxhlgetf6dv5qktz6v360jw7hwn8uk7hc5jsqt29yarv8a2szyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scstf4pj</id>
    
      <title type="html">📅 Original date posted:2023-08-06 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqs96nygxhlgetf6dv5qktz6v360jw7hwn8uk7hc5jsqt29yarv8a2szyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scstf4pj" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsp5qv0jxkr43ujlqr336q406zmp4lf6v7vg5rshkrp7smnjdda26gd3xc9q&#39;&gt;nevent1q…xc9q&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-08-06&lt;br/&gt;🗒️ Summary of this message: The blinded statechain protocol has been updated to include mitigation against the Wagner attack by requiring verification of previous computed values by new statecoin owners.&lt;br/&gt;📝 Original message:&lt;br/&gt;A follow up to this, I have updated the blinded statechain protocol&lt;br/&gt;description to include the mitigation to the Wagner attack by requiring the&lt;br/&gt;server to send R1 values only after commitments made to the server of the&lt;br/&gt;R2 values used by the user, and that all the previous computed c values are&lt;br/&gt;verified by each new statecoin owner.&lt;br/&gt;&lt;a href=&#34;https://github.com/commerceblock/mercury/blob/master/layer/protocol.md&#34;&gt;https://github.com/commerceblock/mercury/blob/master/layer/protocol.md&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Essentially, the attack is possible because the server cannot verify that&lt;br/&gt;the blinded challenge (c) value it has been sent by the user has been&lt;br/&gt;computed honestly (i.e. c = SHA256(X1 &#43; X2, R1 &#43; R2, m) ), however this CAN&lt;br/&gt;be verified by each new owner of a statecoin for all the previous&lt;br/&gt;signatures.&lt;br/&gt;&lt;br/&gt;Each time an owner cooperates with the server to generate a signature on a&lt;br/&gt;backup tx, the server will require that the owner send a commitment to&lt;br/&gt;their R2 value: e.g. SHA256(R2). The server will store this value before&lt;br/&gt;responding with it&amp;#39;s R1 value. This way, the owner cannot choose the value&lt;br/&gt;of R2 (and hence c).&lt;br/&gt;&lt;br/&gt;When the statecoin is received by a new owner, they will receive ALL&lt;br/&gt;previous signed backup txs for that coin from the sender, and all the&lt;br/&gt;corresponding R2 values used for each signature. They will then ask the&lt;br/&gt;server (for each previous signature), the commitments SHA256(R2) and the&lt;br/&gt;corresponding server generated R1 value and c value used. The new owner&lt;br/&gt;will then verify that each backup tx is valid, and that each c value was&lt;br/&gt;computed c = SHA256(X1 &#43; X2, R1 &#43; R2, m)  and each commitment equals&lt;br/&gt;SHA256(R2). This ensures that a previous owner could not have generated&lt;br/&gt;more valid signatures than the server has partially signed.&lt;br/&gt;&lt;br/&gt;On Thu, Jul 27, 2023 at 2:25 PM Tom Trevethan &amp;lt;tom at commerceblock.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Thu, Jul 27, 2023 at 9:08 AM Jonas Nick &amp;lt;jonasdnick at gmail.com&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; No, proof of knowledge of the r values used to generate each R does not&lt;br/&gt;&amp;gt;&amp;gt; prevent&lt;br/&gt;&amp;gt;&amp;gt; Wagner&amp;#39;s attack. I wrote&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;  &amp;gt;   Using Wagner&amp;#39;s algorithm, choose R2[0], ..., R2[K-1] such that&lt;br/&gt;&amp;gt;&amp;gt;  &amp;gt;    c[0] &#43; ... &#43; c[K-1] = c[K].&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; You can think of this as actually choosing scalars r2[0], ..., r2[K-1] and&lt;br/&gt;&amp;gt;&amp;gt; define R2[i] = r2[i]*G. The attacker chooses r2[i]. The attack wouldn&amp;#39;t&lt;br/&gt;&amp;gt;&amp;gt; make&lt;br/&gt;&amp;gt;&amp;gt; sense if he didn&amp;#39;t.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230807/f1841d99/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230807/f1841d99/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-08-08T14:20:52Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsd645euax8y678qega4gw4hqhypm5fnwuxawfjax0udchew9eu6fgzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sc56t664</id>
    
      <title type="html">📅 Original date posted:2023-07-26 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsd645euax8y678qega4gw4hqhypm5fnwuxawfjax0udchew9eu6fgzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sc56t664" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs80y4rdez9azfkdd53wqwl7494ys8te3zr428cz98k4utjzqy6u0clckg40&#39;&gt;nevent1q…kg40&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-07-26&lt;br/&gt;🗒️ Summary of this message: The scheme for blinding the challenge works well and doesn&amp;#39;t require modifying the aggregated pubkey. The receiver of a statecoin would verify the signatures and transactions.&lt;br/&gt;📝 Original message:&lt;br/&gt;@moonsettler&lt;br/&gt;&lt;br/&gt;Your scheme for blinding the challenge (e in your notation) works as far as&lt;br/&gt;I can tell. It is better than the way I suggested as it doesn&amp;#39;t require&lt;br/&gt;modifying the aggregated pubkey (and the blinding nonce can be different&lt;br/&gt;for each signature).&lt;br/&gt;&lt;br/&gt;@AdamISZ and @Jonas&lt;br/&gt;&lt;br/&gt;It is not necessarily the server that would need to verify that the&lt;br/&gt;challenge is &amp;#39;well formed&amp;#39;, but the receiver of a statecoin. The concept of&lt;br/&gt;having a blinded statechain server is that each signature generated for a&lt;br/&gt;shared public key must be verified by the receiver of the corresponding&lt;br/&gt;coin. So a receiver would retrieve the number of co-signings performed by&lt;br/&gt;the server (K) and then verify each of the K signatures, and K transactions&lt;br/&gt;that they have received from the sender. They can additionally verify that&lt;br/&gt;each of the K R values has been correctly formed with a proof of secret&lt;br/&gt;value for creating R2 (along with the R1 from the server).&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230726/28eeeab3/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230726/28eeeab3/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-07-27T00:26:34Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqs2dnjs99pnqk7jwtv7fvsrx4269lnnyet34gk9c96m863sh6fr9yczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0schwsyyn</id>
    
      <title type="html">📅 Original date posted:2023-07-24 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqs2dnjs99pnqk7jwtv7fvsrx4269lnnyet34gk9c96m863sh6fr9yczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0schwsyyn" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqst5gcgu57mvz973d58fak5hr5sjunxxskrf6trcwyhx79p7uc5s4ssmwek4&#39;&gt;nevent1q…wek4&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-07-24&lt;br/&gt;🗒️ Summary of this message: The sender is discussing with Jonas the need for a method to blind the value of c in order to prevent the server from learning the value of m.&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi Jonas,&lt;br/&gt;&lt;br/&gt;Seems you are right: for every tx, compute c from the on-chain data, and&lt;br/&gt;the server can match the c to the m (tx). So there would need to be a&lt;br/&gt;method for blinding the value of c.&lt;br/&gt;&lt;br/&gt;On Mon, Jul 24, 2023 at 4:39 PM Jonas Nick &amp;lt;jonasdnick at gmail.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt;  &amp;gt; Party 1 never learns the final value of (R,s1&#43;s2) or m.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Actually, it seems like a blinding step is missing. Assume the server&lt;br/&gt;&amp;gt; (party 1)&lt;br/&gt;&amp;gt; received some c during the signature protocol. Can&amp;#39;t the server scan the&lt;br/&gt;&amp;gt; blockchain for signatures, compute corresponding hashes c&amp;#39; = H(R||X||m) as&lt;br/&gt;&amp;gt; in&lt;br/&gt;&amp;gt; signature verification and then check c == c&amp;#39;? If true, then the server&lt;br/&gt;&amp;gt; has the&lt;br/&gt;&amp;gt; preimage for the c received from the client, including m.&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/2bc0b366/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/2bc0b366/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-07-27T00:26:33Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsr55mvp2xdvsvhxhdtd37qvrltsgwccwtlnvh40hgwa2tleqa7r3gzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scaezh0f</id>
    
      <title type="html">📅 Original date posted:2023-07-26 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsr55mvp2xdvsvhxhdtd37qvrltsgwccwtlnvh40hgwa2tleqa7r3gzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scaezh0f" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs2nkfzaalw2jejvmqjmrkd4l37atrc5avecflssf7ymwt0yd09evs6fkka0&#39;&gt;nevent1q…kka0&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-07-26&lt;br/&gt;🗒️ Summary of this message: Proving knowledge of the r values used in generating each R can prevent the Wagner attack, not signing or secret keys.&lt;br/&gt;📝 Original message:&lt;br/&gt;Not &amp;#39;signing&amp;#39; but &amp;#39;secret&amp;#39; i.e. the r values (ephemeral keys). Proof of&lt;br/&gt;knowledge of the r values used to generate each R used prevents the Wagner&lt;br/&gt;attack, no?&lt;br/&gt;&lt;br/&gt;On Wed, Jul 26, 2023 at 8:59 PM Jonas Nick &amp;lt;jonasdnick at gmail.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; None of the attacks mentioned in this thread so far (ZmnSCPxj mentioned an&lt;br/&gt;&amp;gt; attack on the nonces, I mentioned an attack on the challenge c) can be&lt;br/&gt;&amp;gt; prevented&lt;br/&gt;&amp;gt; by proving knowledge of the signing key (usually known as proof of&lt;br/&gt;&amp;gt; possession,&lt;br/&gt;&amp;gt; PoP).&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230726/05286983/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230726/05286983/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-07-27T00:26:33Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsr2dzqh3yuuv05f8wnlpcfs3wu6y63w4j4taec8taa7j8tezzuqlczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scdufxnq</id>
    
      <title type="html">📅 Original date posted:2023-07-25 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsr2dzqh3yuuv05f8wnlpcfs3wu6y63w4j4taec8taa7j8tezzuqlczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scdufxnq" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsy2fxwj06s8hs5550dmqaezaepsvnp0wj7x3qheq2ge6ged5wynkqc33aw8&#39;&gt;nevent1q…3aw8&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-07-25&lt;br/&gt;🗒️ Summary of this message: The v=2 nonces signing protocol of musig2 prevents the Wagner attack. The challenge value c must be blinded from the server to prevent signature determination.&lt;br/&gt;📝 Original message:&lt;br/&gt;Thanks for the replies. As I understand it, the v=2 nonces signing protocol&lt;br/&gt;of musig2 prevents the Wagner attack. Also, that the challenge value c must&lt;br/&gt;be blinded from the server to prevent the server from being able to&lt;br/&gt;determine the signature from the on-chain state.&lt;br/&gt;&lt;br/&gt;In addition, in order to update the server (party 1) keyshare when a&lt;br/&gt;statecoin is transferred between users, the key aggregation coefficient&lt;br/&gt;must be set to 1 for each key. The purpose of this coefficient in the&lt;br/&gt;Musig2 protocol is to prevent &amp;#39;rogue key attacks&amp;#39; where one party can&lt;br/&gt;choose a public key derived from both their own secret key and the inverse&lt;br/&gt;of the other party&amp;#39;s public key giving them the ability to unilaterally&lt;br/&gt;produce a valid signature over the aggregate key. However this can be&lt;br/&gt;prevented by the party producing a proof of knowledge of the private key&lt;br/&gt;corresponding to their supplied public key. This can be a signature, which&lt;br/&gt;is produced in any case by signing the statechain state in the mercury&lt;br/&gt;protocol. This signature must be verified by the receiver of a coin (who&lt;br/&gt;must also verify the server pubkey combines with the sender pubkey to get&lt;br/&gt;the coin address) which proves that the server is required to co-sign to&lt;br/&gt;generate any signature for this address.&lt;br/&gt;&lt;br/&gt;Here is a modified protocol:&lt;br/&gt;&lt;br/&gt;Keygen:&lt;br/&gt;&lt;br/&gt;Server generates private key x1 and public key X1 = x1.G and sends X1 to&lt;br/&gt;user (party 2)&lt;br/&gt;User generates private key x2 and public key X2 = x2.G and (random)&lt;br/&gt;blinding nonce z and computes the aggregate public key X = z.(X1 &#43; X2)&lt;br/&gt;(server never learns of X, X2 or z).&lt;br/&gt;&lt;br/&gt;Signing:&lt;br/&gt;&lt;br/&gt;Server generates nonces r11 and r12 and R11 = r11.G and R12 = r12.G and&lt;br/&gt;sends R11 and R12 to the user.&lt;br/&gt;User generates nonces r21 and r22 and R21 = r21.G and R22 = r22.G&lt;br/&gt;User computes R1 = R11 &#43; R21 and R2 = R12 &#43; R22 and b = H(X,(R1,R2),m) and&lt;br/&gt;R = R1 &#43; b.R2 and c = (X,R,m)&lt;br/&gt;User sends the values y = cz and b to the server.&lt;br/&gt;Server computes s1 = yx1 &#43; r11 &#43; br12 and sends it to the user.&lt;br/&gt;User computes s2 = yx2 &#43; r21 &#43; br22 and s = s1 &#43; s2 and signature (s,R)&lt;br/&gt;&lt;br/&gt;Transfer:&lt;br/&gt;&lt;br/&gt;In a statecoin transfer, when receiving a statecoin, in order to verify&lt;br/&gt;that the coin address (i.e. aggregate public key) is shared correctly&lt;br/&gt;between the previous owner and the server, the client must verify the&lt;br/&gt;following:&lt;br/&gt;&lt;br/&gt;Retrieve the CURRENT public key from the server for this coin X1.&lt;br/&gt;Retrieve the public key X2 and the blinding nonce z from the sender.&lt;br/&gt;Verify that z.X1 &#43; X2 = P the address of the statecoin.&lt;br/&gt;Verify that the sender has the private key used to generate X2: this is&lt;br/&gt;done by verifying the statechain signature over the receiver public key X3&lt;br/&gt;from X2.&lt;br/&gt;This proves that the address P was generated (aggregated) with the server&lt;br/&gt;and can only be signed with cooperation with the server, i.e. no previous&lt;br/&gt;owner can hold the full key.&lt;br/&gt;&lt;br/&gt;In order to update the key shares on transfer, the following protocol can&lt;br/&gt;be used:&lt;br/&gt;&lt;br/&gt;Server (party 1) generates a random blinding nonce e and sends it to user.&lt;br/&gt;User adds their private key to the nonce: t1 = e &#43; x2&lt;br/&gt;Client sends t1 and z to the reciever as part of transfer_msg (encrypted&lt;br/&gt;with the receiver public key X3 = x3.G).&lt;br/&gt;Receiver client decrypts t1 and then subtracts their private key x3: t2 = e&lt;br/&gt;&#43; x2 - x3.&lt;br/&gt;Receiver client sends t2 to the server as part of transfer_receiver.&lt;br/&gt;Server the updates the private key share x1_2 = x1 &#43; t2 - e = x1 &#43; e &#43; x2 -&lt;br/&gt;x3 - e = x1 &#43; x2 - x3&lt;br/&gt;So now, x1_2 &#43; x3 (the aggregation of the new server key share with the new&lt;br/&gt;client key share) is equal to x1 &#43; x2 (the aggregation of the old server&lt;br/&gt;key share with the old client key share).&lt;br/&gt;The server deletes x1.&lt;br/&gt;&lt;br/&gt;On Tue, Jul 25, 2023 at 3:12 PM Erik Aronesty &amp;lt;erik at q32.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; posk is &amp;#34;proof of secret key&amp;#34;.   so you cannot use wagner to select R&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Mon, Jul 24, 2023 at 1:59 PM AdamISZ via bitcoin-dev &amp;lt;&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; @ZmnSCPxj:&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; yes, Wagner is the attack you were thinking of.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; And yeah, to avoid it, you should have the 3rd round of MuSig1, i.e. the&lt;br/&gt;&amp;gt;&amp;gt; R commitments.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; @Tom:&lt;br/&gt;&amp;gt;&amp;gt; As per above it seems you were more considering MuSig1 here, not MuSig2.&lt;br/&gt;&amp;gt;&amp;gt; At least in this version. So you need the initial commitments to R.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Jonas&amp;#39; reply clearly has covered a lot of what matters here, but I wanted&lt;br/&gt;&amp;gt;&amp;gt; to mention (using your notation):&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; in s1 = c * a1 * x1 &#43; r1, you expressed the idea that the challenge c&lt;br/&gt;&amp;gt;&amp;gt; could be given to the server, to construct s1, but since a1 = H(L, X1) and&lt;br/&gt;&amp;gt;&amp;gt; L is the serialization of all (in this case, 2) keys, that wouldn&amp;#39;t work&lt;br/&gt;&amp;gt;&amp;gt; for blinding the final key, right?&lt;br/&gt;&amp;gt;&amp;gt; But, is it possible that this addresses the other problem?&lt;br/&gt;&amp;gt;&amp;gt; If the server is given c1*a1 instead as the challenge for signing (with&lt;br/&gt;&amp;gt;&amp;gt; their &amp;#34;pure&amp;#34; key x1), then perhaps it avoids the issue? Given what&amp;#39;s on the&lt;br/&gt;&amp;gt;&amp;gt; blockchain ends up allowing calculation of &amp;#39;c&amp;#39; and the aggregate key a1X1 &#43;&lt;br/&gt;&amp;gt;&amp;gt; a2X2, is it the case that you cannot find a1 and therefore you cannot&lt;br/&gt;&amp;gt;&amp;gt; correlate the transaction with just the quantity &amp;#39;c1*a1&amp;#39; which the server&lt;br/&gt;&amp;gt;&amp;gt; sees?&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; But I agree with Jonas that this is just the start, i.e. the fundamental&lt;br/&gt;&amp;gt;&amp;gt; requirement of a blind signing scheme is there has to be some guarantee of&lt;br/&gt;&amp;gt;&amp;gt; no &amp;#39;one more forgery&amp;#39; possibility, so presumably there has to be some proof&lt;br/&gt;&amp;gt;&amp;gt; that the signing request is &amp;#39;well formed&amp;#39; (Jonas expresses it below as a&lt;br/&gt;&amp;gt;&amp;gt; ZKP of a SHA2 preimage .. it does not seem pretty but I agree that on the&lt;br/&gt;&amp;gt;&amp;gt; face of it, that is what&amp;#39;s needed).&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; @Jonas, Erik:&lt;br/&gt;&amp;gt;&amp;gt; &amp;#39;posk&amp;#39; is probably meant as &amp;#39;proof of secret key&amp;#39; which may(?) be a mixup&lt;br/&gt;&amp;gt;&amp;gt; with what is sometimes referred to in the literature as &amp;#34;KOSK&amp;#34; (iirc they&lt;br/&gt;&amp;gt;&amp;gt; used it in FROST for example). It isn&amp;#39;t clear to me yet how that factors&lt;br/&gt;&amp;gt;&amp;gt; into this scenario, although ofc it is for sure a potential building block&lt;br/&gt;&amp;gt;&amp;gt; of these constructions.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Sent with Proton Mail secure email.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; ------- Original Message -------&lt;br/&gt;&amp;gt;&amp;gt; On Monday, July 24th, 2023 at 08:12, Jonas Nick via bitcoin-dev &amp;lt;&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Hi Tom,&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; I&amp;#39;m not convinced that this works. As far as I know blind musig is&lt;br/&gt;&amp;gt;&amp;gt; still an open&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; research problem. What the scheme you propose appears to try to prevent&lt;br/&gt;&amp;gt;&amp;gt; is that&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; the server signs K times, but the client ends up with K&#43;1 Schnorr&lt;br/&gt;&amp;gt;&amp;gt; signatures for&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; the aggregate of the server&amp;#39;s and the clients key. I think it&amp;#39;s&lt;br/&gt;&amp;gt;&amp;gt; possible to&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; apply a variant of the attack that makes MuSig1 insecure if the nonce&lt;br/&gt;&amp;gt;&amp;gt; commitment&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; round was skipped or if the message isn&amp;#39;t determined before sending the&lt;br/&gt;&amp;gt;&amp;gt; nonce.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Here&amp;#39;s how a malicious client would do that:&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Obtain K R-values R1[0], ..., R1[K-1] from the server&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Let&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; R[i] := R1[i] &#43; R2[i] for all i &amp;lt;= K-1&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; R[K] := R1[0] &#43; ... &#43; R1[K-1]&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; c[i] := H(X, R[i], m[i]) for all i &amp;lt;= K.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Using Wagner&amp;#39;s algorithm, choose R2[0], ..., R2[K-1] such that&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; c[0] &#43; ... &#43; c[K-1] = c[K].&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Send c[0], ..., c[K-1] to the server to obtain s[0], ..., s[K-1].&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Let&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; s[K] = s[0] &#43; ... &#43; s[K-1].&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Then (s[K], R[K]) is a valid signature from the server, since&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; s[K]G = R[K] &#43; c[K]a1X1,&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; which the client can complete to a signature for public key X.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; What may work in your case is the following scheme:&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Client sends commitment to the public key X2, nonce R2 and message m&lt;br/&gt;&amp;gt;&amp;gt; to the&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; server.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Server replies with nonce R1 = k1G&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Client sends c to the server and proves in zero knowledge that c =&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; SHA256(X1 &#43; X2, R1 &#43; R2, m).&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; - Server replies with s1 = k1 &#43; c*x1&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; However, this is just some quick intuition and I&amp;#39;m not sure if this&lt;br/&gt;&amp;gt;&amp;gt; actually&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; works, but maybe worth exploring.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230725/f5e995d9/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230725/f5e995d9/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-07-27T00:26:33Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsv524d0yyt9xedak7dry7v5rm59lq8j8nzxsu6emqdlgnc8jve0sczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sc0u2745</id>
    
      <title type="html">📅 Original date posted:2023-07-24 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsv524d0yyt9xedak7dry7v5rm59lq8j8nzxsu6emqdlgnc8jve0sczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sc0u2745" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsyq3uh76yqczfw806glc8c40uhrvyac860j0jeggcjqfkse6x2p4gdayxsl&#39;&gt;nevent1q…yxsl&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-07-24&lt;br/&gt;🗒️ Summary of this message: The current statechain protocol requires the sender to sign the statechain with their public key, preventing rogue key attacks and ensuring server cooperation for spending.&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi Eric,&lt;br/&gt;&lt;br/&gt;Yes, this was my thinking. The current statechain protocol requires that&lt;br/&gt;the sender of a coin sign the statechain with their public key, which is&lt;br/&gt;then verified by the receiver. The receiver also verifies that this&lt;br/&gt;(sender) public key aggregated with the current server public key&lt;br/&gt;corresponds to the public key (TR address) of the coin. This prevents a&lt;br/&gt;&amp;#39;rogue key&amp;#39; attack by the sender and verifies that this coin cannot be&lt;br/&gt;spent without cooperation of the server.&lt;br/&gt;&lt;br/&gt;On Mon, Jul 24, 2023 at 3:25 PM Erik Aronesty &amp;lt;erik at q32.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; as long as all parties provide a proof of secret key along with their&lt;br/&gt;&amp;gt; public key, that should not be possible&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; or you can do it as a two-step process where all parties provide a&lt;br/&gt;&amp;gt; commitment to the public key and nobody reveals a public key until that&lt;br/&gt;&amp;gt; commitment is received&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; or if you want to be paranoid you can do both&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Mon, Jul 24, 2023, 7:00 AM ZmnSCPxj via bitcoin-dev &amp;lt;&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Good morning Tom,&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Would this allow party 2 to itself be composed of N &amp;gt;= 2 parties?&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; MuSig2 (as opposed to MuSig1) requires that signatories provide multiple&lt;br/&gt;&amp;gt;&amp;gt; `R` points, not just one each, which are finally aggregated by first&lt;br/&gt;&amp;gt;&amp;gt; combining them using the MuSig() public key compose function.&lt;br/&gt;&amp;gt;&amp;gt; This prevents party 2 from creating an `R` that may allow it to perform&lt;br/&gt;&amp;gt;&amp;gt; certain attacks whose name escapes me right now but which I used to know.&lt;br/&gt;&amp;gt;&amp;gt; (it is the reason why MuSig1 requires 3 round trips, and why MuSig2&lt;br/&gt;&amp;gt;&amp;gt; requires at least 2 `R` nonces per signatory)&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Your scheme has only one `R` per party, would it not be vulnerably to&lt;br/&gt;&amp;gt;&amp;gt; that attack?&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Regards,&lt;br/&gt;&amp;gt;&amp;gt; ZmnSCPxj&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Sent with Proton Mail secure email.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; ------- Original Message -------&lt;br/&gt;&amp;gt;&amp;gt; On Monday, July 24th, 2023 at 7:46 AM, Tom Trevethan via bitcoin-dev &amp;lt;&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; We are implementing a version of 2-of-2 Schnorr Musig2 for statechains&lt;br/&gt;&amp;gt;&amp;gt; where the server (party 1 in the 2-of-2) will be fully &amp;#39;blinded&amp;#39; - in that&lt;br/&gt;&amp;gt;&amp;gt; it can hold a private key that is required to generate an aggregate&lt;br/&gt;&amp;gt;&amp;gt; signature on an aggregate public key, but that it does not learn either: 1)&lt;br/&gt;&amp;gt;&amp;gt; The aggregate public key 2) The aggregate signature and 3) The message (m)&lt;br/&gt;&amp;gt;&amp;gt; being signed.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; In the model of blinded statechains, the security rests on the&lt;br/&gt;&amp;gt;&amp;gt; statechain server being trusted to report the NUMBER of partial signatures&lt;br/&gt;&amp;gt;&amp;gt; it has generated for a particular key (as opposed to being trusted to&lt;br/&gt;&amp;gt;&amp;gt; enforce rules on WHAT it has signed in the unblinded case) and the full set&lt;br/&gt;&amp;gt;&amp;gt; of signatures generated being verified client side&lt;br/&gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://github.com/commerceblock/mercury/blob/master/doc/merc_blind.md#blinding-considerations&#34;&gt;https://github.com/commerceblock/mercury/blob/master/doc/merc_blind.md#blinding-considerations&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Given the 2-of-2 musig2 protocol operates as follows (in the following&lt;br/&gt;&amp;gt;&amp;gt; description, private keys (field elements) are denoted using lower case&lt;br/&gt;&amp;gt;&amp;gt; letters, and elliptic curve points as uppercase letters. G is the generator&lt;br/&gt;&amp;gt;&amp;gt; point and point multiplication denoted as X = xG and point addition as A =&lt;br/&gt;&amp;gt;&amp;gt; G &#43; G):&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Party 1 generates private key x1 and public key X1 = x1G. Party 2&lt;br/&gt;&amp;gt;&amp;gt; generates private key x2 and public key X2 = x2G. The set of pubkeys is L =&lt;br/&gt;&amp;gt;&amp;gt; {X1,X2}. The key aggregation coefficient is KeyAggCoef(L,X) = H(L,X). The&lt;br/&gt;&amp;gt;&amp;gt; shared (aggregate) public key X = a1X1 &#43; a2X2 where a1 = KeyAggCoef(L,X1)&lt;br/&gt;&amp;gt;&amp;gt; and a2 = KeyAggCoef(L,X2).&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; To sign a message m, party 1 generates nonce r1 and R1 = r1G. Party 2&lt;br/&gt;&amp;gt;&amp;gt; generates nonce r2 and R2 = r2G. These are aggregated into R = R1 &#43; R2.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Party 1 then computes &amp;#39;challenge&amp;#39; c = H(X||R||m) and s1 = c.a1.x1 &#43; r1&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Party 2 then computes &amp;#39;challenge&amp;#39; c = H(X||R||m) and s2 = c.a2.x2 &#43; r2&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; The final signature is then (R,s1&#43;s2).&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; In the case of blinding this for party 1:&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; To prevent party 1 from learning of either the full public key or final&lt;br/&gt;&amp;gt;&amp;gt; signature seems straightforward, if party 1 doesn&amp;#39;t not need to&lt;br/&gt;&amp;gt;&amp;gt; independently compute and verify c = H(X||R||m) (as they are blinded from&lt;br/&gt;&amp;gt;&amp;gt; the message in any case).&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; 1) Key aggregation is performed only by party 2. Party 1 just sends X1&lt;br/&gt;&amp;gt;&amp;gt; to party 2.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; 2) Nonce aggregation is performed only by party 2. Party 1 just sends&lt;br/&gt;&amp;gt;&amp;gt; R1 to party 2.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; 3) Party 2 computes c = H(X||R||m) and sends it to party 1 in order to&lt;br/&gt;&amp;gt;&amp;gt; compute s1 = c.a1.x1 &#43; r1&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Party 1 never learns the final value of (R,s1&#43;s2) or m.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Any comments on this or potential issues would be appreciated.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Tom&lt;br/&gt;&amp;gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/fe1fc970/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/fe1fc970/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-07-27T00:26:32Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqs2fum5yup67y6gm29xup87586uw2tcyqwy8wthcz656xszngw2qcqzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sczmuw0j</id>
    
      <title type="html">📅 Original date posted:2023-07-24 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqs2fum5yup67y6gm29xup87586uw2tcyqwy8wthcz656xszngw2qcqzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sczmuw0j" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsv524d0yyt9xedak7dry7v5rm59lq8j8nzxsu6emqdlgnc8jve0sc2vzp43&#39;&gt;nevent1q…zp43&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-07-24&lt;br/&gt;🗒️ Summary of this message: The sender acknowledges that the full scheme should have multiple nonces and compute b, but it doesn&amp;#39;t change the approach to blinding.&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi ZmnSCPxj,&lt;br/&gt;&lt;br/&gt;Yes, you are correct - the full scheme (&lt;br/&gt;&lt;a href=&#34;https://eprint.iacr.org/2020/1261.pdf&#34;&gt;https://eprint.iacr.org/2020/1261.pdf&lt;/a&gt;) should have two or more nonces (and&lt;br/&gt;also compute b). I don&amp;#39;t think this changes the approach to blinding&lt;br/&gt;however.&lt;br/&gt;&lt;br/&gt;On Mon, Jul 24, 2023 at 11:50 AM ZmnSCPxj &amp;lt;ZmnSCPxj at protonmail.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Good morning Tom,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Would this allow party 2 to itself be composed of N &amp;gt;= 2 parties?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; MuSig2 (as opposed to MuSig1) requires that signatories provide multiple&lt;br/&gt;&amp;gt; `R` points, not just one each, which are finally aggregated by first&lt;br/&gt;&amp;gt; combining them using the MuSig() public key compose function.&lt;br/&gt;&amp;gt; This prevents party 2 from creating an `R` that may allow it to perform&lt;br/&gt;&amp;gt; certain attacks whose name escapes me right now but which I used to know.&lt;br/&gt;&amp;gt; (it is the reason why MuSig1 requires 3 round trips, and why MuSig2&lt;br/&gt;&amp;gt; requires at least 2 `R` nonces per signatory)&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Your scheme has only one `R` per party, would it not be vulnerably to that&lt;br/&gt;&amp;gt; attack?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Regards,&lt;br/&gt;&amp;gt; ZmnSCPxj&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Sent with Proton Mail secure email.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ------- Original Message -------&lt;br/&gt;&amp;gt; On Monday, July 24th, 2023 at 7:46 AM, Tom Trevethan via bitcoin-dev &amp;lt;&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; We are implementing a version of 2-of-2 Schnorr Musig2 for statechains&lt;br/&gt;&amp;gt; where the server (party 1 in the 2-of-2) will be fully &amp;#39;blinded&amp;#39; - in that&lt;br/&gt;&amp;gt; it can hold a private key that is required to generate an aggregate&lt;br/&gt;&amp;gt; signature on an aggregate public key, but that it does not learn either: 1)&lt;br/&gt;&amp;gt; The aggregate public key 2) The aggregate signature and 3) The message (m)&lt;br/&gt;&amp;gt; being signed.&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; In the model of blinded statechains, the security rests on the&lt;br/&gt;&amp;gt; statechain server being trusted to report the NUMBER of partial signatures&lt;br/&gt;&amp;gt; it has generated for a particular key (as opposed to being trusted to&lt;br/&gt;&amp;gt; enforce rules on WHAT it has signed in the unblinded case) and the full set&lt;br/&gt;&amp;gt; of signatures generated being verified client side&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/commerceblock/mercury/blob/master/doc/merc_blind.md#blinding-considerations&#34;&gt;https://github.com/commerceblock/mercury/blob/master/doc/merc_blind.md#blinding-considerations&lt;/a&gt;&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; Given the 2-of-2 musig2 protocol operates as follows (in the following&lt;br/&gt;&amp;gt; description, private keys (field elements) are denoted using lower case&lt;br/&gt;&amp;gt; letters, and elliptic curve points as uppercase letters. G is the generator&lt;br/&gt;&amp;gt; point and point multiplication denoted as X = xG and point addition as A =&lt;br/&gt;&amp;gt; G &#43; G):&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; Party 1 generates private key x1 and public key X1 = x1G. Party 2&lt;br/&gt;&amp;gt; generates private key x2 and public key X2 = x2G. The set of pubkeys is L =&lt;br/&gt;&amp;gt; {X1,X2}. The key aggregation coefficient is KeyAggCoef(L,X) = H(L,X). The&lt;br/&gt;&amp;gt; shared (aggregate) public key X = a1X1 &#43; a2X2 where a1 = KeyAggCoef(L,X1)&lt;br/&gt;&amp;gt; and a2 = KeyAggCoef(L,X2).&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; To sign a message m, party 1 generates nonce r1 and R1 = r1G. Party 2&lt;br/&gt;&amp;gt; generates nonce r2 and R2 = r2G. These are aggregated into R = R1 &#43; R2.&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; Party 1 then computes &amp;#39;challenge&amp;#39; c = H(X||R||m) and s1 = c.a1.x1 &#43; r1&lt;br/&gt;&amp;gt; &amp;gt; Party 2 then computes &amp;#39;challenge&amp;#39; c = H(X||R||m) and s2 = c.a2.x2 &#43; r2&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; The final signature is then (R,s1&#43;s2).&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; In the case of blinding this for party 1:&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; To prevent party 1 from learning of either the full public key or final&lt;br/&gt;&amp;gt; signature seems straightforward, if party 1 doesn&amp;#39;t not need to&lt;br/&gt;&amp;gt; independently compute and verify c = H(X||R||m) (as they are blinded from&lt;br/&gt;&amp;gt; the message in any case).&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; 1) Key aggregation is performed only by party 2. Party 1 just sends X1&lt;br/&gt;&amp;gt; to party 2.&lt;br/&gt;&amp;gt; &amp;gt; 2) Nonce aggregation is performed only by party 2. Party 1 just sends R1&lt;br/&gt;&amp;gt; to party 2.&lt;br/&gt;&amp;gt; &amp;gt; 3) Party 2 computes c = H(X||R||m) and sends it to party 1 in order to&lt;br/&gt;&amp;gt; compute s1 = c.a1.x1 &#43; r1&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; Party 1 never learns the final value of (R,s1&#43;s2) or m.&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; Any comments on this or potential issues would be appreciated.&lt;br/&gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; Tom&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/1df56267/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/1df56267/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-07-27T00:26:32Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsvrupcajy06dkrgefk4zhsx7uddxe7rk9ccmjxckpmnw90n2hmq9qzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scs5mafh</id>
    
      <title type="html">📅 Original date posted:2023-07-24 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsvrupcajy06dkrgefk4zhsx7uddxe7rk9ccmjxckpmnw90n2hmq9qzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scs5mafh" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsgd2rjtz3ftu8g5m8qd9tuud52v9rv73d8xymaptm0esrjnnjengqr2670e&#39;&gt;nevent1q…670e&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-07-24&lt;br/&gt;🗒️ Summary of this message: A version of 2-of-2 Schnorr Musig2 is being implemented for statechains, where the server is fully blinded and does not learn certain information. The security relies on the server reporting the number of partial signatures generated and verifying the signatures client-side. The protocol operates by generating private and public keys, aggregating the public keys, generating nonces, computing challenges, and creating the final signature. In the case of blinding for party 1, key aggregation and nonce aggregation are performed by party 2, and party 1 does not learn the final signature or the message being signed.&lt;br/&gt;📝 Original message:&lt;br/&gt;We are implementing a version of 2-of-2 Schnorr Musig2 for statechains&lt;br/&gt;where the server (party 1 in the 2-of-2) will be fully &amp;#39;blinded&amp;#39; - in that&lt;br/&gt;it can hold a private key that is required to generate an aggregate&lt;br/&gt;signature on an aggregate public key, but that it does not learn either: 1)&lt;br/&gt;The aggregate public key 2) The aggregate signature and 3) The message (m)&lt;br/&gt;being signed.&lt;br/&gt;&lt;br/&gt;In the model of blinded statechains, the security rests on the statechain&lt;br/&gt;server being trusted to report the NUMBER of partial signatures it has&lt;br/&gt;generated for a particular key (as opposed to being trusted to enforce&lt;br/&gt;rules on WHAT it has signed in the unblinded case) and the full set of&lt;br/&gt;signatures generated being verified client side&lt;br/&gt;&lt;a href=&#34;https://github.com/commerceblock/mercury/blob/master/doc/merc_blind.md#blinding-considerations&#34;&gt;https://github.com/commerceblock/mercury/blob/master/doc/merc_blind.md#blinding-considerations&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Given the 2-of-2 musig2 protocol operates as follows (in the following&lt;br/&gt;description, private keys (field elements) are denoted using lower case&lt;br/&gt;letters, and elliptic curve points as uppercase letters. G is the generator&lt;br/&gt;point and point multiplication denoted as X = xG and point addition as A =&lt;br/&gt;G &#43; G):&lt;br/&gt;&lt;br/&gt;Party 1 generates private key x1 and public key X1 = x1G. Party 2 generates&lt;br/&gt;private key x2 and public key X2 = x2G. The set of pubkeys is L = {X1,X2}.&lt;br/&gt;The key aggregation coefficient is KeyAggCoef(L,X) = H(L,X). The shared&lt;br/&gt;(aggregate) public key X = a1X1 &#43; a2X2 where a1 = KeyAggCoef(L,X1) and a2 =&lt;br/&gt;KeyAggCoef(L,X2).&lt;br/&gt;&lt;br/&gt;To sign a message m, party 1 generates nonce r1 and R1 = r1G. Party 2&lt;br/&gt;generates nonce r2 and R2 = r2G. These are aggregated into R = R1 &#43; R2.&lt;br/&gt;&lt;br/&gt;Party 1 then computes &amp;#39;challenge&amp;#39; c = H(X||R||m) and s1 = c.a1.x1 &#43; r1&lt;br/&gt;Party 2 then computes &amp;#39;challenge&amp;#39; c = H(X||R||m) and s2 = c.a2.x2 &#43; r2&lt;br/&gt;&lt;br/&gt;The final signature is then (R,s1&#43;s2).&lt;br/&gt;&lt;br/&gt;In the case of blinding this for party 1:&lt;br/&gt;&lt;br/&gt;To prevent party 1 from learning of either the full public key or final&lt;br/&gt;signature seems straightforward, if party 1 doesn&amp;#39;t not need to&lt;br/&gt;independently compute and verify c = H(X||R||m) (as they are blinded from&lt;br/&gt;the message in any case).&lt;br/&gt;&lt;br/&gt;1) Key aggregation is performed only by party 2. Party 1 just sends X1 to&lt;br/&gt;party 2.&lt;br/&gt;2) Nonce aggregation is performed only by party 2. Party 1 just sends R1 to&lt;br/&gt;party 2.&lt;br/&gt;3) Party 2 computes c = H(X||R||m) and sends it to party 1 in order to&lt;br/&gt;compute s1 = c.a1.x1 &#43; r1&lt;br/&gt;&lt;br/&gt;Party 1 never learns the final value of (R,s1&#43;s2) or m.&lt;br/&gt;&lt;br/&gt;Any comments on this or potential issues would be appreciated.&lt;br/&gt;&lt;br/&gt;Tom&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/9454c8c8/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230724/9454c8c8/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-07-24T11:36:00Z</updated>
  </entry>

</feed>