pub fn generate_commit_v2(
uids: Vec<u16>,
values: Vec<u16>,
version_key: u64,
state: EpochScheduleState,
subnet_reveal_period_epochs: u64,
block_time: f64,
hotkey: Vec<u8>,
) -> Result<(Vec<u8>, u64), CoreError>Expand description
Stateful epoch model commit (v2): simulate the chain’s block_step
pipeline to find the exact reveal block, then encrypt the weights payload
to the drand round covering it. Returns (ciphertext, reveal_round).