Skip to main content

causa_runtime/
ids.rs

1//! Runtime identity allocation conveniences.
2
3use causa_kernel::BlockId;
4
5/// Allocate a fresh UUIDv7 fact-block identity.
6///
7/// The kernel accepts explicit IDs and does not provide randomness or time
8/// access; runtime conveniences keep that capability at the outer layer.
9pub fn new_block_id() -> BlockId {
10    BlockId::new(uuid::Uuid::now_v7())
11}