Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: OmegaStarScream on October 20, 2022, 12:48:35 PM



Title: Kotlin libraries
Post by: OmegaStarScream on October 20, 2022, 12:48:35 PM
What are some good resources for android (java/kotlin) developers to start making bitcoin (or crypto) apps?

I know there's Wallet-core (made by Trustwallet) and bitcoin-kmp[2] (made by ACINQ). Anything else would you like to recommend?

[1] https://github.com/trustwallet/wallet-core
[2] https://github.com/ACINQ/bitcoin-kmp


Title: Re: Kotlin libraries
Post by: NotATether on October 20, 2022, 05:38:22 PM
There also seems to be BitcoinKit (https://github.com/horizontalsystems/bitcoin-kit-android) for Android 6+ that implements an SPV implementation, if you need any of that. But it mistakenly says its an iOS project in the description. Useful if trying to make an Android wallet (though it also supports Bitcoin Cash).


Title: Re: Kotlin libraries
Post by: PawGo on October 20, 2022, 06:24:13 PM
What are some good resources for android (java/kotlin) developers to start making bitcoin (or crypto) apps?

I do not know how it is with kotlin, but for java you may easily use both bitcoin core libraries if you want to work on btc and org.web3j library if you want to go in that direction. The rest depends on you ;) but basic things like wallet/address creation, private key verifications etc - all is easy to do.
Code:
        <dependency>
            <groupId>org.bitcoinj</groupId>
            <artifactId>bitcoinj-core</artifactId>
            <version>0.16.1</version>
        </dependency>
        <dependency>
            <groupId>org.web3j</groupId>
            <artifactId>core</artifactId>
            <version>5.0.0</version>
        </dependency>


Title: Re: Kotlin libraries
Post by: ABCbits on October 21, 2022, 09:27:26 AM
Since you say "java/kotlin", AFAIK BitcoinJ is best option out there. It's been developed since early 2011[1] and used by several wallet such as "Bitcoin Wallet" for Android[2] and even forked by Bitcoin sidechain Rootstock[3].

[1] https://bitcointalk.org/index.php?topic=4236.0 (https://bitcointalk.org/index.php?topic=4236.0)
[2] https://play.google.com/store/apps/details?id=de.schildbach.wallet (https://play.google.com/store/apps/details?id=de.schildbach.wallet)
[3] https://github.com/rsksmart/bitcoinj-thin (https://github.com/rsksmart/bitcoinj-thin)