Ported CoinSelector, EncryptedKeyChain, KeyBag.
mvn test passed.