Bitcoin Forum
May 10, 2024, 03:20:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Using Bitcoin as a LIBRARY (in C++)  (Read 1660 times)
fellowtraveler (OP)
Sr. Member
****
Offline Offline

Activity: 440
Merit: 250


View Profile
August 15, 2011, 10:47:25 PM
 #1

Hi all,

I need to add some Bitcoin functionality to OT (to enable low-trust servers, since the current crop of servers seems to get hacked every 2 months...)

I do NOT want the full Bitcoin functionality, I just need to be able to do a few basic things, and it would be nice to just link Bitcoin into OT as a library.

Requirements:

1) Should be able to create my own Bitcoin addresses (for receiving payments.)
2) Should be able to check the balance at a specific address.
3) Should be able to send a Bitcoin payment from one of my addresses (to a target address.)

CAN ONE OF YOU PLEASE PROVIDE ME SUCH A LIBRARY? Preferably I just link the library and make a few function calls -- and that's it!

Presumably the code would be a subset of the existing Bitcoin client.

-----------------------------------

One more thing:  I do NOT need this through the RPC JSON interface, which I already have working. Rather, I need this to be C code that I can link directly to my existing C code, without having to also separately run the Bitcoin client.

Please show me some sample code, or point me in the right direction.

As a reward for this, I will provide open-source low-trust servers, which you can use without having to worry about hackers and thieves (like happened recently at MtGox and MyBitcoin.)

-Fellow Traveler



co-founder, Monetas
creator, Open-Transactions
1715311254
Hero Member
*
Offline Offline

Posts: 1715311254

View Profile Personal Message (Offline)

Ignore
1715311254
Reply with quote  #2

1715311254
Report to moderator
1715311254
Hero Member
*
Offline Offline

Posts: 1715311254

View Profile Personal Message (Offline)

Ignore
1715311254
Reply with quote  #2

1715311254
Report to moderator
1715311254
Hero Member
*
Offline Offline

Posts: 1715311254

View Profile Personal Message (Offline)

Ignore
1715311254
Reply with quote  #2

1715311254
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715311254
Hero Member
*
Offline Offline

Posts: 1715311254

View Profile Personal Message (Offline)

Ignore
1715311254
Reply with quote  #2

1715311254
Report to moderator
w1R903
Full Member
***
Offline Offline

Activity: 218
Merit: 100


View Profile
August 16, 2011, 01:53:29 AM
 #2

Check out genjix's libbitcoin: https://gitorious.org/libbitcoin

It's not complete yet, but I believe he's making quick progress.  It may actually have everything you need now.

I've been watching open transactions with interest -- very interesting work and very complementary to Bitcoin.   Thank you.

4096R/F5EA0017
jimbobway
Legendary
*
Offline Offline

Activity: 1304
Merit: 1014



View Profile
August 16, 2011, 02:32:08 AM
 #3

What genjix is doing is very impressive so far...this could be "the" library.
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!