<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2023-06-07T01:58:54Z</updated>
  <generator>https://njump.me</generator>

  <title>Nostr notes by Swambo, Jacob [ARCHIVE]</title>
  <author>
    <name>Swambo, Jacob [ARCHIVE]</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://njump.me/npub1j4wu6d8jvnpht5gy9gfskeprr95ryv8qs0lc4quh7u4yptfarhzs8ck54p.rss" />
  <link href="https://njump.me/npub1j4wu6d8jvnpht5gy9gfskeprr95ryv8qs0lc4quh7u4yptfarhzs8ck54p" />
  <id>https://njump.me/npub1j4wu6d8jvnpht5gy9gfskeprr95ryv8qs0lc4quh7u4yptfarhzs8ck54p</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://njump.me/nevent1qqsruag54wkh2t7u9fswhz3rah6wtpcyva8xam3pfmc3tfp4kngk8qszyz24mnf57fjvxaw3qs4pxzmyyvvksv3suzpllz5rjlmj5s9d85wu2f3e4wz</id>
    
      <title type="html">📅 Original date posted:2022-05-03 📝 Original message:Thanks ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsruag54wkh2t7u9fswhz3rah6wtpcyva8xam3pfmc3tfp4kngk8qszyz24mnf57fjvxaw3qs4pxzmyyvvksv3suzpllz5rjlmj5s9d85wu2f3e4wz" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs9tv4fh6xk093hqu0edfltwtd5clw95sw9vug3wjzmlx2t3jw8l7sruaqzf&#39;&gt;nevent1q…aqzf&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-05-03&lt;br/&gt;📝 Original message:Thanks Darosior for your response.&lt;br/&gt;&lt;br/&gt;I see now that APOAS (e.g. with ANYONECANPAY and/or SINGLE) and CTV (with less restrictive templates) fall prey to the same trade-off between flexibility and safety. So I retract my statement about that &amp;#39;point in favour of OP_CTV&amp;#39;. It would be nice to by-pass the trade-off, but it seems to be unavoidable. That begs the question, why would we want to have a way to commit to less restrictive templates?&lt;br/&gt;&lt;br/&gt;Firstly, I posit that if a transaction does not allow RBF, then it would be very difficult for an attacker to repackage parts of the transaction into a malicious alternative and rebroadcast it before it reaches the mempool of the majority of nodes, who would then reject the malicious alternative.&lt;br/&gt;&lt;br/&gt;Secondly, some covenant-based applications aren&amp;#39;t as critical as others, and it may well be acceptable to take the risk of using something like ANYONECANPAY|ALL even with RBF enabled.&lt;br/&gt;&lt;br/&gt;Third, in a trusted multi-party context you can safely make use of flexible signature messages. Let&amp;#39;s say there are 3 people and a UTXO with the following locking script as a single leaf in the tapscript:&lt;br/&gt;&lt;br/&gt;&amp;lt;pk1&amp;gt; OP_CHECKSIG &amp;lt;pk2&amp;gt; OP_CHECKSIGADD &amp;lt;pk3&amp;gt; OP_CHECKSIGADD 2 OP_EQUAL &amp;lt;APOAS|SINGLE:signature_covenant_tx&amp;gt; &amp;lt;covenant_PK&amp;gt; OP_CHECKSIG&lt;br/&gt;&lt;br/&gt;And they produce this witness:&lt;br/&gt;&lt;br/&gt;&amp;lt;SINGLE:sig_1&amp;gt; &amp;lt;ALL:sig_2&amp;gt;&lt;br/&gt;&lt;br/&gt;The second participant can, for example, add a change output before signing. &amp;lt;sig_1&amp;gt; is not sufficient and so can&amp;#39;t be repackaged without the authorisation of participant 2.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The additional flexibility through composing APOAS with other SIGHASH modes, and the ability to re-bind covenant transactions to different UTXOs allows protocol designers to do more with APOAS covenants than with CTV covenants (as currently spec&amp;#39;d). I&amp;#39;m not yet convinced that BIP-118 is totally safe, but I think the debate recently is part of that maturation process and I&amp;#39;m glad for it.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Jacob Swambo&lt;br/&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/20220503/0dcb6bd3/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20220503/0dcb6bd3/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T23:08:55Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqstsczeagkl7zezza20wx4nhkhkldq0u0mcjeg89c2wkgrp9mje3zczyz24mnf57fjvxaw3qs4pxzmyyvvksv3suzpllz5rjlmj5s9d85wu2vff5ay</id>
    
      <title type="html">📅 Original date posted:2022-04-29 📝 Original message:Hi, ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqstsczeagkl7zezza20wx4nhkhkldq0u0mcjeg89c2wkgrp9mje3zczyz24mnf57fjvxaw3qs4pxzmyyvvksv3suzpllz5rjlmj5s9d85wu2vff5ay" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqst2089n0yr92l9lnudmgz5q64k0te8ryrz70wq4zgkzuudjwzf4wcwzcnsx&#39;&gt;nevent1q…cnsx&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-04-29&lt;br/&gt;📝 Original message:Hi,&lt;br/&gt;&lt;br/&gt;While I agree with the arguments in favour of (optional ANYONECANPAY) APOAS in lieu of CTV in the short-term (given the additional benefit of enabling Eltoo), there&amp;#39;s a point to add in favour of CTV (or similar) in the long-term beyond as an optimisation.&lt;br/&gt;&lt;br/&gt;With APOAS-based covenants, the signature message algorithm is tied to both the covenant commitment and transaction validation. Coupling these things introduces a trade-off between safety and flexibility with covenant-based applications. E.g. the maximally safe and restricted covenant commits to all inputs and outputs of the transaction (using SIGHASH ALL). However, a less restricted covenant commits to, for example, a single input and a single output (using ANYONECANPAY|SINGLE) but opens itself up to attacks making use of transaction malleability and signature replay. If instead we separate the covenant commitment from the signatures to validate transactions (as with CTV and TXHASH &#43; CHECKSIGFROMSTACK) then we by-pass this trade-off. The flexibility of additional templates with new CTV versions or with the TXHASH primitive seems to me to enable significantly more utility for covenant-based applications.&lt;br/&gt;&lt;br/&gt;Best regards,&lt;br/&gt;&lt;br/&gt;Jacob Swambo&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/20220429/942ba6fa/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20220429/942ba6fa/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T23:08:06Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsw8njgfrzrar4ga4df8jn5qdgs5f5cz4tlrh05uwjwjem69l2hfyqzyz24mnf57fjvxaw3qs4pxzmyyvvksv3suzpllz5rjlmj5s9d85wu2rjppdx</id>
    
      <title type="html">📅 Original date posted:2020-06-22 📝 Original message:I am ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsw8njgfrzrar4ga4df8jn5qdgs5f5cz4tlrh05uwjwjem69l2hfyqzyz24mnf57fjvxaw3qs4pxzmyyvvksv3suzpllz5rjlmj5s9d85wu2rjppdx" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsqym699ksdrdmaxeekrf0xhklw820lqvt0eqanv5635sumw58yvqqnu786h&#39;&gt;nevent1q…786h&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-06-22&lt;br/&gt;📝 Original message:I am building a solution for distributed, delegated pre-signed transactions (DDPST). This post introduces what DDPST are and why I think they are relevant for multiple applications. If you are working on application that can benefit from such a construction and want me to use your application in the proof of concept code, please reach out. All feedback is welcome on the concept in general.&lt;br/&gt;&lt;br/&gt;Pre-signed transactions (PSTs) are utilized in numerous off-chain protocols including Lightning Network, non-custodial trading, Statechains, and custody protocols. PSTs are useful because they enable restricted access to funds and their custody can be *delegated* with limited risk. Compare this with the arbitrary control over funds that comes with access to the private keys. It is conceivable then that a broad class of applications would benefit from a mechanism to securely delegate PSTs. A mechanism to *distribute* custody of PSTs across multiple entities can act as a practical countermeasure for numerous attacks (e.g. denial-of-service, bribery, blackmail, etc.). Moreover, systems of accountability among the custodians, with proofs of correct and incorrect behaviour, form a foundation for engineering incentive structures that align with the objectives of the application at hand. Finally, distributed custody of PSTs could enable new trust models for the privacy of delegated PSTs using multi-party computation.&lt;br/&gt;&lt;br/&gt;# Examples&lt;br/&gt;&lt;br/&gt;Consider first the example of vault-custody protocols [1], where there is a requirement for a distributed network monitoring and response system to detect breeches and trigger a recovery process. It is critical to protect against denial-of-service (DoS) attacks that seek to compromise a monitoring node in order to force the custody operation into a recovery process. In this attack the adversary broadcasts the recovery transaction and reduces the accessibility of the wallet owner&amp;#39;s funds. A method for distributing custody of the recovery transaction offers defence-in-depth, and a method for delegating custody enables outsourcing the monitor and response service (see Watchtower implementations currently under development [2,3]). A further improvement for the protection of PSTs, that comes from distributing custody, is that *proactive* security models can be instanciated such that successful attacks must occur in a limited time-frame [4].&lt;br/&gt;&lt;br/&gt;Consider next the example of justice transactions in the current Lightning Network model. Here, it is critical that justice transactions are broadcast in a timely manner in response to detecting that either party is attempting to close the channel with a prior state. Attacks rely on disrupting the broadcast of the justice transaction through, for example, bribing the watchtower to wait. The watchtower can broadcast late and claim that it was an honest failure due to network issues. The victim has no recourse to punish the watchtower nor the malicious channel participant. If instead the justice transaction was distributed among a set of independent watchtowers, and an accountability system was in-place for their actions, a more robust incentive structure could be engineered. Moreover, distributing custody of the justice transaction can provide a new privacy mechanism for both operational security of a business but also to mitigate targeted attacks such as bribery.&lt;br/&gt;&lt;br/&gt;Best regards,&lt;br/&gt;Jacob&lt;br/&gt;&lt;br/&gt;# References&lt;br/&gt;&lt;br/&gt;[1] Jacob Swambo, Spencer Hommel, Bob McElrath, and Bryan Bishop. Custody Protocols Using Bitcoin Vaults. 2020. &lt;a href=&#34;https://arxiv.org/abs/2005.11776&#34;&gt;https://arxiv.org/abs/2005.11776&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;[2] The eye of satoshi - lightning watchtower. &lt;a href=&#34;https://github.com/talaia-labs/python-teos&#34;&gt;https://github.com/talaia-labs/python-teos&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;[3] Private altruist watchtowers. &lt;a href=&#34;https://github.com/lightningnetwork/lnd/blob/master/docs/watchtower.md&#34;&gt;https://github.com/lightningnetwork/lnd/blob/master/docs/watchtower.md&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;[4] Ran Canetti, Rosario Gennaro, and Amir Herzberg. Proactive security: Long-term protection against break-ins. CryptoBytes, 3:1–8, 1997.&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/20200622/68d835de/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20200622/68d835de/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T18:25:36Z</updated>
  </entry>

</feed>