text: // Copyright (c) 2011-2017 The Cryptonote developers
  // Copyright (c) 2017-2018 The Circle Foundation & invert Devs
  // Copyright (c) 2018-2019 invert Network & invert Devs
  // Distributed under the MIT/X11 software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #pragma once
  
  #include "CryptoNoteCore/CryptoNoteBasic.h"
  #include "crypto/crypto.h"
  
  namespace CryptoNote {
  
    class ISerializer;
  
    /************************************************************************/
    /*                                                                      */
    /************************************************************************/
    class AccountBase {
    public:
      AccountBase();
      void generate();
      static void generateViewFromSpend(Crypto::SecretKey &, Crypto::SecretKey &, Crypto::PublicKey &);
  
  
      const AccountKeys& getAccountKeys() const;
      void setAccountKeys(const AccountKeys& keys);
      uint64_t get_createtime() const { return m_creation_timestamp; }
      void set_createtime(uint64_t val) { m_creation_timestamp = val; }
      void serialize(ISerializer& s);
  
      template <class t_archive>
      inline void serialize(t_archive &a, const unsigned int /*ver*/) {
        a & m_keys;
        a & m_creation_timestamp;
      }
  
    private:
      void setNull();
      AccountKeys m_keys;
      uint64_t m_creation_timestamp;
    };
  }
  