Commit Graph

297 Commits (master)
 

Author SHA1 Message Date
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 64bc1cfa96 monero_utils/monero_utils: added webassembly detection with separate flag to indicate availability of asmjs in build (set to off for now until it can be packaged and loaded separately - probably requires exception in webpack config; tweaks to asmjs build flags to improve performance; added tests/web/test_harness.html (run with simple http server having copied webpacked build/mymonero-core.js and build/mymonero_core_js/ to tests/web/
6 years ago
Paul Shapiro c3351a5a7c minor comment
6 years ago
Paul Shapiro 789c1fa71b breaking change to UnspentOuts hostedMoneroAPIClient method callback args: removed redundant unusedOutputs and switched over to mandatory return of per byte fee - prefers per b in API response with fallback to per kb for deploy rollover - per kb can be removed in the future
6 years ago
Paul Shapiro eb9db411f6 updated SendFunds to take number or string for amount - todo: migrate this to string only
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 d60df76402 archive-emcpp: comments about possible cp cmd errors
6 years ago
Paul Shapiro fdd92d9658 CMakeLists: memory-init-file=0 (no .mem) option for asmjs builds since some clients like RN have trouble loading them -- this can be re-enabled as an option perhaps by cmake option
6 years ago
Paul Shapiro 20bf90c7d0 removed final__pid_encrypt
6 years ago
Paul Shapiro 3d64d6e0ba added a way to build for and run asmjs
6 years ago
Paul Shapiro 979a130ee3 sendingFunds: removed monero_openalias_utils as dep of SendFunds - was quite silly and wasn't even this repo
6 years ago
Paul Shapiro 319174b16d added webpack browser library bundling process
6 years ago
Paul Shapiro 6ce669c76c MyMoneroCoreBridge: setting est fee bulletproof flag default true; tests minor similar updates
6 years ago
Paul Shapiro 9c20339f19 updated emscripten build for 0.13.0.3 (enabled bulletproofs); updated emscripten to that built by 1.38.13 from 1.38.8; added boost::chrono fsyncobj now()
6 years ago
Paul Shapiro 0607e1ecea mymonero core cpp updates - just its tests though
6 years ago
Paul Shapiro aa70f6c480 package.json: v 1.1.0 for ringsize 11
6 years ago
Paul Shapiro 6932103c4b rebuild MyMoneroCoreCpp.(js,wasm) with updated ringsize cpp and updated tests with enough decoys to construct tx
6 years ago
Paul Shapiro cc4c1d24d6 removed old function
6 years ago
Paul Shapiro bbbb50836c updated min ringsize to 11 - tests need to be updated
6 years ago
Paul Shapiro 56c1fe2ffc monero_utils: renderer wasm load timer duration += 20ms
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 de5b19dbf8 biginteger: exposed CONSTRUCT token for using constructor to recover JSON serialized bigintegers
6 years ago
Paul Shapiro b7ca0152a4 deleted new_fake_address_for_rct_tx
6 years ago
Paul Shapiro 662b8487aa sendingFunds_utils: SendFunds(): changed sentAmount callback arg from float to JSBigInt
6 years ago
Paul Shapiro da0a95abd9 MyMoneroCoreBridge/api_safe_wordset_name: replaced capitalization with specific string match/mapping
6 years ago
Paul Shapiro bb00d6a6c8 removed log
6 years ago
Paul Shapiro 44e1483fe9 sendingFunds_utils: removed impls of estimateRctSize and calculate_fee plus calls to them by SendFunds() now that they're implemented in core-cpp
6 years ago
Paul Shapiro 632d060cc6 README: note about create_address
6 years ago
Paul Shapiro fbee6fcc05 README: removed some tabs
6 years ago
Paul Shapiro 4961bda5fa MyMoneroCoreBridge: removed comment
6 years ago
Paul Shapiro e47c466151 README: api docs
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 a5866fc187
Merge pull request #41 from mymonero/cpp
6 years ago
Paul Shapiro a4d74618df added mnemonic_languages.js utils
6 years ago
Paul Shapiro 12913740af package.json: removed old async dependency - zero deps\!
6 years ago
Paul Shapiro ade81fff6a view only wallet login tests
6 years ago
Paul Shapiro 5518bf3ae4 added wallet creation check
6 years ago
Paul Shapiro df247053b8 removed EstimatedTransaction_networkFee
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 0beee7d81d txParsing/isTransactionConfirmed: checking nil height before comparison to prevent false positives
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
Paul Shapiro 4a789ffcfe moved test file
6 years ago
Paul Shapiro 28f9246da8 fixed silly unterminated call stack regression in create transaction
6 years ago
Paul Shapiro 7de3cfcefa removed Math.random replacement with throw pending merge of https://github.com/kripken/emscripten/pull/7096 and replaced Math.random in list rand index in monero_sendingFunds_utils
6 years ago
Paul Shapiro 1cd6a1dfe6 updated MyMoneroCoreCpp with build that removed Math.random() usage
6 years ago
Paul Shapiro 85502fce1f removed '_IPCSafe' suffix and added '_nonIPCSafe' to the other for clarity
6 years ago
Paul Shapiro 0381c76760 tests: clarified how to load cryptonote_utils
6 years ago