Commit Graph

70 Commits (451d6cc79971a690e1a246c0868d07f1359835ed)

Author SHA1 Message Date
Matt Smith 451d6cc799
Wowify nettype.js
4 years ago
Paul Shapiro 304f41d1a7 having exports.compatible_code_from_locale return null for code not found so app can choose what to do
5 years ago
Paul Shapiro 3073a0e81c c 2018 -> 2019
5 years ago
Paul Shapiro 2c3f0dc7bd fixed undefined 'moment' error and added tx parsing tests to hit moment codepath
6 years ago
Paul Shapiro de5b19dbf8 biginteger: exposed CONSTRUCT token for using constructor to recover JSON serialized bigintegers
6 years ago
Paul Shapiro a4d74618df added mnemonic_languages.js utils
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 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 d68c264b67 cryptonote_utils/decode_address: added missing bool parse
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 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 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 5ebcc30499 removed a log
6 years ago
Paul Shapiro 902a35253c updated MyMoneroCoreCpp.js build; cryptonote_utils: extracted destination formatting and money amount formatting to sendingFunds_utils and money_format_utils respectively, and added IPCsafe (string instead of JSBigInt params) create_transaction variant to support call from electron renderer procs etc, and added more complete load readiness waiting interface, and added locateFile impl for passing as emscripten Module template to locate wasm file in various environments; monero_cryptonote_utils_instance: detecting electron renderer and exposing via electron.remote call (will this cause issues with anyone's build systems trying to include electron\?); commenting logs
6 years ago
Paul Shapiro ad4d8024f8 modified emcpp build script organization and added flags
6 years ago
Paul Shapiro b529bdbeaa fix ups to emscripten build procedures; swapped cryptonote_crypto_EMSCRIPTEN with MyMoneroCoreCpp.(js,wasm), and had to introduce blocking to methods which use CNCrypto var due to new async Module init; updated Readme
6 years ago
HenryNguyen5 cc16607acd Add test for simple rct signature generation
6 years ago
HenryNguyen5 4d99ca6e0e Update comments for accuracy
6 years ago
HenryNguyen5 9cde4ef5d7 Change how verRctMG is done
6 years ago
HenryNguyen5 d976f88080 Progress commit
6 years ago
HenryNguyen5 eb0a5aa0b8 Add verRct/Range/RctMG
6 years ago
HenryNguyen5 89a9138ce5 Revert unused parameters removal
6 years ago