class P2pkhBtcLockSender implements BtcLockSender {

    public boolean tryParse (BtcTransaction btcTx) {
        if (btcTx == null) {
            return false;
        }
        if (btcTx.getInputs().size() == 0) {
            return false;
        }
        if (btcTx.getInput(0).getScriptBytes() == null) {
            return false;
        }

        Script scriptSig = btcTx.getInput(0).getScriptSig();
        if (scriptSig.getChunks().size() != 2) {
            return false;
        }

        try {
            byte[] data = scriptSig.getChunks().get(1).data;

            //Looking for btcAddress
            BtcECKey senderBtcKey = BtcECKey.fromPublicOnly(data);
            this.btcAddress = new Address(btcTx.getParams(), senderBtcKey.getPubKeyHash());

            //Looking for rskAddress
            org.ethereum.crypto.ECKey key = org.ethereum.crypto.ECKey.fromPublicOnly(data);
            this.rskAddress = new RskAddress(key.getAddress());
        } catch(Exception e) {
            return false;
        }
        return true;
    }

    public  P2pkhBtcLockSender();

}