pub trait DeadDropEncoder {
// Required method
fn encode_for_platform(
&self,
cover: CoverMedia,
payload: &Payload,
platform: &PlatformProfile,
embedder: &dyn EmbedTechnique,
) -> Result<CoverMedia, DeadDropError>;
}Expand description
Platform-aware dead drop encoder port.
Produces a stego cover optimised for posting publicly on a target platform. No direct file transfer between parties.
Required Methods§
Sourcefn encode_for_platform(
&self,
cover: CoverMedia,
payload: &Payload,
platform: &PlatformProfile,
embedder: &dyn EmbedTechnique,
) -> Result<CoverMedia, DeadDropError>
fn encode_for_platform( &self, cover: CoverMedia, payload: &Payload, platform: &PlatformProfile, embedder: &dyn EmbedTechnique, ) -> Result<CoverMedia, DeadDropError>
Encode payload into cover for posting on platform.
The resulting cover survives the platform’s recompression pipeline and can be retrieved by the recipient via public URL.
§Errors
Returns DeadDropError::UnsupportedPlatform or
DeadDropError::EncodeFailed.