Bitcoin Forum
June 14, 2024, 08:59:15 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What stops people storing large objects on the blockchain?  (Read 1124 times)
rscholey (OP)
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
August 04, 2015, 04:49:02 PM
 #1

I watched a video and it mentioned "anything can be stored on the blockchain".  My question is if anything can be stored there then what will stop the blockchain size getting so big that nobody could store a copy of it?
hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 259

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
August 04, 2015, 04:50:45 PM
 #2

Transaction fees. For each piece of data, a transaction needs to be constructed, propagated, and accepted by a miner. The larger a transaction is, the higher the fee needed for acceptance is.

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
rscholey (OP)
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
August 04, 2015, 05:41:26 PM
 #3

Thanks for explaining about the transaction fees.  If you don't mind can you give / estimate what a transaction fee would be for an object of any size that you think would be a good example.  I would just like to get an idea of how much these fees would add up to.  Thanks
achow101
Staff
Legendary
*
Offline Offline

Activity: 3430
Merit: 6700


Just writing some code


View Profile WWW
August 04, 2015, 05:46:21 PM
 #4

Thanks for explaining about the transaction fees.  If you don't mind can you give / estimate what a transaction fee would be for an object of any size that you think would be a good example.  I would just like to get an idea of how much these fees would add up to.  Thanks
The typical fee is 1000 satoshi per kilobyte. Sometimes it is 10000 satoshi per kb to guarantee a faster confirmation. Also, another thing that prevents data from being stored is the block size limit. The current limit of 1 Mb prevents too much spam from bloating the blockchain although there are concerns right now about not having enough space for large amounts of transactions.

Snorek
Legendary
*
Offline Offline

Activity: 1400
Merit: 1001



View Profile
August 04, 2015, 05:53:43 PM
 #5

I believe that formula for calculating TX fee goes (I am not 100% sure):

normal_fee := 0.0005                            
size := X * 148 + Y * 34 + 10 +- X
fee := normal_fee / (1 - size / 500kB)

Is this is correct or I messed something?
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
August 05, 2015, 03:52:24 PM
 #6

I believe that formula for calculating TX fee goes (I am not 100% sure):

normal_fee := 0.0005                            
size := X * 148 + Y * 34 + 10 +- X
fee := normal_fee / (1 - size / 500kB)

Is this is correct or I messed something?

This is for X inputs (with compressed keys) and Y outputs on a regular transaction that is spending coins, but OP wants to know about storing arbitrary data on the blockchain. If we take cryptograffiti[1] as a reference 2,000 bytes cost 0.00144600 BTC according to their preview. A ASCII picture like this costs ~0.03[2,3]. The limit on the costs is for one the fees needed for a TX and the max blocksize, but also that you need to burn bitcoin to an output that you will not be able to spend at a later date as its representing your data. There might be someday someone with the matching private key but the chances for that are as good as impossible.

