Hey Raymo,

Here’s a scenario: 

Alice has one UTXO. 

Suppose Alice sends Bob an MT and a GT over Sabu, and Bob gives whatever goods and services to Alice. 

Alice then goes and spends that UTXO to Charlie with a higher fee than the GT she sent to Bob. Charlie has no idea that Bob exists, because he gets a valid UTXO. Bob can try to publish the GT, but if Alice crafts the fees right, the TX to Charlie will be confirmed first. Alice now has goods from both Bob and Charlie, and has only paid one of them. She has is able to double spend because: (1) the gossip network you describe for sabu only protects people if everyone is on sabu and playing by the rules, it does not prevent spending outside of sabu; and (2) there is nothing encumbering the onchain UTXO and preventing it from being spent outside of a sabu payment. 

The reason people keep brining up Lightning is because Lightning solves this problem by having a channel-open involve locking funds in a 2-of-2 multisig, preventing them from being spent outside of lightning until the channel is torn down. 

If there is nothing stopping someone from spending onchain funds outside of the context of your system, then your system does not prevent double spends.

Hope that explanation helps. 

Alex

On Mon, Jun 28, 2021 at 1:36 PM raymo via bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org> wrote:


> What prevents the creditor from signing a transaction that is neither a valid MT nor a GT?
Please stop comparing Sabu and Lightning. Otherwise, it won't let you
true understanding of Sabu.
In Sabu protocol, only the issuer (the UTXO owner) can sign the
transaction and decide how much money goes to whom. The engaged UTXO(s)
belonged to issuer and the creditor never put UTXO in transaction, thus
never can sign the transaction because he has no ownership on the used
UTXOs.
As I already wrote in paper, the issuer creates and signs a transaction
and delivers it to creditor(s). If a creditor intends to send all or
part of his money to another person (AKA spending his money), he will
ask for a new signed transaction from issuer, in which a part of his
credit will transfer to another creditor.

The Sabu has nothing with Lightning. Sabu has a peer-to-peer network of
doc-watchers which maybe it was the cause you always compare it to
Lightning.
I am not presenting lightning neither condemning it.
I am presenting Sabu protocol.
Please let concentrate on how Sabu works or not works.



On 2021-06-28 15:28, ZmnSCPxj wrote:
> Good morning Raymo,
>
>> Hi ZmnSCPxj,
>>
>> Why you get the signal “trust the Gazin wallet”?
>> Sabu is a protocol and the Gazin wallet will be an implementation of
>> that protocol. We will implement it in react-native language to support
>> both Android and iPhone. Of course it will be open source and GPL3.
>> Here is the repository and yet is empty :)
>> https://github.com/raymaot/Gazin
>>
>> I wonder why you do not look carefully into the proposal! IMHO the Sabu
>> will be far better than Lightning.
>> Can’t you see the fact that in Sabu you do not need open and close
>> channels ever? Can you imagine only this feature how dramatically
>> decrease the transactions cost and how increase the distribution of
>> nodes and improve privacy level? it makes every mobile wallet act like a
>> lightning network.
>> Did you note the fact that in Sabu protocol there is no routing? And the
>> only people knew about a transaction are issuer and creditor? No one
>> else won’t be aware of transactions and million transactions per second
>> can be sent and received and repeal dynamically without any footprint on
>> any DLT?
>>
>> The English is not my mother language and probably my paper is not a
>> smooth and easy to read paper, but these are not good excuse to not even
>> reading a technical paper carefully and before understanding it or at
>> least trying to understanding it start to complaining.
>
>
> What prevents the creditor from signing a transaction that is neither
> a valid MT nor a GT?
>
> Nothing.
>
> In Lightning, sure one side can sign a transaction that is not a valid
> commitment transaction, but good luck getting the other side to *also*
> sign the transaction; it will not.
> Thus, you need n-of-n.
>
> 1-of-1 is simply not secure, full stop, you need to redesign the whole
> thing to use *at least* 2-of-2.
> At which point you will have reinvented Lightning.
>
> Otherwise, you are simply trusting that the wallet is implemented
> correctly, and in particular, that any creditor will not simply insert
> code in your open-source software to sign invalid transactions.
>
> With a 1-of-1, any invalid-in-Sabu transaction can still be valid in
> the Bitcoin blockchain layer, thus the scheme is simply insecure.
>
> Features are meaningless without this kind of basic trust-minimization security.
>
> Regards,
> ZmnSCPxj
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
--


Alex Schoof