Example #1
0
    //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);
    }
Example #2
0
 public void Init(string secKey)
 {
     dsa.Import(secKey);
     onnAddr = dsa.ethAddrStr;
 }