Exemple #1
0
        public WalletEntry CreateEntry()
        {
            WalletEntry entry = WalletEntry.Create(CreatePrivateKey());

            accounts.Add(entry);
            return(entry);
        }
Exemple #2
0
        public WalletEntry Import(string wif)
        {
            bool compressed;

            byte[]      privateKey = GetPrivateKeyFromWIF(wif, out compressed);
            WalletEntry entry      = WalletEntry.Create(privateKey, compressed);

            accounts.Add(entry);
            return(entry);
        }