Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: MatthewLM on September 13, 2012, 10:31:10 PM



Title: [ANN] cbitcoin 1.0 Alpha 4 Released.
Post by: MatthewLM on September 13, 2012, 10:31:10 PM
Download cbitcoin 1.0-alpha-4 here: http://cbitcoin.com/

cbitcoin is an open-source bitcoin library written in C99. It is designed to make developing bitcoin applications easier. It provides a set of fundamental bitcoin functions which allow developers to create a diverse range of bitcoin software. This library will be the foundation for a new bitcoin client currently under the code-name BitEagle.

I've posted this in "Bitcoin Discussion" with a new topic because I would like to appeal for funding from the wider community. Luckily one person has volunteered to provide some design elements for cbitcoin (which is pending), but there will almost certainly be other costs involved. Unless I can find volunteers, I will need to pay for some programming work which I am unable to complete personally. I may need to fund some additional design work and I may also use some donations to offer bounties for those that can find critical bugs. Excess donations will likely go towards projects that use cbitcoin, including BitEagle which will involve a lot more work.

If anyone would like to support the project please donate to -> 1D5A1q5d192j5gYuWiP3CSE5fcaaZxe6E9

I would also appreciate if anyone can aid with the testing of cbitcoin or make improvements to the code. Contributions can be made through the github repository: https://github.com/MatthewLM/cbitcoin/ and feedback or questions can be sent to cbitcoin@thelibertyportal.com. Contributors will have their name added to the README and website.

I welcome comments and questions.

Thank you.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: grondilu on September 13, 2012, 11:02:59 PM

I'm quite amazed by how fast you've been coding this.  Congrats.

Do you support IRC bootstrapping in the test network ?  I've searched occurrences of "irc" in your code and I've found nothing relevant.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: MatthewLM on September 13, 2012, 11:11:48 PM
No, there is no IRC bootstrapping. Developers that use the library will need to specify starting network addresses and cbitcoin will take care of the communication for these peers.

cbitcoin also contains some compatibility issues with the test network because the test network has some different behaviour to the live network which I'll get around to fixing. I should have done that before I considered it alpha really. Oh well.

I'm quite amazed by how fast you've been coding this.  Congrats.

Thanks, hopefully things will progress faster considering I've learned a lot but testing is often the most tedious part.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: grondilu on September 13, 2012, 11:19:16 PM
Thanks, hopefully things will progress faster considering I've learned a lot but testing is often the most tedious part.

You know what would be cool?   Some kind of a bitcoin standard test-bench, with predefined addresses, keys, transactions and so on, that all clients in all languages could use as a reference for testing.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: paulie_w on September 13, 2012, 11:21:00 PM
congrats for following through on this!


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: MatthewLM on September 13, 2012, 11:28:45 PM
I did take many of the script tests from the C++ bitcoin client and I should look at the other tests to add to mine, though sometimes it complicated trying to copy from C++ client.  

congrats for following through on this!

:) Still got a lot to do, especially with BitEagle but I'll get through it all... eventually. I've got some exciting stuff planned.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: hazek on September 13, 2012, 11:58:10 PM
Cool stuff, keep it up!

Btw quick question, is BitEagle going to be a standalone client or a light client?


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Severian on September 14, 2012, 12:00:18 AM
Donation sent. This is an excellent project. I'm amazed that people have btc to throw into ponzis but none for worthy projects that would benefit their own bitcoin holdings in the long term.

Imagine what 500,000 bitcoins would have built?


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: grondilu on September 14, 2012, 12:03:54 AM
Donation sent. This is an excellent project. I'm amazed that people have btc to throw into ponzis but none for worthy projects that would benefit their own bitcoin holdings in the long term.

Imagine what 500,000 bitcoins would have built?

Damn it you make me feel guilty about not having given anything already.  I'll add half a bitcoin.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Severian on September 14, 2012, 12:06:12 AM
Damn it you make me feel guilty

