Exemplo n.º 1
0
        public virtual string EcRecover(byte[] hashMessage, string signature)
        {
            var ecdaSignature = ExtractEcdsaSignature(signature);

            return(EthECKey.RecoverFromSignature(ecdaSignature, hashMessage).GetPublicAddress());
        }
Exemplo n.º 2
0
 public virtual string EcRecover(byte[] hashMessage, EthECDSASignature signature)
 {
     return(EthECKey.RecoverFromSignature(signature, hashMessage).GetPublicAddress());
 }