10

There are quite a few Java libraries and I am building my Scala code on BitcoinJ, but obviously, native Scala libraries would be quite a bit more elegant. Has anyone tried?

5
  • 1
    Per the Area 51 example questions, programming questions are off-topic here and should be asked on Stack Overflow. Commented Sep 6, 2011 at 18:09
  • 5
    @eMansipater Well, that example is about urllib vs urllib2. This is about bitcoin libraries. I think that the users of this site can provide a much better answer to this question than people at Stack Overflow.
    – nmat
    Commented Sep 8, 2011 at 5:27
  • 1
    I think it should be on topic. meta.bitcoin.stackexchange.com/questions/103/…
    – ripper234
    Commented Sep 8, 2011 at 5:52
  • 2
    As currently rephrased I am voting to re-open. Commented Sep 8, 2011 at 15:56
  • A scala library would be great. Although bitcoinj is a great software, the complexity of Java makes hard to hack into. Note that I have used bitcoinj in Scala without any problems.
    – Jus12
    Commented Oct 29, 2014 at 7:33

4 Answers 4

2

I really don't think it's needed. Bitcoin is a complicated project, it's better to have one canonical JVM-based library than a library in each JVM language.

AFAIK there is currently no Scala library, and I'm betting there won't be for some time (unless perhaps as a wrapper to bitcoinj?)

2

This an old question, but there is an implementation now:

https://github.com/bitcoin-s/bitcoin-s-core

1

As far as I know there are no Scala Bitcoin libraries currently under development.

As @ripper234 suggests, you could make do with the (canonical) BitCoinJ library which is currently under heavy development. This approach is often the case with JVM languages, whose primary purpose is to leverage the quality of the underlying support libraries rather than reinventing the wheel.

However, given that Scala now has a .Net implementation, then this argument becomes weaker. Therefore I would take the stance that there is room for a native Scala implementation, just as there is one for C# (BitCoinSharp).

Although slightly off-topic this forum discussion of a C reference library (not C++/C#) brings up some interesting ideas - does it skim over a Scala library in passing.

0

You could also check out my project: https://github.com/colinrgodsey/scalaminer

Looking to expand functionality too

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.