{"type":"rich","version":"1.0","author_name":"npub1g5zswf6y48f7fy90jf3tlcuwdmjn8znhzaa4vkmtxaeskca8hpss23ms3l","author_url":"https://nostr.ae/npub1g5zswf6y48f7fy90jf3tlcuwdmjn8znhzaa4vkmtxaeskca8hpss23ms3l","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2021-07-05\n📝 Original message:Good morning e,\n\n\n\u003e If only one could prove that he won’t get into a boating accident.\n\nAt least in the context of Lightning channels, if one party in the channel loses its key in a boating accident, the other party (assuming it is a true separate person and not a sockpuppet) has every incentive to unilaterally close the channel, which reveals the exact amounts (though not necessarily who owns which).\nIf the other party then uses its funds in a new proof-of-reserves, then obviously the other output of the unilateral close was the one lost in the boating accident.\n\nOn the other hand, yes, custodians losing custodied funds in boating accidents is much too common.\nI believe it is one reason why custodian proof-of-reserves is not that popular --- it only proves that the funds were owned under a particular key at some snapshot of the past, it does not prove that the key will not get lost (or \"lost and then salvaged by a scuba diver\") later.\n\n\nRegards,\nZmnSCPxj\n\n\u003e\n\u003e e\n\u003e\n\u003e \u003e On Jul 5, 2021, at 16:26, ZmnSCPxj via bitcoin-dev bitcoin-dev at lists.linuxfoundation.org wrote:\n\u003e \u003e Good morning Billy,\n\u003e \u003e\n\u003e \u003e \u003e I wonder if there would be some way to include the ability to prove balances held on the lightning network, but I suspect that isn't generally possible.\n\u003e \u003e\n\u003e \u003e Thinking about this in terms of economic logic:\n\u003e \u003e Every channel is anchored onchain, and that anchor (the funding txout) is proof of the existence, and size, of the channel.\n\u003e \u003e The two participants in the channel can sign a plaintext containing their node pubkeys and how much each owns.\n\u003e \u003e One of the participants should provably be the custodian.\n\u003e \u003e\n\u003e \u003e -   If the counterparty is a true third party, it has no incentive to lie about its money.\n\u003e \u003e -   Especially if the counterparty is another custodian who wants proof-of-reserves, it has every incentive to overreport, but then the first party will refuse to sign.\n\u003e \u003e     It has a disincentive to underreport, and would itself refuse to sign a dishonest report that assigns more funds to the first party.\n\u003e \u003e     The only case that would be acceptable to both custodians would be to honestly report their holdings in the Lightning channel.\n\u003e \u003e\n\u003e \u003e -   If the counterparty is a sockpuppet of the custodian, then the entire channel is owned by the custodian and it would be fairly dumb of he custodian to claim to have less funds than the entire channel.\n\u003e \u003e\n\u003e \u003e Perhaps a more practical problem is that Lightning channel states change fairly quickly, and there are possible race conditions, due to network latency (remember, both nodes need to sign, meaning both of them need to communicate with each other, thus hit by network latency and other race conditions) where a custodian Lightning node is unable to \"freeze\" a snapshot of its current state and make an atomic proof-of-reserves of all channels.\n\u003e \u003e Regards,\n\u003e \u003e ZmnSCPxj\n\u003e \u003e\n\u003e \u003e bitcoin-dev mailing list\n\u003e \u003e bitcoin-dev at lists.linuxfoundation.org\n\u003e \u003e https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev"}
