CCF
Loading...
Searching...
No Matches
src
service
tables
submitted_shares.h
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the Apache 2.0 License.
3
#pragma once
4
5
#include "
ccf/service/map.h
"
6
7
#include <vector>
8
9
namespace
ccf
10
{
11
// This table keeps track of the submitted encrypted recovery share so that
12
// the public-only service is resilient to elections while members submit
13
// their recovery shares.
14
// Because shares are submitted to the public-only network on recovery, this
15
// table is public but the shares are encrypted with the latest ledger secret.
16
17
using
EncryptedSubmittedShare
= std::vector<uint8_t>;
18
using
EncryptedSubmittedShares
=
19
ServiceMap<MemberId, EncryptedSubmittedShare>
;
20
21
namespace
Tables
22
{
23
static
constexpr
auto
ENCRYPTED_SUBMITTED_SHARES =
24
"public:ccf.internal.encrypted_submitted_shares"
;
25
}
26
}
ccf::kv::TypedMap
Definition
map.h:30
ccf
Definition
app_interface.h:14
ccf::EncryptedSubmittedShare
std::vector< uint8_t > EncryptedSubmittedShare
Definition
submitted_shares.h:17
map.h
Generated by
1.9.8