Code:

                                                                            ``````                                                                                    
                                                               `  `     ,.`   `.   ``                                                                                
                                                               `     `   `.,,`,,'+';  ``,```  `                                                                      
                                                    `            ,'++''';++''''':'''';+;,:,,..     `     `.                                                          
                                                         `   .+;+'++++:;''';::;'''+;:;''',''. `.`  `.`       `                                                        
                                                       . ,,:+'';:;;:;+';;';;;;'::;;;+:;;:++;.'':,`,:.``.,`                                                            
                                     `              ..`;.+'';:'++''';;;;'''';;:;;;:,;;;',;'';+;;;';::,.``.`.  `` `      `                                            
                                                 .  .:.++';+''#++++''+'+;;+''+';;;;;:::;;;;:;';';';;;;'+::,::````` `                                                  
                                       `    `  ,`,.++''''++++#++''++++'++''''';''';;:::;:::;;;,;;;:'';;;';,::;;.`  .`     `                                          
                                            ,`,:.+;;+'++'+'+''++'''';;;;;'';+:;:;;'';;;;;::::,,:;:;;:;'';;,;;;,;;..,,:..``                                            
                                           ,;:''+##'++;'+'';';;''';';;;;;;;'::::;:;:;;''':;'::,;,,;,:::;;:,;,::;;;:'; ``,` .` ` `  `                                  
                                 `      ;`.+';;'''''+';''''';:;;;;;;;;;;;;;:;;:;:::,:::;:;;;;;;:::::;::;:,,;:;::,,:;,':.```` ` ``                                    
                                    ` .,.,,;;''''++''';;';:;;;:;:;;;;;;;;;;::;;;:::,::::::::;:::::::;:';;:::::,,,::::.:::`` . `                                      
                                  `+ ;`;,;+''''++'';';;'::;;;;:;;;;;;';;:;'';;;;:::::::::::;::::;:,:::;,:,::,::::,,:::.:,,`.`` ` `      ``                            
                                `  ,#,,''.';''';'';';:;;;;;;:;:;;';;''''';;;;;;;;;;;;:::::;::;:,:;;:::,:::::::::::;,:,,,,:,.```` `  `     ``                          
                             ` ` :.,.;'+';'''';;;;::;':';::;;;;;''''''''';;;;;;;;;;'';;;;::;;;;;::::::::::::::;:;,::;:;:,,,,..`` ``` `                                
                           `   ,` .:,'.#:+;+'+'':::;:;;;;;;'''';'''''''';;;''';;''';'';;;;;;;;;;;::;:::::::;;:;::;;::;:::;,,.:.`.,. .` ``                            
                              ` , ;`+:+;;:;''';':;;::;'';'''''';''''''''+''''''+'';;''';';:;;;;;;:::;::;:::::;;;:;;;;;:,::;:.:;.`..:..   `                            
                              ` `'..;+;'';';';;;;:','::;''''''''+'+'++''''+++'+'''''';;';;;;;;;;:;;;:::;:::;;;;;;;:;,:::,,,,,,:.:.`.:.,.  `                          
                              ` ,:`';::+;':;:',;:;::::+'''''+'''''''''''+++'+'+''';;';;';;;;;:;;;;::::::::::::::+;:';.;,:;.,,;:'.:.,.:`,;``   ``                      
                               .'`:;;;:',';;;:;:;:,:';'''''''''''''''++'++++++++'';;;;;;;;;;;;;;::::::::;::::;;::;;:':::::::::',':,`,,,.:.`` `  `                    
                               :,;+;:':;+';;;:::::'''''+'+'+'+'+'''+''++++#+#+++'++;;;;;;;;;;;;;:::::::::::;;::::,;,:':,;::;:.,,,:;:,,':`;  `     `                  
                              `.,:''';+,';;:;;;:;'''''''''''''''''''+++++++#+++''';'':;;;;';:;;::;:::::;:::::;;;:::;.;+:,;;:+`:::,:;;::,,:;..``   `          ``      
                              `:`.:;';'+';:';:,''''''''''+''''''+''+'+++'++++''''';';;'';;;;;:;::::::::::::::::;::;';::;;.;;::;,;:,,;;::':;.:. `  `      .            
                               .:.+++';';;';::'''''''''''''''''''''''''++++'';;;;;';;';;;:;;;::::::::::::::::::;::,:;,,;;:,,:;.',:.,::',.::::,:.`   ``                
                             .`, :;+;;;';;:::'';''''''''''''''''''''''+'''''+'';;;;;';;;;;;:::::::::::::::::::;;;:,:':`;:;,:.;:;',;`:,;;::::,;':;: .                  
                             .  `,;'';;;;':;'''''''''''''''''''''''''''''';;'''';;;;;;;;;;:::::,,,:::::::::;:::;:::,':,:;,`.,::,,,:..:,:':;::::':';;``                
                        ` `  .. .,';+;';';''''''''''''''''''''''';'''''''';''';';;;;;;;;::::::,,,:::::::::::::::::::;;;,',`.,:,:':,.;,.;:;;:;;::;';:':,``            
                             .. ,.::+'+'+:;''''''''''''''''''''''''''''''';'';;';;';;:;;::::::,:,:::::::::::::,::::;;';:,,....::;,,:.:::,;;;;:';;;;'::'.,`            
                        `    ..`,.::+.++:''''''''''''''''''''''''''''''';';;';;;;';;;;:;:::::::::,::::::,,,,:::,::,;;'`'..,.:.,:;::.,,,::,:;::':;:':;:,:,.. `     `  
                             . `:`;:+'+';;;'+''''''''''''+'''''''''''''''';';;;;;;;;;;;;;::::,,::,:::,:::,,,,,,::,::::+,...:,,.,':':.::,:,',:::;;;;;:::,,:`,     `    
                             , ,.`:`';''';''''''''''''''''''''''''''''''';'';;;;;;;;:::::::::,,::::,:,::,,,,,,,,:,;,,;:.,,..,.`:;,;:,;::::,:,:,:::;;;::::,:.,  .      
                      `  `   .` . `.::';'''''''''''''''''''''''''''''''';'';'';;;;;;:;;;;:::,,,,::,,:,::,,,,,,:,:;,;;:,,,.,.:.,..;:::,;,:;:;:,:,:::;;::::,:.,`        
                        `    `    ...:;;'';'''''''''';'''''''''''''''''''';';''';;;;:::;:;:::::::,:,,,,,,,,,:.,;,;,`,',.`.,.,.,.,,:,:,;,,,:,,,,:::,;;;:,:,:,,..`      
                               ``. ,.::;;'''''''''''''''''''''''''''''''';'';;;;;;;;;::::::;::,,;::::,,,,,,,,:.:,;::,;:,.,,;..,.,.:,;.,:,,,::,,,,,::::,,;,:,.:.`      
                                   ::,:;;';''''''''''''''''''''''''''''''';';';;;;:;:;:;:;:::::::,:,,,,,.,,,,,,'.,;,:.',,`..,:,..,`::,.::,.,:,,,,,.,:;::,::,,,.      
                      `          ``.,;;;;''''''''''''''''''+''''''''''';';';;';;';;:;;;:;::;::,,::,,,,.,,,,,:,:;,:;`'`;',`..;:,, ,,,,,,,,:.,,:,,.,,,::;,:,,,,..`      
                 `           `     `,';'''''''''''''''''''''''+'''''''';;'';;;''';;;;;;;:;;:;:,:,,,,,,.,,.....;,;,,.,.,:,;.,.,,,.`:`...,.:..,,:,,,,.,:::::,,,..,      
                           `       `:';'';;'';'''';''''''''''''''''';';';';;';;''';';';;;;;:::,,,,..,,..,.,,,,,:.;,;,';.:::,.`,.......,,,,,,.,:.,.:.,,,:::,,,,.,`    
                               `   ,:;;';;''''';'''';''''''''''''+'';';''';;';''';;;''';';;:::,:,,,:,,.....,,:,;:.:;.''..:`,,,,:.,......,.,.,.,.,.,.,,,:,,::::..`.    
        `   `               `     .,:#;';;'''''''''''''''''+'''';';;''''';';;''''''''';';;;;:,,,,,,,,,,,..,,,:,.:.;, ;.;,,,.:......`.`...,..,,,,,,,,,,,:,:,,,,,,` `  
        `                 `  ``   ` ;;;;;';;'''''''''''''''';'''';;';;''';'';'+'';;;;;;;;;;;:::,,,,.,.,,.,...,.,...;,;::..,,,...,`..``,......,,,..,..,,::,,,,,,, ``  
  ` `                             #`:;''';;'';'''''''+''''+;;'';';';'''''''';''';;'';';;;;::,::,,,,,,.,....,.:,:.,:;;::..,`.,..,...,`.`.......,..,..,,,,,,,.,,,.,  `  
                     `      `     `,;;;;';'''';'''''+''''+;::';'';;;;''''''';:;'+'+'+;::::,,,,,,,,,,,.,,.....,,,:,:;'.+. ,.,..,.`...` ..,.``.``..,,.,,.,:,,,..,...    
                   ```     ` `   ` ';;;;;;''';'';''+'+'';';;:'+';;'++;'';;;;:;';;::,::;::::,,.,,,...,.,..,,,,.,:.::;..:......` . . `````..,,,,,,,,,`.,,.:.,,,....`    
            ` `            `  `` ``;''';;';'';'';;'+'';;;+;;;''';''';'+::;;;;':;'::.,.:,::,,:..,...,,.......,.,,,..,``,``.        `...,...`````...,..,,.,,.,.,..`    
        `          `   `` ` `  `:: ;''';;';';''''''';;;+;;;:'::+::;:,;'',.````.``.,.,.,,,.:`.,.,......,,,.``      `. ` ```.``.``..``...` `````````...,..,,..,...`    
             `  `  `      ````,;``::':''';;';''''';;;:'';;:,:;;:;':`@: `:';;:.,#     .,,:;,,;...                `.``.`..`,....```.`..`````.....````,...,,,,.....      
      ` `  ` ``` ```````` `  ...,,;'';;;;+::'';;;;;;':''';;.::' , `:;:,..`,,,,....,` `     `     `      `..`.``.`......,....,.`.,...`  `.....,....`..`.,.,.,..``      
   `   `   ` ``` `` ```````  .,`,;'';';;:;,,::;;:;;;::''';:,,  ;;;,,........;;:::,,,:      ;.  `,::,.`..`.``.``.,..`,..,,...,.....`.```.`..,......`.,.........`      
         `   ````` `` `  ```` .,:::'+:':';::::;;::;::;'+';'  :,::,::,...,;;;.`,.``.,,,     .,,..,,,,............,,...,:,..,,.........`...,..,......`...`.....`        
    `      ``  `````  ``````: `,:':;':;'+;:;:;:,,,::,;;+'# ,;,,...;;,..,`.,,, @  ``.,.    :,:,.,,:,,,,,,,............,,.....`..`.......,....,......`..`...... `      
 `` ```` ` `` ``````````` `` :,';'` `,` `:``` '...,..:';;  :::,...`',.``,,.;'....``::,, ` +;::,,.,,:,,,,,:,,,,..,,....,........`.,....,.,.,,..,....`.........`        
   ```` ```````````````````` :`  .::::,;,;..,:; ` `..,;,```,,,..,.` ;``,:.':::,,;;::,:;  `,,:;::,,:,,,.,,,,,.,,,,..,...,...,......,..,,......,.....`..```...``        
 ````````````` ````````````   .``,;;;;';`.`::::,:     `````.,..`...````,;:;';:;:::;;::, ``,:;;:,,:;:,,,,,,,..,,,,,..,.,,,.`.......,.`.,,,,,.,......`....``..`        
`````````````````````````` ` ```,`:,;:`.';;;::::,,     : ` ;...,...`..:;;,:;:;;::;::::, ``:::;;:,::,,,,,,...,,,,..,...`........,....   ........,..`..`..``..          
````````````````````````  . .`````..;,.:;``` , ` . ` ;;::. . ,,,.,,..`::::::;;'';::::,,```:,:;:,::::,,::..,,,,,,,..,,,.........,,...`   `........``..`.`.`.`          
```````````````````````  .``  ,  ```;., .:,'`..``.` `;';::  ; ...,..,;:;:;;;';';::;':;: `,;:::,.::,,,:,.,,......,....,.........,,,`...` ``..`...,.........`          
```` ````````````````` . .`.:;:::.,:,..``.''':;;;;; +';;::, `, ...,::::;.:''',,.,:;';''  ':::::,,,.,,,.,,,..................,..,,,......````........`..``.`          
``````````````````````   ,` `    `` .`` ;;;;':;,:;'.;'';;:,. ,. `.;::;;;;:'';:;'''+;;;+``:::,:,,,..,,...,,,.,.....,,........,...,,,`.,..````..`...`,`.`..``          
``````````````````````   ```  `   ``.  ;:;;;::::;:;''';;:,,.` :.`.:;::;;:';;';'';';;'# `,,;::,,,,,,......,.,......,..,...,,.,..,,,,......,.`...,,......```            
````````````````````````  .  `  ````. ':;:;;';';::'''';;;:,,,` :, .;;;;:;;;'''''+''+; .';';:,,,,,,,,,....,...,,..,.......,.....,,....,.,,,,.....,`....``.`            
````````````````````````` ,  `  ``` .,::;;'''';;;;'''';';;,,.,.  ,..;;;''+''''''':@ `',,::,,,,,,,,:,,,,...,,..,.,..,.....,..,.,.,,,....,,..`...,.`,````.`  `          
`````````````````````````  ,     ``;`;;;;;;';:,,,'';;'';';:,,,,,.  ,:,:''';''',.``....;;;;;;;;::::,,.,.........,,,....,.,..,....,,.....`...`.,,.`..``````            
`````````````````````````` .     ` ',;;;;;:;';;';;''''+';::,,,.,...'`  .   ```.:+'';;;;;;;;;;::,,:,,.,,.,.,,..,.....,..,..,...,...,.........,,..`..``.`  `            
``````````````````````````` :   ```;;:;;;;''''';''''''#';;:,,.,..`.`;,;:;;';''';'';';;;;:;::::::,:,,.,,....,.,.,..,..,.,.,,,....,.,....,,,,,..``..`````              
```````````````````````````` :   ```:;;'':''';;';';';';;:;::::,,.,.,.`:;';'''''+';';;;;;;;::::,:,,,,,,.....,,...,...,,....,,......,,,,,,,,...`..,.`````              
`````````````````````````````::  `  ,'';;:';;;';''''';';;::,::;::,,:...`.';;;'''''+;;;;:;::::,,,,,,,,,,,...,.,,,...,....,,,,.,....................   ``              
`````````````````````````````` .;   ',;;';'#:';'''''';;;::.,.:,,,,,,,,,.``.;;;;;';'';;;;::::::,,,:,,,.,.,.,,,,,,.,.,..,,,...,,...,.........,......   `                
```````````````````````````````` .;:,:.`  `,`+;;++'+';;:,,.,,.,:.,.,,..,.`` .;;;;'''';;;:;:::,,,,,,.,,,,.,....,.,,.,.,,.,,.,,....,.....,,,.,.,,..    `                
``````````````````````````````````.;++';;'''':;;;'+;;::,...,,,.,.,.,.......```:;;';;';;;:;::,,,,,,.,,.,.,.,.....,,...,.,..........,.....,....,,.`  `                  
```````````````````````````````````,;;;;;;;;;+:;;:;;;::..........,...`.``....:,;;;;;;;;;::::::,,,,,,..,,.,,,,,,,..,,,,...,........,...,,,,,.,,,.   `                  
````````````````````````````````````:;;;';''+'::;;:::,,...            `.,,;:;:':,:';;';;::,,,,,,,,,,,.,:.,....,..,,,,..,,..,........,.,,.,,....  ````                
``````````````````````````````````` :;;;'''+';;:,,,,,,.`.````` ````..,:;;;;;;;:;::;:;'';:,::,,,,,...,,:,:,,......,..,.,.,,.............,,,,,,.```  ``                
``````````````````````````````````` ;;;;';;'+;:::`,..``....```.`.,;;;;:;;;;;;;:;:,;:::,;:::::,,,`.,:,:,;,,,,....,,.,..,.,.,.......`...,,,,,..````    `                
``````````````````````````````````` +;;;';;;;;,,,:;;:;;;;;'+'';;;;;:;::;;:;:::::::,;;:::.;;:::,,,::,;::::,,,,...,....,.....,......``...,,....`````` `                
````````````````````````````````````+;;;';;;::,,`;;;;':;';;;'''';';;';;';;;;::;::,::::::,`+:,:,,:::;:,:::,,,.,.,,,,.........,.....` .`....```````                    
````````````````````````````````````::;;;;;:::..;;;;;;;';'';'+'':';;;:';;::;:,::,:::,,,:,,:'';::;:::,:;,::,,.....,...,..........``` ````````.```.                    
`````````````````````````````.```````::;;;;::,:,;;;;:;;;;;';'''''+:;;',:;::,,,,,::,,.:,:,;.';;;:;::,,,::::,:.....................`.````````````..``                  
```````````````````````````````````` +;;;;;:,.`,;;;;;;''';'''''';;:;;:,;:::,,,,,.,..,.,,,:.'';:;:::,.,::,::,................`...`.``````````.`...```                  
`````````````````````````````````````.:;;;:,,.`::;;;;:;;;'''''''';::::,::,,,,.,,:.,.,:,,.':'';;:::,,,:::::,,...............`......`.``````` `...````                  
``````````````````````````````````````':;:::.`::;;:;:;;;;'';;';;;::,:,.,.`...````  ` ,,::;'+;;;:;,,,:,,:,:,,............`.......``..````````...`.` `                  
``````````````````````````````````````;::;::...;;::;:;;;:;;;;';,..,````,:,.,:::,;,,,,,`.;:'''':::,,,,.,:,,,,.........`.`..`.`...`..````````...`.```                  
```````````````````````````````````````;;;::,.`;:;:::::,:.,,:,.`.:;::;;;:::::,,,:,,,,:.:':'';':::.,,,.,,:,,......`.`....`.`......`.........`..``.,,                  
`````````````````````````````````````` ';;;;,:::;:::,`,,:::;;;;;;;';;;:;::::,,.,,..:::;;;,';;:;:.,,,,,,:,,,...`.`.````....`.....`.`.........`` ::,,                  
```````````````````````````````````````.;;;;:':.';:,.;;;;;;''++';;';;:;::,,,,,,,..::;;::;,'';;:,.,,..,,,,,....`.``...........`.``..`.....`.` :::,,.`                  
``````````````````````````````````````` ';''';::.;:;;;;';''''';;;';::::;,,,.,::,,;;,;::;:,'';::,.,,...,,,,..``.`.``.```.....`...`.......`. ::::,,,,.                  
````````````````````````````````````````,;'';';;::;;;;;;;;;';;;'::;;,;:::;:,,,.:;;:;;;;:,.';;;:,,,,...:,,,..````````.``....`............`,:::::,,,.,                  
```````````````````````````````````````` ';;''';::';;;;;;;';;';';';;;:;:::::,:::;;;:';:;,.';:::,,,..`.,,,,````.`.```...`..............`.;::::,,,:,.                  
``````````````````````````````````````````;;';;';:.;;;;;;;';';:;;;:+:;,;:;:::::;;;;;;;;:,.;;;:,,.:...,,,,...```````...``.```.``...... ;;;::::::,:                    
``````````````````````````````````````````';;';';:`:;;:;;:;;;';';;';;;;;;;:;:;::;;;;:,',,,,;;,,,.,...,,,,.`````````.````...`...`.`. ;;:::;::::::                `    
`````````````````````````````````````````` ;;;;;':.;;;;;;;;;;:;;;;;;;:;;':;;;::;;;:;:;::,.,::::..,.,,::....``...``...`...``........;:::::;::::                        
```````````````````````````````````````````.:;;';;:';;;;;;;;;':'''';;;';:;;;';;;;:;,,::,,..::,,.,...,,,.`.```.``.```.....`....`.`;::::;::;::;                     `  
````````````````````````````````````````````;:;;;;;:;;;;;;';;'';'';;;;:;;;;;;;::::;,:,,,...,:,.`:..:,,.`````````.....`...``...`.;:::::;::::.                          
`````````````````````````````````````````````';';;;:;:;;;;;;'''';':;';;;:;;;;:';::,,,,,.....,,..,.,,,,````.``..````..`....`..`,:::::;;;;;;                            
````````````````````````````````````````````` +;;;;;;;;':;;;;'''#;;:;';;;;;;::;::::,:,.......`.,,,.,.,```.```.`.`............;:::;;;;;;:;                            
`````````````````````````````````````````````` ';;;;;;;;;;;'''+';'';;;;;;;;:::::,::,.......``..:,,,.....`````...`...`.`....,;:::;;;;;::,                              
````````````````````````````````````````````````;;;;;;;;;:;';';;+';';;;;::;:::,,,,:......``.`..,.,..,.```````........`..`.:::::;;;;;:;                                
````````````````````````````````````````````````:;:;;;;;;:;;'+;;+':;'::::;,::,:.,,..`.`...``..``.,..``.`...`...`.`...`...:::;;;;;;;:;                               ```
`````````````````````````````````````````````````::::;;;;;;;+''';':',;;::;,,,,,...``.....`.`..``.`...`..`..`.``......`,::::;;;;;;;:;                               ```
``````````````````````````````````````````````````;;:;;';;;;:;;';;;;;::;;,,,`.,.........`.```...`.`.``.`..``.,.......:::::;:::;:::,                               `` ``
`````````````````````````````````.```````````````` :;:;;;;:;;::;',::::,,,::.``........`....`.`..`...,..`.,,........,;::::;::;::::,    ` ``                       ``````
````````````````````````````````````````````````````,;;;:;;;::;::::::,.,,,,...,..,.......................`.`......::::;:::::::::`                 ` `````       ```````
``````````````````````````````````````````````````````':;;:;;::,::,,,,,........`.`.``....```..`.``........,.,..,::::;:::;::::::                               `````````
``````````````````````````````````````````````````````.;;:;:,,:,,,,,,,.......,.`.........```........`.,...,..,:::::;:;;;:::::;   ` `                         ``````````
``````````````````````````````````````````````````````` `,,,,,.```,:,,.,,.,.................`....,..,...,,.,,;:::::;:;::;:;:;                              ````````````
`````````````````````````````````````````````````````````` ::,,,:::,,,,,,:.,,:,.,,,.,:,,.,,.....`.,.,,:,.,,;::::;:;;;:;;;;;' `                `       ``  `````````````
````````````````````````````````````````````````````````.````  ,::::;:::;::,,,,,,,.,,,,:,,,....,,,,,:,,,:;::::::;;;;;;;;;;'  `                 `     ``  ` ````````````
````````````````````````````````````````````````````````````````` ,;::::,:,,,.,,,,,.,::,,,,,,,,,:,:,,:::;::;;;;;;:;;'''++@ `                         `` `` ````````````
``````````````````````````````````````````````````````````````````` `;::::,,,.:,,:,,,;:;:,:,,,,,;.,:::;;;;;;:'+++++'+'++@                      ``    `  ````` `````````
``````````````````````````````````````````````````````````````````````::,:,,,,,,,,,,,:;:::::::;`,:::;;;:;##++++++++++++@ `              ``  `    `````  `````````` ````
`````````````````````````````````````````````````````````````````````````,:::,,,.,,,,;;;:::;: ::;::;+##++++++++++++#+''  ``             `       ``` `   ```````````````
``````````````````````````````````````````````````````````````````````` #+#+::,,,..::;;;;:; ,,;+##+++++++++++++#+'++''       `  `         ```  ``````   ``````` ```````
if you like it, leave a tip: 1P675gRxNwhFXgfuDu5yXwGDgwLDbXNJqz    BM-2cUDAqyqcnksx7YDtgu2y72xDxcRjPeYfo
[1] http://cryptograffiti.info/
[2] http://cryptograffiti.info/?txnr=3334
[3] https://www.blocktrail.com/BTC/tx/0fc0c50e410b62ee3a316135711116db6b4e728841c976f29ab85e2a41e0dcc3

