public static ECPrivateKey WIFtoECPrivateKey(String wif) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeySpecException { // byte [] privateKey = // Address.wifToPrivateKey("5Kb6aGpijtrb8X28GzmWtbcGZCG8jHQWFJcWugqo3MwKRvC8zyu"); byte[] privateKey = Address.wifToPrivateKey(wif); return PrivateKeytoECPrivateKey(privateKey); }
public static ECPublicKey WIFtoECPublicKey(String wif) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeySpecException { byte[] privateKey = Address.wifToPrivateKey(wif); return PrivateKeytoECPublicKey(privateKey); }