Bitcoin Forum
April 19, 2024, 08:15:14 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: New thin SPV client for linux/mac: bitc  (Read 1639 times)
fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 23, 2014, 02:42:57 PM
 #1

Folks,

I've been working on & off on a lightweight bitcoin client. It's all command line for now and it supports linux & mac platforms. It doesn't re-use any existing bitcoin library, my original intention was to write a dummy client to better understand the underlying protocol, so I wrote my own.

From the README:

bitc is a thin SPV bitcoin client.

  • 100% lean C code,
  • support for linux and mac platforms,
  • console based: uses ncurses,
  • home grown async network i/o stack,
  • home grown poll loop,
  • home grown bitcoin engine,
  • supports encrypted wallets,
  • multi-threaded,
  • valgrind/AddressSanitizer clean.

There is still a fairly lengthy TODO list but the client is somewhat complete at this point and certainly usable, so I plan to put it on github sometime in the next few weeks.
Before I do so I was wondering: what would you like to see in an SPV bitcoin client for well.. geeks?
Cheers.

-M

1713557714
Hero Member
*
Offline Offline

Posts: 1713557714

View Profile Personal Message (Offline)

Ignore
1713557714
Reply with quote  #2

1713557714
Report to moderator
1713557714
Hero Member
*
Offline Offline

Posts: 1713557714

View Profile Personal Message (Offline)

Ignore
1713557714
Reply with quote  #2

1713557714
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 23, 2014, 02:53:47 PM
 #2

looks great, would adding support for a few other altcoins be major work? I don't think there is a wallet out there that supports multi coins yet.
fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 23, 2014, 03:01:56 PM
Last edit: January 23, 2014, 03:43:47 PM by fnsa1
 #3

looks great, would adding support for a few other altcoins be major work? I don't think there is a wallet out there that supports multi coins yet.

Thanks for the feedback. Interesting. I don't know much about altcoins, but if they support SPV clients it shouldn't be much work to build say the litecoin peer of this app. Now having a single client be able to support several flavors of digital coins would be quite a bit more work.

-M
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
January 23, 2014, 03:21:09 PM
 #4

Interesting. Well, I'm not sure I'll use a none-GUI version, but if it's for geeks, it better have Coin Control, some sort of Raw Transactions, Ability to set a fee, and a compiled console version for Windows. ehehehhe.

fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 23, 2014, 03:31:37 PM
 #5

By 'coin control', you mean the ability to select the coins used when initiating a tx? If so, having a generic UI for this is going to be kind of tough, but implementing policies (randomize, oldest first, etc.) is doable. Being able to broadcast a raw transaction is an hour of my time; setting an arbitrary fee is one line change.

Windows? Most of the low-level APIs have already been abstracted away, but the biggy will be the UI/ncurses. Maybe cygwin has a port for it? Not sure, I would have to investigate.

-M
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
January 23, 2014, 03:33:31 PM
 #6

Yeah, I still use Win XP (32 bit).

fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 23, 2014, 03:40:34 PM
 #7

I see. Note that if I ever do something for this platform (very unlikely at this point), it's likely to be a full blown UI for the newer Windows flavors. Your best bet might well be to use a linux VM =)
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 23, 2014, 03:41:07 PM
 #8

looks great, would adding support for a few other altcoins be major work? I don't think there is a wallet out there that supports multi coins yet.

Thanks for the feedback. Interesting. I don't know much about altcoins, but if they support SPV clients it shouldn't be much work to build say the litecoin peer of this app. Now having a single client be able to support several flavors of digital coins would be quite a bit more work.

Max

Yeah if you could even just support litecoin, that would be amazing. I honestly don't think even a dual-wallet exists yet .... yours could be the first Smiley
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 23, 2014, 03:43:29 PM
 #9

Just did some googling and I couldn't find any info about SPV clients for litecoin so we might be out of luck on that one. Every search I tried turned litecoin into bitcoin when asking about SPV Wink
fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 23, 2014, 03:48:13 PM
 #10

Just did some googling and I couldn't find any info about SPV clients for litecoin so we might be out of luck on that one. Every search I tried turned litecoin into bitcoin when asking about SPV Wink

Ah, that's what I figured. If they get their act together and decide to implement some form of SPV support server-side, the client side shouldn't be that much work (but like I said, I don't know much about altcoins, so I may well be missing a big chunk of work).

-M
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 23, 2014, 03:55:37 PM
 #11

Just did some googling and I couldn't find any info about SPV clients for litecoin so we might be out of luck on that one. Every search I tried turned litecoin into bitcoin when asking about SPV Wink

Ah, that's what I figured. If they get their act together and decide to implement some form of SPV support server-side, the client side shouldn't be that much work (but like I said, I don't know much about altcoins, so I may well be missing a big chunk of work).

-M

Yeah, it was a long shot. I suppose if litecoin had SPV support other clients would have integrated it by now. Concentrating solely on bitcoin is fine since you are developing a wallet with a different "flavour". Can't wait to try it out on my Mac. When do you think it be ready for a spin?
fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 23, 2014, 04:13:23 PM
 #12

The code is ready, I for some reasons am not. Send me a PM and I'll ping you once I'm there. Cheers.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
January 23, 2014, 05:32:08 PM
 #13

I would swap the FX stuff for Coin Control.

Besides that, if several bitc's were able to p2p-talk among themselves to do CoinJoin in a decentralized manner, that would be a killer. You could try to raise some money and/or try to use the funds already donated in the CoinJoin thread.
fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 23, 2014, 05:46:59 PM
 #14

I would swap the FX stuff for Coin Control.

Besides that, if several bitc's were able to p2p-talk among themselves to do CoinJoin in a decentralized manner, that would be a killer. You could try to raise some money and/or try to use the funds already donated in the CoinJoin thread.

That's a great suggestion. I'll think about it.

-M
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 24, 2014, 03:49:32 AM
 #15

The code is ready, I for some reasons am not. Send me a PM and I'll ping you once I'm there. Cheers.

Cheers thx. I'll PM you now
Mr. Gabu
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 24, 2014, 01:33:56 PM
 #16

Can you port it to DOGE, please?

We have funds and can raise more funds, if you think it costs something porting to DOGE. We can pay you.
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 24, 2014, 01:50:05 PM
 #17

Can you port it to DOGE, please?

We have funds and can raise more funds, if you think it costs something porting to DOGE. We can pay you.

Does Doge have SPV client support?
dewdeded
Legendary
*
Offline Offline

Activity: 1232
Merit: 1011


Monero Evangelist


View Profile
January 24, 2014, 11:26:22 PM
 #18

When is this ready? Can I get beta invite? (Would test and review/report on Mac and LX.)
fnsa1 (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 24, 2014, 11:36:32 PM
 #19

When is this ready? Can I get beta invite? (Would test and review/report on Mac and LX.)

Thanks for the interest. It should be out sometime in the next 2 weeks if all goes well.

-M
dewdeded
Legendary
*
Offline Offline

Activity: 1232
Merit: 1011


Monero Evangelist


View Profile
January 24, 2014, 11:38:39 PM
 #20

- GL bro
- provide tipping address and I send some funds to help
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!