Bitcoin Forum
June 18, 2024, 08:45:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: How do you enforce a smart contract  (Read 1400 times)
johnyj (OP)
Legendary
*
Offline Offline

Activity: 1988
Merit: 1012


Beyond Imagination


View Profile
April 18, 2015, 02:01:17 AM
 #1

The idea of smart contract is that you can let a bitcoin address represent anything. Let's say that one bitcoin at a certain address represent the earth, then who owns that bitcoin will own the planet

Does that make any sense?

Ownership means the total control of the object. Even the blockchain is a universal transparent ledger that can not be compromised, a bitcoin owner can only have total control over his bitcoin, nothing else. Not USD, not Stocks, not a house. The total control of those things require the control of bank account/equity account/the land

Suppose that a bank claims that one bitcoin in a special address represent one million dollars (Of course the bank owns that address).  Then he can use that bitcoin to purchase one million dollars worth of products, because anyone who received those coins can redeem them at that bank, at an exchange rate of one million dollars per coin. This is in fact the process of money creation backed by assets

However, that will destroy the fungibility of bitcoin. You will have to check each bitcoin address to decide the value of those addresses depends on their backing

And the worst thing is, the bank could just refuse to redeem the dollar when they have spent the coins at that address. So you must have some mechanism to physically lock the address and the assets that backing them. This lock can only be enforced by an auditor with a written contract from the bank and a reserve of one million dollars controlled by the auditor

So I think it is difficult to use blockchain to guarantee the ownership of anything outside, better focus on bitcoin itself, it is already one of the most liquid form of assets


Lorenzo
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
April 18, 2015, 02:27:54 AM
 #2

Colored coins allow you to represent things on the Bitcoin blockchain. If you own a colored coin that represents a cow, then you own that cow. It is also possible for someone to own something that they don't have control over. e.g. the cow is stolen or it ran away. For real world examples such as these, you would need to find a way to enforce control over the assets you own. e.g. a fence.

In your example, the bank could choose to refuse to redeem the coins for dollars but most good banks with a good reputation aren't going to do this. When you get such a coin, you don't really own dollars. You own dollar IOUs. Whether or not the bank will redeem these IOUs for actual dollars is solely up to the bank's decision.

Smart contracts are pieces of code stored on the blockchain which both parties must agree to follow and other nodes will observe and enforce. Usually they work best when the data is on-chain and verifiable. Hence it doesn't really work for the cow example and it doesn't really work for your dollar IOUs either.
BADecker
Legendary
*
Offline Offline

Activity: 3822
Merit: 1373


View Profile
April 18, 2015, 04:08:56 PM
 #3

When you buy something, you want to check out if the owner is really the owner. Maybe he is a swindler, and is attempting to sell you stolen property.

Wherever the property is registered, the registration could have listed in its paperwork, the corresponding smart property contract that would have to be activated before the sale is possible.

It would be something like a trust, where the trust owns the property. The thing you do when transferring trust property is to simply change the trustees. Many trusts are written so that the trustee can be changed. The new trustee is the one that now controls the property.

If the property is owned by a smart property contract, the new administrator of the contract is the new controller, and essentially the new owner.

Smiley

Cure your cancer at home. Ivermectin, fenbendazole, methylene blue, and hydroxychloroquine (HCQ) are chief among parasite drugs. Find out that all disease is based in parasites or pollution, and what you can easily do about it - https://www.huldaclark.com/, https://thedrardisshow.com/, https://thehighwire.com/.
qxzn
Hero Member
*****
Offline Offline

Activity: 609
Merit: 505



View Profile
April 19, 2015, 12:07:58 AM
 #4

OP, you are mixing up two issues with smart contracts, both of which are real issues:

#1:
The idea of smart contract is that you can let a bitcoin address represent anything. Let's say that one bitcoin at a certain address represent the earth, then who owns that bitcoin will own the planet

That's actually more specific than the general idea of smart contracts. You are talking about colored coins here, and yes, they do create fungibility issues. That's one of the reasons I don't think colored coins is the best way to implement smart contracts. There are, however, other ways.

#2:
Quote
And the worst thing is, the bank could just refuse to redeem the dollar when they have spent the coins at that address. So you must have some mechanism to physically lock the address and the assets that backing them. This lock can only be enforced by an auditor with a written contract from the bank and a reserve of one million dollars controlled by the auditor

So I think it is difficult to use blockchain to guarantee the ownership of anything outside, better focus on bitcoin itself, it is already one of the most liquid form of assets

Yes, smart contracts dealing with non-bitcoin things have to somehow be attached to the real world. This attachment point is tricky. If you're thinking about for example representing ownership of a house, or a car, say, you're going to have to get governments to recognize the token as the true notion of ownership. Otherwise a buyer buys a house token for, say, 1000 bitcoins, the seller hands over the token but never signs the deed over; as far as the local gov't is concerned the seller still owns the house and the buyer just got shafted for 1000 btc.