Im not really here, its just your imagination.
Panzzer
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
August 05, 2015, 03:57:34 PM
 #7

I believe that formula for calculating TX fee goes (I am not 100% sure):

normal_fee := 0.0005                            
size := X * 148 + Y * 34 + 10 +- X
fee := normal_fee / (1 - size / 500kB)

Is this is correct or I messed something?

This is for X inputs (with compressed keys) and Y outputs on a regular transaction that is spending coins, but OP wants to know about storing arbitrary data on the blockchain. If we take cryptograffiti[1] as a reference 2,000 bytes cost 0.00144600 BTC according to their preview. A ASCII picture like this costs ~0.03[2,3]. The limit on the costs is for one the fees needed for a TX and the max blocksize, but also that you need to burn bitcoin to an output that you will not be able to spend at a later date as its representing your data. There might be someday someone with the matching private key but the chances for that are as good as impossible.

Code:

                                                                            ``````                                                                                    
                                                               `  `     ,.`   `.   ``                                                                                
                                                               `     `   `.,,`,,'+';  ``,```  `                                                                      
                                                    `            ,'++''';++''''':'''';+;,:,,..     `     `.                                                          
                                                         `   .+;+'++++:;''';::;'''+;:;''',''. `.`  `.`       `                                                        
                                                       . ,,:+'';:;;:;+';;';;;;'::;;;+:;;:++;.'':,`,:.``.,`                                                            
                                     `              ..`;.+'';:'++''';;;;'''';;:;;;:,;;;',;'';+;;;';::,.``.`.  `` `      `                                            
                                                 .  .:.++';+''#++++''+'+;;+''+';;;;;:::;;;;:;';';';;;;'+::,::````` `                                                  
                                       `    `  ,`,.++''''++++#++''++++'++''''';''';;:::;:::;;;,;;;:'';;;';,::;;.`  .`     `                                          
                                            ,`,:.+;;+'++'+'+''++'''';;;;;'';+:;:;;'';;;;;::::,,:;:;;:;'';;,;;;,;;..,,:..``                                            
                                           ,;:''+##'++;'+'';';;''';';;;;;;;'::::;:;:;;''':;'::,;,,;,:::;;:,;,::;;;:'; ``,` .` ` `  `                                  
                                 `      ;`.+';;'''''+';''''';:;;;;;;;;;;;;;:;;:;:::,:::;:;;;;;;:::::;::;:,,;:;::,,:;,':.```` ` ``                                    
                                    ` .,.,,;;''''++''';;';:;;;:;:;;;;;;;;;;::;;;:::,::::::::;:::::::;:';;:::::,,,::::.:::`` . `                                      
                                  `+ ;`;,;+''''++'';';;'::;;;;:;;;;;;';;:;'';;;;:::::::::::;::::;:,:::;,:,::,::::,,:::.:,,`.`` ` `      ``                            
                                `  ,#,,''.';''';'';';:;;;;;;:;:;;';;''''';;;;;;;;;;;;:::::;::;:,:;;:::,:::::::::::;,:,,,,:,.```` `  `     ``                          
                             ` ` :.,.;'+';'''';;;;::;':';::;;;;;''''''''';;;;;;;;;;'';;;;::;;;;;::::::::::::::;:;,::;:;:,,,,..`` ``` `                                
                           `   ,` .:,'.#:+;+'+'':::;:;;;;;;'''';'''''''';;;''';;''';'';;;;;;;;;;;::;:::::::;;:;::;;::;:::;,,.:.`.,. .` ``                            
                              ` , ;`+:+;;:;''';':;;::;'';'''''';''''''''+''''''+'';;''';';:;;;;;;:::;::;:::::;;;:;;;;;:,::;:.:;.`..:..   `                            
                              ` `'..;+;'';';';;;;:','::;''''''''+'+'++''''+++'+'''''';;';;;;;;;;:;;;:::;:::;;;;;;;:;,:::,,,,,,:.:.`.:.,.  `                          
                              ` ,:`';::+;':;:',;:;::::+'''''+'''''''''''+++'+'+''';;';;';;;;;:;;;;::::::::::::::+;:';.;,:;.,,;:'.:.,.:`,;``   ``                      
                               .'`:;;;:',';;;:;:;:,:';'''''''''''''''++'++++++++'';;;;;;;;;;;;;;::::::::;::::;;::;;:':::::::::',':,`,,,.:.`` `  `                    
                               :,;+;:':;+';;;:::::'''''+'+'+'+'+'''+''++++#+#+++'++;;;;;;;;;;;;;:::::::::::;;::::,;,:':,;::;:.,,,:;:,,':`;  `     `                  
                              `.,:''';+,';;:;;;:;'''''''''''''''''''+++++++#+++''';'':;;;;';:;;::;:::::;:::::;;;:::;.;+:,;;:+`:::,:;;::,,:;..``   `          ``      
                              `:`.:;';'+';:';:,''''''''''+''''''+''+'+++'++++''''';';;'';;;;;:;::::::::::::::::;::;';::;;.;;::;,;:,,;;::':;.:. `  `      .            
                               .:.+++';';;';::'''''''''''''''''''''''''++++'';;;;;';;';;;:;;;::::::::::::::::::;::,:;,,;;:,,:;.',:.,::',.::::,:.`   ``                
                             .`, :;+;;;';;:::'';''''''''''''''''''''''+'''''+'';;;;;';;;;;;:::::::::::::::::::;;;:,:':`;:;,:.;:;',;`:,;;::::,;':;: .                  
                             .  `,;'';;;;':;'''''''''''''''''''''''''''''';;'''';;;;;;;;;;:::::,,,:::::::::;:::;:::,':,:;,`.,::,,,:..:,:':;::::':';;``                
                        ` `  .. .,';+;';';''''''''''''''''''''''';'''''''';''';';;;;;;;;::::::,,,:::::::::::::::::::;;;,',`.,:,:':,.;,.;:;;:;;::;';:':,``            
                             .. ,.::+'+'+:;''''''''''''''''''''''''''''''';'';;';;';;:;;::::::,:,:::::::::::::,::::;;';:,,....::;,,:.:::,;;;;:';;;;'::'.,`            
                        `    ..`,.::+.++:''''''''''''''''''''''''''''''';';;';;;;';;;;:;:::::::::,::::::,,,,:::,::,;;'`'..,.:.,:;::.,,,::,:;::':;:':;:,:,.. `     `  
                             . `:`;:+'+';;;'+''''''''''''+'''''''''''''''';';;;;;;;;;;;;;::::,,::,:::,:::,,,,,,::,::::+,...:,,.,':':.::,:,',:::;;;;;:::,,:`,     `    
                             , ,.`:`';''';''''''''''''''''''''''''''''''';'';;;;;;;;:::::::::,,::::,:,::,,,,,,,,:,;,,;:.,,..,.`:;,;:,;::::,:,:,:::;;;::::,:.,  .      
                      `  `   .` . `.::';'''''''''''''''''''''''''''''''';'';'';;;;;;:;;;;:::,,,,::,,:,::,,,,,,:,:;,;;:,,,.,.:.,..;:::,;,:;:;:,:,:::;;::::,:.,`        
                        `    `    ...:;;'';'''''''''';'''''''''''''''''''';';''';;;;:::;:;:::::::,:,,,,,,,,,:.,;,;,`,',.`.,.,.,.,,:,:,;,,,:,,,,:::,;;;:,:,:,,..`      
                               ``. ,.::;;'''''''''''''''''''''''''''''''';'';;;;;;;;;::::::;::,,;::::,,,,,,,,:.:,;::,;:,.,,;..,.,.:,;.,:,,,::,,,,,::::,,;,:,.:.`      
                                   ::,:;;';''''''''''''''''''''''''''''''';';';;;;:;:;:;:;:::::::,:,,,,,.,,,,,,'.,;,:.',,`..,:,..,`::,.::,.,:,,,,,.,:;::,::,,,.      
                      `          ``.,;;;;''''''''''''''''''+''''''''''';';';;';;';;:;;;:;::;::,,::,,,,.,,,,,:,:;,:;`'`;',`..;:,, ,,,,,,,,:.,,:,,.,,,::;,:,,,,..`      
                 `           `     `,';'''''''''''''''''''''''+'''''''';;'';;;''';;;;;;;:;;:;:,:,,,,,,.,,.....;,;,,.,.,:,;.,.,,,.`:`...,.:..,,:,,,,.,:::::,,,..,      
                           `       `:';'';;'';'''';''''''''''''''''';';';';;';;''';';';;;;;:::,,,,..,,..,.,,,,,:.;,;,';.:::,.`,.......,,,,,,.,:.,.:.,,,:::,,,,.,`    
                               `   ,:;;';;''''';'''';''''''''''''+'';';''';;';''';;;''';';;:::,:,,,:,,.....,,:,;:.:;.''..:`,,,,:.,......,.,.,.,.,.,.,,,:,,::::..`.    
        `   `               `     .,:#;';;'''''''''''''''''+'''';';;''''';';;''''''''';';;;;:,,,,,,,,,,,..,,,:,.:.;, ;.;,,,.:......`.`...,..,,,,,,,,,,,:,:,,,,,,` `  
        `                 `  ``   ` ;;;;;';;'''''''''''''''';'''';;';;''';'';'+'';;;;;;;;;;;:::,,,,.,.,,.,...,.,...;,;::..,,,...,`..``,......,,,..,..,,::,,,,,,, ``  
  ` `                             #`:;''';;'';'''''''+''''+;;'';';';'''''''';''';;'';';;;;::,::,,,,,,.,....,.:,:.,:;;::..,`.,..,...,`.`.......,..,..,,,,,,,.,,,.,  `  
                     `      `     `,;;;;';'''';'''''+''''+;::';'';;;;''''''';:;'+'+'+;::::,,,,,,,,,,,.,,.....,,,:,:;'.+. ,.,..,.`...` ..,.``.``..,,.,,.,:,,,..,...    
                   ```     ` `   ` ';;;;;;''';'';''+'+'';';;:'+';;'++;'';;;;:;';;::,::;::::,,.,,,...,.,..,,,,.,:.::;..:......` . . `````..,,,,,,,,,`.,,.:.,,,....`    
            ` `            `  `` ``;''';;';'';'';;'+'';;;+;;;''';''';'+::;;;;':;'::.,.:,::,,:..,...,,.......,.,,,..,``,``.        `...,...`````...,..,,.,,.,.,..`    
        `          `   `` ` `  `:: ;''';;';';''''''';;;+;;;:'::+::;:,;'',.````.``.,.,.,,,.:`.,.,......,,,.``      `. ` ```.``.``..``...` `````````...,..,,..,...`    
             `  `  `      ````,;``::':''';;';''''';;;:'';;:,:;;:;':`@: `:';;:.,#     .,,:;,,;...                `.``.`..`,....```.`..`````.....````,...,,,,.....      
      ` `  ` ``` ```````` `  ...,,;'';;;;+::'';;;;;;':''';;.::' , `:;:,..`,,,,....,` `     `     `      `..`.``.`......,....,.`.,...`  `.....,....`..`.,.,.,..``      
   `   `   ` ``` `` ```````  .,`,;'';';;:;,,::;;:;;;::''';:,,  ;;;,,........;;:::,,,:      ;.  `,::,.`..`.``.``.,..`,..,,...,.....`.```.`..,......`.,.........`      
         `   ````` `` `  ```` .,:::'+:':';::::;;::;::;'+';'  :,::,::,...,;;;.`,.``.,,,     .,,..,,,,............,,...,:,..,,.........`...,..,......`...`.....`        
    `      ``  `````  ``````: `,:':;':;'+;:;:;:,,,::,;;+'# ,;,,...;;,..,`.,,, @  ``.,.    :,:,.,,:,,,,,,,............,,.....`..`.......,....,......`..`...... `      
 `` ```` ` `` ``````````` `` :,';'` `,` `:``` '...,..:';;  :::,...`',.``,,.;'....``::,, ` +;::,,.,,:,,,,,:,,,,..,,....,........`.,....,.,.,,..,....`.........`        
   ```` ```````````````````` :`  .::::,;,;..,:; ` `..,;,```,,,..,.` ;``,:.':::,,;;::,:;  `,,:;::,,:,,,.,,,,,.,,,,..,...,...,......,..,,......,.....`..```...``        
 ````````````` ````````````   .``,;;;;';`.`::::,:     `````.,..`...````,;:;';:;:::;;::, ``,:;;:,,:;:,,,,,,,..,,,,,..,.,,,.`.......,.`.,,,,,.,......`....``..`        
`````````````````````````` ` ```,`:,;:`.';;;::::,,     : ` ;...,...`..:;;,:;:;;::;::::, ``:::;;:,::,,,,,,...,,,,..,...`........,....   ........,..`..`..``..          
````````````````````````  . .`````..;,.:;``` , ` . ` ;;::. . ,,,.,,..`::::::;;'';::::,,```:,:;:,::::,,::..,,,,,,,..,,,.........,,...`   `........``..`.`.`.`          
```````````````````````  .``  ,  ```;., .:,'`..``.` `;';::  ; ...,..,;:;:;;;';';::;':;: `,;:::,.::,,,:,.,,......,....,.........,,,`...` ``..`...,.........`          
```` ````````````````` . .`.:;:::.,:,..``.''':;;;;; +';;::, `, ...,::::;.:''',,.,:;';''  ':::::,,,.,,,.,,,..................,..,,,......````........`..``.`          
``````````````````````   ,` `    `` .`` ;;;;':;,:;'.;'';;:,. ,. `.;::;;;;:'';:;'''+;;;+``:::,:,,,..,,...,,,.,.....,,........,...,,,`.,..````..`...`,`.`..``          
``````````````````````   ```  `   ``.  ;:;;;::::;:;''';;:,,.` :.`.:;::;;:';;';'';';;'# `,,;::,,,,,,......,.,......,..,...,,.,..,,,,......,.`...,,......```            
````````````````````````  .  `  ````. ':;:;;';';::'''';;;:,,,` :, .;;;;:;;;'''''+''+; .';';:,,,,,,,,,....,...,,..,.......,.....,,....,.,,,,.....,`....``.`            
````````````````````````` ,  `  ``` .,::;;'''';;;;'''';';;,,.,.  ,..;;;''+''''''':@ `',,::,,,,,,,,:,,,,...,,..,.,..,.....,..,.,.,,,....,,..`...,.`,````.`  `          
`````````````````````````  ,     ``;`;;;;;;';:,,,'';;'';';:,,,,,.  ,:,:''';''',.``....;;;;;;;;::::,,.,.........,,,....,.,..,....,,.....`...`.,,.`..``````            
`````````````````````````` .     ` ',;;;;;:;';;';;''''+';::,,,.,...'`  .   ```.:+'';;;;;;;;;;::,,:,,.,,.,.,,..,.....,..,..,...,...,.........,,..`..``.`  `            
``````````````````````````` :   ```;;:;;;;''''';''''''#';;:,,.,..`.`;,;:;;';''';'';';;;;:;::::::,:,,.,,....,.,.,..,..,.,.,,,....,.,....,,,,,..``..`````              
```````````````````````````` :   ```:;;'':''';;';';';';;:;::::,,.,.,.`:;';'''''+';';;;;;;;::::,:,,,,,,.....,,...,...,,....,,......,,,,,,,,...`..,.`````              
`````````````````````````````::  `  ,'';;:';;;';''''';';;::,::;::,,:...`.';;;'''''+;;;;:;::::,,,,,,,,,,,...,.,,,...,....,,,,.,....................   ``              
`````````````````````````````` .;   ',;;';'#:';'''''';;;::.,.:,,,,,,,,,.``.;;;;;';'';;;;::::::,,,:,,,.,.,.,,,,,,.,.,..,,,...,,...,.........,......   `                
```````````````````````````````` .;:,:.`  `,`+;;++'+';;:,,.,,.,:.,.,,..,.`` .;;;;'''';;;:;:::,,,,,,.,,,,.,....,.,,.,.,,.,,.,,....,.....,,,.,.,,..    `                
``````````````````````````````````.;++';;'''':;;;'+;;::,...,,,.,.,.,.......```:;;';;';;;:;::,,,,,,.,,.,.,.,.....,,...,.,..........,.....,....,,.`  `                  
```````````````````````````````````,;;;;;;;;;+:;;:;;;::..........,...`.``....:,;;;;;;;;;::::::,,,,,,..,,.,,,,,,,..,,,,...,........,...,,,,,.,,,.   `                  
````````````````````````````````````:;;;';''+'::;;:::,,...            `.,,;:;:':,:';;';;::,,,,,,,,,,,.,:.,....,..,,,,..,,..,........,.,,.,,....  ````                
``````````````````````````````````` :;;;'''+';;:,,,,,,.`.````` ````..,:;;;;;;;:;::;:;'';:,::,,,,,...,,:,:,,......,..,.,.,,.............,,,,,,.```  ``                
``````````````````````````````````` ;;;;';;'+;:::`,..``....```.`.,;;;;:;;;;;;;:;:,;:::,;:::::,,,`.,:,:,;,,,,....,,.,..,.,.,.......`...,,,,,..````    `                
``````````````````````````````````` +;;;';;;;;,,,:;;:;;;;;'+'';;;;;:;::;;:;:::::::,;;:::.;;:::,,,::,;::::,,,,...,....,.....,......``...,,....`````` `                
````````````````````````````````````+;;;';;;::,,`;;;;':;';;;'''';';;';;';;;;::;::,::::::,`+:,:,,:::;:,:::,,,.,.,,,,.........,.....` .`....```````                    
````````````````````````````````````::;;;;;:::..;;;;;;;';'';'+'':';;;:';;::;:,::,:::,,,:,,:'';::;:::,:;,::,,.....,...,..........``` ````````.```.                    
`````````````````````````````.```````::;;;;::,:,;;;;:;;;;;';'''''+:;;',:;::,,,,,::,,.:,:,;.';;;:;::,,,::::,:.....................`.````````````..``                  
```````````````````````````````````` +;;;;;:,.`,;;;;;;''';'''''';;:;;:,;:::,,,,,.,..,.,,,:.'';:;:::,.,::,::,................`...`.``````````.`...```                  
`````````````````````````````````````.:;;;:,,.`::;;;;:;;;'''''''';::::,::,,,,.,,:.,.,:,,.':'';;:::,,,:::::,,...............`......`.``````` `...````                  
``````````````````````````````````````':;:::.`::;;:;:;;;;'';;';;;::,:,.,.`...````  ` ,,::;'+;;;:;,,,:,,:,:,,............`.......``..````````...`.` `                  
``````````````````````````````````````;::;::...;;::;:;;;:;;;;';,..,````,:,.,:::,;,,,,,`.;:'''':::,,,,.,:,,,,.........`.`..`.`...`..````````...`.```                  
```````````````````````````````````````;;;::,.`;:;:::::,:.,,:,.`.:;::;;;:::::,,,:,,,,:.:':'';':::.,,,.,,:,,......`.`....`.`......`.........`..``.,,                  
`````````````````````````````````````` ';;;;,:::;:::,`,,:::;;;;;;;';;;:;::::,,.,,..:::;;;,';;:;:.,,,,,,:,,,...`.`.````....`.....`.`.........`` ::,,                  
```````````````````````````````````````.;;;;:':.';:,.;;;;;;''++';;';;:;::,,,,,,,..::;;::;,'';;:,.,,..,,,,,....`.``...........`.``..`.....`.` :::,,.`                  
``````````````````````````````````````` ';''';::.;:;;;;';''''';;;';::::;,,,.,::,,;;,;::;:,'';::,.,,...,,,,..``.`.``.```.....`...`.......`. ::::,,,,.                  
````````````````````````````````````````,;'';';;::;;;;;;;;;';;;'::;;,;:::;:,,,.:;;:;;;;:,.';;;:,,,,...:,,,..````````.``....`............`,:::::,,,.,                  
```````````````````````````````````````` ';;''';::';;;;;;;';;';';';;;:;:::::,:::;;;:';:;,.';:::,,,..`.,,,,````.`.```...`..............`.;::::,,,:,.                  
``````````````````````````````````````````;;';;';:.;;;;;;;';';:;;;:+:;,;:;:::::;;;;;;;;:,.;;;:,,.:...,,,,...```````...``.```.``...... ;;;::::::,:                    
``````````````````````````````````````````';;';';:`:;;:;;:;;;';';;';;;;;;;:;:;::;;;;:,',,,,;;,,,.,...,,,,.`````````.````...`...`.`. ;;:::;::::::                `    
`````````````````````````````````````````` ;;;;;':.;;;;;;;;;;:;;;;;;;:;;':;;;::;;;:;:;::,.,::::..,.,,::....``...``...`...``........;:::::;::::                        
```````````````````````````````````````````.:;;';;:';;;;;;;;;':'''';;;';:;;;';;;;:;,,::,,..::,,.,...,,,.`.```.``.```.....`....`.`;::::;::;::;                     `  
````````````````````````````````````````````;:;;;;;:;;;;;;';;'';'';;;;:;;;;;;;::::;,:,,,...,:,.`:..:,,.`````````.....`...``...`.;:::::;::::.                          
`````````````````````````````````````````````';';;;:;:;;;;;;'''';':;';;;:;;;;:';::,,,,,.....,,..,.,,,,````.``..````..`....`..`,:::::;;;;;;                            
````````````````````````````````````````````` +;;;;;;;;':;;;;'''#;;:;';;;;;;::;::::,:,.......`.,,,.,.,```.```.`.`............;:::;;;;;;:;                            
`````````````````````````````````````````````` ';;;;;;;;;;;'''+';'';;;;;;;;:::::,::,.......``..:,,,.....`````...`...`.`....,;:::;;;;;::,                              
````````````````````````````````````````````````;;;;;;;;;:;';';;+';';;;;::;:::,,,,:......``.`..,.,..,.```````........`..`.:::::;;;;;:;                                
````````````````````````````````````````````````:;:;;;;;;:;;'+;;+':;'::::;,::,:.,,..`.`...``..``.,..``.`...`...`.`...`...:::;;;;;;;:;                               ```
`````````````````````````````````````````````````::::;;;;;;;+''';':',;;::;,,,,,...``.....`.`..``.`...`..`..`.``......`,::::;;;;;;;:;                               ```
``````````````````````````````````````````````````;;:;;';;;;:;;';;;;;::;;,,,`.,.........`.```...`.`.``.`..``.,.......:::::;:::;:::,                               `` ``
`````````````````````````````````.```````````````` :;:;;;;:;;::;',::::,,,::.``........`....`.`..`...,..`.,,........,;::::;::;::::,    ` ``                       ``````
````````````````````````````````````````````````````,;;;:;;;::;::::::,.,,,,...,..,.......................`.`......::::;:::::::::`                 ` `````       ```````
``````````````````````````````````````````````````````':;;:;;::,::,,,,,........`.`.``....```..`.``........,.,..,::::;:::;::::::                               `````````
``````````````````````````````````````````````````````.;;:;:,,:,,,,,,,.......,.`.........```........`.,...,..,:::::;:;;;:::::;   ` `                         ``````````
``````````````````````````````````````````````````````` `,,,,,.```,:,,.,,.,.................`....,..,...,,.,,;:::::;:;::;:;:;                              ````````````
`````````````````````````````````````````````````````````` ::,,,:::,,,,,,:.,,:,.,,,.,:,,.,,.....`.,.,,:,.,,;::::;:;;;:;;;;;' `                `       ``  `````````````
````````````````````````````````````````````````````````.````  ,::::;:::;::,,,,,,,.,,,,:,,,....,,,,,:,,,:;::::::;;;;;;;;;;'  `                 `     ``  ` ````````````
````````````````````````````````````````````````````````````````` ,;::::,:,,,.,,,,,.,::,,,,,,,,,:,:,,:::;::;;;;;;:;;'''++@ `                         `` `` ````````````
``````````````````````````````````````````````````````````````````` `;::::,,,.:,,:,,,;:;:,:,,,,,;.,:::;;;;;;:'+++++'+'++@                      ``    `  ````` `````````
``````````````````````````````````````````````````````````````````````::,:,,,,,,,,,,,:;:::::::;`,:::;;;:;##++++++++++++@ `              ``  `    `````  `````````` ````
`````````````````````````````````````````````````````````````````````````,:::,,,.,,,,;;;:::;: ::;::;+##++++++++++++#+''  ``             `       ``` `   ```````````````
``````````````````````````````````````````````````````````````````````` #+#+::,,,..::;;;;:; ,,;+##+++++++++++++#+'++''       `  `         ```  ``````   ``````` ```````
if you like it, leave a tip: 1P675gRxNwhFXgfuDu5yXwGDgwLDbXNJqz    BM-2cUDAqyqcnksx7YDtgu2y72xDxcRjPeYfo
[1] http://cryptograffiti.info/
[2] http://cryptograffiti.info/?txnr=3334
[3] https://www.blocktrail.com/BTC/tx/0fc0c50e410b62ee3a316135711116db6b4e728841c976f29ab85e2a41e0dcc3

