Bitcoin Forum
April 25, 2024, 08:27:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: Creating Bitcoin passports using sacrifices  (Read 12976 times)
phelix
Legendary
*
Offline Offline

Activity: 1708
Merit: 1019



View Profile
October 27, 2013, 08:48:27 AM
 #41

Would it not be much easier to destroy coins as a sacrifice?

With a potential for a minimum of 7 billion (and counting) identities for a truly representative number of ID's, we risk ending up with a demurrage based money supply. Consider that there is a legitimate justification to have more than one ID per person, well, I think that sews it up.

Huh  the sacrifice can be of little value...


Artificial mining fees give an advantage to very large miners and could foster centralization. E.g. BTC guild with 28% hash power can easily give you a 10% discount on sacrifices and still make 18% profit. Even more so if the first sacrifice tx is not released other than as part of an (orphaned) block.
1714033662
Hero Member
*
Offline Offline

Posts: 1714033662

View Profile Personal Message (Offline)

Ignore
1714033662
Reply with quote  #2

1714033662
Report to moderator
1714033662
Hero Member
*
Offline Offline

Posts: 1714033662

View Profile Personal Message (Offline)

Ignore
1714033662
Reply with quote  #2

1714033662
Report to moderator
1714033662
Hero Member
*
Offline Offline

Posts: 1714033662

View Profile Personal Message (Offline)

Ignore
1714033662
Reply with quote  #2

1714033662
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714033662
Hero Member
*
Offline Offline

Posts: 1714033662

View Profile Personal Message (Offline)

Ignore
1714033662
Reply with quote  #2

1714033662
Report to moderator
1714033662
Hero Member
*
Offline Offline

Posts: 1714033662

View Profile Personal Message (Offline)

Ignore
1714033662
Reply with quote  #2

1714033662
Report to moderator
1714033662
Hero Member
*
Offline Offline

Posts: 1714033662

View Profile Personal Message (Offline)

Ignore
1714033662
Reply with quote  #2

1714033662
Report to moderator
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
October 27, 2013, 09:27:38 AM
 #42

Artificial mining fees give an advantage to very large miners and could foster centralization.
Welp, better go fix this centralization then... it has a lot more costs and risks for Bitcoin than just SINs.
phelix
Legendary
*
Offline Offline

Activity: 1708
Merit: 1019



View Profile
October 27, 2013, 09:44:46 AM
 #43

Artificial mining fees give an advantage to very large miners and could foster centralization.
Welp, better go fix this centralization then... it has a lot more costs and risks for Bitcoin than just SINs.
Hereby I declare everyone to use P2Pool. Haha.

At least it would be wise not to add bad incentives.
simondlr
Sr. Member
****
Offline Offline

Activity: 424
Merit: 250



View Profile
October 27, 2013, 10:43:17 AM
Last edit: October 27, 2013, 10:53:47 AM by simondlr
 #44

Huh?

There are two main ways of making provable sacrifices that make sense:

1) Create a txout with a scriptPubKey that can't be spent that has a non-zero value.

2) Use the the announce/commit sacrifice protocol to ensure all miners have an equal chance.

2.1) Create a anyone-can-spend coinbase txout. (can't be spent for 100 blocks, so again, all miners have an equal chance)

2.2) In the future add an OP_VERIFY_LOCKTIME or similar to make a specific txout unspendable for some amount of time.

That miners can mine their own fee sacrifices makes the whole fee sacrifice thing a horrible, horrible idea and a complete non-starter. It'd dead easy to round up enough mining power to create any single-tx fee sacrifice you want in a reasonable amount of time, and of course you can always turn that into a service. No-one who knew what they were talking about was seriously proposing that idea.

As for #1: it's dead easy to create all kinds of scriptPubKeys that you can prove can never be spent. Previously people thought UTXO bloat was an issue, but right now I'm quite convinced UTXO size isn't a big deal due to TXO commitments. (though having invented them, I might be a bit biased!)

Annoyingly only 80 bytes are allowed in a standard OP_RETURN <data> txout, which makes announce/commit sacrifices hard to pull off, but then again they aren't as trustworthy as spend-to-unspendable - for now I don't think we want to use them. Better to eventually add OP_VERIFY_LOCKTIME and lock the coins involved for fairly long amounts of time, months to years.

