@@ -24,7 +24,8 @@ interface useKeyfileGeneratorArgs {
2424
2525/**
2626 * The default Keyfile Generator. Can be used by itself, or composed with
27− * other hooks (see `useActivationKeyfileGenerator` and `useHomeKeyfileGenerator`).
27+ * other hooks (see `useActivationKeyfileGenerator` and
28+ * `useSingleKeyfileGenerator`).
2829 *
2930 * @param point Point - (optional) the Point for which to generate keys
3031 * @param seeds string[] - (required) one or more seeds consumed by deriveNetworkKeys
@@ -57,7 +58,6 @@ function useKeyfileGenerator({ point, seeds }: useKeyfileGeneratorArgs) {
5758 const generate = useCallback(async () => {
5859 // Point still loading ...
5960 if (resolvedPoint.value === EMPTY_POINT.value) {
60− console.log('Loading point data ...');
6161 return;
6262 }
6363
@@ -101,7 +101,6 @@ function useKeyfileGenerator({ point, seeds }: useKeyfileGeneratorArgs) {
101101 })
102102 )
103103 );
104− console.log(`keyfile generated for revision ${networkRevision}`);
105104 setGenerating(false);
106105 }, [hasNetworkKeys, seeds, resolvedPoint, networkRevision]);
107106
@@ -208,17 +207,20 @@ export const useActivationKeyfileGenerator = ({
208207 return useKeyfileGenerator({ point, seeds });
209208};
210209
211−interface HomeKeyfileGeneratorArgs {
210+interface SingleKeyfileGeneratorArgs {
212211 seed?: string;
213212}
214213
215214/**
216− * This Home Keyfile Generator is used to derive a multikey in multiple views
217− * in the Bridge dashboard (Set Network Keys, Home > ID, Home > OS views).
215+ * This Single Keyfile Generator is used to derive network keys in multiple
216+ * views in the Bridge dashboard (Set Network Keys, Home > ID, Home > OS).
217+ * By default, it uses the logged in wallet's seed phrase.
218218 *
219219 * * @param seed string - (optional) default: provided by the logged in wallet
220220 */
221−export const useHomeKeyfileGenerator = ({ seed }: HomeKeyfileGeneratorArgs) => {
221+export const useSingleKeyfileGenerator = ({
222+ seed,
223+}: SingleKeyfileGeneratorArgs) => {
222224 // use provided seed, or fallback to deriving from logged in wallet
223225 const { point } = useRollerStore();
224226 const { authMnemonic, authToken, urbitWallet, wallet }: any = useWallet();