From ffe4112586fd54ba7fcb577e6587877b1ab8fd82 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 2 Jul 2020 17:43:50 +0000 Subject: [PATCH 01/13] Change content address data types Header is valid, but rest of the code needs to be adapted. --- src/libstore/content-address.hh | 41 +++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/src/libstore/content-address.hh b/src/libstore/content-address.hh index 83a9b233669..40b945f5230 100644 --- a/src/libstore/content-address.hh +++ b/src/libstore/content-address.hh @@ -30,10 +30,18 @@ struct FixedOutputHash { std::string printMethodAlgo() const; }; +// Deref is a phantom parameter that just signifies what the hash should +// dereference too. +template struct IPFSHash { Hash hash; }; +template