read_daemon_keypair

Function read_daemon_keypair 

Source
pub async fn read_daemon_keypair(
    daemon_name: &str,
) -> Result<(Zeroizing<Vec<u8>>, [u8; 32])>
Expand description

Read a daemon’s keypair from disk. Private key wrapped in Zeroizing.

§Errors

Returns an error if the keypair files cannot be read or have invalid size.