There are lots of kinds of smart contracts though; some are more tractable. Like for example futures, forward contracts or other derivatives that are purely settled in BTC. Or next step up, something involving one or more trusted or semi-trusted "oracles" which interface to the real world by giving truth values about events.
johnyj (OP)
Legendary
*
Offline Offline

Activity: 1988
Merit: 1012


Beyond Imagination


View Profile
April 19, 2015, 03:29:12 AM
 #5

Another problem is the loss of the private key. In real world when you lose the key of the house, you can ask the police/housing company to change the lock, since there are multiple places record the ownership of the house. But on blockchain, the ownership is gone when the private key is gone


Elwar
Legendary
*
Offline Offline

Activity: 3598
Merit: 2386


Viva Ut Vivas


View Profile WWW
April 19, 2015, 08:32:41 AM
 #6

A paper contract on its own is of use.

I have a piece of paper that says I own the earth.

The only way that becomes true is if an entity that owns a lot of guns recognizes it as valid.

First seastead company actually selling sea homes: Ocean Builders https://ocean.builders  Of course we accept bitcoin.
SpanishSoldier
Sr. Member
****
Offline Offline

Activity: 700
Merit: 255


View Profile
April 19, 2015, 08:36:03 AM
 #7

Here is how: https://github.com/ethereum/wiki/wiki/White-Paper
yayayo
Legendary
*
Offline Offline

Activity: 1806
Merit: 1024



View Profile
April 19, 2015, 01:27:56 PM
 #8

...

In your example, the bank could choose to refuse to redeem the coins for dollars but most good banks with a good reputation aren't going to do this. When you get such a coin, you don't really own dollars. You own dollar IOUs. Whether or not the bank will redeem these IOUs for actual dollars is solely up to the bank's decision.

...

I think the essence is contained in this statement. An IOU is not the same as holding the "real thing". So for most real world things represented as IOUs in the form of smart contracts you will have a counterparty risk.

To enforce an IOU that represents a "real thing" you obviously can't rely on a smart contract alone - you have to do something in the "real world" in case the issuer of the IOU does not adhere to the conditions of the contract.

So it doesn't matter how "smart" the contract is - in the end it all comes down to trusting the issuer. There's no difference to old school "dumb" contracts.

ya.ya.yo!

.
..1xBit.com   Super Six..
▄█████████████▄
████████████▀▀▀
█████████████▄
█████████▌▀████
██████████  ▀██
██████████▌   ▀
████████████▄▄
███████████████
███████████████
███████████████
███████████████
███████████████
▀██████████████
███████████████
█████████████▀
█████▀▀       
███▀ ▄███     ▄
██▄▄████▌    ▄█
████████       
████████▌     
█████████    ▐█
██████████   ▐█
███████▀▀   ▄██
███▀   ▄▄▄█████
███ ▄██████████
███████████████
███████████████
███████████████
███████████████
███████████████
███████████████
███████████▀▀▀█
██████████     
███████████▄▄▄█
███████████████
███████████████
███████████████
███████████████
███████████████
         ▄█████
        ▄██████
       ▄███████
      ▄████████
     ▄█████████
    ▄███████
   ▄███████████
  ▄████████████
 ▄█████████████
▄██████████████
  ▀▀███████████
      ▀▀███
████
          ▀▀
          ▄▄██▌
      ▄▄███████
     █████████▀

 ▄██▄▄▀▀██▀▀
▄██████     ▄▄▄
███████   ▄█▄ ▄
▀██████   █  ▀█
 ▀▀▀
    ▀▄▄█▀
▄▄█████▄    ▀▀▀
 ▀████████
   ▀█████▀ ████
      ▀▀▀ █████
          █████
       ▄  █▄▄ █ ▄
     ▀▄██▀▀▀▀▀▀▀▀
      ▀ ▄▄█████▄█▄▄
    ▄ ▄███▀    ▀▀ ▀▀▄
  ▄██▄███▄ ▀▀▀▀▄  ▄▄
  ▄████████▄▄▄▄▄█▄▄▄██
 ████████████▀▀    █ ▐█
██████████████▄ ▄▄▀██▄██
 ▐██████████████    ▄███
  ████▀████████████▄███▀
  ▀█▀  ▐█████████████▀
       ▐████████████▀
       ▀█████▀▀▀ █▀
.
Premier League
LaLiga
Serie A
.
Bundesliga
Ligue 1
Primeira Liga
.
..TAKE PART..
redsn0w
Legendary
*
Offline Offline

Activity: 1778
Merit: 1042


#Free market


View Profile
April 19, 2015, 01:57:47 PM
 #9