Good.  :)


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: dissipate on September 14, 2012, 12:11:44 AM
Donation sent. This is an excellent project. I'm amazed that people have btc to throw into ponzis but none for worthy projects that would benefit their own bitcoin holdings in the long term.

Imagine what 500,000 bitcoins would have built?

I'm going to go out on a limb here and say that many of the people involved in the Ponzi schemes are not involved with the Bitcoin community at all. They are simply buying BTC to get in on the schemes.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: MatthewLM on September 14, 2012, 12:13:37 AM
Cool stuff, keep it up!

Btw quick question, is BitEagle going to be a standalone client or a light client?

BitEagle will use SPV combined with a server-side full node. The server is there to behave as a trusted node to protect against attacks against your internet connection. Unlike some people have misbelieved this does not mean the security depends on the server because the client software will still do SPV validation on the bitcoin network. I will release the server-side full validation code as open-source so someone could make a fully validating client with it. With BitEagle I'm aiming to provide an intelligent mixture of security and convenience. More details will follow at a later date since it's still quite conceptual at this stage.

Donation sent. This is an excellent project.

Thank you very much for the donation. And I hope to ensure that this is a worthy project. ;-)

I'll add half a bitcoin.

Thank you!


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Severian on September 14, 2012, 12:14:15 AM
I'm going to go out on a limb here and say that many of the people involved in the Ponzi schemes are not involved with the Bitcoin community at all.

I don't believe you'd have to go out too far on the limb.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: maaku on September 14, 2012, 02:36:02 AM
Amazing work @MatthewLM, expect some pull-requests coming in :)


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: MatthewLM on September 14, 2012, 01:52:58 PM
Amazing work @MatthewLM, expect some pull-requests coming in :)

Thanks. Contributions are very much welcome. Look out for "???" in comments. I put "???" wherever I'm unsure about something or I think something could be improved. Be wary of the documentation which is incomplete and wrong is areas (Contributions to improved documentation would be helpful).


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: crazy_rabbit on September 14, 2012, 02:02:57 PM
Thanks, hopefully things will progress faster considering I've learned a lot but testing is often the most tedious part.

You know what would be cool?   Some kind of a bitcoin standard test-bench, with predefined addresses, keys, transactions and so on, that all clients in all languages could use as a reference for testing.

good idea!


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Atlas on September 14, 2012, 02:03:04 PM
Do you plan on displacing Bitcoind with your implementation?


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: MatthewLM on September 14, 2012, 07:23:44 PM
BitEagle will be an alternative client. If people want to use it in place of bitcoind (There should be a library and daemon interface) they can, but if they want to keep bitcoind then that's up to them. So "displace" isn't the word.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Atlas on September 14, 2012, 07:25:05 PM
BitEagle will be an alternative client. If people want to use it in place of bitcoind (There should be a library and daemon interface) they can, but if they want to keep bitcoind then that's up to them. So "displace" isn't the word.

Feel free to be better than what's out there. Ha.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Evolvex on September 14, 2012, 08:27:40 PM
a little bit of btc love coming your way mate - I don't even develop but I can see the benefit of this being in the community, so thanks for spending the time on it.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: deadserious on September 14, 2012, 11:02:36 PM
cbitcoin is an open-source bitcoin library written in C99.

is it a Dynamic Shared library (dso/dylib/dll) ?


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Remember remember the 5th of November on September 15, 2012, 12:37:24 AM
Well, just wanted to come back and say that libevent appears to officially support Windows. Hell, there was even a libmemcached v0.42 port for Windows and then I was able to port PushPool to Windows.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: MatthewLM on September 15, 2012, 03:36:26 PM
a little bit of btc love coming your way mate - I don't even develop but I can see the benefit of this being in the community, so thanks for spending the time on it.

Thank you.

is it a Dynamic Shared library (dso/dylib/dll) ?

The build script compiles shared/dynamic libraries for Linux and OSX. There is no Windows support yet. You can build or use the source code any way you want of-course.

Well, just wanted to come back and say that libevent appears to officially support Windows. Hell, there was even a libmemcached v0.42 port for Windows and then I was able to port PushPool to Windows.

