Bitcoin Forum
May 05, 2024, 06:06:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Signing file and proof of existence | OP_RETURN 80 +17 bytes  (Read 1051 times)
HostFat (OP)
Staff
Legendary
*
Offline Offline

Activity: 4214
Merit: 1203


I support freedom of choice


View Profile WWW
March 11, 2015, 01:28:18 PM
 #1

I know that many will not like this Grin

I saw that if I sign a file with a private key, that the hex will take 65 bytes (that are less than 80 bytes, so it's ok)
By spreading signs on the Blockchain, than a service will be able to find how many data/files are signed by someone, by knowing his own Bitcoin address.
But it will not be able to know which files are signed by him.

If instead someone puts the hash (sha256 is 32 bytes) of his files on the Blockchain, then everyone (or a service) will be able to see that someone else has already claimed these files, but it will not be possible to know who is the owner.

Putting both sign + file_hash (65 + 32 = 97) in the OP_RETURN will give the possibility to a service, or even a dedicated full client, connected with a full node, to know everything.
It will know if a file is already claimed and who claimed it.

Just by adding these 17 bytes that we will get this great function Smiley


Anyway, do you know any cheaper way (with less bytes) to get the same result?
Is it possible to achieve the same with only 80 bytes?

I know that the easier way is just by making two chained transaction, but it would be cool to still be able to do with just one.

NON DO ASSISTENZA PRIVATA - http://hostfatmind.com
1714889172
Hero Member
*
Offline Offline

Posts: 1714889172

View Profile Personal Message (Offline)

Ignore
1714889172
Reply with quote  #2

1714889172
Report to moderator
1714889172
Hero Member
*
Offline Offline

Posts: 1714889172

View Profile Personal Message (Offline)

Ignore
1714889172
Reply with quote  #2

1714889172
Report to moderator
1714889172
Hero Member
*
Offline Offline

Posts: 1714889172

View Profile Personal Message (Offline)

Ignore
1714889172
Reply with quote  #2

1714889172
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714889172
Hero Member
*
Offline Offline

Posts: 1714889172

View Profile Personal Message (Offline)

Ignore
1714889172
Reply with quote  #2

1714889172
Report to moderator
1714889172
Hero Member
*
Offline Offline

Posts: 1714889172

View Profile Personal Message (Offline)

Ignore
1714889172
Reply with quote  #2

1714889172
Report to moderator
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1093


View Profile
March 11, 2015, 03:40:30 PM
 #2

I know that many will not like this Grin

I saw that if I sign a file with a private key, that the hex will take 65 bytes (that are less than 80 bytes, so it's ok)
By spreading signs on the Blockchain, than a service will be able to find how many data/files are signed by someone, by knowing his own Bitcoin address.
But it will not be able to know which files are signed by him.

If instead someone puts the hash (sha256 is 32 bytes) of his files on the Blockchain, then everyone (or a service) will be able to see that someone else has already claimed these files, but it will not be possible to know who is the owner.

Putting both sign + file_hash (65 + 32 = 97) in the OP_RETURN will give the possibility to a service, or even a dedicated full client, connected with a full node, to know everything.
It will know if a file is already claimed and who claimed it.

Just by adding these 17 bytes that we will get this great function Smiley


Anyway, do you know any cheaper way (with less bytes) to get the same result?
Is it possible to achieve the same with only 80 bytes?

I know that the easier way is just by making two chained transaction, but it would be cool to still be able to do with just one.

Just take the first 15 bytes of the hash. To avoid collision, 120bits is already overkill

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
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!