fn write_plan<N: Network>(path: &Path, plan: &RecoveryPlan<N>) -> Result<()>where N::TxEnvelope: Serialize,