top | item 6809929

Service lets you "certify" a document using the Bitcoin blockchain

179 points| obiefernandez | 12 years ago |proofofexistence.com | reply

83 comments

order
[+] machrider|12 years ago|reply
This idea is generally called "trusted timestamping": http://en.wikipedia.org/wiki/Trusted_timestamping

One example would be to take a photo of a rental car showing damage at the time you rented it and be able to prove it was taken at that time. Then the rental company cannot later claim you caused the damage.

This is a pretty clever use of the blockchain as a publicly-visible and authenticated timestamp. This way, the site's owners do not have to establish themselves as a legal authority on timekeeping in order for this to be a trusted service.

[+] DanielRibeiro|12 years ago|reply
Naval, founder of Angel List, has described[1] this and many other excitign usages of Bitcoin, going beyond basic money transfer:

Everyone has a copy of the Bitcoin block chain, so anyone can verify your transactions. You can write software that will crawl the block chain and generate automatic accounting histories for tax and verification purposes. You can engaged in “Trusted Timestamping” – take a cryptographic signature of any document, timestamp it, and put it into the block chain. Anyone can verify that the document existed at a given time. If you sign the document with your private key and another party signs it with theirs, it becomes an undeniable mutually-signed contract. This entirely eliminates notaries and websites like https://www.proofofexistence.com/ are showing the concept. The Namecoin project is building a distributed Domain Name System that allocates and resolve Domain Names without needing ICANN or Verisign, by using the block chain to establish proof-of-ownership.

Really worth a read.

[1] http://startupboy.com/2013/11/07/bitcoin-the-internet-of-mon...

[+] diminish|12 years ago|reply
I was developing a similar online notary. My idea is to timestamp open code, docs etc create a prior case database against patent trolls and goliaths.
[+] jd007|12 years ago|reply
This is definitely a cool idea, but there could be potential issues if it is to be relied upon for long periods of time. If at any point in the future the hash algorithm used (SHA256 right now it seems) is found to be vulnerable then it could invalidate all past certifications. You don't really even need a full collision attack, a chosen prefix collision attack is enough to completely destroy the system's validity. MD5 is already vulnerable to chosen prefix attacks, maybe in 5 or 10 years SHA256 will be too...

Perhaps using a combination of different hash algorithms that we know are secure today to certify a file together would be a potential solution to the problem. It's not perfect, but at least this way all the algorithms used need to be compromised for the certification to break.

[+] skriticos2|12 years ago|reply
Collisions are a problem if you want to corrupt data, not if you specifically want a human validate it in a single document.

E.g.:

I claim that I authored the string "foo bar" with hash "1f2ec52b7743687..".

Now you find a collision and go to court arguing:

>> Your honor, but "3HSSHog*8FF9 z!!!!ady94765&$^#" also has the same hash!

I think the court will still assume that "foo bar" is the correct original, not the garbled collision data you produce. And you still can't deny that the original produces the correct hash.

[+] xerophtye|12 years ago|reply
an application of each once? Btw my crypto is weak, but do answer this. if i apply a hash algorithm on something, it outputs a relatively small number of bytes. Correct me if i am wrong but the strength of the hash lies in the fact that the input space is vastly huge so its difficult to create an input-output mapping for reversing the hash. Now if we use one hash over another, aren't we restricting the input space of the 2nd hash? Wouldn't that make it easier to crack the 2nd hash for this particular usage? And if my above statements are correct then the strength of sch a mechanism only lies in the strength of the first algorithm
[+] gnerd|12 years ago|reply
The idea is cool but it might be too early for people to use the blockchain like this as right now BitCoin can support 7 transactions per second.

Once that hard limit is lifted, and things like this can scale and support demand, applications like this could be very interesting.

One thing though, it says the BTC involved in the transaction is unspendable, isn't that a bad thing? I imagine an idea like this that didn't render any amount of BTC unspendable would be ideal.

https://en.bitcoin.it/wiki/Scalability#Current_bottlenecks

