public static string GetAccountIdFromPrivateKey(string privateKey)
        {
            var pvtKey = Base58Encoding.DecodePrivateKey(privateKey);
            var kp     = new Neo.Wallets.KeyPair(pvtKey);

            return(Base58Encoding.EncodeAccountId(kp.PublicKey.EncodePoint(false).Skip(1).ToArray()));
        }
 public static string GetAccountIdFromPrivateKey(string privateKey)
 {
     byte[] public_key_bytes = DerivePublicKeyBytes(privateKey);
     return(Base58Encoding.EncodeAccountId(public_key_bytes.Skip(1).ToArray()));   // skip first byte which indicate compress or not.
 }