mirror of
https://github.com/status-im/status-go.git
synced 2025-01-22 04:31:30 +00:00
735a422230
* chore_: create v2 endpoints for status.go to use status-backend server * feat_: support using http for media server (#6060)
23 lines
698 B
Go
23 lines
698 B
Go
package requests
|
|
|
|
import (
|
|
"gopkg.in/go-playground/validator.v9"
|
|
)
|
|
|
|
// VerifyAccountPassword represents a request to verify an account password.
|
|
type VerifyAccountPassword struct {
|
|
// KeyStoreDir is the directory where the keystore files are located.
|
|
KeyStoreDir string `json:"keyStoreDir" validate:"required"`
|
|
|
|
// Address is the Ethereum address for the account.
|
|
Address string `json:"address" validate:"required"`
|
|
|
|
// Password is the password to verify against the keystore.
|
|
Password string `json:"password" validate:"required"`
|
|
}
|
|
|
|
// Validate checks the validity of the VerifyAccountPassword request.
|
|
func (v *VerifyAccountPassword) Validate() error {
|
|
return validator.New().Struct(v)
|
|
}
|