Fabcoin Core  0.16.2
P2P Digital Currency
Personal.h
Go to the documentation of this file.
1 #pragma once
2 #include "PersonalFace.h"
3 
4 namespace dev
5 {
6 
7 namespace eth
8 {
9 class KeyManager;
10 class AccountHolder;
11 class Interface;
12 }
13 
14 namespace rpc
15 {
16 
18 {
19 public:
20  Personal(dev::eth::KeyManager& _keyManager, dev::eth::AccountHolder& _accountHolder, eth::Interface& _eth);
21  virtual RPCModules implementedModules() const override
22  {
23  return RPCModules{RPCModule{"personal", "1.0"}};
24  }
25  virtual std::string personal_newAccount(std::string const& _password) override;
26  virtual bool personal_unlockAccount(std::string const& _address, std::string const& _password, int _duration) override;
27  virtual std::string personal_signAndSendTransaction(Json::Value const& _transaction, std::string const& _password) override;
28  virtual std::string personal_sendTransaction(Json::Value const& _transaction, std::string const& _password) override;
29  virtual Json::Value personal_listAccounts() override;
30 
31 private:
35 };
36 
37 }
38 }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15
std::vector< RPCModule > RPCModules
Definition: ModularServer.h:50
virtual RPCModules implementedModules() const override
Definition: Personal.h:21
Manages real accounts (where we know the secret key) and proxy accounts (where transactions to be sen...
Definition: AccountHolder.h:64
dev::eth::KeyManager & m_keyManager
Definition: Personal.h:32
dev::eth::AccountHolder & m_accountHolder
Definition: Personal.h:33
Config::Value_type Value
High-level manager of password-encrypted keys for Ethereum.
Definition: KeyManager.h:72
dev::eth::Interface & m_eth
Definition: Personal.h:34
Main API hub for interfacing with Ethereum.
Definition: Interface.h:67