Exemplo n.º 1
0
        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()));
        }
Exemplo n.º 2
0
 public static string GetAccountIdFromPrivateKey(string privateKey)
 {
     byte[] public_key_bytes = DerivePublicKeyBytes(privateKey);
     return(Base58Encoding.EncodeAccountId(public_key_bytes));
 }