Though cbitcoin will likely not be windows friendly. It would be good for any Windows developers to see if they can get it to work in Windows. I understand that the Windows C compiler doesn't support C99 so that will be a problem, though the code can be modified for C89 to compile for Windows or some other compiler can be used if it exists.



Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: evoorhees on September 15, 2012, 05:26:24 PM
Small donation sent, keep up the great work!


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: mcorlett on September 15, 2012, 05:28:42 PM
Nice work, and congratulations on the release!


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: MatthewLM on September 15, 2012, 06:53:54 PM
Thanks to both of you.

I'm working on the full validating node software now. Somewhat soon I should commit some code to https://github.com/MatthewLM/BitEagle-FullNode This should aid with the testing of cbitcoin as I code the components for BitEagle.


Title: Re: [ANN] cbitcoin 1.0 Alpha 1 Released.
Post by: Atlas on September 15, 2012, 06:57:39 PM
a little bit of btc love coming your way mate - I don't even develop but I can see the benefit of this being in the community, so thanks for spending the time on it.

Thank you.

is it a Dynamic Shared library (dso/dylib/dll) ?

The build script compiles shared/dynamic libraries for Linux and OSX. There is no Windows support yet. You can build or use the source code any way you want of-course.

Well, just wanted to come back and say that libevent appears to officially support Windows. Hell, there was even a libmemcached v0.42 port for Windows and then I was able to port PushPool to Windows.

Though cbitcoin will likely not be windows friendly.


I don't think people should be storing and accessing Bitcoins through a Windows operating system anyways, especially with an NSA backdoor.


Title: Re: [ANN] cbitcoin 1.0 Alpha 2 Released.
Post by: MatthewLM on September 17, 2012, 11:41:10 AM
1.0 Alpha 2 is now available for download: http://cbitcoin.com.

I removed some include directives that should not be there. I fixed some warnings by changing the services bitfield to CBVersionServices and fixed the error handling in the CBNetworkCommunicator code. See commits here: https://github.com/MatthewLM/cbitcoin/commits/alpha


Title: Re: [ANN] cbitcoin 1.0 Alpha 2 Released.
Post by: kangasbros on September 17, 2012, 01:03:43 PM
BTC sent. Very good project, especially as people have been complaining about the satoshi client for ages...


Title: Re: [ANN] cbitcoin 1.0 Alpha 2 Released.
Post by: MatthewLM on September 17, 2012, 01:33:31 PM
Thank you very much for the donation.

people have been complaining about the satoshi client for ages...

I cannot say I'll be able to satisfy every need and complaint but I am all ears to suggestions and comments about bitcoin.


Title: Re: [ANN] cbitcoin 1.0 Alpha 2 Released.
Post by: finkleshnorts on September 17, 2012, 02:04:21 PM
Very cool, 0.5 BTC (plus some random decimals to clean up my wallet) sent.


Title: Re: [ANN] cbitcoin 1.0 Alpha 2 Released.
Post by: MatthewLM on September 17, 2012, 07:32:27 PM
Thanks, I'm sure those random digits will come in handy.  ;D

I've got some code up for the fully validating node software: https://github.com/MatthewLM/BitEagle-FullNode

Hopefully that will come along smoothly.


Title: Re: [ANN] cbitcoin 1.0 Alpha 3 Released.
Post by: MatthewLM on September 22, 2012, 07:24:59 PM
Alpha 3 is released. In this release the CBAddressManager test is fixed for new version numbers, the README has been improved, an old copyright notice has been removed since it is not needed and a problem with the script interpreter was fixed.


Title: Re: [ANN] cbitcoin 1.0 Alpha 3 Released.
Post by: grondilu on September 29, 2012, 01:51:02 PM
Damn.  Just noticed this thread is forked.  What the heck I'll cross-post:

To compile your libraries on my 32-bits, debian GNU/linux host, I had to change line 94 of BUILD.py (why not use a makefile, btw?):

Code:
cflags += " -m64"
into:
Code:
cflags += " -m32"

