if (txtPassphrase.Text != "") {
SetText(txtPrivWIF, new Bip38KeyPair(kp, txtPassphrase.Text).EncryptedPrivateKey); //<-loop this?
} else {
SetText(txtPrivWIF, kp.PrivateKeyBase58);
}
SetText(txtPrivHex, kp.PrivateKeyHex);
SetText(txtPubHex, kp.PublicKeyHex);
SetText(txtPubHash, kp.Hash160Hex);
SetText(txtBtcAddr, new Address(kp, AddressTypeByte).AddressBase58);
I don't understand very much, but we have to search for all combinations looping this piece of code?
How can we arrive at the public key if random keys get encrypted with the password?