Skip to main content

write_pub_file

Function write_pub_file 

Source
pub fn write_pub_file(path: &Path, npub: &str) -> Result<(), ConfigError>
Expand description

Write a bare bech32 npub to a public key file.

On Unix, the file is created with mode 0644 (owner read/write, others read). On Windows, the file inherits default ACLs from the parent directory.