"Previously people thought UTXO bloat was an issue, but right now I'm quite convinced UTXO size isn't a big deal due to TXO commitments."

What is meant by this? Can you please explain a bit more? I'm slowly but surely delving deeper into the protocol, so I need to wrap my head around concepts still.

Thanks for explaining the other options. Another quick question: taking a look here (https://en.bitcoin.it/wiki/Script). anyone-can-spend output doesn't have a limit to when it can be spent? I assume that anyone-can-spend MUST be coupled with OP_VERIFY_LOCKTIME so miners have an equal chance. Or am I missing something? [EDIT. Forget this question. I read up on it. It uses nLockTime. For anyone else wondering: https://en.bitcoin.it/wiki/Fidelity_bonds#Announce.2FCommit_Sacrifices].

Tip: BTC 1LbHAZv2mbZZMTu2k4xLcg8p5q4FatgkA7. Doge DFVzezccAsdq1LQwrPTDe1nMXKrL7aEUWY. FUNK: CXfgJPSbY1C5paVwiSHnm942tJPyK9xSfy
The Cypherfunks: a decentralized band & cryptocurrency. https://bitcointalk.org/index.php?topic=469407.0

Bitrated: https://www.bitrated.com/simondlr/
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
October 27, 2013, 11:09:15 AM
 #45

"Previously people thought UTXO bloat was an issue, but right now I'm quite convinced UTXO size isn't a big deal due to TXO commitments."
What is meant by this? Can you please explain a bit more? I'm slowly but surely delving deeper into the protocol, so I need to wrap my head around concepts still.
That should get a new thread, if retep has time to follow up on it. Thanks. (I will be deleting my post once it's not needed to keep this thread from going offtopic)
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3071



View Profile
October 27, 2013, 04:57:34 PM
 #46

To contemplate this and any further ancillary chain-verified information systems, it seems to me like there should be a consideration of renaming Bitcoin itself. "Statechain" would be as appropriate as it would be ironic. Information can become blockchain-backed.

This has the potential to be extended in a way that creates the most trustworthy information system on the planet, using the most trustworthy monetary record as an underpinning to the whole thing. The strength in that model cannot be overstated.

I mean, there's talk of linking to a government ID if you choose, but a system can be designed such that a definitely proven, genuine and actual, honest-to-god uncompromised identity can be created using the Identity Protocol as it's basis. Why would you bother cross checking to any government record at all, when you can use a more reliable and trustable system? It's the ultimate information tool.


Vires in numeris
Crowex
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
October 27, 2013, 06:40:09 PM
 #47

How about making the sacrifice to miners of blocks that have already been mined?
A sort of miner's pension.
When I make the sacrifice it is entered into a satoshi dice type lottery and awarded at random to the miner of a previously mined block.
It still incentivises miners because they will be earning a free lottery ticket if they mine a new block but there is no problem with miners trying to mine their own sacrifices.

I haven't really thought this through and it may be completely impractical to implement but I thought I'd just throw the idea out there anyway.  Smiley

jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
October 27, 2013, 08:02:24 PM
 #48

Artificial mining fees give an advantage to very large miners and could foster centralization. E.g. BTC guild with 28% hash power can easily give you a 10% discount on sacrifices and still make 18% profit. Even more so if the first sacrifice tx is not released other than as part of an (orphaned) block.

A bit, but this is addressed somewhat:  Read the SIN spec, and how announce/commit sacrifices work.

The protocol is specified such that you are required to have made the transaction available to all for mining and spending, for a period of time, before committing the sacrifice.

Of course as Greg noted, fixing the problem of pool-centralization is sadly outside the scope of this work, and more fundamental to bitcoin itself.  (encourage p2pool use...)


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Luckybit
Hero Member
*****
Offline Offline

Activity: 714
Merit: 510



View Profile
October 27, 2013, 08:20:06 PM
 #49

I figured I'd start a new thread for this despite that there are a few similar threads already, as I wanted discussion of this exact design all in one place. I will incorporate feedback and put it onto the wiki in the coming week. These ideas are of course not really mine, they have come out of lots of different discussions and debates. But I want to try blending them in a different way, with more technical detail.

"Bitcoin passports" are related to fidelity bonds discussed elsewhere in this forum, but I think it's a slightly better sounding name (if a little misleading).



Services that can be abused (wikis, forums, webmail etc) need a blacklistable identity for each user so bad behaviour can be punished through exclusion. If no such blacklistable identity exists then account termination is pointless because the abuser will just immediately sign up again. This is why Tor tends to have a read-only view of the internet. Mesh networks like cjdns will have the same problem. Small sites tend to use IP address but this is weak; more advanced operations like the Google abuse team use phone verification and other techniques.

For anonymous users to take part, a cost on establishing an identity must be imposed. We can do this by requiring users to present a proof that they gave away some coins to miner fees. The proof is standalone and can be checked by anyone who has a copy of the block headers. The hash of that proof becomes the pseudonym, it can be checked against Spamhaus style DNS blacklists to discover past behaviour that has been associated with that nym and optionally blocked.

To create one, you take X coins and spent them to miner fees over the course of Y consecutive blocks. The outputs of the transactions are set to OP_FALSE so nodes can be taught to prune them. Each transaction and its merkle branch are included into a data structure, called the passport:

Code:
message BitcoinPassport {
  // A name that sites can refer to the user as - for convenience only, it is
  // not checked anywhere and can be of any form. Websites must sanitize
  // it for XSS before rendering as there may be arbitrary UTF-8 data in it.
  required string textual_name = 1;
  repeated Sacrifice sacrifices = 2;
  // Some optional data that can help simplify signup for websites ....
  optional string email = 3;  // etc
}

message Sacrifice {
  // The raw transaction as included into the block chain, the merkle branch
  // proving its inclusion and the co-ordinates of the block.
  required bytes tx = 1;
  required bytes merkle_branch = 2;
  required bytes included_in_block = 3;
  required int inclusion_height = 4;   // Some implementations may benefit from this.
}

If a service or application wishes to verify a passport, it asks the operating system to open a URL of the form:

Code:
bitcoinpassport+https://accounts.google.com/VerifyAnonymousAccount?value=0.01&challenge=f3626fca2ce9ffd23e0abd859faeff5384b63834&state=dNaBzuXCE7a7UGSO+deEbX/8XDNESGSD/lQ9vmO9/NU=

An application, call it the Passport Manager, handles this URI and then signs the given challenge using each public key in each sacrifice transaction (in order). The challenge is randomly generated by the server. The signatures are then bundled up together with the state and the passport itself:

Code:
message IdentityProof {
  // An series of embedded messages containing passports. This is not an embedded type to ensure
  // reliable hashing of the contents without any confusion caused by protocol upgrades in future.
  // There can be more than one so you can present multiple passports to reach the required size
  // of sacrifice, in case your first one isn't large enough.
  repeated bytes passport = 1;
  // A list of signatures, one for each input in each sacrifice, in order.
  repeated bytes signatures = 2;
  // This is simply a copy of the state parameter in the URI.
  optional string state = 3;
}

The state parameter is arbitrary data looped through the client from the server. It allows for a stateless server implementation that does not need a database to track what challenge corresponds to what server action is currently suspended pending verification. For instance, the server could encrypt any state it requires into this field. It is useful for operations that use global load balancing.

Upon receiving an IdentityProof, the server parses the passport field into a BitcoinPassport message, verifies the signatures (the passport is presented by its owner), verifies that the sacrifice transactions link back to the given block headers based on the servers copy of those headers, and then verifies that the number and value of the sacrifices is sufficient. The transactions should appear more or less in consecutive blocks the chain, though there should be a bit of leeway allowed.

If the proof is validated, the server can then check against its own blacklists of abusers or look up the hash in a remote database. If no problems are found, the nym (proof hash) can be stored in the newly created account. If later the account turns out to be abusive, it can be blacklisted. The state variable can be decrypted and whatever data needs to be adjusted then can be. The server replies to the app with an HTTP redirect and the app then opens the redirect URI, which takes the user back to the browser. The redirect URI may complete registration with a welcome message, or alternatively explain to the user why their nym is not accepted.

Passports can be created using the Passport Manager app. It is a standalone program that maintains its own Bitcoin wallet. You send money to it, click the "Make passport" button and then go to bed. It ensures there are outputs of the right quantity and value before starting, and then sends transactions such that they get into consecutive blocks. This may take an hour or two, but once complete the passport can be written to a .passport file which contains the public data and of course, the private keys used to sign for them.

Design choices

(1) Why miner fees instead of a charity?

There are several problems with the idea of donating to charity:

  • Charities are not politically neutral as miners are. For instance, if you wanted to donate to charities that operate in Iran that might be an issue. Nobody will be able to agree on one set of charities that makes everyone happy - even "no brainers" like open source foundations would be a turnoff to non-technical people who may wish to use the system.
  • Charities massively prefer to have real relationships with donators who commit to the long term (or can be convinced to do so). Anonymous, unpredictable revenue flows can make their accounting much harder because they don't know when money might arrive, so it can't be relied upon. A charity that received money this way then didn't use it would lose a lot of goodwill through no real fault of their own.
  • Some charities do not want to or cannot accept anonymous donations at all.
  • Everyone would have to agree on the list of charities to use ahead of time, so there would be no connection between how well a charity does and how much it received in sacrifice fees. A charity may operate effectively for a few years and then become corrupt or incompetent, but upgrading everyones software to use a new list would be difficult.

Miners are politically neutral, anonymous, indistinguishable, the money is almost guaranteed to quickly re-circulate into the economy via exchanges and it helps support network security.

(2) Why require multiple sacrifices in consecutive blocks?

This is to avoid people mining their own sacrifice. It's very hard to mine 6 consecutive blocks but relatively easy to get transactions into them. A gap of 1 block or so would be acceptable, you don't need to hit every single block to have very high confidence.

(3) What are good values for the size of the sacrifice and the number of blocks?

Abuse is cheap. Let's imagine we deploy this for Gmail. The cost of Gmail accounts on the black market is roughly $100-$150 per thousand accounts. This is what it costs professional spammers to overcome phone verification and successfully avoid bulk termination.

Thus a single account costs about 10 to 15 cents. Assume a price of $20 per coin, that means 10 cents is 0.005 coins. If we say you need to spend 0.005 coins to fees in the space of 6 blocks, then this means 0.001 coins per sacrifice with an allowable gap of 1 block in 6 total. That sounds quite reasonable to me. Because you know when the sacrifice was made, calculating the value of it in the currency of your choice is straightforward despite floating exchange rates.

(4) Why a new URI scheme?

For a website to ask an app for data, there are only a few possibilities. Magic HTTP headers, JavaScript APIs etc all require browser extensions to implement, which is hard or impossible to do on mobile/tablet browsers. URI registration is simple, universally supported and does not impose any browser requirements.

Don't bother with blacklists. Just use micropayments to charge uses a fee.
d'aniel
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251


View Profile
October 27, 2013, 11:04:47 PM
 #50

FWIW, I posted an extension to the identity protocol that enables use of short pronounceable MPK (master public key) fingerprints here: https://bitcointalk.org/index.php?topic=319633.0.
d'aniel
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251


View Profile
October 27, 2013, 11:56:35 PM
 #51

@jgarzik, due to provably unspendable outputs only taking 80 bytes, is the "official identity protocol" going to move away from announce/commit sacrifices?  Should the sacrifice just be burned in a OP_RETURN HASH160(MPK) output until something better comes along (like the OP_VERIFY_LOCKTIME that retep mentioned)?
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1120
Merit: 1149


View Profile
October 28, 2013, 01:16:34 AM
 #52

@jgarzik, due to provably unspendable outputs only taking 80 bytes, is the "official identity protocol" going to move away from announce/commit sacrifices?  Should the sacrifice just be burned in a OP_RETURN HASH160(MPK) output until something better comes along (like the OP_VERIFY_LOCKTIME that retep mentioned)?

I can't speak for jgarzik, but I think this is the right approach. As pointed out above announce/commit can incentivize mining centralization, which is extremely bad. I think that downside outweighs the good that sending more fees to miners ever could do; miners already have pretty generous inflation subsidy for now.

d'aniel
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251


View Profile
October 28, 2013, 05:51:08 AM
 #53

I agree, there's just not a need now or in the near future to find ways to raise mining revenues, and burning them is much simpler.
Pages: « 1 2 [3]  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!