ssb_keyfile
pub fn write(keypair: &Keypair, w: impl Write) -> Result<(), Error>
Create a string containing the content of a new secret file for the given keys, in js ssb commented-json format.