logic/auth.js
// determinstically deriving further entropy for any other Umbrel service.
determinstically deriving further entropy for any other Umbrel service.
determinstically deriving further entropy for any other Umbrel service .
async function deriveUmbrelSeed(user) {
  if (await diskLogic.umbrelSeedFileExists()) {
    return;
  }
  const mnemonic = (await seed(user)).seed.join(' ');
  const {entropy} = CipherSeed.fromMnemonic(mnemonic);
  const umbrelSeed = crypto
    .createHmac('sha256', entropy)
    .update('umbrel-seed')
    .digest('hex');
  return diskLogic.writeUmbrelSeedFile(umbrelSeed);
}
async function deriveUmbrelSeed ( user ) { if ( await diskLogic . umbrelSeedFileExists ( ) ) { return ; } const mnemonic = ( await seed ( user ) ) . seed . join ( ' ' ) ; const { entropy } = CipherSeed . fromMnemonic ( mnemonic ) ; const umbrelSeed = crypto . createHmac ( 'sha256' , entropy ) . update ( 'umbrel-seed' ) . digest ( 'hex' ) ; return diskLogic . writeUmbrelSeedFile ( umbrelSeed ) ; }
determinstically deriving further entropy for any other Umbrel service.
determinstically deriving further entropy for any other Umbrel service .