73 Commits (ca153669363d616c64c5c15728378bdd21092466)

Author SHA1 Message Date
Paul Shapiro ca15366936 added bool->str to serial_bridge_utils - this can probably be improved with a fn using a generic type
5 years ago
Paul Shapiro df52b0d6b8 added is_a_valid_or_not_a_payment_id to monero_paymentID_utils
5 years ago
Paul Shapiro cd8490837e moved emscr_async_send_bridge to this repo from core-js
5 years ago
Paul Shapiro 365f4a1a5c added fee_mask support
5 years ago
Paul Shapiro 888098e861 added missing pass by ref for ptree in api_fetch_cb_fn arg
6 years ago
Paul Shapiro 966f137d30 fixed pre-rct out .rct field empty detection
6 years ago
Guten Ye 3b1cd7ae03 Added encrypt_payment_id
6 years ago
Paul Shapiro 07b76fea30 c 2018 -> 2019
6 years ago
Guten Ye 10ebb31d49 Added derivation_to_scalar
6 years ago
Guten Ye f896490c21 Added decodeRctSimple
6 years ago
Paul Shapiro fb9b24d804 Merge branch 'develop' of github.com:mymonero/mymonero-core-cpp into develop
6 years ago
Paul Shapiro a143ee2037 monero_send_routine: replacing pass-by-ref since that was not the real issue
6 years ago
Paul Shapiro a60835b2bd Merge branch 'develop' of github.com:mymonero/mymonero-core-cpp into develop
6 years ago
Paul Shapiro e11449378f async_send_funds args: copies instead of refs to prevent going out of scope exceptions
6 years ago
Paul Shapiro d0d7584fca
Merge pull request #12 from ExodusMovement/guten/estimate_rct_tx_size
6 years ago
Paul Shapiro 707416165b ndorf: Pass ptree by const ref
6 years ago
Paul Shapiro 399d3fadf1 Implemented async monero send routine
6 years ago
Guten Ye 1fd7d422bd Added estimate_rct_tx_size
6 years ago
Paul Shapiro 41fbc55521 added bridge__mainnet_pubKeyDerivations test case to verify output ownership in generated txs; monero_transfer_utils / serial_bridge_index: exposed tx_pub_key retVal .. one possible addtl retVal would be the output pub keys.. but is there a use in non-test envs for that data?
6 years ago
Paul Shapiro e9d411deec updated monero_wallet_utils::decoded_seed with support to sanitize mnemonic string input with redundant and illegal whitespace chars, and updated tests; fixed bug in same function which prevented to_lower() call from being effective
6 years ago
Paul Shapiro 13b943d580 integrating openmonero's fix for mymonero-app-js#240 for spending rct coinbase outs
6 years ago
Paul Shapiro 6f11fff141 monero_transfer_utils: minor comment clarifications, formatting, and checking (basically impossible) err retval from _rct_hex_to_decrypted_mask; test_all: added stagenet coinbase outputs send test
6 years ago
Paul Shapiro aea00b3108 monero_transfers_utils removed unused line that caused extra copy
6 years ago
Paul Shapiro c71b31ce53 validate components for login: disallowing subaddrs
6 years ago
Paul Shapiro ee3eede5d2 send step2 clarified arg sending_amount as final_total_wo_fee
6 years ago
Paul Shapiro 9ed97d0902 commented some new logs - it would be nice to enable these later
6 years ago
Paul Shapiro 8c81237303 send: tweaked step2 name
6 years ago
Paul Shapiro 7874458317 serial_bridge: added missing err_msg when errCode on new send fns
6 years ago
Paul Shapiro 617659c707 fixed bug when sending to subaddrs - cryptonote_tx_utils takes a list of tx_destination_entrys which it assumes have got their is_subaddr flags set correctly - and the flag that the to-address is a subaddress didn't get ported from cn_utils construct/create tx because we didn't need to do it in core-js to add subaddr support there – given that in core-js we modified the pub key for subaddr sending by directly detecting whether the dst addr is a subaddr – a difference from cryptonote_tx_utils. funds that were sent using the faulty subaddr support are not lost and are recoverable because only the tx pub key of the txs was incorrectly written - if the correct tx pub key is generated and use for that tx then funds can be scanned and sent from the correct receiving wallet - mymonero-app-js#237
6 years ago
Paul Shapiro a9daf4cef9 ported of send_coins.js / SendFunds() to C++, incl initial block weight support (previous commit already updated fee); set a few 'rct' lookups from get() to get_optional() in serial bridge (likely bugfix for pre rct outs - probably was the cause of some exceptions); returning tx and txBlob_byteLength from convenience__create_transaction for send fns; removed now unnecessary calculate_fee, estimate_rct_tx_size, create_transaction from bridge (encapsulated in send routine).. switched estimated_tx_network_fee over to fee_per_b (API change - the app-side bridge will take fee_per_kb with optl fee_per_b, preferring the latter and converting the former to b by /= 1024
6 years ago
Paul Shapiro bb9e55d4fe initial fee updates for block weight based tx construction; moved some functions around (+monero_fee_utils)
6 years ago
Paul Shapiro d8d3c0f1a6 monero_wallet_utils: switched from memcpy to .data() access
6 years ago
Paul Shapiro 69d69634fc updated to 0.13.0.3
6 years ago
Paul Shapiro 3d81b96812 updating fixed_ringsize from 7 to 11
6 years ago
Paul Shapiro db905570d0 removed new_fake_address_for_rct_tx as it's already in create_transaction
6 years ago
Paul Shapiro 55f2ac867b monero_address_utils: BOOST_THROW_EXCEPTION -> THROW_WALLET_EXCEPTION_IF
6 years ago
Paul Shapiro 1054d0c780 removed accidentally committed debug log
6 years ago
Paul Shapiro 5d2e6db0f3 uint -> unsigned int for emscripten
6 years ago
Paul Shapiro 916b154e31 added address_and_keys_from_seed (renamed from create_address in old mymonero-core-js), generate_key_derivation, derive_public_key, derive_subaddress_public_key, and decodeRct
6 years ago
Paul Shapiro aca5f31361 serial_bridge_index: validate components for login: sec spend key and seed: added missing get_optionals to expose view-only login
6 years ago
Paul Shapiro e8620e3c6f serial_bridge_index: changed .get for rct to get_optional
6 years ago
Paul Shapiro 95f140f373 some cleanups per feedback
6 years ago
Paul Shapiro 31c63e2f40 exposed create_transaction unlock_time via bridge
6 years ago
Paul Shapiro a2c1036ef2 create_transaction: checking output amount overflow before addition
6 years ago
Paul Shapiro 37d01a885e added missing to_addr to prev commit's dsts (regression - funds didn't appear at target)
6 years ago
Paul Shapiro 08edc0bd58 modified the interface to create transactions to remove requirement to construct and send dsts with either change or fake dst, by exposing change amount as param and uncommenting kept change addr / dsts construction - which actually solves a tx not created bug when sending to an addr (who is not oneself) with a short pid
6 years ago
Paul Shapiro c12e98f4ba having err code json ret include err_msg
6 years ago
Paul Shapiro a5fc7efa38 removed requirement to pass dsts[i].is_subaddress via bridge
6 years ago
Paul Shapiro 4032bc1dec language code support for checking prefix instead of full string
6 years ago
Paul Shapiro dd28854917 removed some exceptions when the error should be allowed to be passed back
6 years ago