That is very expensive and lame way of storing data unless the data is very important.
manselr
Legendary
*
Offline Offline

Activity: 868
Merit: 1004


View Profile
August 05, 2015, 04:14:57 PM
 #8

I believe that formula for calculating TX fee goes (I am not 100% sure):

normal_fee := 0.0005                            
size := X * 148 + Y * 34 + 10 +- X
fee := normal_fee / (1 - size / 500kB)

Is this is correct or I messed something?

This is for X inputs (with compressed keys) and Y outputs on a regular transaction that is spending coins, but OP wants to know about storing arbitrary data on the blockchain. If we take cryptograffiti[1] as a reference 2,000 bytes cost 0.00144600 BTC according to their preview. A ASCII picture like this costs ~0.03[2,3]. The limit on the costs is for one the fees needed for a TX and the max blocksize, but also that you need to burn bitcoin to an output that you will not be able to spend at a later date as its representing your data. There might be someday someone with the matching private key but the chances for that are as good as impossible.

Code:

                                                                            ``````                                                                                    
                                                               `  `     ,.`   `.   ``                                                                                
                                                               `     `   `.,,`,,'+';  ``,```  `                                                                      
                                                    `            ,'++''';++''''':'''';+;,:,,..     `     `.                                                          
                                                         `   .+;+'++++:;''';::;'''+;:;''',''. `.`  `.`       `                                                        
                                                       . ,,:+'';:;;:;+';;';;;;'::;;;+:;;:++;.'':,`,:.``.,`                                                            
                                     `              ..`;.+'';:'++''';;;;'''';;:;;;:,;;;',;'';+;;;';::,.``.`.  `` `      `                                            
                                                 .  .:.++';+''#++++''+'+;;+''+';;;;;:::;;;;:;';';';;;;'+::,::````` `                                                  
                                       `    `  ,`,.++''''++++#++''++++'++''''';''';;:::;:::;;;,;;;:'';;;';,::;;.`  .`     `                                          
                                            ,`,:.+;;+'++'+'+''++'''';;;;;'';+:;:;;'';;;;;::::,,:;:;;:;'';;,;;;,;;..,,:..``                                            
                                           ,;:''+##'++;'+'';';;''';';;;;;;;'::::;:;:;;''':;'::,;,,;,:::;;:,;,::;;;:'; ``,` .` ` `  `                                  
                                 `      ;`.+';;'''''+';''''';:;;;;;;;;;;;;;:;;:;:::,:::;:;;;;;;:::::;::;:,,;:;::,,:;,':.```` ` ``                                    
                                    ` .,.,,;;''''++''';;';:;;;:;:;;;;;;;;;;::;;;:::,::::::::;:::::::;:';;:::::,,,::::.:::`` . `                                      
                                  `+ ;`;,;+''''++'';';;'::;;;;:;;;;;;';;:;'';;;;:::::::::::;::::;:,:::;,:,::,::::,,:::.:,,`.`` ` `      ``                            
                                `  ,#,,''.';''';'';';:;;;;;;:;:;;';;''''';;;;;;;;;;;;:::::;::;:,:;;:::,:::::::::::;,:,,,,:,.```` `  `     ``                          
                             ` ` :.,.;'+';'''';;;;::;':';::;;;;;''''''''';;;;;;;;;;'';;;;::;;;;;::::::::::::::;:;,::;:;:,,,,..`` ``` `                                
                           `   ,` .:,'.#:+;+'+'':::;:;;;;;;'''';'''''''';;;''';;''';'';;;;;;;;;;;::;:::::::;;:;::;;::;:::;,,.:.`.,. .` ``                            
                              ` , ;`+:+;;:;''';':;;::;'';'''''';''''''''+''''''+'';;''';';:;;;;;;:::;::;:::::;;;:;;;;;:,::;:.:;.`..:..   `                            
                              ` `'..;+;'';';';;;;:','::;''''''''+'+'++''''+++'+'''''';;';;;;;;;;:;;;:::;:::;;;;;;;:;,:::,,,,,,:.:.`.:.,.  `                          
                              ` ,:`';::+;':;:',;:;::::+'''''+'''''''''''+++'+'+''';;';;';;;;;:;;;;::::::::::::::+;:';.;,:;.,,;:'.:.,.:`,;``   ``                      
                               .'`:;;;:',';;;:;:;:,:';'''''''''''''''++'++++++++'';;;;;;;;;;;;;;::::::::;::::;;::;;:':::::::::',':,`,,,.:.`` `  `                    
                               :,;+;:':;+';;;:::::'''''+'+'+'+'+'''+''++++#+#+++'++;;;;;;;;;;;;;:::::::::::;;::::,;,:':,;::;:.,,,:;:,,':`;  `     `                  
                              `.,:''';+,';;:;;;:;'''''''''''''''''''+++++++#+++''';'':;;;;';:;;::;:::::;:::::;;;:::;.;+:,;;:+`:::,:;;::,,:;..``   `          ``      
                              `:`.:;';'+';:';:,''''''''''+''''''+''+'+++'++++''''';';;'';;;;;:;::::::::::::::::;::;';::;;.;;::;,;:,,;;::':;.:. `  `      .            
                               .:.+++';';;';::'''''''''''''''''''''''''++++'';;;;;';;';;;:;;;::::::::::::::::::;::,:;,,;;:,,:;.',:.,::',.::::,:.`   ``                
                             .`, :;+;;;';;:::'';''''''''''''''''''''''+'''''+'';;;;;';;;;;;:::::::::::::::::::;;;:,:':`;:;,:.;:;',;`:,;;::::,;':;: .                  
                             .  `,;'';;;;':;'''''''''''''''''''''''''''''';;'''';;;;;;;;;;:::::,,,:::::::::;:::;:::,':,:;,`.,::,,,:..:,:':;::::':';;``                
                        ` `  .. .,';+;';';''''''''''''''''''''''';'''''''';''';';;;;;;;;::::::,,,:::::::::::::::::::;;;,',`.,:,:':,.;,.;:;;:;;::;';:':,``            
                             .. ,.::+'+'+:;''''''''''''''''''''''''''''''';'';;';;';;:;;::::::,:,:::::::::::::,::::;;';:,,....::;,,:.:::,;;;;:';;;;'::'.,`            
                        `    ..`,.::+.++:''''''''''''''''''''''''''''''';';;';;;;';;;;:;:::::::::,::::::,,,,:::,::,;;'`'..,.:.,:;::.,,,::,:;::':;:':;:,:,.. `     `  
                             . `:`;:+'+';;;'+''''''''''''+'''''''''''''''';';;;;;;;;;;;;;::::,,::,:::,:::,,,,,,::,::::+,...:,,.,':':.::,:,',:::;;;;;:::,,:`,     `    
                             , ,.`:`';''';''''''''''''''''''''''''''''''';'';;;;;;;;:::::::::,,::::,:,::,,,,,,,,:,;,,;:.,,..,.`:;,;:,;::::,:,:,:::;;;::::,:.,  .      
                      `  `   .` . `.::';'''''''''''''''''''''''''''''''';'';'';;;;;;:;;;;:::,,,,::,,:,::,,,,,,:,:;,;;:,,,.,.:.,..;:::,;,:;:;:,:,:::;;::::,:.,`        
                        `    `    ...:;;'';'''''''''';'''''''''''''''''''';';''';;;;:::;:;:::::::,:,,,,,,,,,:.,;,;,`,',.`.,.,.,.,,:,:,;,,,:,,,,:::,;;;:,:,:,,..`      
                               ``. ,.::;;'''''''''''''''''''''''''''''''';'';;;;;;;;;::::::;::,,;::::,,,,,,,,:.:,;::,;:,.,,;..,.,.:,;.,:,,,::,,,,,::::,,;,:,.:.`      
                                   ::,:;;';''''''''''''''''''''''''''''''';';';;;;:;:;:;:;:::::::,:,,,,,.,,,,,,'.,;,:.',,`..,:,..,`::,.::,.,:,,,,,.,:;::,::,,,.      
                      `          ``.,;;;;''''''''''''''''''+''''''''''';';';;';;';;:;;;:;::;::,,::,,,,.,,,,,:,:;,:;`'`;',`..;:,, ,,,,,,,,:.,,:,,.,,,::;,:,,,,..`      
                 `           `     `,';'''''''''''''''''''''''+'''''''';;'';;;''';;;;;;;:;;:;:,:,,,,,,.,,.....;,;,,.,.,:,;.,.,,,.`:`...,.:..,,:,,,,.,:::::,,,..,      
                           `       `:';'';;'';'''';''''''''''''''''';';';';;';;''';';';;;;;:::,,,,..,,..,.,,,,,:.;,;,';.:::,.`,.......,,,,,,.,:.,.:.,,,:::,,,,.,`    
                               `   ,:;;';;''''';'''';''''''''''''+'';';''';;';''';;;''';';;:::,:,,,:,,.....,,:,;:.:;.''..:`,,,,:.,......,.,.,.,.,.,.,,,:,,::::..`.    
        `   `               `     .,:#;';;'''''''''''''''''+'''';';;''''';';;''''''''';';;;;:,,,,,,,,,,,..,,,:,.:.;, ;.;,,,.:......`.`...,..,,,,,,,,,,,:,:,,,,,,` `  
        `                 `  ``   ` ;;;;;';;'''''''''''''''';'''';;';;''';'';'+'';;;;;;;;;;;:::,,,,.,.,,.,...,.,...;,;::..,,,...,`..``,......,,,..,..,,::,,,,,,, ``  
  ` `                             #`:;''';;'';'''''''+''''+;;'';';';'''''''';''';;'';';;;;::,::,,,,,,.,....,.:,:.,:;;::..,`.,..,...,`.`.......,..,..,,,,,,,.,,,.,  `  
                     `      `     `,;;;;';'''';'''''+''''+;::';'';;;;''''''';:;'+'+'+;::::,,,,,,,,,,,.,,.....,,,:,:;'.+. ,.,..,.`...` ..,.``.``..,,.,,.,:,,,..,...    
                   ```     ` `   ` ';;;;;;''';'';''+'+'';';;:'+';;'++;'';;;;:;';;::,::;::::,,.,,,...,.,..,,,,.,:.::;..:......` . . `````..,,,,,,,,,`.,,.:.,,,....`    
            ` `            `  `` ``;''';;';'';'';;'+'';;;+;;;''';''';'+::;;;;':;'::.,.:,::,,:..,...,,.......,.,,,..,``,``.        `...,...`````...,..,,.,,.,.,..`    
        `          `   `` ` `  `:: ;''';;';';''''''';;;+;;;:'::+::;:,;'',.````.``.,.,.,,,.:`.,.,......,,,.``      `. ` ```.``.``..``...` `````````...,..,,..,...`    
             `  `  `      ````,;``::':''';;';''''';;;:'';;:,:;;:;':`@: `:';;:.,#     .,,:;,,;...                `.``.`..`,....```.`..`````.....````,...,,,,.....      
      ` `  ` ``` ```````` `  ...,,;'';;;;+::'';;;;;;':''';;.::' , `:;:,..`,,,,....,` `     `     `      `..`.``.`......,....,.`.,...`  `.....,....`..`.,.,.,..``      
   `   `   ` ``` `` ```````  .,`,;'';';;:;,,::;;:;;;::''';:,,  ;;;,,........;;:::,,,:      ;.  `,::,.`..`.``.``.,..`,..,,...,.....`.```.`..,......`.,.........`      
         `   ````` `` `  ```` .,:::'+:':';::::;;::;::;'+';'  :,::,::,...,;;;.`,.``.,,,     .,,..,,,,............,,...,:,..,,.........`...,..,......`...`.....`        
    `      ``  `````  ``````: `,:':;':;'+;:;:;:,,,::,;;+'# ,;,,...;;,..,`.,,, @  ``.,.    :,:,.,,:,,,,,,,............,,.....`..`.......,....,......`..`...... `      
 `` ```` ` `` ``````````` `` :,';'` `,` `:``` '...,..:';;  :::,...`',.``,,.;'....``::,, ` +;::,,.,,:,,,,,:,,,,..,,....,........`.,....,.,.,,..,....`.........`        
   ```` ```````````````````` :`  .::::,;,;..,:; ` `..,;,```,,,..,.` ;``,:.':::,,;;::,:;  `,,:;::,,:,,,.,,,,,.,,,,..,...,...,......,..,,......,.....`..```...``        
 ````````````` ````````````   .``,;;;;';`.`::::,:     `````.,..`...````,;:;';:;:::;;::, ``,:;;:,,:;:,,,,,,,..,,,,,..,.,,,.`.......,.`.,,,,,.,......`....``..`        
`````````````````````````` ` ```,`:,;:`.';;;::::,,     : ` ;...,...`..:;;,:;:;;::;::::, ``:::;;:,::,,,,,,...,,,,..,...`........,....   ........,..`..`..``..          
````````````````````````  . .`````..;,.:;``` , ` . ` ;;::. . ,,,.,,..`::::::;;'';::::,,```:,:;:,::::,,::..,,,,,,,..,,,.........,,...`   `........``..`.`.`.`          
```````````````````````  .``  ,  ```;., .:,'`..``.` `;';::  ; ...,..,;:;:;;;';';::;':;: `,;:::,.::,,,:,.,,......,....,.........,,,`...` ``..`...,.........`          
```` ````````````````` . .`.:;:::.,:,..``.''':;;;;; +';;::, `, ...,::::;.:''',,.,:;';''  ':::::,,,.,,,.,,,..................,..,,,......````........`..``.`          
``````````````````````   ,` `    `` .`` ;;;;':;,:;'.;'';;:,. ,. `.;::;;;;:'';:;'''+;;;+``:::,:,,,..,,...,,,.,.....,,........,...,,,`.,..````..`...`,`.`..``          
``````````````````````   ```  `   ``.  ;:;;;::::;:;''';;:,,.` :.`.:;::;;:';;';'';';;'# `,,;::,,,,,,......,.,......,..,...,,.,..,,,,......,.`...,,......```            
````````````````````````  .  `  ````. ':;:;;';';::'''';;;:,,,` :, .;;;;:;;;'''''+''+; .';';:,,,,,,,,,....,...,,..,.......,.....,,....,.,,,,.....,`....``.`            
````````````````````````` ,  `  ``` .,::;;'''';;;;'''';';;,,.,.  ,..;;;''+''''''':@ `',,::,,,,,,,,:,,,,...,,..,.,..,.....,..,.,.,,,....,,..`...,.`,````.`  `          
`````````````````````````  ,     ``;`;;;;;;';:,,,'';;'';';:,,,,,.  ,:,:''';''',.``....;;;;;;;;::::,,.,.........,,,....,.,..,....,,.....`...`.,,.`..``````            
`````````````````````````` .     ` ',;;;;;:;';;';;''''+';::,,,.,...'`  .   ```.:+'';;;;;;;;;;::,,:,,.,,.,.,,..,.....,..,..,...,...,.........,,..`..``.`  `            
``````````````````````````` :   ```;;:;;;;''''';''''''#';;:,,.,..`.`;,;:;;';''';'';';;;;:;::::::,:,,.,,....,.,.,..,..,.,.,,,....,.,....,,,,,..``..`````              
```````````````````````````` :   ```:;;'':''';;';';';';;:;::::,,.,.,.`:;';'''''+';';;;;;;;::::,:,,,,,,.....,,...,...,,....,,......,,,,,,,,...`..,.`````              
`````````````````````````````::  `  ,'';;:';;;';''''';';;::,::;::,,:...`.';;;'''''+;;;;:;::::,,,,,,,,,,,...,.,,,...,....,,,,.,....................   ``              
`````````````````````````````` .;   ',;;';'#:';'''''';;;::.,.:,,,,,,,,,.``.;;;;;';'';;;;::::::,,,:,,,.,.,.,,,,,,.,.,..,,,...,,...,.........,......   `                
```````````````````````````````` .;:,:.`  `,`+;;++'+';;:,,.,,.,:.,.,,..,.`` .;;;;'''';;;:;:::,,,,,,.,,,,.,....,.,,.,.,,.,,.,,....,.....,,,.,.,,..    `                
``````````````````````````````````.;++';;'''':;;;'+;;::,...,,,.,.,.,.......```:;;';;';;;:;::,,,,,,.,,.,.,.,.....,,...,.,..........,.....,....,,.`  `                  
```````````````````````````````````,;;;;;;;;;+:;;:;;;::..........,...`.``....:,;;;;;;;;;::::::,,,,,,..,,.,,,,,,,..,,,,...,........,...,,,,,.,,,.   `                  
````````````````````````````````````:;;;';''+'::;;:::,,...            `.,,;:;:':,:';;';;::,,,,,,,,,,,.,:.,....,..,,,,..,,..,........,.,,.,,....  ````                
``````````````````````````````````` :;;;'''+';;:,,,,,,.`.````` ````..,:;;;;;;;:;::;:;'';:,::,,,,,...,,:,:,,......,..,.,.,,.............,,,,,,.```  ``                
``````````````````````````````````` ;;;;';;'+;:::`,..``....```.`.,;;;;:;;;;;;;:;:,;:::,;:::::,,,`.,:,:,;,,,,....,,.,..,.,.,.......`...,,,,,..````    `                
``````````````````````````````````` +;;;';;;;;,,,:;;:;;;;;'+'';;;;;:;::;;:;:::::::,;;:::.;;:::,,,::,;::::,,,,...,....,.....,......``...,,....`````` `                
````````````````````````````````````+;;;';;;::,,`;;;;':;';;;'''';';;';;';;;;::;::,::::::,`+:,:,,:::;:,:::,,,.,.,,,,.........,.....` .`....```````                    
````````````````````````````````````::;;;;;:::..;;;;;;;';'';'+'':';;;:';;::;:,::,:::,,,:,,:'';::;:::,:;,::,,.....,...,..........``` ````````.```.                    
`````````````````````````````.```````::;;;;::,:,;;;;:;;;;;';'''''+:;;',:;::,,,,,::,,.:,:,;.';;;:;::,,,::::,:.....................`.````````````..``                  
```````````````````````````````````` +;;;;;:,.`,;;;;;;''';'''''';;:;;:,;:::,,,,,.,..,.,,,:.'';:;:::,.,::,::,................`...`.``````````.`...```                  
`````````````````````````````````````.:;;;:,,.`::;;;;:;;;'''''''';::::,::,,,,.,,:.,.,:,,.':'';;:::,,,:::::,,...............`......`.``````` `...````                  
``````````````````````````````````````':;:::.`::;;:;:;;;;'';;';;;::,:,.,.`...````  ` ,,::;'+;;;:;,,,:,,:,:,,............`.......``..````````...`.` `                  
``````````````````````````````````````;::;::...;;::;:;;;:;;;;';,..,````,:,.,:::,;,,,,,`.;:'''':::,,,,.,:,,,,.........`.`..`.`...`..````````...`.```                  
```````````````````````````````````````;;;::,.`;:;:::::,:.,,:,.`.:;::;;;:::::,,,:,,,,:.:':'';':::.,,,.,,:,,......`.`....`.`......`.........`..``.,,                  
`````````````````````````````````````` ';;;;,:::;:::,`,,:::;;;;;;;';;;:;::::,,.,,..:::;;;,';;:;:.,,,,,,:,,,...`.`.````....`.....`.`.........`` ::,,                  
```````````````````````````````````````.;;;;:':.';:,.;;;;;;''++';;';;:;::,,,,,,,..::;;::;,'';;:,.,,..,,,,,....`.``...........`.``..`.....`.` :::,,.`                  
``````````````````````````````````````` ';''';::.;:;;;;';''''';;;';::::;,,,.,::,,;;,;::;:,'';::,.,,...,,,,..``.`.``.```.....`...`.......`. ::::,,,,.                  
````````````````````````````````````````,;'';';;::;;;;;;;;;';;;'::;;,;:::;:,,,.:;;:;;;;:,.';;;:,,,,...:,,,..````````.``....`............`,:::::,,,.,                  
```````````````````````````````````````` ';;''';::';;;;;;;';;';';';;;:;:::::,:::;;;:';:;,.';:::,,,..`.,,,,````.`.```...`..............`.;::::,,,:,.                  
``````````````````````````````````````````;;';;';:.;;;;;;;';';:;;;:+:;,;:;:::::;;;;;;;;:,.;;;:,,.:...,,,,...```````...``.```.``...... ;;;::::::,:                    
``````````````````````````````````````````';;';';:`:;;:;;:;;;';';;';;;;;;;:;:;::;;;;:,',,,,;;,,,.,...,,,,.`````````.````...`...`.`. ;;:::;::::::                `    
`````````````````````````````````````````` ;;;;;':.;;;;;;;;;;:;;;;;;;:;;':;;;::;;;:;:;::,.,::::..,.,,::....``...``...`...``........;:::::;::::                        
```````````````````````````````````````````.:;;';;:';;;;;;;;;':'''';;;';:;;;';;;;:;,,::,,..::,,.,...,,,.`.```.``.```.....`....`.`;::::;::;::;                     `  
````````````````````````````````````````````;:;;;;;:;;;;;;';;'';'';;;;:;;;;;;;::::;,:,,,...,:,.`:..:,,.`````````.....`...``...`.;:::::;::::.                          
`````````````````````````````````````````````';';;;:;:;;;;;;'''';':;';;;:;;;;:';::,,,,,.....,,..,.,,,,````.``..````..`....`..`,:::::;;;;;;                            
````````````````````````````````````````````` +;;;;;;;;':;;;;'''#;;:;';;;;;;::;::::,:,.......`.,,,.,.,```.```.`.`............;:::;;;;;;:;                            
`````````````````````````````````````````````` ';;;;;;;;;;;'''+';'';;;;;;;;:::::,::,.......``..:,,,.....`````...`...`.`....,;:::;;;;;::,                              
````````````````````````````````````````````````;;;;;;;;;:;';';;+';';;;;::;:::,,,,:......``.`..,.,..,.```````........`..`.:::::;;;;;:;                                
````````````````````````````````````````````````:;:;;;;;;:;;'+;;+':;'::::;,::,:.,,..`.`...``..``.,..``.`...`...`.`...`...:::;;;;;;;:;                               ```
`````````````````````````````````````````````````::::;;;;;;;+''';':',;;::;,,,,,...``.....`.`..``.`...`..`..`.``......`,::::;;;;;;;:;                               ```
``````````````````````````````````````````````````;;:;;';;;;:;;';;;;;::;;,,,`.,.........`.```...`.`.``.`..``.,.......:::::;:::;:::,                               `` ``
`````````````````````````````````.```````````````` :;:;;;;:;;::;',::::,,,::.``........`....`.`..`...,..`.,,........,;::::;::;::::,    ` ``                       ``````
````````````````````````````````````````````````````,;;;:;;;::;::::::,.,,,,...,..,.......................`.`......::::;:::::::::`                 ` `````       ```````
``````````````````````````````````````````````````````':;;:;;::,::,,,,,........`.`.``....```..`.``........,.,..,::::;:::;::::::                               `````````
``````````````````````````````````````````````````````.;;:;:,,:,,,,,,,.......,.`.........```........`.,...,..,:::::;:;;;:::::;   ` `                         ``````````
``````````````````````````````````````````````````````` `,,,,,.```,:,,.,,.,.................`....,..,...,,.,,;:::::;:;::;:;:;                              ````````````
`````````````````````````````````````````````````````````` ::,,,:::,,,,,,:.,,:,.,,,.,:,,.,,.....`.,.,,:,.,,;::::;:;;;:;;;;;' `                `       ``  `````````````
````````````````````````````````````````````````````````.````  ,::::;:::;::,,,,,,,.,,,,:,,,....,,,,,:,,,:;::::::;;;;;;;;;;'  `                 `     ``  ` ````````````
````````````````````````````````````````````````````````````````` ,;::::,:,,,.,,,,,.,::,,,,,,,,,:,:,,:::;::;;;;;;:;;'''++@ `                         `` `` ````````````
``````````````````````````````````````````````````````````````````` `;::::,,,.:,,:,,,;:;:,:,,,,,;.,:::;;;;;;:'+++++'+'++@                      ``    `  ````` `````````
``````````````````````````````````````````````````````````````````````::,:,,,,,,,,,,,:;:::::::;`,:::;;;:;##++++++++++++@ `              ``  `    `````  `````````` ````
`````````````````````````````````````````````````````````````````````````,:::,,,.,,,,;;;:::;: ::;::;+##++++++++++++#+''  ``             `       ``` `   ```````````````
``````````````````````````````````````````````````````````````````````` #+#+::,,,..::;;;;:; ,,;+##+++++++++++++#+'++''       `  `         ```  ``````   ``````` ```````
if you like it, leave a tip: 1P675gRxNwhFXgfuDu5yXwGDgwLDbXNJqz    BM-2cUDAqyqcnksx7YDtgu2y72xDxcRjPeYfo
[1] http://cryptograffiti.info/
[2] http://cryptograffiti.info/?txnr=3334
[3] https://www.blocktrail.com/BTC/tx/0fc0c50e410b62ee3a316135711116db6b4e728841c976f29ab85e2a41e0dcc3

