-
Notifications
You must be signed in to change notification settings - Fork 2
/
bank_keys.cpp
85 lines (75 loc) · 1.36 KB
/
bank_keys.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/**
* File Name: bank_keys.cpp
* Author: Dipen Chauhan (https://github.com/overdrivemachines)
*/
#include "bank_keys.h"
BankKeys::BankKeys()
{
}
/**
* Constructor for BankKeys
*
*/
BankKeys::BankKeys(const string public_key, const string private_key, const string email)
{
this->public_key = public_key;
this->private_key = private_key;
this->email = email;
}
/**
* Getter Function for Public Key
* @return - Public Key
*/
string BankKeys::get_public_key() const
{
return public_key;
}
/**
* Setter Function for Public Key
* @param - Public Key
*/
void BankKeys::set_public_key(const string &value)
{
public_key = value;
}
/**
* Getter Function for Private Key
* @return - Private Key
*/
string BankKeys::get_private_key() const
{
return private_key;
}
/**
* Setter Function for Private Key
* @param - Private Key
*/
void BankKeys::set_private_key(const string &value)
{
private_key = value;
}
/**
* Getter Function for Email
* @return - Email
*/
string BankKeys::get_email() const
{
return email;
}
/**
* Setter Function for Email
* @param - Email
*/
void BankKeys::set_email(const string &value)
{
email = value;
}
/**
* To String Function - Prints Public Key, Private Key and Email
*/
void BankKeys::to_s()
{
cout << "Public Key: " << public_key << "\n";
cout << "Private Key: " << private_key << "\n";
cout << "Email: " << email << "\n";
}