示例#1
0
 public Account()
 {
     m_bEnabled = true;
     m_balance = 0;
     m_icon = 0;
     m_txCount = 0;
     m_addressid = 0;
     m_KeyPair = new MicroCashKeyPair(false);
     m_txhistory = new List<AddressHistory>();
     m_newtx = new List<AddressHistory>();
 }
示例#2
0
 public void GenerateKeyPair()
 {
     if (m_KeyPair == null || !m_KeyPair.HasPrivateKey)
         m_KeyPair = new MicroCashKeyPair(true);
     else
         throw new InvalidOperationException("Account already has a key! A new key cannot be assigned to this account!");
 }