That is very expensive and lame way of storing data unless the data is very important.

Yeah seems pretty stupid to me. The best use would be to store hashes that convert to anything. A hash can convert into an entire book for example, and you can store the hash string for peanuts.
spazzdla
Legendary
*
Offline Offline

Activity: 1722
Merit: 1000


View Profile
August 05, 2015, 05:02:14 PM
 #9

I watched a video and it mentioned "anything can be stored on the blockchain".  My question is if anything can be stored there then what will stop the blockchain size getting so big that nobody could store a copy of it?
Max block size cap is 1mb, thus it can only grow at 1mb / 10 min.
RawDog
Legendary
*
Offline Offline

Activity: 1596
Merit: 1026



View Profile WWW
August 05, 2015, 05:28:37 PM
 #10

Yeah seems pretty stupid to me. The best use would be to store hashes that convert to anything. A hash can convert into an entire book for example, and you can store the hash string for peanuts.
Pretty stupid is that you don't understand hashes.  A hash - doesn't 'convert into an entire book' - or anything. 

How did the community get so many dumbasses?

*Image Removed* *Expletive Removed*  *Obsenity Removed*
What's going on - Slavetards?!!!
Watch my videos: https://www.youtube.com/watch?v=oE43M1Z8Iew  1FuckYouc6zrtHbnqcHdhrSVhcxgpJgfds
hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 259

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
August 05, 2015, 05:44:37 PM
 #11

