Trust Wallet Core is a cross-platform library that implements low-level cryptographic wallet functionality for all supported blockchains. Most of the code is C++ with a set of strict exported C interfaces. The library provides idiomatic interfaces for all supported languages (currently Swift for iOS and Java for Android).
We support Bitcoin, Ethereum, Binance Chain and 50+ blockchains, you can see the full list here.
Our project comes with an interactive command-line utility called WalletConsole, for accessing key and address management functionality of the library. See below for starting with it:
$ ./build/walletconsole/walletconsole
Wallet-core Console (c) TrustWallet
Type 'help' for list of commands.
> help
Commands:
. . .
newKey Create new pseudo-random 32-byte key (secret!)
. . .
> coin btc
Set active coin to: bitcoin
> addrDefault
Result: bc1q2kecrqfvzj7l6phet956whxkvathsvsgn7twav
If you want to use wallet core in your project follow these instructions.
Add this dependency to build.gradle:
dependencies {
implementation 'com.trustwallet:wallet-core:0.12.24'
}
We currently support only CocoaPods. Add this line to your Podfile and run pod install
:
pod 'TrustWalletCore'
The best way to submit feedback and report bugs is to open a GitHub issue. If you want to contribute code please see Contributing. If you want to add support for a new blockchain also see Adding Support for a New Blockchain, make sure you have read the requirements section.
Thanks to all the people who contribute.
Trust Wallet Core is available under the MIT license. See the LICENSE file for more info.