[+] SilasX|12 years ago|reply
Wow, didn't realize that! That's bad news, since the current daily transaction rate (~100k) is within an order of magnitude of the daily limit (~600k = 7 x 3600 x 24).

Fortunately, the doubling time is, from eyeballing the chart below, about 6 months, so that allows ~1-2 years for a fix.

https://blockchain.info/charts/n-transactions?timespan=30day...

[+] nwh|12 years ago|reply
> BitCoin can support 7 transactions per second

It doesn't really matter, it's not like they're at all close to that limit. The limit is there to create a market with transaction fees, so it's not just going to be "removed" any time soon.

[+] martin_|12 years ago|reply
A couple of great developers from HackTX a couple of weeks back created something similar during the hackathon there in just 24 hours.

https://www.hackerleague.org/hackathons/hacktx/hacks/proveme with a demo copy @ http://162.242.216.46/

[+] wyager|12 years ago|reply
I'm one of the two developers.

I got the proof server working again so you can play with it.

Try proving data and typing in "testing" (lowercase). It will tell you when we put it in the blockchain. This file should also work: http://s3.amazonaws.com/rapgenius/filepicker%2FvCleswcKTpuRX...

It's a little patchy, but it does work! Payments are fake, and don't do anything! So don't pay! I don't know how much our Bitcoin wallet has left in it. I'll try to remember what we've uploaded so you can try it out.

Bitcoin/crypto code here: https://github.com/wyager/hacktx-proveme

[+] wyager|12 years ago|reply
My friend and I did this as well for a hackathon (HackTX) a few days ago!

162.242.216.46

Try proving data and typing in "testing" (lowercase). It will tell you when we put it in the blockchain. This file should also work: http://s3.amazonaws.com/rapgenius/filepicker%2FvCleswcKTpuRX...

Here is our bitcoin/crypto stuff. https://github.com/wyager/hacktx-proveme

It's not up to my usual quality because we did it in 24 hours with a sleep break! Please don't judge me on this :p

[+] taway2012|12 years ago|reply
Couple questions.

1) AFAIK, bitcoin has "comments" within transactions. Why not embed the checksum as a comment in a transaction between wallets you control?

2) In the approach described here, no coins are being sent with the transaction (right?). Are blockchain participants really accepting NOP transactions involving 0 BTC transfers. Maybe I missed something.

3) As others pointed out, requiring the whole file to be uploaded is a non-starter for anybody savvy enough to be using this service. Users should be able to directly specify the checksum.

[+] gnerd|12 years ago|reply
1) AFAIK BitCoin doesn't have comments[1]. When people have stored data in the blockchain in the past, it was by making a series of transactions in order so later those markers could be decoded to represent something else. Some services allow comments to be layered on top of transactions but that doesn't exist in the blockchain.

2) Money is sent and is rendered unspendable[2] afterwards, so I assume the idea is to send the smallest amount possible (although it seems the service takes a fee).

[1] https://en.bitcoin.it/wiki/Block#Block_structure [2] http://www.proofofexistence.com/about

[+] jcoder|12 years ago|reply
> 3)...

"Your document will not be uploaded. The cryptographic digest is calculated client-side."

[+] wyager|12 years ago|reply
You can put "comments" (raw text) in the transactions. I have done so. Try piping the blockchain database into the unix util `strings` and you will see some. It is a non-standard transaction, and I don't know if they're still allowed.
[+] maraoz|12 years ago|reply
Hi. Thanks for your questions. I'm the developer behind this. 1 and 2 have been correctly addressed by others. Regarding 3, the documents are NOT uploaded! All hashes are performed client-side via JavaScript. I should make that clearer on the site
[+] lucisferre|12 years ago|reply
Can anyone eli5 exactly what this accomplishes. What sort of scenario would this work for. I'm assuming some sort of legal purposes.
[+] shabble|12 years ago|reply
It's a way to use the bitcoin blockchain as a non-centralised way to record the fact that you were in possession of a particular file at a particular time, without exposing what that file is, or who you are.

The problem has been around for a long time, especially when dealing with semi-intangibles like Priority for scientific discoveries, or proof of first invention for patents[1]

One solution is to present proof to a trusted but private notary, who can copy or stamp or otherwise indicate that he has seen your documents and so they must have existed at least since the date indicated.

But counterfeiting, forgery, untrustworthy notaries, etc, all make this a less than ideal solution. So we add computers & crypto.

The document in question is condensed down to a single cryptographic hash, which (should[2]) to all intents and purposes be unique for a given document, despite being only a few tens of characters long, regardless of the size of the original input.

This hash then serves as proof[3] that you have the source document, without anyone being able to turn it back into the original document. This is a very one-way process.

Then, you need to find someone to vouch for your hash and indicate when they first saw it. You can do this with lawyers/notaries again as before[4], which partly solves the forgery problem, but not the trust one.

The solution proposed here is to store that hash in the bitcoin block-chain, which is a distributed log of all transactions on the bitcoin network, which has 3 nice properties:

1. It's append-only. Once your hash is encoded in there, it's staying there as long as bitcoin exists[5].

2. It's peer-to-peer/distributed. There's no single controlling organisation you need to trust for answers.

3. It's updated regularly enough that timestamps can be relatively fine-grained.

So you stuff it in there using this tool or whatever, and then X years hence when you need to prove you'd actually created that file in 2013, you should be able to prove that to most people's satisfaction.

This is a loose take on the matter and glosses over whole swathes of other complexities involved, but is probably close enough for [non]government work :)

[1] That is, who discovered/did something first. You may want to be able to claim you did in future, but without making it public at the time, because you might tip your rivals off to the idea before you've fully developed it. See: https://en.wikipedia.org/wiki/Scientific_priority

[2] Breaking (or "colliding") hashes is a whole subfield of cryptography research, and some pretty impressive things have been done there. It's why you probably shouldn't use MD5 for anything nowadays, for example. But again, we'll handwave "Done Properly = unique identifier".

[3] Well, in the same way that a password proves that you're the/a person who knows that password - if you did it right and never told anyone, it should be exclusively you. But if it leaks somehow, others could represent the hash as belonging to something they own. But if they only have the hash and not the original source document, there are relatively easy tests that could distinguish them. That's not very important here though.

[4] https://en.wikipedia.org/wiki/Trusted_timestamping

[5] well, mostly. But it's really hard, and the same capabilities let you defraud the rest of the bitcoin network with double-spending and whatnot, so unless your timestamp priority is super-important, you're probably ok.

[+] fjhqjv|12 years ago|reply

    I wrote a haiku
    to run through a hash function
    and send to strangers.
Every time this document is run through a particular function, it returns:

> d15396b27a2b176e6315c9fbbec09e2c2e042e595755902e5ff5eccec1ca634b

If I changed a single character of the document, the function would return an entirely different string.

This means it's very, very difficult to come up with another document that returns the same string when run through this same function.

If I sent my string to a bunch of strangers, they wouldn't know what my haiku is. To find it out, they would have to run through every possible document ever written (and that ever could be written) to hope to return the string.

But if someone decided to say they wrote my haiku, I could prove I wrote it first by showing that the document returns the unique string that I sent off to strangers.

What this service provides is a way of making it easy for strangers to store and date these strings for me, because they're doing it anyway when they're using Bitcoins.

[+] gnerd|12 years ago|reply
It's like taking a fingerprint of a file and then storing it in a public and distributed database (so it is out of any single parties control). Basically you can prove something existed at a certain time (since if I take a fingerprint of that thing in the future, it will match the record in the distributed database). If the thing changes, so does the fingerprint.

It could be used as a form of "poor mans copyright", where people would send a book manuscript, or whatever, to themselves through registered post and keep the envelope intact so they could use it, if need be, in a court. There could be other uses, you could verify that picture was taken when you said it was etc.

[+] Atroxide|12 years ago|reply
Basically to prove that something existed before a specific date. For instance, grab a random piece of paper on your desk with writings and then try and prove to me that the contents of that paper existed before last year, you can't really do it (easily). Before this, the only (easy) way to achieve this would be to send this document to a third party to store into a database that it did infact exist when sent to the database, but how can you prove that database wasn't manipulated? Another common way to prove something existed before a certain time would be to make a copy and send the copy through the mail to yourself. One you have received this copy from the mail, leave it unopened and now you have proof (through the mail service's date on the stamp) but this isn't too easy, some what of a hassle, and I think you could debate that you could fake it. (Faking the stamp, finding a way to get an opened document through the mail and than replacing the content later, etc.)

What this does is it stores a document's signature into the actual "history" of bitcoins which is public. ANYONE and EVERYONE can access this history of all transactions and by them storing the actual signature of the document into this public "log" you are now able to say that this document DID exist before the specific bitcoin transaction. This removes the hassle of all current methods of proving for existence and now no longer rely on a single third party (which could manipulate it themselves).

[+] chopin|12 years ago|reply
Something like this:

Your provider stores when you had which IP address. This is used for instance in file sharing processes. At least in Germany it has turned out that this information is unreliable. So you want to log your IP addresses and you want to have a proof of the logs integrity. You could use this service for the purpose.

However, I don't like that I need to upload something. I'd prefer generating and sending the hash and get it signed.

[+] twakefield|12 years ago|reply
I wonder if these concepts could be used to change the way land records are maintained and eliminate the need for title insurance [1] in the U.S. I am no expert but the current system doesn't seemed to have changed much in the past century or so. This results in a lucrative business (title insurance) that effectively insures against book keeping mistakes.

[1] http://en.wikipedia.org/wiki/Title_insurance

[+] dminor|12 years ago|reply
If some claim to title is omitted from the public record, how exactly would this guard against it?
[+] spiritplumber|12 years ago|reply
Two thoughts.

1) Will this have legal weight? I know that the whole "prove paternity of an invention by sending a certified letter containing the design through the mail, and not opening it until you need it" thing doesn't very much work, if it goes to court you tend to be told "OK, what you say is true in the physical universe, but you did not go through our blessed channels, so nyah nyah nyah".

2) Anything that makes bitcoins more legitimate / part of the world's infrastructure decreases the chance of bitcoin going away as a system. I think the idea for the bitcoin community is to make the system as a whole "too big to fail" before governments decide that they want to get rid of it.

[+] nwh|12 years ago|reply
> Will this have legal weight?

I doubt it. If I have to fax something for it to be a legal document, such an antiquated system will ignore any advances made around it.

[+] rlpb|12 years ago|reply
"Your document will not be uploaded. The cryptographic digest is calculated client-side."

That's great, but I have to trust you there. For a document that really matters, I don't think I would.

How about a box that allows me to specify my own SHA256 instead?

[+] nsomaru|12 years ago|reply
There is a developer API that allows you to do this:

    http://www.proofofexistence.com/developers
[+] Nimi|12 years ago|reply
Maybe calculate the SHA256 on your own box, then upload a document containing only the SHA256?
[+] flashmob|12 years ago|reply
How about miner's fee, is that added to the transaction?

In the About, they say that they make 2 undependable dust transactions.

Would there be any incentive for miners to confirm these transactions and store them in the blockchain? If there's no incentive to confirm the transactions, then the miners might find a way to filter these out of the blockchain.

See also dust transactions:

http://bitcoin.stackexchange.com/questions/10986/what-is-mea...

http://bitcoinfees.com/

[+] richardlblair|12 years ago|reply
So, if I could automate this, could I use this to prove in court that logs were created, and not tampered with?

Just trying to think of practical uses of this cool project, and it's the first thing that came to mind.

[+] delinka|12 years ago|reply
Yes. Or that a contract was not created before a certain date. Or, as another poster suggested, that a photo of a damaged rental car was taken before you took possession of the car.
[+] EGreg|12 years ago|reply
This would help to certify that a contract was signed at a particular time by both sides, and then included in the blockchain.

It would also help certify that a particular person created a document, once again because it was signed by their personal key and included in the blockchain.

It basically functions as a certain timestamp.

[+] Crito|12 years ago|reply
It would be nice if you included some UI for just pasting in a bunch of hashes myself.