Struct signed::ExportManifest
zaun_community_protocol::signed::ExportManifest · Struct
pub struct ExportManifest { … }Signed by the exporting host’s key (and, in a later version, the root key when the owner exports). The key is inside the bytes: an importer trusts it only once it matches a host delegation signed by the community’s root (ADR-0013).
Fields
Section titled “Fields”community_id: CommunityId
Section titled “community_id: CommunityId”2: the community.
host_public_key: PublicKey
Section titled “host_public_key: PublicKey”3: the exporting host’s key; the signer.
schema_version: u32
Section titled “schema_version: u32”4: the exporter’s host.db schema version.
revision: u64
Section titled “revision: u64”5: the descriptor revision the exporter held.
delegation_epoch: u64
Section titled “delegation_epoch: u64”6: the delegation epoch the exporter held.
exported_at: u64
Section titled “exported_at: u64”7: ms since the epoch.
entries: Vec<ManifestEntry>
Section titled “entries: Vec<ManifestEntry>”8: every chunk, in bundle order.
Methods
Section titled “Methods”verify_self_signed
Section titled “verify_self_signed”pub fn verify_self_signed(json: &SignedJson, min_suite: u8) -> Result<Signed<Self>, SignedError>Verifies a manifest under the host key inside its own bytes. The key is read before verification and decides nothing else; the importer must then match it to a delegation the community’s root signed.
Errors
Section titled “Errors”SignedError when the bytes do not decode or the signature does not verify.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Decode, Encode, Eq, PartialEq, SignedObject, StructuralPartialEq