Closed uni2u closed 2 years ago
+------------------------------------------+ | Name | +------------------------------------------+ | MetaInfo | |(ContentType,FreshnessPeriod,FinalBlockID)| |(appMetaInfo, ...) | +------------------------------------------+ | Content | | +---------------------------------+ | | | Next Hash | | | +---------------------------------+ | +------------------------------------------+ | Signature | +------------------------------------------+ |SignatureInfo | | +----------------------------+| | | SignatureType || | +----------------------------+| | | KeyLocator || | +----------------------------+| +------------------------------------------+ | SignatureValue | +------------------------------------------+
namespace ndn { namespace security { inline namespace v2{ class HCKeyChain : protected KeyChain { public: HCKeyChain() : KeyChain() {}; void sign(std::vector<shared_ptr<Data>> m_store, const SigningInfo ¶ms); void sign(Data &data, const ndn::Block &nextHash); void sign(Data &data, const ndn::Block &nextHash, const SigningInfo ¶ms); }; } } using security::v2::HCKeyChain; }
ndn://<common-name>/insert
ndnputfile <common-name> <data-name> <file>
ndn://<producer-node>/<content-name>/<segment>/...
HashChain ndn-cxx 라이브러리
내용
데이터 패킷 구성
현재 코드 구성 (hc-key-chain.cpp)
difs 적용
ndn://<common-name>/insert
ndnputfile <common-name> <data-name> <file>
producer, consumer 정의
흐름도
ndn://<common-name>/insert
ndn://<producer-node>/<content-name>/<segment>/...