Author

Topic: C# Bitcoin-Tool, variety of uses. (Read 9781 times)

sr. member
Activity: 369
Merit: 250
September 18, 2013, 07:11:24 AM
#8
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 Smiley
jr. member
Activity: 57
Merit: 1
June 27, 2013, 08:23:58 AM
#7
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.)
hero member
Activity: 721
Merit: 523
June 27, 2013, 07:56:40 AM
#6
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
legendary
Activity: 1260
Merit: 1000
Drunk Posts
March 08, 2013, 12:05:34 PM
#5
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/Apps

This 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.
legendary
Activity: 1260
Merit: 1000
Drunk Posts
March 05, 2013, 03:42:56 PM
#4
Interesting, definitely some classes in there that can save me some time and trouble. license ?

dunno, lets say gpl for now

Any interesting/fun suggestions might get written.

Any desire to have it read a wallet.dat?

Here's a resource on that:
 - http://bitcoin.stackexchange.com/a/849/153

I've read somewhere that the devs are moving away from BDB for wallet.dat soon. I'll probably hold off for now.
full member
Activity: 182
Merit: 100
March 03, 2013, 06:06:58 AM
#3
Interesting, definitely some classes in there that can save me some time and trouble. license ?
legendary
Activity: 2506
Merit: 1010
March 01, 2013, 10:49:21 PM
#2
Any interesting/fun suggestions might get written.

Any desire to have it read a wallet.dat?

Here's a resource on that:
 - http://bitcoin.stackexchange.com/a/849/153
legendary
Activity: 1260
Merit: 1000
Drunk Posts
March 01, 2013, 03:52:03 PM
#1
https://github.com/mb300sd/Bitcoin-Tool/

Code:
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.
Jump to: