blob: 1ddaa912e7bae52c5b9217438fc3b695f73fd792 [file] [log] [blame]
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_KEY_CHAIN_HPP
#define NDN_KEY_CHAIN_HPP
#include "data.hpp";
namespace ndn {
class KeyChain {
public:
/**
* In data, set the signed info publisher public key digest and key locator key to the default public key and set the
* signature using the default private key.
* Note: the caller must make sure the timestamp is correct, for example with
* data.getSignedInfo().setTimestampMilliseconds(time(NULL) * 1000.0).
* @param data The Data object to sign and set the signature.
*/
static void defaultSign(Data &data);
};
}
#endif