Bitcoin Forum
May 24, 2024, 08:40:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Upload download data from blockchain  (Read 1120 times)
luckyknc (OP)
Full Member
***
Offline Offline

Activity: 189
Merit: 101



View Profile
June 05, 2016, 12:36:20 PM
Merited by ABCbits (1)
 #1

I found this http://www.righto.com/2014/02/ascii-bernanke-wikileaks-photographs.html#ref13 article.

It describes some techniques to upload/download data from blockchain, but the scripts referred are not working.
I know the default to upload custom data is op_return but i want to try multisig too.

https://gist.github.com/shirriff/64f48fa09a61b56ffcf9#file-bitcoin-file-downloader-py
https://gist.github.com/shirriff/bfc4df70a02732493a28#file-bitcoin-insertion-tool-py

Anyone know how to modify these to work? they seem deprecated. I am willing to send a tip!

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
June 06, 2016, 09:49:47 AM
 #2

https://github.com/petertodd/python-bitcoinlib/blob/master/examples/publish-text.py
luckyknc (OP)
Full Member
***
Offline Offline

Activity: 189
Merit: 101



View Profile
June 06, 2016, 11:51:36 AM
 #3

That uses op_return...i am searching to modify the above scripts to work with standard output and multisig

luckyknc (OP)
Full Member
***
Offline Offline

Activity: 189
Merit: 101



View Profile
June 08, 2016, 07:03:44 PM
 #4

Noone? tip inside <-- Smiley

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
June 08, 2016, 07:25:22 PM
 #5

IIRC Bare multisig is not standard, but using OP_RETURN is. Using bare multisig for this will burn Bitcoin.

The basic idea is to break up your data into 65 byte chunks, which are the "public keys" as interpreted by Bitconi's scripting system. Then you just make the output in the multisig format,
Code:
OP_1 <pubkey> <pubkey> ... OP_X OP_CHECKMULTISIG
where OP_X is the number of <pubkeys>. You can only go up to OP_15.

luckyknc (OP)
Full Member
***
Offline Offline

Activity: 189
Merit: 101



View Profile
June 09, 2016, 09:17:17 AM
 #6

IIRC Bare multisig is not standard, but using OP_RETURN is. Using bare multisig for this will burn Bitcoin.

The basic idea is to break up your data into 65 byte chunks, which are the "public keys" as interpreted by Bitconi's scripting system. Then you just make the output in the multisig format,
Code:
OP_1 <pubkey> <pubkey> ... OP_X OP_CHECKMULTISIG
where OP_X is the number of <pubkeys>. You can only go up to OP_15.

Thanks i know the technical background but i need someone to modify the above scripts to work!

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
June 09, 2016, 09:37:27 AM
 #7

Thanks i know the technical background but i need someone to modify the above scripts to work!
Why not to use https://github.com/petertodd/python-bitcoinlib/blob/master/examples/publish-text.py ?
It doesn't use op_return technique
luckyknc (OP)
Full Member
***
Offline Offline

Activity: 189
Merit: 101



View Profile
June 09, 2016, 11:22:45 AM
Last edit: June 09, 2016, 12:05:04 PM by luckyknc
 #8

Thanks i know the technical background but i need someone to modify the above scripts to work!
Why not to use https://github.com/petertodd/python-bitcoinlib/blob/master/examples/publish-text.py ?
It doesn't use op_return technique

Oh no? So why its says "@petertodd petertodd Change publish-text.py txouts to be a bare OP_RETURN" ? Also the point is to have the scripts to parse the blockchain for data and to upload.

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
June 09, 2016, 01:33:15 PM
 #9

Oh no? So why its says "@petertodd petertodd Change publish-text.py txouts to be a bare OP_RETURN" ?
Because it is not possible to create a transaction without outputs.
Publishing data is not a classic transaction which transfers some value from person A to person B.

Quote
Also the point is to have the scripts to parse the blockchain for data and to upload.
I can create such 'downloader' for @petertodd's 'uploader'
Unfortunately, I prefer programming in C++, not in python.

Also have a look here: https://bitcointalk.org/index.php?topic=1023190.5
luckyknc (OP)
Full Member
***
Offline Offline

Activity: 189
Merit: 101



View Profile
June 13, 2016, 07:32:35 AM
 #10

Anyone for python?

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!