hdac SDK
SDK for hdac blockchain development
transactions.h
1 #ifndef TRANSACTIONS_H
2 #define TRANSACTIONS_H
3 
4 #include <json_spirit/json_spirit.h>
5 #include <string>
6 #include <memory>
7 #include <structs/uint256.h>
8 #include "standard.h"
9 
10 struct mc_EntityDetails;
11 
12 #define MC_ASSET_KEY_UNCONFIRMED_GENESIS 1
13 #define MC_ASSET_KEY_VALID 0
14 #define MC_ASSET_KEY_INVALID_TXID -1
15 #define MC_ASSET_KEY_INVALID_REF -2
16 #define MC_ASSET_KEY_INVALID_NAME -3
17 #define MC_ASSET_KEY_INVALID_SIZE -4
18 #define MC_ASSET_KEY_INVALID_EMPTY -5
19 
20 
21 bool AssetRefDecode(unsigned char *bin, const char* string, const size_t stringLen);
22 void ParseEntityIdentifier(json_spirit::Value entity_identifier,mc_EntityDetails *entity,uint32_t entity_type);
23 
24 class IPrivateKeyHelper;
25 class CKey;
26 CKey keyFromPrivateKey(const std::string& privateKey, const IPrivateKeyHelper& helper);
27 
28 class CScript;
29 bool solver(const std::string& privateKey, const IPrivateKeyHelper& helper, const CScript& scriptPubKey,
30  uint256 hash, int nHashType, const std::string& unspentRedeemScript,
31  CScript& scriptSigRet, txnouttype& whichTypeRet);
32 
33 bool ExtractDestinationScriptValid(const CScript& scriptPubKey, CTxDestination& addressRet);
34 
35 #endif // TRANSACTIONS_H
Definition: asset.h:79
Definition: keyshelper.h:30
Definition: uint256.h:294
Definition: script.h:336
Definition: key.h:29