Commit Graph

154 Commits (f6e497bbcc264d2fba4455ac03c33f46a5c2acc7)
 

Author SHA1 Message Date
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
Paul Shapiro d87f12b773 added missing OnceModuleReady to bridged fns ... this might get replaced with promises
6 years ago
Paul Shapiro d68c264b67 cryptonote_utils/decode_address: added missing bool parse
6 years ago
Paul Shapiro a7c64bdf49 readme: removed empty library roadmap section; updated regular contributors
6 years ago
Paul Shapiro 3a764f57ed removed old jest tests.. test which requires index.js triggers Math.random throw somehow.. crypto module / env probably not detected in emscripten.. considering dumping jest(..\?); --verbose on jest call
6 years ago
Paul Shapiro f5e6f1ef99 removed a bunch of tests which don't apply - they should be implemented on monero-core - this commit lacks updates to tests/cryptonote_utils.spec.js, some of which still apply
6 years ago
Paul Shapiro e073d278ed monero_sendingFunds_utils: removed mixin param to SendFunds, returning mixin, and tx_key
6 years ago
Paul Shapiro 7aa962de56 removed now unneccessary monero_wallet_utils wrapper fns
6 years ago
Paul Shapiro 06922f0e7d monero_paymentID_utils: removed (now-) old wrapper around monero_utils.new_payment_id
6 years ago
Paul Shapiro fb433f5c16 removing some now unused files and switching pid gen to monero_utils
6 years ago
Paul Shapiro 35c5839254 cryptonote_utils: added unlock_time to create_tx call
6 years ago
Paul Shapiro ece0890bb8 updated mymonerocorecpp with create tx tweaks from feedback
6 years ago
Paul Shapiro 0bad8449de unlock_time exposed; updating to fixed output amount overflow check
6 years ago
Paul Shapiro e881939e66 removed a log
6 years ago
Paul Shapiro 1bdfe2cbdb updated cryptonote_utils and sendingFunds usage of create_transaction to move dsts to core cpp, passing change amount, etc
6 years ago
Paul Shapiro 360cfa8d9c added missing to addr to dsts in core cpp from last commit
6 years ago
Paul Shapiro f6428658f0 updated mymonerocorecpp to remove need to send dsts to create tx and to fix short pid create tx issue
6 years ago
Paul Shapiro c9ccf85785 err msg for code
6 years ago
Paul Shapiro 61426b0d1c cryptonote_utils: added migrations from throws to err_msg rets which somehow got dropped from a previous commit; integrated create_transactions, with necessary serialization prep / sanitization .. this required changing the interface slightly, as well as condensing the create_transaction and serialize_tx steps in monero_sendingFunds_utils
6 years ago
Paul Shapiro 34954b3dca updated mymonerocorecpp to remove requirement to precompute/pass dsts is_subaddress
6 years ago
Paul Shapiro 0699298633 preventing calls to Math.random given existence (but probable unreachability) of emscripten call; added window.crypto-based impl of 0-1 float getRandom
6 years ago
Paul Shapiro 6a328b6540 removed newlycreatedwallet now-redundant interface fn; added core cpp support for language code -> mnemonic language; removed now unused rand gen fns from cryptonote_utils; added _monero_utils_i(instance)_nonthrowing for usage on an electron main process as remotely called by an electron renderer process, and added unpacking of err msgs to throws so as not to crash call to remote
6 years ago
Paul Shapiro a39bb6ebf2 updated mymonerocorecpp for lang code prefix checking support
6 years ago
Paul Shapiro 4b38effd37 updated mymonero core cpp to remove some exceptions
6 years ago
Paul Shapiro 49b7c51811 updated mymonerocorecpp for language_code support
6 years ago
Paul Shapiro 5a8de614c1 updated mymonero-core-cpp to get tx_key in create_transaction and rebuilt mymonerocorecpp
6 years ago
Paul Shapiro 87909492bc added missing mnemonic_language return
6 years ago
Paul Shapiro dfab7203fa fixed up nettype in seed_and_keys_from_mnemonic call; cryptonote_utils and monero_wallet_utils: moved mnemonic equals and language implementation to C++
6 years ago
Paul Shapiro a0f3bcd69c bridged are_equal_mnemonics
6 years ago
Paul Shapiro 84c8db7756 wallet and fake addr for rct tx method integrations; moved estimatedRctSize; moved tx parsing fns out of cryptonote_utils
6 years ago
Paul Shapiro 772fc340f9 updated estimateRctSize
6 years ago
Paul Shapiro 8dc79ad999 switching back to wasm and optimizing via lto - we must be on the watch for regressions with LTO; removing link to various boost libs which are apparently unnecessary - surprised me, not sure I understand
6 years ago
Paul Shapiro b7a996349e some minor cleanups and rebuilds.. switching to O3 instead of Oz to retest speed of key img gen under asm.js before wasm given now no openssl dep
6 years ago
Paul Shapiro a7d31c8777 removing openssl
6 years ago
Paul Shapiro 8bc0cbdacb partial work to integrate new core - WIP, to now remove openssl
6 years ago
Paul Shapiro d517038059 switching from wasm to asm.js for numerous reasons such as load time (currently, tradeoff is that seed-and-keys-from-mnemonic takes a long time for some reason, maybe keccak... keep JS impl?), switching optimizations to speed
6 years ago
Paul Shapiro 59a383c7c1 bridged new serial_bridge_index methods and added all manual call test cases in MyMoneroCoreCpp_int.node.js - pending replacing JS API fns with these calls. this commit shows the first working POC of transpiling the major monero src to JS, and has shown that startup time must be optimized. that's currently a WIP.. contribution welcome
6 years ago
Paul Shapiro b9cdc1966d removed monero-core-custom top lvl submod as it's now within mymonero-core-cpp
6 years ago
Paul Shapiro fad0bd589b new mymonero-core-cpp commits
6 years ago
Paul Shapiro 002bcaa657 added new mymonero-core-cpp (aka …--new) as submodule, with bin/update_submodules and Readme update
6 years ago
Paul Shapiro 4d7eb477ac build-openssl-emscripten.sh: fixed -i suffix
6 years ago
Paul Shapiro e58ff678d3 openssl build scripts -- pending bridge to new C++ impls, incl bulletproofs
6 years ago
Paul Shapiro 5ebcc30499 removed a log
6 years ago