Yeah seems pretty stupid to me. The best use would be to store hashes that convert to anything. A hash can convert into an entire book for example, and you can store the hash string for peanuts.
Pretty stupid is that you don't understand hashes.  A hash - doesn't 'convert into an entire book' - or anything. 

How did the community get so many dumbasses?

One thing to remember is that as Bitcoin is adopted more in the mainstream, there are going to be more people that don't understand basic crypto. Sad? Yes. Inevitable? Also yes.

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
jonald_fyookball
Legendary
*
Offline Offline

Activity: 1302
Merit: 1004


Core dev leaves me neg feedback #abuse #political


View Profile
August 05, 2015, 09:18:18 PM
 #12

Yeah seems pretty stupid to me. The best use would be to store hashes that convert to anything. A hash can convert into an entire book for example, and you can store the hash string for peanuts.
Pretty stupid is that you don't understand hashes.  A hash - doesn't 'convert into an entire book' - or anything.  

How did the community get so many dumbasses?

lol.  Well no need to be rude... but you're right.

For the uninitiated:

Hashes are one way functions.  You can convert a book to a hash,
but you cannot convert a hash to anything.  You can only use to
verify.

P.S.  Rawdog are you "part of the community" now?  Weren't
you on Youtube telling people to stay away?

pereira4
Legendary
*
Offline Offline