I can only suggest you "Oraclize", this is the site (beta) : https://www.oraclize.it/ . It is based on orisi (http://orisi.org/) and it is not still fully functional, but you can test some 'events' and in the future real autonomous contract (without the possibility of lie of one of the parts).
687_2
Full Member
***
Offline Offline

Activity: 173
Merit: 105



View Profile
April 19, 2015, 02:14:36 PM
 #10

Yes, smart contracts dealing with non-bitcoin things have to somehow be attached to the real world. This attachment point is tricky. If you're thinking about for example representing ownership of a house, or a car, say, you're going to have to get governments to recognize the token as the true notion of ownership. Otherwise a buyer buys a house token for, say, 1000 bitcoins, the seller hands over the token but never signs the deed over; as far as the local gov't is concerned the seller still owns the house and the buyer just got shafted for 1000 btc.

There are lots of kinds of smart contracts though; some are more tractable. Like for example futures, forward contracts or other derivatives that are purely settled in BTC. Or next step up, something involving one or more trusted or semi-trusted "oracles" which interface to the real world by giving truth values about events.

None of these issues are really much of a problem, at least in the US. A valid contract needs only two things:

1) Meeting of the minds
2) Consideration

Even verbal agreements are enforceable in US courts (I don't know about elsewhere) so long as they have these two things, so contracts on the blockchain or even off chain are no problem to enforce at all, as long as both parties have assets in the same or cooperating jurisdictions. It will be a pain in the ass for the buyer if the seller defaults, but the buyer will eventually win in court.

Buy the dip with the security and privacy of your own wallet: use cross chain atomic swaps to trade Bitcoin, USDT, and Ether. Trades are secured and settled on-chain. https://sibex.io
687_2
Full Member
***
Offline Offline

Activity: 173
Merit: 105



View Profile
April 19, 2015, 02:47:24 PM
 #11

Suppose that a bank claims that one bitcoin in a special address represent one million dollars (Of course the bank owns that address).

A bank (or anyone) can claim anything - whether or not people buy into it is up to them. In this example the bank is just a scammer - it did a classic bait and switch. Financial schemes and crimes are the easiest to perpetrate I think, due to information asymmetry in financial markets. This doesn't have anything to do with contracts or enforcement.

So I think it is difficult to use blockchain to guarantee the ownership of anything outside, better focus on bitcoin itself, it is already one of the most liquid form of assets

Possession/control/usage is 9/10 ownership.

DRM does well at controlling physical objects. You could quite easily install a chip that disables any electronic equipment inside cars, computers, phones, etc. that is activated (or de-activated) by sending precise amounts of XBT to pre-arranged addresses.

You can do the same thing with electromagnetic door locks, etc. The technology is here, it's just nobody has deployed it yet. It's a great business opportunity.

Buy the dip with the security and privacy of your own wallet: use cross chain atomic swaps to trade Bitcoin, USDT, and Ether. Trades are secured and settled on-chain. https://sibex.io
BitcoinPenny
aka CJBianco
Legendary
*
Offline Offline

Activity: 2672
Merit: 2203


BitcoinPenny.com


View Profile WWW
April 19, 2015, 04:02:46 PM
 #12

So it doesn't matter how "smart" the contract is - in the end it all comes down to trusting the issuer. There's no difference to old school "dumb" contracts.

Interesting point.

Regards,
Christopher

BitcoinPenny.com | "When it comes to bitcoin swag, we make perfect CENTS!"
BillyBobZorton
Legendary
*
Offline Offline

Activity: 1204
Merit: 1028


View Profile
April 19, 2015, 04:08:07 PM
 #13

When you buy something, you want to check out if the owner is really the owner. Maybe he is a swindler, and is attempting to sell you stolen property.

Wherever the property is registered, the registration could have listed in its paperwork, the corresponding smart property contract that would have to be activated before the sale is possible.

It would be something like a trust, where the trust owns the property. The thing you do when transferring trust property is to simply change the trustees. Many trusts are written so that the trustee can be changed. The new trustee is the one that now controls the property.

If the property is owned by a smart property contract, the new administrator of the contract is the new controller, and essentially the new owner.

Smiley

True, but let's say someone enters your house bought via a smart contract... how do you send the police on him, if the smart contract has no recognize by the official authorities?
This is the main problem i see with this.
qxzn
Hero Member
*****
Offline Offline

Activity: 609
Merit: 505



View Profile
April 20, 2015, 05:58:22 AM
 #14

Yes, smart contracts dealing with non-bitcoin things have to somehow be attached to the real world. This attachment point is tricky. If you're thinking about for example representing ownership of a house, or a car, say, you're going to have to get governments to recognize the token as the true notion of ownership. Otherwise a buyer buys a house token for, say, 1000 bitcoins, the seller hands over the token but never signs the deed over; as far as the local gov't is concerned the seller still owns the house and the buyer just got shafted for 1000 btc.

There are lots of kinds of smart contracts though; some are more tractable. Like for example futures, forward contracts or other derivatives that are purely settled in BTC. Or next step up, something involving one or more trusted or semi-trusted "oracles" which interface to the real world by giving truth values about events.

None of these issues are really much of a problem, at least in the US. A valid contract needs only two things:

1) Meeting of the minds
2) Consideration

