Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 4th, 2018 337 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef __CROSS_MAPPING_H__
  2. #define __CROSS_MAPPING_H__
  3. #include <unordered_map>
  4. #include <string>
  5.  
  6. #pragma once
  7.  
  8. typedef std::unordered_map<uint64_t, uint64_t> nMap;
  9. static std::vector<uint64_t> nativeFailedVec;
  10.  
  11. struct CrossMappingEntry
  12. {
  13.     uint64_t first;
  14.     uint64_t second;
  15. };
  16.  
  17. class CrossMapping
  18. {
  19. public:
  20.     static void initNativeMap();
  21.     static uint64_t MapNative(uint64_t inNative);
  22.     static void dumpNativeMappingCache();
  23.     static bool searchMap(nMap map, uint64_t inNative, uint64_t *outNative);
  24. };
  25.  
  26. #endif // __CROSS_MAPPING_H__
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top