Commit Graph

33 Commits (4cc03006a819f1775b7a9ef6a89dcaf4b5f45287)

Author SHA1 Message Date
Guten Ye 04403c5872 Fix encrypt_payment_id typo
5 years ago
Guten Ye 7c8ff4a54e Added encrypt_payment_id
5 years ago
Paul Shapiro 3073a0e81c c 2018 -> 2019
5 years ago
Guten Ye 5950000a06 Added decodeRctSimple
6 years ago
Paul Shapiro 8ceb35f95a
Merge pull request #71 from ExodusMovement/guten/derivation_to_scalar
6 years ago
Guten Ye 882e3f9ab8 Remove newline at the end of file
6 years ago
Guten Ye dd9df3a39b Remove newline at the end of file
6 years ago
Guten Ye 3902091a7f Added derivation_to_scalar
6 years ago
Guten Ye d5e4151a6d Added estimate_rct_tx_size
6 years ago
Paul Shapiro 4936f4ec6d removed old comments
6 years ago
Paul Shapiro 60d5897325 completed async__send_funds in CoreBridge
6 years ago
Paul Shapiro 43f0096a42 opted to change return {err_msg} to throws
6 years ago
Paul Shapiro 9bfa1acee0 big changes: removed monero_utils file, plus IPCSafe_remote_monero_utils (this is now up to applications); completely reworked monero_sendingFunds - SendFunds is gone, now implemented in MyMoneroCoreBridge; removed response_parser_utils unspent outs parsing; updated sendingFunds.spec.... next commit will change CoreBridge return { err_msg } to throws since no IPC is necessary anymore
6 years ago
Paul Shapiro 1ba894aed3 added emscr async send bridge, beginning to implement new async send bridge
6 years ago
Paul Shapiro 17baa7c2dc MyMoneroCoreBridge: xmlhttprequest vs fetch comment
6 years ago
Paul Shapiro 2a6be2dcea minor comment about usage of eval()
6 years ago
Paul Shapiro 63ffa3e868 MyMoneroCoreBridge: added missing 'reject' to promise cb
6 years ago
Paul Shapiro 859935585a minor comment, and catching undefined reject in monero_utils
6 years ago
Paul Shapiro 18b281e134 enabled asmjs as additional build target, and added code to monero_utils/MyMoneroCoreBridge.js with preliminary wasm support detection and fallback to loading separated asm.js file (and different MyMoneroCoreCpp for ASMJS) to remove need for wasm users to load asmjs and asmjs loading code; the asm.js file is separated out from MyMoneroCoreCpp_ASMJS.js with --separate-asm to improve initial load time and, more importantly here, to enable bin/package_browser_js and other webpack like builds to keep the majority of the asmjs separate from the main mymonero_core.js (or e.g. mymonero_app_browser.js) bundle, so that wasm users don't have to load the asmjs along with the main app bundle - however, the overhead of bundling MyMoneroCoreCpp_ASMJS.js into such a main bundle does still exist. in near future, it would be nice to add an option to webpack.config.browser.common.js or bin/package_browser_js or possible just inheriting/alternate versions of those which can opt to remove asmjs support and throw an exception or alert if it's simply not supported - this is probably what MyMonero will move to within a year or two as legacy browsers fade from usage
6 years ago
Paul Shapiro c3351a5a7c minor comment
6 years ago
Paul Shapiro 5611835d14 updated mymonero-core-cpp; updated bridge for new stepwise sending implementation (ported majority of SendFunds to C++ as send_step*_…; updated tests and removed removed bridge methods like calculate_fee, estimate rct tx size, and create_transaction; New: added tests/sendingFunds.spec.js as integration tests for new monero_sendingFunds_utils implementation - run with 'npm test -- tests/sendingFunds.spec.js'; CMakeLists: enabled ASSERTIONS
6 years ago
Paul Shapiro 3d64d6e0ba added a way to build for and run asmjs
6 years ago
Paul Shapiro 6ce669c76c MyMoneroCoreBridge: setting est fee bulletproof flag default true; tests minor similar updates
6 years ago
Paul Shapiro f6d572787f fixed MyMoneroCoreBridge locateFile() to support Windows paths by detecting node directly and using path module.. and clarified comment
6 years ago
Paul Shapiro b7ca0152a4 deleted new_fake_address_for_rct_tx
6 years ago
Paul Shapiro da0a95abd9 MyMoneroCoreBridge/api_safe_wordset_name: replaced capitalization with specific string match/mapping
6 years ago
Paul Shapiro 4961bda5fa MyMoneroCoreBridge: removed comment
6 years ago
Paul Shapiro 299c0c4bd6 added address_and_keys_from_seed (aka create_address in previous mymonero-core-js), generate_key_derivation, derive_public_key, derive_subaddress_public_key, and decodeRct
6 years ago
Paul Shapiro 0e48a02c29 cleaned up code around test declarations; revived a few old tests for new methods for #56, and added method scaffolds for them (incremental commit); replaced Jest with Mocha
6 years ago
Paul Shapiro 1675952d68 added calculate_fee, estimated_tx_network_fee, estimate_rct_tx_size bridge fns
6 years ago
Paul Shapiro ba5681be39 renamed some tests; (partial) uncommented fee est fns
6 years ago
Paul Shapiro f6e497bbcc updated monero_utils to support calls which are safe over IPC to an electron remote from renderer proc's require
6 years ago
Paul Shapiro ef830ad28a lots of moving things around; implemented promise constructor for monero_utils (which is actually MyMoneroCoreBridge, a new class to replace cnUtil).. this was chosen after trying both promises directly in the functions and async/await in one or two decent patterns in order to avoid the requirement that integrators support async/await and to retain the option for calls to monero_utils to remain synchronous - added src/module-post as a post-js in order to fix emscripten .then infinite loop ... this PR does not include any kind of support for calling from electron renderer to electron main - that is, the code to detect electron renderer, then intercept ret.err_msg and throw only if not in electron renderer, and relay ret.err_msg otherwise has been removed for the moment.. will likely be added back
6 years ago