Even verbal agreements are enforceable in US courts (I don't know about elsewhere) so long as they have these two things, so contracts on the blockchain or even off chain are no problem to enforce at all, as long as both parties have assets in the same or cooperating jurisdictions. It will be a pain in the ass for the buyer if the seller defaults, but the buyer will eventually win in court.

Does it complicate things if the buyer buys the token, then sells it to someone else and so on with many trades happening before the latest owner tries to redeem the token for the house?

What if the token has been stolen somewhere along the way?
Bizmark13
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


WikiScams.org - Information about Bitcoin Scams


View Profile
April 20, 2015, 06:14:10 AM
 #15

I can only suggest you "Oraclize", this is the site (beta) : https://www.oraclize.it/ . It is based on orisi (http://orisi.org/) and it is not still fully functional, but you can test some 'events' and in the future real autonomous contract (without the possibility of lie of one of the parts).

One big problem with oracles is that by their very nature, they must either be completely trusted or semi-trusted. One of the advantages of smart contracts and the blockchain concept in general is decentralization, immunity to outside attacks, and the lack of a requirement to trust third parties. By using oracles to monitor, verify, and sign claims, you're adding a certain amount of trust into the mix. Sometimes, it might not be a huge issue: e.g. an oracle that monitors the price of a certain asset on a particular exchange and uses publicly verifiable code that both parties in the contract have agreed to beforehand. But not all cases where contracts are required are so clear-cut. Many contracts in the real world rely on data that is sketchy, subjective, or open to interpretation and/or manipulation.

How will smart contracts deal with and enforce such cases?
Agorista
Member
**
Offline Offline

Activity: 65
Merit: 10

a29hbGFibGFzdA==


View Profile
April 20, 2015, 07:16:49 AM
 #16

In terms of who owns the digital IOU or proof of ownership...

Digital mediators could be a good option for complex contracts. They could have an 'overriding key' for complex situations beyond the original scope of the contract, to execute a contract with varying results or annul it. Part of the contract would include the consent of both parties to have this digital mediator (escrow with legal jurisdiction)

It would be like subscribing to a legal jurisdiction on a contract by contract basis. I think this would make for more efficient and fair courts.

Mike
Member since June 2011 - watching BTC since $0.25
ensurance982
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


Trust me!


View Profile
April 20, 2015, 11:22:46 AM
 #17

I think this mainly boils down to the fact that you're using the blockchain or Bitcoins to prove ownership. The actual execution has to be done by regular means: Courts, police, lawyers, etc.

                                                                                                                      We Support Currencies: BTC, LTC, USD, EUR, GBP
redsn0w
Legendary
*
Offline Offline

Activity: 1778
Merit: 1042


#Free market


View Profile
April 20, 2015, 11:27:58 AM
 #18

I think this mainly boils down to the fact that you're using the blockchain or Bitcoins to prove ownership. The actual execution has to be done by regular means: Courts, police, lawyers, etc.

The problem here is that 'any governments' don't recognize the bitcoin blockchain, so a contract will be valid only if it is between private parts; but if one of those part wants to 'enforce' the contract I do not think the government will accept it.
ensurance982
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


Trust me!


View Profile
April 20, 2015, 11:34:03 AM
 #19

I think this mainly boils down to the fact that you're using the blockchain or Bitcoins to prove ownership. The actual execution has to be done by regular means: Courts, police, lawyers, etc.

The problem here is that 'any governments' don't recognize the bitcoin blockchain, so a contract will be valid only if it is between private parts; but if one of those part wants to 'enforce' the contract I do not think the government will accept it.

Well in many countries you can actually form contracts as you like - at least within the legal boundaries and to certain extents. If courts accept the blockchain as enough of a proof, then the contract may have decent chances of being recognized, I believe...

                                                                                                                      We Support Currencies: BTC, LTC, USD, EUR, GBP
herzmeister
Legendary
*
Offline Offline

Activity: 1764
Merit: 1007



View Profile WWW
April 20, 2015, 11:37:40 AM
 #20

if you miss that rate of the payment for your car, its engine will stop working in the middle of the highway...

https://localbitcoins.com/?ch=80k | BTC: 1LJvmd1iLi199eY7EVKtNQRW3LqZi8ZmmB
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!