You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: passphrase_stream_store.go
    path of file: ./repos/client/go/libkb
    
    the code of the file until where you have to start completion: // Copyright 2019 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.

package libkb

// Code in this file drives a temporary storage for PWHash and EdDSA parts of
// passphrase stream. If signup is done with GenerateRandomPassphrase=true and
// it fails, but after SignupJoin has already succeeded (so account has been
// created, but it has no sigchain or devices), we store PWHash and EdDSA parts
// of passphrase stream using additional two secret store entries. Each part is
// 32-bytes so they fit using existing secret store code: we pretend these are
// LKSecFullSecret.

// This partial passphrase stream is then used during login to let the user in
// and continue signu
    
func StorePwhashEddsaPassphraseStream(mctx MetaContext, username NormalizedUsername, pps *PassphraseStream) (err error) {
	defer mctx.Trace(fmt.Sprintf("StorePwhashEddsaPassphraseStream(%q)", username),
		&err)()

	ss := mctx.G().SecretStore()

	var secret LKSecFullSecret
	var id NormalizedUsername

	prevOptions := ss.GetOptions(mctx)
	ss.SetOptions(mctx, &SecretStoreOptions{RandomPw: true})
	// Restore secret store options after we are done here.
	defer ss.SetOptions(mctx, prevOptions)

	defer func() {
		if err != nil {
			// Never store partial secret.
			mctx.Debug("Clearing partial secret after unsuccessful store, error was: %s", err)
			clrErr := ClearPwhashEddsaPassphraseStream(mctx, username)
			if clrErr != nil {
				mctx.Debug("Failed to clear: %v", clrErr)
			}
		}
	}()

	secret, err = newLKSecFullSecretFromBytes(pps.EdDSASeed())
	if err != nil {
		return err
	}
	id = formatPPSSecretStoreIdentifier(username, ssEddsaSuffix)
	if err := ss.StoreSecret(mctx, id, secret); err != nil {
		return err
	}

	secret, err = newLKSecFullSecretFromBytes(pps.PWHash())
	if err != nil {
		return err
	}
	id = formatPPSSecretStoreIdentifier(username, ssPwhashSuffix)
	if err := ss.StoreSecret(mctx, id, secret); err != nil {
		return err
	}

	return nil
}