write_bus_keypair

Function write_bus_keypair 

Source
pub async fn write_bus_keypair(keypair: &Keypair) -> Result<()>
Expand description

Write the bus server’s static keypair to the runtime directory.

  • bus.pub (32 bytes, world-readable) — read by connecting daemons
  • bus.key (32 bytes, mode 0600) — private key for the bus server

§Errors

Returns an error if directory creation or file I/O fails.