blockchain , sdchain cpp sdk and demo

Dependencies:   EthernetInterface mbed-rtos mbed uniqueCPUID

Fork of bcsdk by SDchain C Plus Plus Team

Revision:
10:aabd720e632c
Parent:
8:f2a567ee3a46
Child:
12:1b24ea479a59
--- a/Account.h	Wed Sep 27 01:18:12 2017 +0000
+++ b/Account.h	Fri Nov 03 01:07:32 2017 +0000
@@ -8,19 +8,43 @@
 
 #if !defined(__Account_Account_h)
 #define __Account_Account_h
+#include <string>
+#include <map>
+#include "Key.h"
+#include "Object.h"
+using namespace std;
 
 class Account
 {
 public:
-   std::string id;
-   std::string alias;
-   Key* keys;
-   int quorum;
-   Map<std::string,Object> tags;
+	Account();
+	Account(Key &key);
+	~Account();
+
+	std::string id;
+	std::string alias;
+	//Key* keys;	
+	int quorum;
+	map<std::string,Object> tags;
+
+	void setId(const string newId){this->id = newId;};
+	string getId(){return this->id;};
+
+	void setAlias(const string newAlias){this->alias = newAlias;};
+	string getAlias(){return this->alias;};
+
+	void setQuorum(int newQuorum){this->quorum = newQuorum;};
+	int getQuorum(){return this->quorum;};
+
+	string createAccount();
+	string listAccounts();
 
 protected:
 private:
+	Client client;
+	MbedJSONValue m_valTags;
+	Key m_Keys;
 
 };
 
-#endif
+#endif
\ No newline at end of file