载入中...
搜索中...
未找到
eve::ISnapshotContentHasher类 参考abstract
One content-digest implementation usable for snapshot sealing and verification. 更多...
#include <SnapshotHash.h>
Public 成员函数 | |
| virtual | ~ISnapshotContentHasher ()=default |
| Releases ISnapshotContentHasher resources. | |
| virtual std::string_view | id () const noexcept=0 |
| Stable algorithm id, persisted or logged next to the data it hashed. | |
| virtual ContentDigestKind | digestKind () const noexcept=0 |
| What this digest guarantees. | |
| virtual Result< ContentId > | hash (std::string_view canonicalInput) const =0 |
| Digest one canonical snapshot input. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "eve.ISnapshotContentHasher" |
| Capability name a provider registers under. | |
详细描述
One content-digest implementation usable for snapshot sealing and verification.
- 备注
- Implementations must be pure and deterministic: the same input must always produce the same id, or a snapshot could never be verified after a restart.
在文件 SnapshotHash.h 第 54 行定义.
构造及析构函数说明
◆ ~ISnapshotContentHasher()
|
virtualdefault |
Releases ISnapshotContentHasher resources.
成员函数说明
◆ digestKind()
|
pure virtualnoexcept |
What this digest guarantees.
◆ hash()
|
pure virtual |
Digest one canonical snapshot input.
- 参数
-
canonicalInput Canonical JSON assembled by common/Snapshot.*.
- 返回
- A 128-bit content id, or a structured failure.
◆ id()
|
pure virtualnoexcept |
Stable algorithm id, persisted or logged next to the data it hashed.
被这些函数引用 eve::activeSnapshotHashAlgorithm().
类成员变量说明
◆ capabilityName
|
staticconstexpr |
Capability name a provider registers under.
在文件 SnapshotHash.h 第 57 行定义.
该类的文档由以下文件生成:
- src/engine/common/SnapshotHash.h