aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Establish Monzero Phase 0 and inactive assets baselinemonzero-phase0-assets-prototype-20260815Monzero Build System7 hours1-1/+1
|
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* CMake: glob missing headers for wallet2mj-xmr2021-05-141-12/+1
|
* cmake: wallet_api doesn't need wallet_mergedselsta2021-04-271-41/+0
|
* Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| | | | Update copyright year to 2020
* build: fix IOS, build blockchain_db and rpc, skip wallet_rpc_serverxiphon2019-11-091-32/+33
|
* daemon, wallet: new pay for RPC use systemmoneromooo-monero2019-10-251-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Daemons intended for public use can be set up to require payment in the form of hashes in exchange for RPC service. This enables public daemons to receive payment for their work over a large number of calls. This system behaves similarly to a pool, so payment takes the form of valid blocks every so often, yielding a large one off payment, rather than constant micropayments. This system can also be used by third parties as a "paywall" layer, where users of a service can pay for use by mining Monero to the service provider's address. An example of this for web site access is Primo, a Monero mining based website "paywall": https://github.com/selene-kovri/primo This has some advantages: - incentive to run a node providing RPC services, thereby promoting the availability of third party nodes for those who can't run their own - incentive to run your own node instead of using a third party's, thereby promoting decentralization - decentralized: payment is done between a client and server, with no third party needed - private: since the system is "pay as you go", you don't need to identify yourself to claim a long lived balance - no payment occurs on the blockchain, so there is no extra transactional load - one may mine with a beefy server, and use those credits from a phone, by reusing the client ID (at the cost of some privacy) - no barrier to entry: anyone may run a RPC node, and your expected revenue depends on how much work you do - Sybil resistant: if you run 1000 idle RPC nodes, you don't magically get more revenue - no large credit balance maintained on servers, so they have no incentive to exit scam - you can use any/many node(s), since there's little cost in switching servers - market based prices: competition between servers to lower costs - incentive for a distributed third party node system: if some public nodes are overused/slow, traffic can move to others - increases network security - helps counteract mining pools' share of the network hash rate - zero incentive for a payer to "double spend" since a reorg does not give any money back to the miner And some disadvantages: - low power clients will have difficulty mining (but one can optionally mine in advance and/or with a faster machine) - payment is "random", so a server might go a long time without a block before getting one - a public node's overall expected payment may be small Public nodes are expected to compete to find a suitable level for cost of service. The daemon can be set up this way to require payment for RPC services: monerod --rpc-payment-address 4xxxxxx \ --rpc-payment-credits 250 --rpc-payment-difficulty 1000 These values are an example only. The --rpc-payment-difficulty switch selects how hard each "share" should be, similar to a mining pool. The higher the difficulty, the fewer shares a client will find. The --rpc-payment-credits switch selects how many credits are awarded for each share a client finds. Considering both options, clients will be awarded credits/difficulty credits for every hash they calculate. For example, in the command line above, 0.25 credits per hash. A client mining at 100 H/s will therefore get an average of 25 credits per second. For reference, in the current implementation, a credit is enough to sync 20 blocks, so a 100 H/s client that's just starting to use Monero and uses this daemon will be able to sync 500 blocks per second. The wallet can be set to automatically mine if connected to a daemon which requires payment for RPC usage. It will try to keep a balance of 50000 credits, stopping mining when it's at this level, and starting again as credits are spent. With the example above, a new client will mine this much credits in about half an hour, and this target is enough to sync 500000 blocks (currently about a third of the monero blockchain). There are three new settings in the wallet: - credits-target: this is the amount of credits a wallet will try to reach before stopping mining. The default of 0 means 50000 credits. - auto-mine-for-rpc-payment-threshold: this controls the minimum credit rate which the wallet considers worth mining for. If the daemon credits less than this ratio, the wallet will consider mining to be not worth it. In the example above, the rate is 0.25 - persistent-rpc-client-id: if set, this allows the wallet to reuse a client id across runs. This means a public node can tell a wallet that's connecting is the same as one that connected previously, but allows a wallet to keep their credit balance from one run to the other. Since the wallet only mines to keep a small credit balance, this is not normally worth doing. However, someone may want to mine on a fast server, and use that credit balance on a low power device such as a phone. If left unset, a new client ID is generated at each wallet start, for privacy reasons. To mine and use a credit balance on two different devices, you can use the --rpc-client-secret-key switch. A wallet's client secret key can be found using the new rpc_payments command in the wallet. Note: anyone knowing your RPC client secret key is able to use your credit balance. The wallet has a few new commands too: - start_mining_for_rpc: start mining to acquire more credits, regardless of the auto mining settings - stop_mining_for_rpc: stop mining to acquire more credits - rpc_payments: display information about current credits with the currently selected daemon The node has an extra command: - rpc_payments: display information about clients and their balances The node will forget about any balance for clients which have been inactive for 6 months. Balances carry over on node restart.
* build: link wallet_merged against blockchain_db and hardforks objxiphon2019-09-281-0/+2
|
* libwallet_merged: add missing net targetselsta2019-04-021-0/+1
|
* Added socks proxy (tor/i2pd/kovri) support to walletLee Clagett2019-03-251-0/+1
|
* Update 2019 copyrightbinaryFate2019-03-051-1/+1
|
* Merge pull request #4945luigi11112018-12-311-0/+6
|\ | | | | | | e37154a build: protobuf dependency fixes, libusb build (ph4r05)
| * build: protobuf dependency fixes, libusb buildDusan Klinec2018-12-181-0/+6
| | | | | | | | | | | | - docker protobuf dependencies, cross-compilation - device/trezor protobuf build fixes, try_compile - libusb built under all platforms, used by trezor for direct connect
* | MMS (Multisig Messaging System): Initial versionrbrunner72018-12-121-2/+7
|/
* Fix build of monero-gui by adding device_trezor to wallet_mergedburicl2018-11-061-1/+2
|
* device/trezor: trezor support addedDusan Klinec2018-11-021-0/+1
|
* add daemonizer to rpc walletjcktm2018-09-151-0/+2
|
* remove epee from link lines where it's redundantmoneromooo-monero2018-06-281-1/+0
| | | | | | For some reason, this confuses and kills ASAN on startup as it thinks const uint8_t ipv4_network_address::ID is defined multiple times.
* wallet: add shared ring databasemoneromooo-monero2018-03-161-0/+3
| | | | | | | | | | | | This maps key images to rings, so that different forks can reuse the rings by key image. This avoids revealing the real inputs like would happen if two forks spent the same outputs with different rings. This database is meant to be shared with all Monero forks which don't bother making a new chain, putting users' privacy at risk in the process. It is placed in a shared data directory by default ($HOME/.shared-ringdb on UNIX like systems). You may use --shared-ringdb-dir to override this location, and should then do so for all Monero forks for them to share the database.
* device: untangle cyclic depenencystoffu2018-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | When #3303 was merged, a cyclic dependency chain was generated: libdevice <- libcncrypto <- libringct <- libdevice This was because libdevice needs access to a set of basic crypto operations implemented in libringct such as scalarmultBase(), while libringct also needs access to abstracted crypto operations implemented in libdevice such as ecdhEncode(). To untangle this cyclic dependency chain, this patch splits libringct into libringct_basic and libringct, where the basic crypto ops previously in libringct are moved into libringct_basic. The cyclic dependency is now resolved thanks to this separation: libcncrypto <- libringct_basic <- libdevice <- libcryptonote_basic <- libringct This eliminates the need for crypto_device.cpp and rctOps_device.cpp. Also, many abstracted interfaces of hw::device such as encrypt_payment_id() and get_subaddress_secret_key() were previously implemented in libcryptonote_basic (cryptonote_format_utils.cpp) and were then called from hw::core::device_default, which is odd because libdevice is supposed to be independent of libcryptonote_basic. Therefore, those functions were moved to device_default.cpp.
* libwallet_merged: added missing libdevicestoffu2018-03-061-0/+1
|
* Update 2018 copyrightxmr-eric2018-01-261-1/+1
|
* wallet_api: make this optional but not built by defaultmoneromooo-monero2017-12-311-2/+2
| | | | | It means it can still be built with make -C build/debug wallet_api but still not DoS us while debugging
* add multisig core test and factor multisig building blocksmoneromooo-monero2017-12-171-0/+2
|
* Wallets now do not depend on the daemon rpc libmoneromooo-monero2017-12-161-1/+1
| | | | The shared RPC code is now moved off into a separate lib
* split wallet and wallet_apimoneromooo-monero2017-11-161-29/+4
| | | | | This speeds up building a lot when wallet2.h (or something it includes) changes, since all the API includes wallet2.h
* CMake: include RPC when building GUI depsanonimal2017-11-141-33/+30
|
* Do not build against epee_readline if it was not builtHoward Chu2017-11-141-1/+1
|
* split off readline code into epee_readlinemoneromooo-monero2017-11-141-0/+1
|
* Remove wallet dependency on p2pmoneromooo-monero2017-11-021-1/+0
|
* Subaddresseskenshi842017-10-071-0/+4
|
* cmake: add libversion and libcheckpoints to libwallet_mergedredfish2017-09-271-1/+10
| | | | Needed to link monero-core Qt wallet.
* build: auto update version info without manually deleting version.hstoffu2017-09-211-2/+1
|
* changed crypto to cncrypto so it generated libcncryptoGentian2017-05-231-2/+2
| | | | fix a cmakelist
* IOS CMAKE build settingsJaquee2017-04-031-1/+6
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|
* Fix GUI building after libcryptonote_core was split (#1626)iDunk54002017-02-111-1/+1
|
* Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett2017-02-061-2/+1
|
* wallet: add a node RPC cache layer for simple RPC callsmoneromooo-monero2017-01-161-0/+2
| | | | | Mostly getinfo and get_hard_fork_info, which are called pretty often. This speeds up transfers as a bonus.
* GUI cold signingJaquee2017-01-101-2/+4
| | | | fix conflict
* Adding HTTP Digest Auth (but not yet enabled)Lee Clagett2016-12-131-1/+1
|
* GUI address bookJaquee2016-12-121-2/+4
|
* Don't build monero-wallet-rpc when building the GUIiDunk54002016-11-121-29/+31
|
* wallet: add version dependency to the wallet targetmoneromooo-monero2016-11-121-0/+1
|
* Created monero-wallet-rpc, moving functionality from monero-wallet-cliLee Clagett2016-11-101-0/+39
|
* Dropped "bit" from bitmonero.Randi Joseph2016-09-261-2/+2
|
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-3/+5
| | | | | | | | | | | | | | Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
* gui/libwallet_merged: libunbound is one more dependencyIlya Kitaev2016-09-031-9/+13
|
* wallet_merged: ringct added to dependenciesIlya Kitaev2016-09-011-1/+1
|
* cmake: merge libs via virtual object librariesredfish2016-08-301-2/+5
| | | | | | | | | | CMake issued a warming about policy CMP0026: access of LOCATION target property at config time was disallowed. Offending code was the code that merged static libraries to generate libwallet_merged.a. This patch does that same merge task in a much simpler way. And, since it doesn't violate the policy, the warning went away.