Pages:
Author

Topic: On reversible transactions - page 2. (Read 528 times)

legendary
Activity: 3906
Merit: 6249
Decentralization Maximalist
February 07, 2019, 01:29:40 PM
#23
Basically, you send money to someone but they won't be able to receive it without a protection code which you send them separately (or tell in person). Thus, if no code is provided on time, the transaction gets canceled.
This is basically how atomic swaps work presently. It's one of the forms of the already mentioned "HTLCs" (hashed timelock contracts).

Your setup could work this way:

- Alice sends a transaction to Bob containing a timelock and the condition to provide a secret S to spend the funds (this includes a hash of S)
- Bob must provide the secret to move it. Once Alice is sure that Bob is really Bob, she provides Bob the secret (e.g. via an encrypted email).

In atomic swaps, the secret is provided only when the other party has also transferred the funds (the setup is even a bit more complicated, see https://en.bitcoin.it/wiki/Atomic_swap), but you don't need that in your setup, as all you want is that the other party needs to provide information received from two different channels (1 - the transaction, 2 - the secret)


legendary
Activity: 4214
Merit: 4458
February 04, 2019, 06:10:58 PM
#22
Okay then, probably it is exactly what I wanted to see in Bitcoin, though done in a different way (maybe, even in a more flexible way). So how can we prevent coins from being sent to a non-existent address? Well, not actually prevent them from being sent but rather being able to claim them back?

Perhaps, adding a variable (a timer) that would allow to claim the coins back if they don't get spent?

how multisig works
you both then make a separate private/public keys
1deisikr4nd0m4ddr355  \
                                     >=bc1qD31s1kfri3nd
1fr13ndr4nd0m4ddr355 /

you both can calculate that your random PUBLIC keys BOTH created the bc1qD31s1kfri3nd address and you can both confirm its a real address as you both calculated it separately
again neither of you know/provided the private keys to each other
but both have the public info to check the address is real.

..
as for a separate situation of just wanting to prevent people funding addresses they mistakenly mistyped/misspelled... there is no real way.
because if you start implementing a system where people can get coins out of an address that a person does not have a private key of.. then thats just going to cause alot of hacking.

the only way to stop this is to prevent typo's... NOT allow a way to get funds from addresses which people dont have priv keys for.. but just a way to double check with other parties that an address is actually an active address
legendary
Activity: 1666
Merit: 1196
STOP SNITCHIN'
February 04, 2019, 05:44:52 PM
#21
What is the difference between your suggest and using OP_CHECKLOCKTIMEVERIFY (OP_HOD ?

Or using Hashed Timelock Contracts (HTLCs) ?

That's the closest we have to the OP's first idea ("frozen addresses"), yes. I'm pretty sure I've seen this use case suggested before, but it doesn't seem particularly useful as an anti-hacking mechanism. If your private keys are compromised, then once the timelock is ending you're still just racing the attacker to spend the outputs and hoping your transaction gets confirmed first.

This feature should allow a transaction to expire (i.e. be reversed) unless the payee (i.e. the person you pay to and who is to receive the money) confirms it from their side.

You should use payment channels on Lightning then. Both counterparties need to sign a transactions before channel state can be updated. Otherwise, the last valid state can be broadcast to the blockchain.
legendary
Activity: 3430
Merit: 1280
English ⬄ Russian Translation Services
February 04, 2019, 05:33:01 PM
#20
On the flip side, though, there is another catch here. For example, it becomes known that the keys have been compromised, but the hacker can't steal the coins as it has a timer counting. So how can a legitimate owner claim his coins and not let the hacker claim them before him? That's an interesting implication which I didn't think of when starting this thread

I think there would be no way to do that. Once the countdown ended, they both would try to send the coins to another address at the same time, so the only way the legitimate owner could keep his coins would be by spending a higher fee than the hacker and being lucky

That's what I think myself

However, there can be a way out, something like a fallback plan. For example, you can also add an encrypted variable with a password known only to you, which you set at the moment you lock the address. It would allow you to stop the timer prematurely and thus claim the coins back immediately. I know you are going to say that it can be stolen too, but it is a one-off variable which is used only to stop the timer, so you don't need to save it anywhere but in your head only (read, it is not the same as your private key)
sr. member
Activity: 924
Merit: 260
February 04, 2019, 05:23:33 PM
#19
But what I suggest should be done on the protocol level. This feature will also prevent you from sending your coins to a wrong address by mistake. If you make such a mistake, whether the receiving address actually exists or not won't matter as your coins will come back to you after the grace period is over. Honestly, I don't understand why we don't have such a system already implemented


This can be done by Smart Contracts I believe. The contract will keep the sent coins locked for a grace period unless the recipient sends a confirmation TX. No confirmation after a time, the coins will return to the sendee.
hero member
Activity: 1176
Merit: 501
February 04, 2019, 05:09:23 PM
#18
On the flip side, though, there is another catch here. For example, it becomes known that the keys have been compromised, but the hacker can't steal the coins as it has a timer counting. So how can a legitimate owner claim his coins and not let the hacker claim them before him? That's an interesting implication which I didn't think of when starting this thread

I think there would be no way to do that. Once the countdown ended, they both would try to send the coins to another address at the same time, so the only way the legitimate owner could keep his coins would be by spending a higher fee than the hacker and being lucky.
legendary
Activity: 3430
Merit: 1280
English ⬄ Russian Translation Services
February 04, 2019, 04:58:33 PM
#17
Okay, I will look into it. Can I set a timeout with this approach, i.e. when the recipient doesn't claim the coins after a specified amount of time, can I claim them back?

yes. you can for instance use the same time locks that LN uses(without neding to use LN) so that you stipulate that you, yourself cannot touch the funds for X time (allowing the other person to spend within the time without fear that you are fake paying them by you claiming as soon as it confirms) thus giving them time to spend it

there are other options too

Okay then, probably it is exactly what I wanted to see in Bitcoin, though done in a different way (maybe, even in a more flexible way). So how can we prevent coins from being sent to a non-existent address? Well, not actually prevent them from being sent but rather being able to claim them back?

Perhaps, adding a variable (a timer) that would allow to claim the coins back if they don't get spent?

What you're asking for is Centralization.
An overseer to decide what is allowed and not allowed

changing the network to make all addresses behave in a certain manner that allows confirmed transactions to become unconfirmed. or to allow people to double spend is bad. but i dont think thats what the OP is asking for

Funny, taking into account that I specifically pointed out in the OP that people should not attack me without first trying to understand what I actually wanted to suggest (and they still failed me):

Second, we should make some transactions reversible, but please don't attack me before you actually listen me out. It is most certainly not what you think it is

Obviously, I didn't mean that all transactions should be made reversible. And maybe a 1-of-2 multisig is the right way to go with my proposal, after all
hero member
Activity: 1470
Merit: 509
February 04, 2019, 04:58:17 PM
#16
First, we should create "frozen" or lockable addresses, i.e. addresses which will be locked for a specified amount of time on the protocol level by setting a special variable that will be our countdown timer. After it runs out the address gets unlocked and you can move your coins freely.
Personally, I always follow the situation and when I think the time is right for entering then I get. Well what will happen to this countdown if the price in this period becomes as I wish? It is like taking over management. Anyway even if there is any solution, it will be hacked or stolen. There is no escape from something online, unless you are awake.
legendary
Activity: 4214
Merit: 4458
February 04, 2019, 04:46:23 PM
#15
Okay, I will look into it. Can I set a timeout with this approach, i.e. when the recipient doesn't claim the coins after a specified amount of time, can I claim them back?

yes. you can for instance use the same time locks that LN uses(without neding to use LN) so that you stipulate that you, yourself cannot touch the funds for X time (allowing the other person to spend within the time without fear that you are fake paying them by you claiming as soon as it confirms) thus giving them time to spend it

there are other options too

What you're asking for is Centralization.
An overseer to decide what is allowed and not allowed

changing the network to make all addresses behave in a certain manner that allows confirmed transactions to become unconfirmed. or to allow people to double spend is bad. but i dont think thats what the OP is asking for.
instead voluntarily putting funds into a multisig which 2 people volunteer to use as their escrow between themselves. where the 2 parties are the deciders. . then that is an option that is available now without network changes needed and not causing centralisation.
legendary
Activity: 3430
Merit: 1280
English ⬄ Russian Translation Services
February 04, 2019, 04:24:34 PM
#14
First, we should create "frozen" or lockable addresses

Most hacks happen over the secondary market mostly centralized exchanges, the chances of a wallet address getting hacked is very low, you can secure it further by using a hardware wallet

And what does it change?

Centralized exchanges hold most of their funds in cold wallets anyway, so keeping such wallets locked with a forward timer (say, set for 1 hour) will prevent these hacks from happening. On the flip side, though, there is another catch here. For example, it becomes known that the keys have been compromised, but the hacker can't steal the coins as it has a timer counting. So how can a legitimate owner claim his coins and not let the hacker claim them before him? That's an interesting implication which I didn't think of when starting this thread

you get to also stipulate how many people are needed to spend. hense a 1 of 2 means out of 2 chosen people only one is needed to spend the funds. thus allowing equal oppertunity to spend the funds. thus if the recipient does not spend it, you can get it back

the result is exactly what you want. funds are put into an address which you or the recipient can then claim.. EG the recipient can claim or you can claim(refund)

Okay, I will look into it. Can I set a timeout with this approach, i.e. when the recipient doesn't claim the coins after a specified amount of time, can I claim them back?

What you're asking for is Centralization.
An overseer to decide what is allowed and not allowed

Blockchain is that overseer. It decides what is allowed and what not
jr. member
Activity: 94
Merit: 1
February 04, 2019, 04:15:50 PM
#13
There is already a solution to this problemL Use banks/paypal/USD

If you can't handle security for your cryptocurrency you shouldn't own any.
legendary
Activity: 4214
Merit: 4458
February 04, 2019, 03:47:46 PM
#12
but lets deal with the second one

imagine you set up a 1-of-2 multisig (only one signer is needed)
you pay into that address and if the recipient then does not move the funds. out of the multisig within a timescale you can then spend them back to yourself

This is a very clumsy setup

Why would I need to share my private key with someone else as this is what a multisig is about as far as I understand it? I don't know if I'm using the correct terminology here but I hope you get the point. I just want to send somebody a few coins from my wallet (read, address) who I may not even know, and make sure that the coins don't get lost or stolen in the process. So how does a 1-of-2 multisig help me in any meaningful way here?

you dont need to share a private key..
thats what multisig is about.

in simple terms you have a private key.. the recipient has a private key.
you both only provide the PUBLIC key of each. and a multisig is an address that allows any of those to spend the funds within it.
meaning you dont get to know the recipients privat key and he doesnt get to know yours. it just allows more than one spender to spend independantly without giving away private keys

you get to also stipulate how many people are needed to spend. hense a 1 of 2 means out of 2 chosen people only one is needed to spend the funds. thus allowing equal oppertunity to spend the funds. thus if the recipient does not spend it, you can get it back

the result is exactly what you want. funds are put into an address which you or the recipient can then claim.. EG the recipient can claim or you can claim(refund)
newbie
Activity: 19
Merit: 0
February 04, 2019, 03:35:02 PM
#11
Have you heard the saying: "If a programmer makes an easy interface, nature will make a stupid user"? This is exactly the case. Most abductions occur through Social Engineering.
legendary
Activity: 3430
Merit: 1280
English ⬄ Russian Translation Services
February 04, 2019, 03:21:01 PM
#10
but lets deal with the second one

imagine you set up a 1-of-2 multisig (only one signer is needed)
you pay into that address and if the recipient then does not move the funds. out of the multisig within a timescale you can then spend them back to yourself

This is a very clumsy setup

Why would I need to share my private key with someone else as this is what a multisig is about as far as I understand it? I don't know if I'm using the correct terminology here but I hope you get the point. I just want to send somebody a few coins from my wallet (read, address) who I may not even know, and make sure that the coins don't get lost or stolen in the process. So how does a 1-of-2 multisig help me in any meaningful way here?
member
Activity: 84
Merit: 12
February 04, 2019, 03:19:03 PM
#9
1. There are already freezing balance tricks on bitcoin blockchain, technically every transaction you make contains a include in block chain field, which makes sure that you can lock the transaction.

can be done on any modern advance wallet

2.  reversible or party confirming transaction would cripple the SDK running on bitcoin, this removes the very concept of blockchain, the mempool will be clogged with unaccepted transactions, if every needed to be accepted the coin base generation can be manipulated, and the whole Benefit of FEE BUMP +  CPFP will be useless, but the way which was the point of conflict between BCH & BTC fork.

use multisig mode on electrum wallet for 2. it does what you looking for
legendary
Activity: 4214
Merit: 4458
February 04, 2019, 03:00:37 PM
#8
We all know that hacks and thefts are following Bitcoin (as well as other cryptocurrencies, for that matter) and its users like a plague, so I was thinking about solving this issue once and for all. Long story short, we need to implement two things described in detail below

First, we should create "frozen" or lockable addresses, i.e. addresses which will be locked for a specified amount of time on the protocol level by setting a special variable that will be our countdown timer. After it runs out the address gets unlocked and you can move your coins freely. That would essentially mean that no one including the owner of the keys will be able to move these coins anywhere until the specified amount of time runs out, thereby efficiently and effectively preventing hacks and thefts during that time. As an extension to this basic feature, it could be beneficial to create a white list of addresses where the coins can be sent to during this lock time

Second, we should make some transactions reversible, but please don't attack me before you actually listen me out. It is most certainly not what you think it is. This feature should allow a transaction to expire (i.e. be reversed) unless the payee (i.e. the person you pay to and who is to receive the money) confirms it from their side. This is how many online payment systems work (e.g. Yandex.Money). Basically, you send money to someone but they won't be able to receive it without a protection code which you send them separately (or tell in person). Thus, if no code is provided on time, the transaction gets canceled. Essentially the same thing can and should be implemented in Bitcoin

So if you find these proposals interesting or even if you find them disgusting, feel free to comment below

both things are possible now
but lets deal with the second one

imagine you set up a 1-of-2 multisig (only one signer is needed)
you pay into that address and if the recipient then does not move the funds. out of the multisig within a timescale you can then spend them back to yourself

no protocol changes are needed to do this
legendary
Activity: 3430
Merit: 1280
English ⬄ Russian Translation Services
February 04, 2019, 01:38:46 PM
#7
What is the difference between your suggest and using OP_CHECKLOCKTIMEVERIFY (OP_HOD ?

Or using Hashed Timelock Contracts (HTLCs)?

I will look into that later (as I'm not very familiar with Bitcoin's opcodes)

This feature should allow a transaction to expire (i.e. be reversed) unless the payee (i.e. the person you pay to and who is to receive the money) confirms it from their side.

So it would need to pay 2 times the fee?

I don't really know

But it doesn't matter as this feature should be optional anyway and it is certainly worth the money, i.e. fee paid first by the payer (as usual) and then probably by the payee (or by the payer alone). Just imagine how many people lost their coins when they sent them to a non-existent address and then imagine how many are still going to lose their coins in the future. In simple terms, we have to literally pay for the lack of a feature which should have been in Bitcoin right from the start. Some things seem to be too obvious to be actually done
hero member
Activity: 672
Merit: 526
February 04, 2019, 01:20:07 PM
#6
What is the difference between your suggest and using OP_CHECKLOCKTIMEVERIFY (OP_HOD ?

Or using Hashed Timelock Contracts (HTLCs) ?


 This feature should allow a transaction to expire (i.e. be reversed) unless the payee (i.e. the person you pay to and who is to receive the money) confirms it from their side.

So it would need to pay 2 times the fee?
legendary
Activity: 3430
Merit: 1280
English ⬄ Russian Translation Services
February 04, 2019, 01:05:00 PM
#5
From what I have seen here on the recommendations you made, its something I would call an Escrow system which is something already in place and what is applicable in most peer to peer site that they create a form of timing for transactions between two people and you are equally allowed to open s trade dispute should in case you are not comfortable with the trade

Probably yes (as I don't know how the system you refer to actually works)

But what I suggest should be done on the protocol level. This feature will also prevent you from sending your coins to a wrong address by mistake. If you make such a mistake, whether the receiving address actually exists or not won't matter as your coins will come back to you after the grace period is over. Honestly, I don't understand why we don't have such a system already implemented

On the other option of making transaction reversible, how that would be possible is what I can't get my head around except the entire bitcoin or crypto is reconfigured to make this option possible other than that, I fear we might have to do with what we currently have and continue to protect ourselves in the face of people who are bent on ripping us of

But how are other systems upgraded? If Bitcoin doesn't allow such upgrades being made in a safe and reliable way, it pretty much means that it is poorly designed, and we need to redesign it (while it is still officially in beta)
hero member
Activity: 1330
Merit: 569
February 04, 2019, 12:44:33 PM
#4
From what I have seen here on the recommendations you made, its something I would call an Escrow system which is something already in place and what is applicable in most peer to peer site that they create a form of timing for transactions between two people and you are equally allowed to open s trade dispute should in case you are not comfortable with the trade.

On the other option of making transaction reversible, how that would be possible is what I can't get my head around except the entire bitcoin or crypto is reconfigured to make this option possible other than that, I fear we might have to do with what we currently have and continue to protect ourselves in the face of people who are bent on ripping us of.
Pages:
Jump to: