Bitcoin Forum
June 20, 2024, 05:28:17 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: timestamping: the basics  (Read 570 times)
bitterbug (OP)
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
March 15, 2016, 10:35:40 AM
 #1

Hi,

I thought I'd try timestamping a document in the Bitcoin blockchain.

I generated a hash locally on my pc, for the document I want to timestamp, and I sent a tiny amount of Bitcoin to one of my own addresses. I pasted the hash of the document into the transaction description field as I was creating the payment. I sent the payment and eventually my wallet showed it was paid.

I can see the transaction in the blockchain(blockchain.info) so I know it was created successfully, but I don't see the hash I put into the description. I don't even see a description. The only place I can see the description, which includes my hash, is in my wallet... but that, of course, is no good to me. I need to see it in the public ledger.

Perhaps I just assumed that 'transaction description' is where it should be pasted. So now I'm thinking there must be another way to embed my hash into the transaction because there is no sign of a transaction description in the blockchain transaction from this attempted timestamping exercise.

Does anyone have any idea about where/how to embed the hash so I can confirm it is there?
calkob
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
March 15, 2016, 11:02:36 AM
 #2

This sounds really interesting, sorry i cant help, i think posting in the technical section might get you the response you are looking for there are some great minds in there.  Wink
bitterbug (OP)
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
March 15, 2016, 11:05:47 AM
 #3

Thanks  Wink

Will repost to the beginners section.

Mr Moderator, should I come back and delete this post?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4669



View Profile
March 15, 2016, 11:11:49 AM
 #4

As you've discovered, Transaction Description is just a description to yourself ro remind you what the transaction was for.

The bitcoin protocol doesn't have any space reserved specifically for storing any additional information with the transaction in the blockchain.  In the actual blockchain a transaction is ONLY:
  • 4 bytes of version number
  • 1 to 9 bytes indicating the number of inputs
  • A list of the inputs that supply value to the transaction
  • 1 to 9 bytes indicating the number of outputs
  • A list of the outputs that encumber value with requirements that must be met in order to use that value in future inputs
  • A 4 byte lock-time

When people want to store non-transaction data in the blockchain, what they typically do is store it in one (or more) of the transaction outputs.

Perhaps one of the best ways to do this is to create a transaction using the OP_RETURN script code. Most wallets are designed for sending and receiving bitcoins, so they don't have a process for this built in to them.  As such, you would have to either create the transaction by hand or write your own software to do so.

There are a few people that have already created programs to do this and made the service available via websites that they've created.  Typically these websites will accept some data and some bitcoins and will then structure and broadcast the transaction for you.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4669



View Profile
March 15, 2016, 11:12:54 AM
 #5

Thanks  Wink

Will repost to the beginners section.

Mr Moderator, should I come back and delete this post?

No need to create a new post and delete this one.  You can just move this post to the correct sub-forum.

At the very bottom of the thread on the left hand side you should see a link that says "move topic".
bitterbug (OP)
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
March 15, 2016, 11:24:23 AM
 #6

Thanks very much for that useful info'  Wink
danda
Full Member
***
Offline Offline

Activity: 202
Merit: 157


View Profile WWW
March 15, 2016, 08:59:34 PM
 #7

If you just want to timestamp a document easily, see https://www.proofofexistence.com.

If you want to do it 100% yourself, look into OP_RETURN.

Maybe there is an open source tool for this by now?    anyone got a link to such a thing?

mybitprices.info - wallet auditing   |  hd-wallet-derive - derive keys locally |  hd-wallet-addrs - find used addrs
lightning-nodes - list of LN nodes  |  coinparams - params for 300+ alts  |  jsonrpc-cli - cli jsonrpc client
subaddress-derive-xmr - monero offline wallet tool
xqus
Full Member
***
Offline Offline

Activity: 172
Merit: 100



View Profile
March 16, 2016, 11:08:43 AM
 #8

There is a tutorial here:

https://bitcore.io/guides/i-made-this

PGP fingerprint: B17233A1 || Bitrated user: xqus ≡ Free trust agent || LocalBitcoins ≡ Buy bitcoins locally
Wallet and Exchange security ≡ A security overview of wallets and exchanges. (forum thread)
Pages: [1]
  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!