komputing / KEthereum

Kotlin library for Ethereum
MIT License
350 stars 73 forks source link

Add support wallets/UTC json files #27

Closed klblk closed 6 years ago

klblk commented 6 years ago

What's here

This adds support for wallets/UTC json files ( in reference to #2 ).

To create json file from ECKeyPair: WalletUtils.generateWalletFile(password, ecKeyPair, destinationDirectory)

Load ECKeyPair from json file: WalletUtils.loadKeysFromWalletFile(password, source)

Testing

./gradlew :wallet:test Wallet test copied from web3j

Note