Use password as key, allow 3 letter names
This commit is contained in:
parent
14bb65457c
commit
f0e2227ada
|
@ -15,26 +15,26 @@ import (
|
|||
)
|
||||
|
||||
type CreateKeyRequest struct {
|
||||
Name string `json:"name,omitempty" validate:"required,min=4,printascii"`
|
||||
Passphrase string `json:"passphrase,omitempty" validate:"required,min=10"`
|
||||
Name string `json:"name,omitempty" validate:"required,min=3,printascii"`
|
||||
Passphrase string `json:"password,omitempty" validate:"required,min=10"`
|
||||
|
||||
// Algo is the requested algorithm to create the key
|
||||
Algo string `json:"algo,omitempty"`
|
||||
}
|
||||
|
||||
type DeleteKeyRequest struct {
|
||||
Name string `json:"name,omitempty" validate:"required,min=4,printascii"`
|
||||
Passphrase string `json:"passphrase,omitempty" validate:"required,min=10"`
|
||||
Name string `json:"name,omitempty" validate:"required,min=3,printascii"`
|
||||
Passphrase string `json:"password,omitempty" validate:"required,min=10"`
|
||||
}
|
||||
|
||||
type UpdateKeyRequest struct {
|
||||
Name string `json:"name,omitempty" validate:"required,min=4,printascii"`
|
||||
OldPass string `json:"passphrase,omitempty" validate:"required,min=10"`
|
||||
Name string `json:"name,omitempty" validate:"required,min=3,printascii"`
|
||||
OldPass string `json:"password,omitempty" validate:"required,min=10"`
|
||||
NewPass string `json:"new_passphrase,omitempty" validate:"required,min=10"`
|
||||
}
|
||||
|
||||
type SignRequest struct {
|
||||
Name string `json:"name,omitempty" validate:"required,min=4,printascii"`
|
||||
Name string `json:"name,omitempty" validate:"required,min=3,printascii"`
|
||||
Password string `json:"password,omitempty" validate:"required,min=10"`
|
||||
|
||||
Tx basecoin.Tx `json:"tx" validate:"required"`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# These global variables are required for common.sh
|
||||
SERVER_EXE=basecoin
|
||||
CLIENT_EXE=basecli
|
||||
ACCOUNTS=(jaekwon ethan bucky rigel igor)
|
||||
ACCOUNTS=(jae ethan bucky rigel igor)
|
||||
RICH=${ACCOUNTS[0]}
|
||||
POOR=${ACCOUNTS[4]}
|
||||
|
||||
|
|
Loading…
Reference in New Issue