ledger-core
BitcoinLikeAddress.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from addresses.djinni
3 
4 #ifndef DJINNI_GENERATED_BITCOINLIKEADDRESS_HPP
5 #define DJINNI_GENERATED_BITCOINLIKEADDRESS_HPP
6 
7 #include <cstdint>
8 #include <string>
9 #include <vector>
10 #ifndef LIBCORE_EXPORT
11  #if defined(_MSC_VER)
12  #include <libcore_export.h>
13  #else
14  #define LIBCORE_EXPORT
15  #endif
16 #endif
17 
18 namespace ledger { namespace core { namespace api {
19 
20 struct BitcoinLikeNetworkParameters;
21 
23 class LIBCORE_EXPORT BitcoinLikeAddress {
24 public:
25  virtual ~BitcoinLikeAddress() {}
26 
31  virtual std::vector<uint8_t> getVersion() = 0;
32 
37  virtual std::vector<uint8_t> getHash160() = 0;
38 
43  virtual BitcoinLikeNetworkParameters getNetworkParameters() = 0;
44 
49  virtual std::string toBase58() = 0;
50 
55  virtual std::string toBech32() = 0;
56 
64  virtual bool isP2SH() = 0;
65 
70  virtual bool isP2PKH() = 0;
71 
76  virtual bool isP2WSH() = 0;
77 
82  virtual bool isP2WPKH() = 0;
83 };
84 
85 } } } // namespace ledger::core::api
86 #endif //DJINNI_GENERATED_BITCOINLIKEADDRESS_HPP
Definition: Account.cpp:8
Definition: BitcoinLikeAddress.hpp:23
Definition: BitcoinLikeNetworkParameters.hpp:17