status-go/protocol/requests/delete_imported_key.go
frank 7a23ac59c4
fix_: ignore log partial API request (#5865)
* fix_: ignore log partial sensitive API request

* chore_: use validator

* chore_: rebase
2024-09-27 11:48:51 +01:00

23 lines
663 B
Go

package requests
import (
"gopkg.in/go-playground/validator.v9"
)
// DeleteImportedKey represents a request to delete an imported key.
type DeleteImportedKey struct {
// Address is the address of the imported key to delete.
Address string `json:"address" validate:"required"`
// Password is the password used to decrypt the key.
Password string `json:"password" validate:"required"`
// KeyStoreDir is the directory where the key is stored.
KeyStoreDir string `json:"keyStoreDir" validate:"required"`
}
// Validate checks the validity of the DeleteImportedKey request.
func (r *DeleteImportedKey) Validate() error {
return validator.New().Struct(r)
}