CatapultServer
v0.5.0.1 (Elephant)
plugins/txes/lock_secret/src/validators/Results.h
Go to the documentation of this file.
1
21
#pragma once
22
#ifndef CUSTOM_RESULT_DEFINITION
23
#include "
catapult/validators/ValidationResult.h
"
24
25
namespace
catapult
{
namespace
validators {
26
27
#endif
28
30
#define DEFINE_SECRET_LOCK_RESULT(DESCRIPTION, CODE) DEFINE_VALIDATION_RESULT(Failure, LockSecret, DESCRIPTION, CODE, None)
31
33
DEFINE_SECRET_LOCK_RESULT
(Invalid_Hash_Algorithm, 1);
34
36
DEFINE_SECRET_LOCK_RESULT
(Hash_Exists, 2);
37
39
DEFINE_SECRET_LOCK_RESULT
(Hash_Not_Implemented, 3);
40
42
DEFINE_SECRET_LOCK_RESULT
(Proof_Size_Out_Of_Bounds, 4);
43
45
DEFINE_SECRET_LOCK_RESULT
(Secret_Mismatch, 5);
46
48
DEFINE_SECRET_LOCK_RESULT
(Unknown_Composite_Key, 6);
49
51
DEFINE_SECRET_LOCK_RESULT
(Inactive_Secret, 7);
52
54
DEFINE_SECRET_LOCK_RESULT
(Hash_Algorithm_Mismatch, 8);
55
57
DEFINE_SECRET_LOCK_RESULT
(Invalid_Duration, 9);
58
59
#ifndef CUSTOM_RESULT_DEFINITION
60
}}
61
#endif
ValidationResult.h
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult::validators::DEFINE_SECRET_LOCK_RESULT
DEFINE_SECRET_LOCK_RESULT(Invalid_Hash_Algorithm, 1)
Validation failed because hash algorithm for lock type secret is invalid.
catapult-server
plugins
txes
lock_secret
src
validators
Results.h
Generated by
1.8.16