<oembed><type>rich</type><version>1.0</version><author_name>npub1jqxs4ftunmm8qjyw9s80hpcayewkjfhpxund29l9qvzy7xqx4duq85jqeg</author_name><author_url>https://nostr.ae/npub1jqxs4ftunmm8qjyw9s80hpcayewkjfhpxund29l9qvzy7xqx4duq85jqeg</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2021-02-11&#xA;📝 Original message:Hi Pavol,&#xA;&#xA;On Thu, Feb 11, 2021 at 5:25 AM Pavol Rusnak &lt;stick at satoshilabs.com&gt; wrote:&#xA;&#xA;&gt; &gt; ENCRYPTION_KEY = SHA256(SHA256(TOKEN))&#xA;&gt;&#xA;&gt; This scheme might be vulnerable to rainbow table attack.&#xA;&gt;&#xA;&#xA;Thank you for pointing this out! Incidentally, Dmitry Petukhov also told me&#xA;the same privately.&#xA;&#xA;&#xA;&gt;&#xA;&gt; The following scheme might be more secure:&#xA;&gt;&#xA;&gt; DESCRIPTION = ASCII description provided by user&#xA;&gt; NONCE = 256-bit random number&#xA;&gt; ENCRYPTION_KEY = hmac-sha256(key=NONCE, msg=DESCRIPTION)&#xA;&gt;&#xA;&gt; Coordinator distributes DESCRIPTION (fka TOKEN) together with NONCE to&#xA;&gt; the signers.&#xA;&gt;&#xA;&#xA;This does seem to add a lot more entropy. The challenge is to balance the&#xA;security requirement with UX. In the absence of some handshake protocol to&#xA;exchange the shared secrets (DESCRIPTION / NONCE) , the user will have to&#xA;enter these manually on the devices. I&#39;ll think about this some more.&#xA;&#xA;&#xA;&gt;&#xA;&gt; Also, is there any reason why you&#39;d want to disable encryption? Why not&#xA;&gt; keep that as mandatory?&#xA;&gt;&#xA;&#xA;Making it mandatory would be nice, but IMHO not all use cases might require&#xA;encryption. For example, if you are setting up the multisig locally under a&#xA;safe environment you control, encryption might be an overkill.&#xA;&#xA;Best,&#xA;Hugo&#xA;&#xA;&#xA;&#xA;&gt;&#xA;&gt;&#xA;&gt; On Tue, 9 Feb 2021 at 12:39, Hugo Nguyen via bitcoin-dev &lt;&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; On Tue, Feb 9, 2021 at 2:19 AM Christopher Allen &lt;&#xA;&gt;&gt; ChristopherA at lifewithalacrity.com&gt; wrote:&#xA;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; On Tue, Feb 9, 2021 at 2:06 AM Hugo Nguyen &lt;hugo at nunchuk.io&gt; wrote:&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&gt; I don&#39;t think reusing XPUBs inside different multisig wallets is a good&#xA;&gt;&gt;&gt;&gt; idea... For starters, loss of privacy in one wallet will immediately affect&#xA;&gt;&gt;&gt;&gt; privacy of other wallets. I think multisig wallets should be completely&#xA;&gt;&gt;&gt;&gt; firewalled from each other. That means one unique XPUB per wallet. This is&#xA;&gt;&gt;&gt;&gt; what we have been doing with the Nunchuk wallet.&#xA;&gt;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; To be clear, I have stated repeatedly that xpub reuse into multisig is a&#xA;&gt;&gt;&gt; poor practice. However, finding a trustless solution when a wallet is&#xA;&gt;&gt;&gt; airgapped with no network, or is stateless like Trezor, is quite hard.&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; The challenge also includes how does an airgapped or stateless wallet&#xA;&gt;&gt;&gt; know that it is talking to the same process on the other side that that it&#xA;&gt;&gt;&gt; gave the xpub to in the first place. Without state to allow for a&#xA;&gt;&gt;&gt; commitment, or at least a TOFU, a cosigner who thought he was part of a 3&#xA;&gt;&gt;&gt; of 5 could discover that he instead is in a 2 of 3, or in a script with an&#xA;&gt;&gt;&gt; OR, as some form of scam.&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; The shared secret approach that I mentioned in the proposal actually can&#xA;&gt;&gt; help you here. The TOKEN doubles as a session ID - thereby establishing a&#xA;&gt;&gt; common state on both sides.&#xA;&gt;&gt;&#xA;&gt;&gt; Best,&#xA;&gt;&gt; Hugo&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; — Christopher Allen&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&gt; _______________________________________________&#xA;&gt;&gt; bitcoin-dev mailing list&#xA;&gt;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt; --&#xA;&gt; Best Regards / S pozdravom,&#xA;&gt;&#xA;&gt; Pavol &#34;stick&#34; Rusnak&#xA;&gt; CTO, SatoshiLabs&#xA;&gt;&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20210211/2ab27396/attachment-0001.html&gt;</html></oembed>