read_bus_public_key_from

Function read_bus_public_key_from 

Source
pub async fn read_bus_public_key_from(dir: &Path) -> Result<[u8; 32]>
Expand description

Read the bus server’s public key from a specific directory.

Allows callers to specify a custom path (useful for testing).

§Errors

Returns an error if the file does not exist or is not exactly 32 bytes.