Activity: 1610
Merit: 1183


View Profile
August 05, 2015, 09:45:01 PM
 #13

The future of decentralized storage is something like Maidsafe, it will be as easy as dropbox to use, just drag and drop and you are set, your files are spread across the globe and anonymously.
RonPaulBTC
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
August 05, 2015, 09:55:17 PM
 #14

Yeah seems pretty stupid to me. The best use would be to store hashes that convert to anything. A hash can convert into an entire book for example, and you can store the hash string for peanuts.
Pretty stupid is that you don't understand hashes.  A hash - doesn't 'convert into an entire book' - or anything. 

How did the community get so many dumbasses?
   

It should be noted - Sha256 does not encrypt the data/content of your string, it instead generates a fixed size hash, using your input string as a seed.

This being the case - He got the idea wrong but he is right in the sense that I could feed in the content of an encyclopedia, which would be easily 100 mb in size of text, but the resulting string would still be 256 bits in size, but its impossible for you to reverse the hash, to get that 100mb of data back out of the fixed size hash, the best you can do, is try to guess / compute the seed data, hash, and then see if the hash matches the hash your trying to break.

If you could reverse the hash, you would have the greatest form of compression to date.

In any case, no need to be rude for no reason, we are here to learn, probably not even a native speaker. Now get your frustrated ugly bald head out of this forum and go back to being wrong on Youtube.
hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 259

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
August 05, 2015, 10:19:19 PM
 #15

