<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2023-06-09T14:25:07&#43;02:00</updated>
  <generator>https://nostr.ae</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://nostr.ae/npub1axshsyxsl3vasj4z9549rvwdvhjmh52fw0ayj3ghtmdezx8cnuxqlwyw7n.rss" />
  <link href="https://nostr.ae/npub1axshsyxsl3vasj4z9549rvwdvhjmh52fw0ayj3ghtmdezx8cnuxqlwyw7n" />
  <id>https://nostr.ae/npub1axshsyxsl3vasj4z9549rvwdvhjmh52fw0ayj3ghtmdezx8cnuxqlwyw7n</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://nostr.ae/nevent1qqsp9g78pj92hsw6jkjydgh2u2rarjg94r8kn0fzfgj47kx9qcphjdqzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sce03eug</id>
    
      <title type="html">📅 Original date posted:2023-08-10 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://nostr.ae/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-11T01:09:38&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsvektlvvxx0wed7rq9ren45ngxsfs4w25qa5cmyzprrgnhd3a9a7gzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scpxz0c5</id>
    
      <title type="html">📅 Original date posted:2023-08-09 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsvektlvvxx0wed7rq9ren45ngxsfs4w25qa5cmyzprrgnhd3a9a7gzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scpxz0c5" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsz033mpau93hhng099gkcwd5pw6l4wv2hglzws7tfzuv74g95elrc43xk3w&#39;&gt;nevent1q…xk3w&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-08-09&lt;br/&gt;🗒️ Summary of this message: Coins in the statechain protocol require verification of previous signatures and backup transactions. Transfer data is encrypted with the new owner&amp;#39;s public key, and a non-identifying key can be used for authentication with the server.&lt;br/&gt;📝 Original message:&lt;br/&gt;@moonsettler&lt;br/&gt;&lt;br/&gt;When anyone receives a coin (either as payment or as part of a swap) they&lt;br/&gt;need to perform a verification of all previous signatures and&lt;br/&gt;corresponding backup txs. If anything is missing, then the verification&lt;br/&gt;will fail. So anyone &amp;#39;breaking the chain&amp;#39; by signing something&lt;br/&gt;incorrectly simply cannot then send that coin on.&lt;br/&gt;&lt;br/&gt;The second point is important. All the &amp;#39;transfer data&amp;#39; (i.e. new and all&lt;br/&gt;previous backup txs, signatures and values) is encrypted with the new owner&lt;br/&gt;public key. But the server cannot know this pubkey as this would enable it&lt;br/&gt;to compute the full coin pubkey and identify it on-chain. Currently, the&lt;br/&gt;server identifies individual coins (shared keys) with a statechain_id&lt;br/&gt;identifier (unrelated to the coin outpoint), which is used by the coin&lt;br/&gt;receiver to retrieve the transfer data via the API. But this means the&lt;br/&gt;receiver must be sent this identifier out-of-band by the sender, and also&lt;br/&gt;that if anyone else learns it they can corrupt the server key&lt;br/&gt;share/signature chain via the API. One solution to this is to have a second&lt;br/&gt;non-identifying key used only for authenticating with the server. This&lt;br/&gt;would mean a &amp;#39;statchain address&amp;#39; would then be composed of 2 separate&lt;br/&gt;pubkeys 1) for the shared taproot address and 2) for server authentication.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Tom&lt;br/&gt;&lt;br/&gt;On Tue, Aug 8, 2023 at 6:44 PM moonsettler &amp;lt;moonsettler at protonmail.com&amp;gt;&lt;br/&gt;wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Very nice! Is there an authentication mechanism to avoid &amp;#39;breaking the&lt;br/&gt;&amp;gt; chain&amp;#39; with an unverifiable new state by a previous owner? Can the current&lt;br/&gt;&amp;gt; owner prove the knowledge of a non-identifying secret he learned as&lt;br/&gt;&amp;gt; recipient to the server that is related to the statechain tip?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; BR,&lt;br/&gt;&amp;gt; moonsettler&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ------- Original Message -------&lt;br/&gt;&amp;gt; On Monday, August 7th, 2023 at 2:55 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; A follow up to this, I have updated the blinded statechain protocol&lt;br/&gt;&amp;gt; description to include the mitigation to the Wagner attack by requiring the&lt;br/&gt;&amp;gt; server to send R1 values only after commitments made to the server of the&lt;br/&gt;&amp;gt; R2 values used by the user, and that all the previous computed c values are&lt;br/&gt;&amp;gt; verified by each new statecoin owner.&lt;br/&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;&lt;br/&gt;&amp;gt; Essentially, the attack is possible because the server cannot verify that&lt;br/&gt;&amp;gt; the blinded challenge (c) value it has been sent by the user has been&lt;br/&gt;&amp;gt; computed honestly (i.e. c = SHA256(X1 &#43; X2, R1 &#43; R2, m) ), however this CAN&lt;br/&gt;&amp;gt; be verified by each new owner of a statecoin for all the previous&lt;br/&gt;&amp;gt; signatures.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Each time an owner cooperates with the server to generate a signature on a&lt;br/&gt;&amp;gt; backup tx, the server will require that the owner send a commitment to&lt;br/&gt;&amp;gt; their R2 value: e.g. SHA256(R2). The server will store this value before&lt;br/&gt;&amp;gt; responding with it&amp;#39;s R1 value. This way, the owner cannot choose the value&lt;br/&gt;&amp;gt; of R2 (and hence c).&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; When the statecoin is received by a new owner, they will receive ALL&lt;br/&gt;&amp;gt; previous signed backup txs for that coin from the sender, and all the&lt;br/&gt;&amp;gt; corresponding R2 values used for each signature. They will then ask the&lt;br/&gt;&amp;gt; server (for each previous signature), the commitments SHA256(R2) and the&lt;br/&gt;&amp;gt; corresponding server generated R1 value and c value used. The new owner&lt;br/&gt;&amp;gt; will then verify that each backup tx is valid, and that each c value was&lt;br/&gt;&amp;gt; computed c = SHA256(X1 &#43; X2, R1 &#43; R2, m) and each commitment equals&lt;br/&gt;&amp;gt; SHA256(R2). This ensures that a previous owner could not have generated&lt;br/&gt;&amp;gt; more valid signatures than the server has partially signed.&lt;br/&gt;&amp;gt;&lt;br/&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; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;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;&amp;gt;&lt;br/&gt;&amp;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;&amp;gt; prevent&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Wagner&amp;#39;s attack. I wrote&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&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; c[0] &#43; ... &#43; c[K-1] = c[K].&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&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; and&lt;br/&gt;&amp;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;&amp;gt; make&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sense if he didn&amp;#39;t.&lt;br/&gt;&amp;gt;&amp;gt;&amp;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/20230809/94da0e46/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230809/94da0e46/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-08-09T18:04:00&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs96nygxhlgetf6dv5qktz6v360jw7hwn8uk7hc5jsqt29yarv8a2szyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scstf4pj</id>
    
      <title type="html">📅 Original date posted:2023-08-06 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://nostr.ae/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-08T16:20:52&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs2dnjs99pnqk7jwtv7fvsrx4269lnnyet34gk9c96m863sh6fr9yczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0schwsyyn</id>
    
      <title type="html">📅 Original date posted:2023-07-24 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://nostr.ae/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-27T02:26:33&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsr55mvp2xdvsvhxhdtd37qvrltsgwccwtlnvh40hgwa2tleqa7r3gzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scaezh0f</id>
    
      <title type="html">📅 Original date posted:2023-07-26 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://nostr.ae/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-27T02:26:33&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsr2dzqh3yuuv05f8wnlpcfs3wu6y63w4j4taec8taa7j8tezzuqlczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scdufxnq</id>
    
      <title type="html">📅 Original date posted:2023-07-25 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://nostr.ae/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-27T02:26:33&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsvrupcajy06dkrgefk4zhsx7uddxe7rk9ccmjxckpmnw90n2hmq9qzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scs5mafh</id>
    
      <title type="html">📅 Original date posted:2023-07-24 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://nostr.ae/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-24T13:36:00&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqspc3edf97v553rju6rfje9s73ctkhgfr34wlvsrhzlshkqs9cwtxgzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sccel2c4</id>
    
      <title type="html">📅 Original date posted:2020-09-13 📝 Original message:We are ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqspc3edf97v553rju6rfje9s73ctkhgfr34wlvsrhzlshkqs9cwtxgzyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0sccel2c4" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsv4qjuffthggskvdat0n0lu7efnh0t64e2xpdrs9dmpn5kywyxf3sxh3q5m&#39;&gt;nevent1q…3q5m&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-09-13&lt;br/&gt;📝 Original message:We are designing an off-chain coin-swap protocol that will work with the&lt;br/&gt;statechain implementation we are developing (&lt;br/&gt;&lt;a href=&#34;https://github.com/commerceblock/mercury&#34;&gt;https://github.com/commerceblock/mercury&lt;/a&gt;). The general idea is that coins&lt;br/&gt;deposited with a statechain entity (statecoins) can be transacted&lt;br/&gt;peer-to-peer off-chain in a way that the statechain entity (SCE) is&lt;br/&gt;trusted, but the statecoins always remain in the custody of the owners. A&lt;br/&gt;statecoin swapping service would enable owners to mix their coins with&lt;br/&gt;other users, giving the same privacy benefits of on-chain CoinSwap&lt;br/&gt;protocols, but by being off-chain statecoin swaps would be much faster and&lt;br/&gt;cheaper.&lt;br/&gt;&lt;br/&gt;The swapping service (conductor) would not have custody of the statecoins&lt;br/&gt;at any point. The aim is to have the conductor coordinate the swap amongst&lt;br/&gt;a group of statecoins (i.e. determine the which statecoin should be sent to&lt;br/&gt;which new random owner in the group) without being able to learn the link&lt;br/&gt;between owners and their provided addresses. To do this we will use a blind&lt;br/&gt;signature scheme in a similar way to the zerolink protocol.&lt;br/&gt;&lt;br/&gt;Here is a high-level description of how this blinding can operate - with&lt;br/&gt;the aim that the conductor does learn how the ownership of individual coins&lt;br/&gt;has changed.&lt;br/&gt;For example, imagine 4 individuals (A,B,C and D) who own equal value&lt;br/&gt;statecoins utxo1, utxo2, utxo3 and utxo4 respectively. They want to swap&lt;br/&gt;ownership privately, trusting the conductor/SCE to enforce atomicity. In&lt;br/&gt;other words, the conductor will randomly assign each statecoin to one of&lt;br/&gt;the owners (the mix), but will not be able to gain knowledge of that&lt;br/&gt;assignment.&lt;br/&gt;1. A,B,C and D signal their participation by signing the swap_token (which&lt;br/&gt;has details of the swap) with the proof-key of their input coin. (A&lt;br/&gt;statecoin address is formed of a concatenation of the proof key and backup&lt;br/&gt;address).&lt;br/&gt;2. Each of A,B,C and D then generate a new statecoin address (where they&lt;br/&gt;what to receive the swapped coin), which they blind (encrypt) and sign with&lt;br/&gt;the proof key of their input coin: add1, add2, add3 and add4 and send to&lt;br/&gt;the conductor.&lt;br/&gt;3. The conductor authenticates each signature and then signs each payload&lt;br/&gt;(i.e. the blinded destination addresses) with a blinded signature scheme&lt;br/&gt;and returns these signatures to A,B,C and D.&lt;br/&gt;4. Each of A,B,C and D then reconnects over TOR with a new identity.&lt;br/&gt;5. Each of A,B,C and D then send their unblinded destination address with&lt;br/&gt;the conductor signature to the conductor (the conductor now knows that&lt;br/&gt;these 4 addresses belong to A,B,C and D, but not which ones map to each&lt;br/&gt;input.)&lt;br/&gt;6. The conductor randomly assigns each address to one of utxo1, utxo2,&lt;br/&gt;utxo3 and utxo4 (e.g. utxo1:add3, utxo2:add1, utxo3:add4 and utxo4:add2)&lt;br/&gt;and requests each participant to initiate the transfer to the given&lt;br/&gt;address.&lt;br/&gt;7. Each participant then finalises each transfer - if any transfer fails&lt;br/&gt;(due to a participant disappearing or acting maliciously) then all&lt;br/&gt;transfers are reverted - here atomicity is guaranteed by the SCE.&lt;br/&gt;&lt;br/&gt;The interesting problem we have with this protocol is how to assign blame&lt;br/&gt;in the case that one or more participants in the swap causes it to fail, so&lt;br/&gt;that the corresponding statecoins can be penalized (prevented from&lt;br/&gt;participating in further swaps for some timeout) to make any DoS attack&lt;br/&gt;costly. In the case of an on-chain coinjoin, this is easy: whoever didn&amp;#39;t&lt;br/&gt;sign their input is to blame. However, in our statechain system a statecoin&lt;br/&gt;transfer is a two stage process (to update the private key shares): the&lt;br/&gt;sender performs an operation with the SCE (transfer_sender) and then sends&lt;br/&gt;an encrypted value to the receiver, who then performs the second operation&lt;br/&gt;with the SCE (transfer_reciever) which updates the UTXO private key shares&lt;br/&gt;for the new owner (&lt;br/&gt;&lt;a href=&#34;https://github.com/commerceblock/mercury/blob/master/doc/statechains.md&#34;&gt;https://github.com/commerceblock/mercury/blob/master/doc/statechains.md&lt;/a&gt; for&lt;br/&gt;more details). If the second stage fails (i.e. the values used for the key&lt;br/&gt;update protocol are wrong) this could be due to either the sender sending a&lt;br/&gt;bad/manipulated value to the receiver, or the receiver using bad values in&lt;br/&gt;the second operation with the SCE. Essentially, either the sender or the&lt;br/&gt;receiver can cause the transfer to fail, and it is not possible to&lt;br/&gt;determine which one is malicious without revealing the encrypted value sent&lt;br/&gt;between the sender and receiver (which must be kept secret from the SCE).&lt;br/&gt;&lt;br/&gt;All this means that if a multi-party coinswap fails, we will know which&lt;br/&gt;statecoin was involved in the failure, but we cannot determine whether the&lt;br/&gt;sender or receiver of that coin caused the failure. One potential solution&lt;br/&gt;to this is to have each sender generate a zero knowledge proof that the&lt;br/&gt;encrypted value sent to the receiver is correct/valid (see last section in&lt;br/&gt;&lt;a href=&#34;https://github.com/commerceblock/mercury/blob/master/doc/swaps.md&#34;&gt;https://github.com/commerceblock/mercury/blob/master/doc/swaps.md&lt;/a&gt; for more&lt;br/&gt;details) which can be used to assign blame in a failure. This proof could&lt;br/&gt;be generated and verified using a zkSNARK/zkSTARK framework, but this is&lt;br/&gt;not trivial to implement and would likely add significant computational&lt;br/&gt;burden to user wallets to generate proofs - so we would like to avoid this&lt;br/&gt;if possible, and we are trying to come up with a simpler solution.&lt;br/&gt;&lt;br/&gt;Any comments on the above are welcome, and happy to provide more details if&lt;br/&gt;anyone is interested.&lt;br/&gt;&lt;br/&gt;Cheers,&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/20200913/22a2f536/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20200913/22a2f536/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T20:26:48&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqspl0gqpff3ucewa7u07ufcj6sfg782kru8tctwptlwq4cf2w4r8zczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scayz0ln</id>
    
      <title type="html">📅 Original date posted:2020-03-25 📝 Original message:Hi ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqspl0gqpff3ucewa7u07ufcj6sfg782kru8tctwptlwq4cf2w4r8zczyr56z7qs6r79nkz25gkj55d3e4j7tw73f9el5j29za0dhygclz0scayz0ln" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsvun0uakhfhcrpun7wp7fhv2jjscsf3jhtsprp2556564ydr873xg0dqhtr&#39;&gt;nevent1q…qhtr&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-03-25&lt;br/&gt;📝 Original message:Hi all,&lt;br/&gt;&lt;br/&gt;We are starting to work on an implementation of the statechains concept (&lt;br/&gt;&lt;a href=&#34;https://medium.com/@RubenSomsen/statechains-non-custodial-off-chain-bitcoin-transfer-1ae4845a4a39&#34;&gt;https://medium.com/@RubenSomsen/statechains-non-custodial-off-chain-bitcoin-transfer-1ae4845a4a39&lt;/a&gt;),&lt;br/&gt;with particular interest in using the protocol enable the change of&lt;br/&gt;ownership (novation) of an individual position in an active discreet log&lt;br/&gt;contract (DLC) without an on-chain transaction, and without needing the&lt;br/&gt;cooperation of the counterparty. The protocol as outlined by Ruben requires&lt;br/&gt;features not currently available in Bitcoin (like SIGHASH_NOINPUT), and it&lt;br/&gt;is uncertain when (or even if) this will be added. So we are looking at&lt;br/&gt;variants that would work with current Bitcoin functionality, and it would&lt;br/&gt;be good to get some feedback on them.&lt;br/&gt;&lt;br/&gt;There are two main modifications we are looking at:&lt;br/&gt;1. Instead of an eltoo-based backup/refund transaction (enabling the&lt;br/&gt;current owner to claim the UTXO in case the statechain entity disappears)&lt;br/&gt;we propose using a decrementing nLocktime for backup transactions as the&lt;br/&gt;output changes hands. Here, the first owner gets a backup transaction with&lt;br/&gt;an nLocktime at some future height (h0), then the next owner gets a backup&lt;br/&gt;transaction with nLocktime (h0-c) where c is a confirmation window. This&lt;br/&gt;approach has the downside of limiting the lifetime of the UTXO, but it also&lt;br/&gt;doesn&amp;#39;t require the current owner to be always online.&lt;br/&gt;&lt;br/&gt;2. Replacing the 2-of-2 multisig output (paying to statechain entity SE key&lt;br/&gt;and transitory key) with a single P2(W)PKH output where the public key&lt;br/&gt;shared between the SE and the current owner. The SE and the current owner&lt;br/&gt;can then sign with a 2-of-2 ECDSA MPC. This enables each owner to generate&lt;br/&gt;their own private key share, and the SE changes their key share at each&lt;br/&gt;change of ownership (with the shared public key remaining the same). This&lt;br/&gt;works as follows (.G is EC point multiplication, * is scalar&lt;br/&gt;multiplication):&lt;br/&gt;&lt;br/&gt;KeyGen:&lt;br/&gt;&lt;br/&gt;a. Owner 1 generates private key share o1 then calculates the corresponding&lt;br/&gt;public key of the share O1 and sends it to the SE: O1 = o1.G&lt;br/&gt;b. The SE then generates a private key: s1 (the SE private key share),&lt;br/&gt;calculates the corresponding public key and sends it to Owner 1: S1 = s1.G&lt;br/&gt;c. Both SE and Owner 1 then multiply the public keys they receive by their&lt;br/&gt;own private key shares to obtain the same shared public key P (which&lt;br/&gt;corresponds to a shared private key of p = o1*s1): P = o1.(s1.G) = s1.(o1.G)&lt;br/&gt;d. Owner 1 creates a funding transaction (Tx0) to pay an amount A to the&lt;br/&gt;address corresponding to P (but doesn&amp;#39;t sign it).&lt;br/&gt;e. Once Owner 1 and SE cooperatively sign the first backup transaction,&lt;br/&gt;Owner 1 then signs and broadcasts the deposit transaction Tx0.&lt;br/&gt;&lt;br/&gt;Transfer from Owner 1 to Owner 2:&lt;br/&gt;&lt;br/&gt;a. Owner 2 generates two private keys: o2 (the new owner UTXO private key&lt;br/&gt;share) and b2 (the new owner refund private key).&lt;br/&gt;b. The SE generates a temporary blinding nonce x and calculates the value&lt;br/&gt;x*s1 and sends this securely to Owner 2.&lt;br/&gt;c. Owner 2 then multiplies this received value by the modular inverse of o2&lt;br/&gt;(o2_inv) and then sends this value (x*s1*o2_inv), to Owner 1.&lt;br/&gt;d. Owner 1 then multiplies this received value by the key share o1 and&lt;br/&gt;sends the resulting value (x*s1*o2_inv*o1) to the SE.&lt;br/&gt;e. The SE then multiplies this received value by the modular inverse of the&lt;br/&gt;temporary nonce (x_inv) to obtain x*s1*o2_inv*o1*x_inv. This cancels the&lt;br/&gt;blinding nonce x to give s1*o2_inv*o1. This value, when multiplied by the&lt;br/&gt;new owner key share o2 equals the original shared private key s1*o1.&lt;br/&gt;f. The SE then sets this value equal to s2 = s1*o2_inv*o1 and deletes s1.&lt;br/&gt;s2 and o2 are now the key shares of `P` and can be used to colaboritively&lt;br/&gt;sign (with 2P ECDSA). So long as the SE delets s1, the old owner key share&lt;br/&gt;(o1) is of no use in deriving or co-signing with the full shared private&lt;br/&gt;key, and is invalidated.&lt;br/&gt;g. The shared public key P remains unchanged, but the corresponding private&lt;br/&gt;key (which no individual party ever has knowledge of or can derive) can&lt;br/&gt;only be determined from the key shares of the SE and Owner 2 (i.e. P =&lt;br/&gt;s2*o2.G).&lt;br/&gt;h. Owner 2 then calculates their backup public key (B2 = b2.G) and sends it&lt;br/&gt;to the SE.&lt;br/&gt;i. The SE creates a backup transaction (Tx2) that pays the output of Tx0 to&lt;br/&gt;the address corresponding to B2 , with `nLockTime` set to a block height h0&lt;br/&gt;- c0, where c0, is a confirmation time sufficient to guarantee that Tx2 can&lt;br/&gt;be confirmed in the blockchain before Tx1 (therefore making Tx1 invalid).&lt;br/&gt;j. Owner 2 and the SE then cooperate to sign Tx2 with shared key (P) using&lt;br/&gt;the 2P ECDSA protocol, which Owner 2 then saves.&lt;br/&gt;&lt;br/&gt;The principle of the logic of the key transfer is that the two separate key&lt;br/&gt;shares are updated, but the full shared private key (which no-one knows)&lt;br/&gt;remains the same. The new owner chooses a new secret value for their&lt;br/&gt;private key share, and this (along with the private key share of the&lt;br/&gt;previous owner) is utilized by the SE to update their share. The use of the&lt;br/&gt;nonce (x) prevents any of the participants from determining any information&lt;br/&gt;about each others secret keys. In this way Owner 2 cannot determine s1 from&lt;br/&gt;x*s1, Owner 1 cannot determine s1 or o2 from x*s1*o2_inv and the SE cannot&lt;br/&gt;determine o1 or o2 from x*s1*o2_inv*o1.&lt;br/&gt;&lt;br/&gt;This transfer protocol can be repeated to transfer the ownership to new&lt;br/&gt;owners. Each time the SE key share sX is updated, the previous key shares&lt;br/&gt;become invalid and are of no use even if the current key share is&lt;br/&gt;subsequently revealed. The SE still needs to be trusted to delete the old&lt;br/&gt;key share, but this protocol removes the risk the the SE can be hacked by a&lt;br/&gt;previous owner to steal the funds.&lt;br/&gt;&lt;br/&gt;Any comments on the above would be greatly 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/20200325/d83a4cfd/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20200325/d83a4cfd/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T20:23:34&#43;02:00</updated>
  </entry>

</feed>