Scorum
auth_util_api.hpp
Go to the documentation of this file.
1 
2 #pragma once
3 
5 
6 #include <fc/api.hpp>
7 #include <fc/crypto/sha256.hpp>
8 
9 #include <string>
10 
11 namespace scorum {
12 namespace app {
13 struct api_context;
14 }
15 }
16 
17 namespace scorum {
18 namespace plugin {
19 namespace auth_util {
20 
21 namespace detail {
22 class auth_util_api_impl;
23 }
24 
26 {
27  std::string account_name;
28  std::string level;
29  fc::sha256 dig;
30  std::vector<protocol::signature_type> sigs;
31 };
32 
34 {
35  std::vector<protocol::public_key_type> keys;
36 };
37 
48 {
49 public:
51 
52  void on_api_startup();
53 
57 
64 
66 
67 private:
68  std::shared_ptr<detail::auth_util_api_impl> my;
69 };
70 }
71 }
72 }
73 
76 
77 FC_API(scorum::plugin::auth_util::auth_util_api, (check_authority_signature))
auth_util_api(const scorum::app::api_context &ctx)
check_authority_signature_result check_authority_signature(check_authority_signature_params args)
check_authority_signature
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
()()() name() level(appender)) namespace logger
Definition: asset.cpp:15
std::vector< protocol::public_key_type > keys