chore: clean code

This commit is contained in:
Hintay 2025-02-08 00:02:59 +09:00
parent 9cbbd429d9
commit 70f4f63524
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D
3 changed files with 16 additions and 16 deletions

View file

@ -10,13 +10,13 @@ import (
// GetPublicKey generates a new ED25519 key pair and registers it in the cache
func GetPublicKey(c *gin.Context) {
sign, err := crypto.GetCryptoParams()
params, err := crypto.GetCryptoParams()
if err != nil {
api.ErrHandler(c, err)
return
}
c.JSON(http.StatusOK, gin.H{
"public_key": sign.PublicKey,
"public_key": params.PublicKey,
})
}