Also, in src/structures/CBBigInt/CBBigInt.c, line 43:

Code:
	for (u_int8_t x = a.length - 1;; x--) { 
into:
Code:
	for (uint8_t x = a.length - 1;; x--) { 

Then all compilation seems fine, but linking failed:
LINKING ./build/bin/libcbitcoin.so
gcc: error: unrecognized command line option ‘-flat_namespace’

so I just removed this option.  I hope it's ok.

I want to try to make an interface to this in Perl6, using the NativeCall (https://github.com/jnthn/zavolaj/) module.  If I succeed, it would be really cool.





Title: Re: [ANN] cbitcoin 1.0 Alpha 3 Released.
Post by: MatthewLM on September 29, 2012, 02:52:11 PM
I replied in the other thread (https://bitcointalk.org/index.php?topic=80521.msg1231003#msg1231003). The reason I made a thread here is to try and obtain interest from non technical people who do not look at the "Development & Technical Discussion" forum. I don't know what to do really. Should the threads be merged into one thread on one of the forums? I guess that's up to any of the moderators if they so choose.


Title: Re: [ANN] cbitcoin 1.0 Alpha 3 Released.
Post by: WikileaksDude on September 29, 2012, 03:41:43 PM
0.2 bitcoins sent! will be looking to donate much more next month!

Keep it up  :D


Title: Re: [ANN] cbitcoin 1.0 Alpha 3 Released.
Post by: MatthewLM on September 29, 2012, 05:23:49 PM
0.2 bitcoins sent! will be looking to donate much more next month!

Keep it up  :D

Thank you very much.  :)


Title: Re: [ANN] cbitcoin 1.0 Alpha 3 Released.
Post by: hazek on September 29, 2012, 08:52:59 PM
You know what would help to raise you more money MatthewLM? A nice little PR post where you could explain a little bit more about who you are, what are your goals and a donation goal. I'm sure people would be really generous if you could properly reach their awareness. Have you thought about any of this? Would you like some help with that?


Title: Re: [ANN] cbitcoin 1.0 Alpha 3 Released.
Post by: MatthewLM on September 30, 2012, 01:48:05 PM
I replied to Hazek in a PM and said I need to think more about and plan for the direction and organisation of cbitcoin over the next few weeks. I'm willing to hear any general suggestions people have about the project in the meantime, so do not be hesitant to reply in this thread, PM me or email cbitcoin@thelibertyportal.com if you have anything to say or if you'd like to be involved in any way.

I hope to have more details about my plans reasonably soon, so subscribe to this thread to keep updated.


Title: Re: [ANN] cbitcoin 1.0 Alpha 4 Released.
Post by: MatthewLM on October 05, 2012, 08:50:16 PM
1.0 Alpha 4 is now available to download: http://cbitcoin.com/

This release fixes issues with the CBBigInt code, an issue with compilation and an issue with CBSubScriptRemoveSignature.


Title: Re: [ANN] cbitcoin 1.0 Alpha 4 Released.
Post by: MatthewLM on October 19, 2012, 07:22:13 PM
cbitcoin 1.0 is discontinued as many new features and improvements are in development for cbitcoin 2.0 and all work will go towards that from now on.


Title: Re: [ANN] cbitcoin 1.0 Alpha 4 Released.
Post by: paulie_w on January 23, 2013, 07:27:09 AM
matthew how is your work going?


Title: Re: [ANN] cbitcoin 1.0 Alpha 4 Released.
Post by: MatthewLM on January 24, 2013, 04:39:15 PM
It's coming along piece by piece. I'm currently improving some of the old code in preparation for writing the remaining network node code. Recently I completed the implementation of the full validator. If all goes well then I should have everything implemented (Not tested) by a couple of months, but I am quite busy with other things and I can't be sure of anything.

Here is the new topic: https://bitcointalk.org/index.php?topic=123488.msg1457871#msg1457871

People can watch the github repository to keep updated: https://github.com/MatthewLM/cbitcoin/