Add functionality of endorsement
diff --git a/src/contact-storage.h b/src/contact-storage.h
index 882dff5..ee5f032 100644
--- a/src/contact-storage.h
+++ b/src/contact-storage.h
@@ -36,6 +36,9 @@
void
addContact(const ContactItem& contactItem);
+ void
+ updateIsIntroducer(const ndn::Name& identity, bool isIntroducer);
+
void
updateAlias(const ndn::Name& identity, std::string alias);
@@ -48,6 +51,8 @@
ndn::Ptr<Profile>
getSelfProfile(const ndn::Name& identity) const;
+
+ //SelfEndorse
ndn::Ptr<ndn::Blob>
getSelfEndorseCertificate(const ndn::Name& identity);
@@ -56,7 +61,30 @@
void
addSelfEndorseCertificate(ndn::Ptr<EndorseCertificate> endorseCertificate, const ndn::Name& identity);
+
+
+ //ProfileEndorse
+ ndn::Ptr<ndn::Blob>
+ getEndorseCertificate(const ndn::Name& identity);
+
+ void
+ updateEndorseCertificate(ndn::Ptr<EndorseCertificate> endorseCertificate, const ndn::Name& identity);
+
+ void
+ addEndorseCertificate(ndn::Ptr<EndorseCertificate> endorseCertificate, const ndn::Name& identity);
+
+ std::vector<std::string>
+ getEndorseList(const ndn::Name& identity);
+
+ //CollectEndorse
+ void
+ updateCollectEndorse(const EndorseCertificate& endorseCertificate);
+
+ ndn::Ptr<std::vector<ndn::Blob> >
+ getCollectEndorseList(const ndn::Name& name);
+
+
private:
bool
doesSelfEntryExist(const ndn::Name& identity, const std::string& profileType);