Has anyone ported the Bitcoin software to "pure" Clojure?

10

3

Has there been any attempt to rewrite Bitcoin in Clojure? I know about BitcoinJ, so I imagine that should be easy to port. But what about a "pure" version? Without calling Java directly? Easily portable to Scheme or other Lisps-style languages? Thanks.

Felipe

Posted 2012-11-13T21:31:07.347

Reputation: 1 511

2

There is a pure Haskell implementation haskoin. Not sure if that helps.

Chuck Batson 2014-12-12T04:20:10.527

// , Who is using it?Nathan Basanese 2017-04-03T18:39:43.780

2

Not sure, but there are others that have expressed interest. e.g., http://bitcointalk.org/index.php?topic=970.msg13154#msg13154

Stephen Gornick 2012-11-14T00:17:53.177

2Not seen anything on GitHub - have thought about doing this myself, but am busy with other projects. Go for it!Gary Rowe 2012-11-14T09:34:28.677

Answers

5

There are several Bitcoin Clojure projects, but none of them appear to have a full rewrite of Bitcoin as a goal.

Of particular interest is https://github.com/johnwalker/bitcoin-protocol , which is an implementation of the Bitcoin networking protocol. It can be used to communicate with peers within Bitcoin networks.

Rewriting Bitcoin core in another language is doable, as the btcd developers have done porting it to the Go language - https://github.com/btcsuite/btcd , however it took almost a year of development time between several developers to become fully functional.

Yamamushi

Posted 2012-11-13T21:31:07.347

Reputation: 66