<oembed><type>rich</type><version>1.0</version><author_name>npub1xqcwcttsyk0a64d63crrwsxp88pa42np37rw87hrfn4uku78g2aqltcnns</author_name><author_url>https://nostr.ae/npub1xqcwcttsyk0a64d63crrwsxp88pa42np37rw87hrfn4uku78g2aqltcnns</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2021-07-06&#xA;📝 Original message:@ZmnSCPxj&#xA;&gt;  a thief (or &#34;thief&#34;) who has gotten a copy of the key can sign a&#xA;transaction that spends it, one second after the proof-of-reserves is made.&#xA;&#xA;Sure, but anyone can easily see that transaction happen and can discount&#xA;that part of the attestation. The same isn&#39;t true on lightning.&#xA;&#xA;&gt; *knowledge* is easily copyable.&#xA;&#xA;Knowledge isn&#39;t even really needed. Custodians could collude to sign each&#xA;other&#39;s balance attestations. However, if the network of proof of reserves&#xA;is cohesive, people could validate that addresses (and their balances)&#xA;aren&#39;t shared by anyone that&#39;s part of that PoR network.&#xA;&#xA;&gt; There is no way to prove that there is no alternate copy of the privkeys&#xA;&#xA;Well there are only really 2 cases:&#xA;&#xA;1. Only one entity has the keys&#xA;2. Two entities have the keys and trust each other&#xA;&#xA;In case 1, the attestation is accurate. In case 2, its really another way&#xA;of saying case 1: you can view the two trusting entities as a single&#xA;entity. In the case there are 2 non-trusting entities, its very likely that&#xA;one would steal from the other, or that they would be very uncomfortable&#xA;with the situation such that it wouldn&#39;t last long.&#xA;&#xA;But you can&#39;t prove that someone won&#39;t steal the reserves. You can&#39;t prove&#xA;cryptographically that the reserves aren&#39;t promised to someone else in a&#xA;legal contract (unless of course you make the proof of reserves system&#xA;legally binding). But this is why anyone that recommends PoR also&#xA;recommends independent audits to attest that the PoR actually matches&#xA;reality.&#xA;&#xA;So yes, there are limitations, but I don&#39;t think that means that PoR isn&#39;t&#xA;worth doing. Is that what you&#39;re implying?&#xA;&#xA;&gt; we can show evidence that we live in a landlocked city far from any&#xA;lakes, seas, or rivers&#xA;&#xA;I think that&#39;s the idea, if I understand you correctly.&#xA;&#xA;@Eric&#xA;Auditability Fallacy&#xA;&lt;https://github.com/libbitcoin/libbitcoin-system/wiki/Auditability-Fallacy&gt;&#xA;&#xA;&gt; A solvency audit requires simultaneous (atomic) proof of both the full&#xA;amount of the asset held by a custodian and the securities issued against&#xA;it.&#xA;&#xA;&gt; in the case where the security is issued on a distinct public chain the&#xA;atomicity requirement is not satisfied.&#xA;&#xA;I think what its saying is that you can&#39;t get atomicity of both the&#xA;security and the reserve. While this is true, what you can get is a system&#xA;where the order of events can be established to a degree of precision. Ie,&#xA;you can know that between reserve-snapshot A and B, the balances add up to&#xA;X. Each user can validate that their balance was indeed that value between&#xA;A and B. With reserve snapshots and balance snapshots frequent enough, this&#xA;can allow reasonably high accuracy of estimated solvency. However, it does&#xA;seem clear that perfect accuracy is not possible.&#xA;&#xA;&gt; Historically it has not been difficult to detect such deviations. The&#xA;difficulty arises in stopping them.&#xA;&#xA;I disagree here that it has not been difficult to detect deviations&#xA;(insolvency). I mean, &#34;difficulty&#34; isn&#39;t the right word. These things&#xA;always become clear eventually. But I think its important to detect&#xA;insolvency quickly. Historically insolvency has certainly not been detected&#xA;quickly. Insolvency is instead practically perpetual, and the question is&#xA;only how insolvent and when will it explode?&#xA;&#xA;I&#39;m of the opinion that you can&#39;t prevent insolvency. Places will have&#xA;money troubles and will try to cover it up, since usually there is no&#xA;downside (admitting insolvency can lead to bankrupcy, and failure to&#xA;conceal insolvency has the same result - so why not try to conceal it and&#xA;hope you can shore it up). However, its important that people know the&#xA;institutions they have their money in are insolvent, or to what degree they&#xA;are. If that information were well tracked, it could become clear over time&#xA;that a 10% insolvent company rarely goes out of business, but a 20%&#xA;insolvent company usually does. Then people can have parameters where&#xA;they&#39;re ok with a certain measurable degree of insolvency, but react&#xA;swiftly and strongly when a company is too reckless. Currently the amount&#xA;of recklessness any given company engages in is basically a company secret&#xA;that their clients don&#39;t have insight into. PoR would greatly help this I&#xA;think. You don&#39;t think so?&#xA;&#xA;On Mon, Jul 5, 2021 at 10:10 PM Eric Voskuil &lt;eric at voskuil.org&gt; wrote:&#xA;&#xA;&gt; https://github.com/libbitcoin/libbitcoin-system/wiki/Auditability-Fallacy&#xA;&gt;&#xA;&gt; On Jul 5, 2021, at 21:54, ZmnSCPxj &lt;ZmnSCPxj at protonmail.com&gt; wrote:&#xA;&gt;&#xA;&gt; ﻿Good morning Billy,&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt;   The two participants in the channel can sign a plaintext containing&#xA;&gt; their node pubkeys and how much each owns&#xA;&gt;&#xA;&gt;&#xA;&gt; Sure, but even if both participants in the channel sign a correct&#xA;&gt; statement of truth, one of the participants can send funds out in the next&#xA;&gt; second, invalidating that truth. While proof of ownership of on-chain UTXOs&#xA;&gt; can be seen publicly in real time if they are spent, LN transactions aren&#39;t&#xA;&gt; public like that. So any balance attestation is at best only valid the&#xA;&gt; instant its taken, and can&#39;t be used as verification the money is still&#xA;&gt; owned by the same channel partner in the next second.&#xA;&gt;&#xA;&gt;&#xA;&gt; The same problem really also exists onchain --- a thief (or &#34;thief&#34;) who&#xA;&gt; has gotten a copy of the key can sign a transaction that spends it, one&#xA;&gt; second after the proof-of-reserves is made.&#xA;&gt;&#xA;&gt; Really, though, the issue is that ownership of funds is conditional on&#xA;&gt; *knowledge* of keys.&#xA;&gt; And *knowledge* is easily copyable.&#xA;&gt;&#xA;&gt; Thus, it is possible that the funds that are &#34;proven&#34; to be the reserve of&#xA;&gt; a custodian is actually *also* owned by someone else who has gotten to the&#xA;&gt; privkeys (e.g. somebody threw a copy of it from a boating accident and a&#xA;&gt; fearless scuba diver rescued it), and thus can also move the funds outside&#xA;&gt; of the control of the custodian.&#xA;&gt; This condition can remain for many months or years, as well, without&#xA;&gt; knowledge of the custodian clients, *or* of the custodian itself.&#xA;&gt;&#xA;&gt; There is no way to prove that there is no alternate copy of the privkeys,&#xA;&gt; hence &#34;if only one could prove that he won&#39;t get into a boating accident&#34;.&#xA;&gt;&#xA;&gt; On the other hand, one could argue that at least the onchain proof&#xA;&gt; requires more conditions to occur, so we might plausibly live with &#34;we&#xA;&gt; cannot prove we will never get into a boating accident but we can show&#xA;&gt; evidence that we live in a landlocked city far from any lakes, seas, or&#xA;&gt; rivers&#34;.&#xA;&gt;&#xA;&gt; Regards,&#xA;&gt; ZmnSCPxj&#xA;&gt;&#xA;&gt;&#xA;&gt;   a custodian Lightning node is unable to &#34;freeze&#34; a snapshot of its&#xA;&gt; current state and make an atomic proof-of-reserves of *all* channels&#xA;&gt;&#xA;&gt;&#xA;&gt; That would be a neat trick. But yeah, I don&#39;t know how that would be&#xA;&gt; possible.&#xA;&gt;&#xA;&gt;&#xA;&gt;   I believe it is one reason why custodian proof-of-reserves is not that&#xA;&gt; popular ... it does not prove that the key will not get lost&#xA;&gt;&#xA;&gt;&#xA;&gt; True, but at least if funds do get lost, it would be come clear far&#xA;&gt; quicker. Today, an insolvent company could go many months without the&#xA;&gt; public finding out.&#xA;&gt;&#xA;&gt;&#xA;&gt; On Mon, Jul 5, 2021 at 5:09 PM ZmnSCPxj &lt;ZmnSCPxj at protonmail.com&gt; wrote:&#xA;&gt;&#xA;&gt;&#xA;&gt; Good morning e,&#xA;&gt;&#xA;&gt;&#xA;&gt; If only one could prove that he won’t get into a boating accident.&#xA;&gt;&#xA;&gt;&#xA;&gt; At least in the context of Lightning channels, if one party in the channel&#xA;&gt; loses its key in a boating accident, the other party (assuming it is a true&#xA;&gt; separate person and not a sockpuppet) has every incentive to unilaterally&#xA;&gt; close the channel, which reveals the exact amounts (though not necessarily&#xA;&gt; who owns which).&#xA;&gt;&#xA;&gt; If the other party then uses its funds in a new proof-of-reserves, then&#xA;&gt; obviously the other output of the unilateral close was the one lost in the&#xA;&gt; boating accident.&#xA;&gt;&#xA;&gt;&#xA;&gt; On the other hand, yes, custodians losing custodied funds in boating&#xA;&gt; accidents is much too common.&#xA;&gt;&#xA;&gt; I believe it is one reason why custodian proof-of-reserves is not that&#xA;&gt; popular --- it only proves that the funds were owned under a particular key&#xA;&gt; at some snapshot of the past, it does not prove that the key will not get&#xA;&gt; lost (or &#34;lost and then salvaged by a scuba diver&#34;) later.&#xA;&gt;&#xA;&gt;&#xA;&gt; Regards,&#xA;&gt;&#xA;&gt; ZmnSCPxj&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt; e&#xA;&gt;&#xA;&gt;&#xA;&gt; On Jul 5, 2021, at 16:26, ZmnSCPxj via bitcoin-dev&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org wrote:&#xA;&gt;&#xA;&gt; Good morning Billy,&#xA;&gt;&#xA;&gt;&#xA;&gt; I wonder if there would be some way to include the ability to prove&#xA;&gt; balances held on the lightning network, but I suspect that isn&#39;t generally&#xA;&gt; possible.&#xA;&gt;&#xA;&gt;&#xA;&gt; Thinking about this in terms of economic logic:&#xA;&gt;&#xA;&gt; Every channel is anchored onchain, and that anchor (the funding txout) is&#xA;&gt; proof of the existence, and size, of the channel.&#xA;&gt;&#xA;&gt; The two participants in the channel can sign a plaintext containing their&#xA;&gt; node pubkeys and how much each owns.&#xA;&gt;&#xA;&gt; One of the participants should provably be the custodian.&#xA;&gt;&#xA;&gt;&#xA;&gt; -   If the counterparty is a true third party, it has no incentive to lie&#xA;&gt; about its money.&#xA;&gt;&#xA;&gt; -   Especially if the counterparty is another custodian who wants&#xA;&gt; proof-of-reserves, it has every incentive to overreport, but then the first&#xA;&gt; party will refuse to sign.&#xA;&gt;&#xA;&gt;      It has a disincentive to underreport, and would itself refuse to sign&#xA;&gt; a dishonest report that assigns more funds to the first party.&#xA;&gt;&#xA;&gt;      The only case that would be acceptable to both custodians would be to&#xA;&gt; honestly report their holdings in the Lightning channel.&#xA;&gt;&#xA;&gt;&#xA;&gt; -   If the counterparty is a sockpuppet of the custodian, then the entire&#xA;&gt; channel is owned by the custodian and it would be fairly dumb of he&#xA;&gt; custodian to claim to have less funds than the entire channel.&#xA;&gt;&#xA;&gt;&#xA;&gt; Perhaps a more practical problem is that Lightning channel states change&#xA;&gt; fairly quickly, and there are possible race conditions, due to network&#xA;&gt; latency (remember, both nodes need to sign, meaning both of them need to&#xA;&gt; communicate with each other, thus hit by network latency and other race&#xA;&gt; conditions) where a custodian Lightning node is unable to &#34;freeze&#34; a&#xA;&gt; snapshot of its current state and make an atomic proof-of-reserves of all&#xA;&gt; channels.&#xA;&gt;&#xA;&gt; Regards,&#xA;&gt;&#xA;&gt; ZmnSCPxj&#xA;&gt;&#xA;&gt;&#xA;&gt; bitcoin-dev mailing list&#xA;&gt;&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt;&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20210705/b2c7cab2/attachment-0001.html&gt;</html></oembed>