use crate::{
cdk::types::Principal,
ops::{
replay::model::OperationId,
storage::replay::{ReplayService, RootReplayOps},
},
storage::stable::replay::ReplaySlotKey,
};
const ROOT_REPLAY_NONCE: [u8; 16] = [0u8; 16];
#[must_use]
pub fn root_slot_key(
caller: Principal,
target_canister: Principal,
operation_id: OperationId,
) -> ReplaySlotKey {
RootReplayOps::slot_key(
caller,
target_canister,
ReplayService::Root,
operation_id.as_bytes(),
ROOT_REPLAY_NONCE,
)
}