pub struct FenceAcquisitionPayload { /* private fields */ }Expand description
Immutable bounded host update envelope; application codecs own argument semantics.
Receiver and routing target are the same exact application canister. No management, proxy, query, signing or default method is supplied. Retain these original bytes before publishing their plan and obligation; hashes cannot recover missing bytes. The nonrecursive payload digest excludes plan/requirement/obligation hashes, which bind the payload subsequently through the original operation authority.
Implementations§
Source§impl FenceAcquisitionPayload
impl FenceAcquisitionPayload
Sourcepub fn new(
target: &str,
method: &str,
arguments: &[u8],
) -> Result<Self, FenceAcquisitionError>
pub fn new( target: &str, method: &str, arguments: &[u8], ) -> Result<Self, FenceAcquisitionError>
Admit exact application receiver, method and bounded opaque argument bytes.
§Errors
Rejects malformed/management receivers, empty/nonvisible/oversized methods and excessive bytes.
Sourcepub fn arguments(&self) -> &[u8] ⓘ
pub fn arguments(&self) -> &[u8] ⓘ
Read exact opaque original bytes; the application must qualify whole-unit acquisition semantics.
Sourcepub fn digest(&self) -> ArtifactChecksumRecord
pub fn digest(&self) -> ArtifactChecksumRecord
Hash NUL-terminated domain, u8 principal length/raw bytes, fixed update byte 1, big-endian u32 method length/exact bytes and u64 argument length/exact bytes.