@Override public BitcoinSigner findSignerByPublicKey(PublicKey publicKey) { Address address = publicKey.toAddress(_network); InMemoryPrivateKey privateKey; try { privateKey = getPrivateKeyForAddress(address, _cipher); } catch (InvalidKeyCipher e) { throw new RuntimeException( "Unable to decrypt private key for address " + address.toString()); } if (privateKey != null) { return privateKey; } throw new RuntimeException("Unable to find private key for address " + address.toString()); }