//static public bool Verify(string pubKey, string msg, string signature) //{ // ECPublicKey pubKey = new ECPublicKey(new ECPoint()); // ECSignature sig = new ECSignature(); // return pubKey.VerifySignature(msg, signature); //} static public string getEthAddress(string secKey) { NECDsa dsa = new NECDsa(); dsa.Import(secKey); return(dsa.ethAddrStr); }
public void Init(string secKey) { dsa.Import(secKey); onnAddr = dsa.ethAddrStr; }