mb300sd (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
Drunk Posts
|
|
March 01, 2013, 08:52:03 PM |
|
https://github.com/mb300sd/Bitcoin-Tool/Bitcoin-Tool ============
Collection of bitcoin related classes, can be used to impliment a variety of functions.
* Work with addresses, public and private keys * Generate and sign transactions * Connect over P2P to a bitcoin node * Easily generate and evaulate custom scripts * Decode and encode blocks, transactions, scripts, network messages * Parse blockchain for data
Program.cs contains test code/me playing around/etc and usually contains commented out code that can be used for examples.
I wrote this mostly as a learning exercise and added more out of boredom. No particular goal with this other than experimenting. Any interesting/fun suggestions might get written.
|
1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
|
|
|
|
|
|
|
|
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
Insu Dra
|
|
March 03, 2013, 11:06:58 AM |
|
Interesting, definitely some classes in there that can save me some time and trouble. license ?
|
"drugs, guns, and gambling for anyone and everyone!"
|
|
|
mb300sd (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
Drunk Posts
|
|
March 05, 2013, 08:42:56 PM Last edit: March 07, 2013, 05:46:08 AM by mb300sd |
|
Interesting, definitely some classes in there that can save me some time and trouble. license ?
dunno, lets say gpl for now I've read somewhere that the devs are moving away from BDB for wallet.dat soon. I'll probably hold off for now.
|
1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
|
|
|
mb300sd (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
Drunk Posts
|
|
March 08, 2013, 05:05:34 PM |
|
Couple updates.. Wrote some code that computes the unspent TxOut set, and calculates the balances of all addresses. https://github.com/mb300sd/Bitcoin-Tool/tree/master/Bitcoin%20Tool/AppsThis is getting pretty close to becoming a lite client. I'll probably write network downloading of new blocks and updating of the utxo set as soon as I figure out how to handle orphaned blocks. I'm working on a custom transaction gui tool that will use the unspent output database, transaction creation, and broadcast functionality.
|
1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
|
|
|
swordfish6975
|
|
June 27, 2013, 12:56:40 PM Last edit: June 28, 2013, 01:39:09 PM by swordfish6975 |
|
when generating the utxo.dat it only looks at blk00000.dat should it look at all the blk0000XX.dat files? fs.Position is equal fs.Length ( link) at the end of the blk00000.dat so it returns null and then goes on to write out the utxo.dat (128mb) with only the data from blk00000.dat Edit: I modified the code and got it working, the data now matches blockchain.info
|
|
|
|
qualalol
Newbie
Offline
Activity: 57
Merit: 0
|
|
June 27, 2013, 01:23:58 PM |
|
Interesting, definitely some classes in there that can save me some time and trouble. license ?
dunno, lets say gpl for now If you want people to actually be able to use it you'll need to put the license on Github, e.g. with GPL you need to supply a copy of the gpl, and should add headers to the file just to make things clear (See https://www.gnu.org/licenses/gpl-3.0.html ). Without clear licensing no responsible developer will touch the code with a bargepole. (GPL is a fairly safe first choice -- all improvements have to be rereleased as source code, and you can always switch to more permissive licences later should you wish.)
|
|
|
|
slothbag
|
|
September 18, 2013, 12:11:24 PM |
|
Thanks for the library mb300sd. It's been a big help for me.. I see you already have sign & verify for transactions, do you think you could add message signing & verification like in bitcoin-qt? I got as far as adding the "Magic String", double SHA256 hashing the data and then ECDSA signing it.. but the ECKey.recoverFromSignature part has me stumped. (i'm comparing to bitoinj). Willing to pay 1 BTC for it
|
|
|
|
|