Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 16 additions and 3 deletions
|
@ -17,11 +17,17 @@ enum StandardError : int
|
||||||
|
|
||||||
// Authentication/Cryptography Errors
|
// Authentication/Cryptography Errors
|
||||||
case INVALID_PUBLIC_KEY = -3000;
|
case INVALID_PUBLIC_KEY = -3000;
|
||||||
case SESSION_NOT_FOUND = -3001;
|
case UNSUPPORTED_AUTHENTICATION_TYPE = -3001;
|
||||||
case UNSUPPORTED_AUTHENTICATION_TYPE = -3002;
|
case ALREADY_AUTHENTICATED = -3002;
|
||||||
|
case AUTHENTICATION_REQUIRED = -3003;
|
||||||
|
case SESSION_NOT_FOUND = -3004;
|
||||||
|
case SESSION_REQUIRED = -3005;
|
||||||
|
case REGISTRATION_DISABLED = -3006;
|
||||||
|
|
||||||
// General Error Messages
|
// General Error Messages
|
||||||
case PEER_NOT_FOUND = -4000;
|
case PEER_NOT_FOUND = -4000;
|
||||||
|
case INVALID_USERNAME = -4001;
|
||||||
|
case USERNAME_ALREADY_EXISTS = -4002;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the default generic message for the error
|
* Returns the default generic message for the error
|
||||||
|
@ -41,8 +47,15 @@ enum StandardError : int
|
||||||
self::SERVER_UNAVAILABLE => 'Server temporarily unavailable',
|
self::SERVER_UNAVAILABLE => 'Server temporarily unavailable',
|
||||||
|
|
||||||
self::INVALID_PUBLIC_KEY => 'The given public key is not valid',
|
self::INVALID_PUBLIC_KEY => 'The given public key is not valid',
|
||||||
|
self::UNSUPPORTED_AUTHENTICATION_TYPE => 'The requested authentication type is not supported by the server',
|
||||||
|
self::ALREADY_AUTHENTICATED => 'The action cannot be preformed while authenticated',
|
||||||
|
self::AUTHENTICATION_REQUIRED => 'Authentication is required to preform this action',
|
||||||
self::SESSION_NOT_FOUND => 'The requested session UUID was not found',
|
self::SESSION_NOT_FOUND => 'The requested session UUID was not found',
|
||||||
self::UNSUPPORTED_AUTHENTICATION_TYPE => 'The requested authentication type is not supported by the server'
|
self::SESSION_REQUIRED => 'A session is required to preform this action',
|
||||||
|
|
||||||
|
self::PEER_NOT_FOUND => 'The requested peer was not found',
|
||||||
|
self::INVALID_USERNAME => 'The given username is invalid, it must be Alphanumeric with a minimum of 3 character but no greater than 255 characters',
|
||||||
|
self::USERNAME_ALREADY_EXISTS => 'The given username already exists on the network'
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue