Skip to main content

pin_home

Function pin_home 

Source
pub fn pin_home(
    root: &Path,
    url: &str,
    node_id: &ContentHash,
) -> Result<(), String>
Expand description

Pins node_id as this seed’s home on first contact, and refuses a different one afterwards.

§Errors

The pin names another key, or cannot be read or written.