If you could reverse the hash, you would have the greatest form of compression to date.

It wouldn't be compression. There would be plenty of other inputs of equal and shorter length than your encyclopedia, that theoretically would be a match. It would mean crypto is broken, but it would be by no means a reversible compression algorithm.

Additionally, it should be noted that a hash is also key to proving that a piece of data existed. If I need to prove that I came up with a certain invention today, I'd write up an unambiguous description (including a possible random nonce at the end, and/or my name), hash it, and record the exact description that I hashed. I then push the hash to the blockchain (which implicitly timestamps it by way of including it in a block). This can be done using an OP_RETURN (truncating if hash is longer than 320 bits), or by creating a brainwallet from the hash and sending a small amount of coin to that wallet. In the case of the brainwallet, it's actually a COMPOUND hash (sha256 for private exponent, point multiplication to public key, and RIPEMD HASH160 to address).

If I then need to prove that I had this invention at this exact time (for example in court), I simply publish the description (including random nonce and my name, exactly as they were in the input to the hash). Anyone can then hash that description, find the txn that included its hash, and be assured that I had access to that data on that day.

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
lyf208617
Jr. Member
*
Offline Offline

Activity: 59
Merit: 10


View Profile
August 06, 2015, 02:59:00 AM
 #16

it is too expensive if you store large file on the blockchain

How to Get BTC (http://howtogetbtc.com/)
S4VV4S
Hero Member
*****
Offline Offline

Activity: 1582
Merit: 502


View Profile
August 06, 2015, 09:24:55 AM
 #17

If you could reverse the hash, you would have the greatest form of compression to date.

It wouldn't be compression. There would be plenty of other inputs of equal and shorter length than your encyclopedia, that theoretically would be a match. It would mean crypto is broken, but it would be by no means a reversible compression algorithm.

Additionally, it should be noted that a hash is also key to proving that a piece of data existed. If I need to prove that I came up with a certain invention today, I'd write up an unambiguous description (including a possible random nonce at the end, and/or my name), hash it, and record the exact description that I hashed. I then push the hash to the blockchain (which implicitly timestamps it by way of including it in a block). This can be done using an OP_RETURN (truncating if hash is longer than 320 bits), or by creating a brainwallet from the hash and sending a small amount of coin to that wallet. In the case of the brainwallet, it's actually a COMPOUND hash (sha256 for private exponent, point multiplication to public key, and RIPEMD HASH160 to address).

If I then need to prove that I had this invention at this exact time (for example in court), I simply publish the description (including random nonce and my name, exactly as they were in the input to the hash). Anyone can then hash that description, find the txn that included its hash, and be assured that I had access to that data on that day.

What you describe about using brainwallets to timestamp data is exactly what is being done at https://bitsig.io

Well, it seems that someone has submitted the answers to the Rushwallet contest.
I do not understand why, but it's there.
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!