-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript_functions.h
More file actions
21 lines (16 loc) · 893 Bytes
/
script_functions.h
File metadata and controls
21 lines (16 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SCRIPT_FUNCTIONS_H
#define SCRIPT_FUNCTIONS_H
#include "types.h"
#include "descriptor.h"
std::string get_script_string(const ScriptExpression& script_expr);
std::string sh_get_script(const ScriptExpression& script_expr);
std::string wsh_get_script(const ScriptExpression& script_expr);
std::string pk_get_script(const ScriptExpression& script_expr);
std::string pkh_get_script(const ScriptExpression& script_expr);
std::string wpkh_get_script(const ScriptExpression& script_expr);
std::string multi_get_script(const ScriptExpression& script_expr);
const std::unordered_map<ScriptType, std::string(*)(const ScriptExpression&)> script_functions =
{{ScriptType::SH, sh_get_script}, {ScriptType::WSH, wsh_get_script},{ScriptType::PK, pk_get_script},
{ScriptType::PKH, pkh_get_script}, {ScriptType::WPKH, wpkh_get_script}, {ScriptType::MULTI, multi_get_script}
};
#endif