Fix typo that makes no difference to program

This commit is contained in:
Arzumify 2024-08-29 10:31:58 +01:00
parent b867612961
commit 0dbea32590

View file

@ -646,14 +646,14 @@ func PackageEPK(metaData Metadata, build Build, tempDir string, output string, p
} }
// Create the hash writer // Create the hash writer
sha512Hash := xxhash.New() xxHash := xxhash.New()
_, err = sha512Hash.Write(dataTemplateBytes) _, err = xxHash.Write(dataTemplateBytes)
if err != nil { if err != nil {
return err, nil return err, nil
} }
// Create a multi-writer so we can write to the file and the hash at the same time // Create a multi-writer so we can write to the file and the hash at the same time
multiWriter := io.MultiWriter(file, sha512Hash) multiWriter := io.MultiWriter(file, xxHash)
// Create the ZStandard writer // Create the ZStandard writer
writer, err := zstd.NewWriter(multiWriter, zstd.WithEncoderLevel(zstd.SpeedDefault)) writer, err := zstd.NewWriter(multiWriter, zstd.WithEncoderLevel(zstd.SpeedDefault))
@ -679,7 +679,7 @@ func PackageEPK(metaData Metadata, build Build, tempDir string, output string, p
}) })
// Sign the hash // Sign the hash
signature := ed25519.Sign(privateKey, sha512Hash.Sum(nil)) signature := ed25519.Sign(privateKey, xxHash.Sum(nil))
publicKey := privateKey.Public().(ed25519.PublicKey) publicKey := privateKey.Public().(ed25519.PublicKey)
// Write the signature and public key to the file // Write the signature and public key to the file