43 template <
template <
bool>
class Archive>
44 bool do_serialize(Archive<false> &ar, std::vector<crypto::signature> &v)
46 size_t cnt = v.size();
51 ar.stream().setstate(std::ios::failbit);
56 for (
size_t i = 0; i < cnt; i++) {
59 if (!ar.stream().good())
66 template <
template <
bool>
class Archive>
67 bool do_serialize(Archive<true> &ar, std::vector<crypto::signature> &v)
69 if (0 == v.size())
return true;
71 size_t cnt = v.size();
72 for (
size_t i = 0; i < cnt; i++) {
74 if (!ar.stream().good())
VARIANT_TAG(debug_archive, crypto::hash, "hash")
BLOB_SERIALIZER(crypto::chacha_iv)
Simple DSL AAPI based on.
bool do_serialize(Archive< false > &ar, std::vector< crypto::signature > &v)