-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultisig.h
More file actions
40 lines (31 loc) · 858 Bytes
/
Multisig.h
File metadata and controls
40 lines (31 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef MULTISIG_H
#define MULTISIG_H
#include <iostream>
#include <fstream>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <iterator>
#include <bitset>
#include <openssl/sha.h>
#include <curl/curl.h>
#include <nlohmann/json.hpp>
#include <bitcoin/system.hpp>
#include <wally.hpp>
#include <wally_core.h>
#include <wally_crypto.h>
#include <wally_bip32.h>
#include <wally_bip39.h>
#include <openssl/ec.h>
#include <cstdint>
void createMulti();
std::string stringToHex(const std::string &input);
class PublicKeyGenerator {
private:
std::vector<uint32_t> currentCustomPath;
public:
std::vector<std::string> generatePub(const std::string& phrase, const size_t& signers, const uint32_t* initialCustomPath = nullptr, const size_t initialCustomPathLen = 0);
};
#endif // MULTISIG_H