diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 20:38:27 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 20:38:27 -0500 |
commit | 7ab44372d81e86df99b3aefa114a5003df98bc61 (patch) | |
tree | a376b212f73518f7633925bf77d403fc33792953 /hscript/meta.hh | |
parent | bc96edb1c20b0031479cbf23055651c2c92f7afe (diff) | |
download | horizon-7ab44372d81e86df99b3aefa114a5003df98bc61.tar.gz horizon-7ab44372d81e86df99b3aefa114a5003df98bc61.tar.bz2 horizon-7ab44372d81e86df99b3aefa114a5003df98bc61.tar.xz horizon-7ab44372d81e86df99b3aefa114a5003df98bc61.zip |
hscript: Implement SigningKey, add tests
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r-- | hscript/meta.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh index dad4cf3..547349d 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -88,7 +88,14 @@ public: bool execute(ScriptOptions) const override; }; -class SigningKey : public Key { +class SigningKey : public StringKey { +private: + SigningKey(int _line, const std::string &_path) : + StringKey(_line, _path) {} +public: + static Key *parseFromData(const std::string &, int, int *, int *); + bool validate(ScriptOptions) const override; + bool execute(ScriptOptions) const override; }; } |