aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/CMakeLists.txt (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-09-24Do not install trezor dep libsBertrand Jacquin1-4/+0
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2019-11-09build: fix IOS, build blockchain_db and rpc, skip wallet_rpc_serverxiphon1-32/+33
2019-10-25daemon, wallet: new pay for RPC use systemmoneromooo-monero1-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.
2019-09-28build: link wallet_merged against blockchain_db and hardforks objxiphon1-0/+2
2019-04-02libwallet_merged: add missing net targetselsta1-0/+1
2019-03-25Added socks proxy (tor/i2pd/kovri) support to walletLee Clagett1-0/+1
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2018-12-31Merge pull request #4945luigi11111-0/+6
e37154a build: protobuf dependency fixes, libusb build (ph4r05)
2018-12-18build: protobuf dependency fixes, libusb buildDusan Klinec1-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
2018-12-12MMS (Multisig Messaging System): Initial versionrbrunner71-2/+7
2018-11-06Fix build of monero-gui by adding device_trezor to wallet_mergedburicl1-1/+2
2018-11-02device/trezor: trezor support addedDusan Klinec1-0/+1
2018-09-15add daemonizer to rpc walletjcktm1-0/+2
2018-06-28remove epee from link lines where it's redundantmoneromooo-monero1-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.
2018-03-16wallet: add shared ring databasemoneromooo-monero1-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.
2018-03-14device: untangle cyclic depenencystoffu1-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.
2018-03-06libwallet_merged: added missing libdevicestoffu1-0/+1
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2017-12-31wallet_api: make this optional but not built by defaultmoneromooo-monero1-2/+2
It means it can still be built with make -C build/debug wallet_api but still not DoS us while debugging
2017-12-17add multisig core test and factor multisig building blocksmoneromooo-monero1-0/+2
2017-12-16Wallets now do not depend on the daemon rpc libmoneromooo-monero1-1/+1
The shared RPC code is now moved off into a separate lib
2017-11-16split wallet and wallet_apimoneromooo-monero1-29/+4
This speeds up building a lot when wallet2.h (or something it includes) changes, since all the API includes wallet2.h
2017-11-14CMake: include RPC when building GUI depsanonimal1-33/+30
2017-11-14Do not build against epee_readline if it was not builtHoward Chu1-1/+1
2017-11-14split off readline code into epee_readlinemoneromooo-monero1-0/+1
2017-11-02Remove wallet dependency on p2pmoneromooo-monero1-1/+0
2017-10-07Subaddresseskenshi841-0/+4
2017-09-27cmake: add libversion and libcheckpoints to libwallet_mergedredfish1-1/+10
Needed to link monero-core Qt wallet.
2017-09-21build: auto update version info without manually deleting version.hstoffu1-2/+1
2017-05-23changed crypto to cncrypto so it generated libcncryptoGentian1-2/+2
fix a cmakelist
2017-04-03IOS CMAKE build settingsJaquee1-1/+6
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-11Fix GUI building after libcryptonote_core was split (#1626)iDunk54001-1/+1
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett1-2/+1
2017-01-16wallet: add a node RPC cache layer for simple RPC callsmoneromooo-monero1-0/+2
Mostly getinfo and get_hard_fork_info, which are called pretty often. This speeds up transfers as a bonus.
2017-01-10GUI cold signingJaquee1-2/+4
fix conflict
2016-12-13Adding HTTP Digest Auth (but not yet enabled)Lee Clagett1-1/+1
2016-12-12GUI address bookJaquee1-2/+4
2016-11-12Don't build monero-wallet-rpc when building the GUIiDunk54001-29/+31
2016-11-12wallet: add version dependency to the wallet targetmoneromooo-monero1-0/+1
2016-11-10Created monero-wallet-rpc, moving functionality from monero-wallet-cliLee Clagett1-0/+39
2016-09-26Dropped "bit" from bitmonero.Randi Joseph1-2/+2
2016-09-18cmake: transitive deps and remove deprecated LINK_*redfish1-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.
2016-09-03gui/libwallet_merged: libunbound is one more dependencyIlya Kitaev1-9/+13
2016-09-01wallet_merged: ringct added to dependenciesIlya Kitaev1-1/+1
2016-08-30cmake: merge libs via virtual object librariesredfish1-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.
2016-07-23cmake: wallet: libunbound is not always staticredfish1-22/+4
It is not clear why libunbound was added to this in the first place, since it wasn't here before and #915 doesn't seem to introduce any new dependency on it. Tested build with STATIC=OFF (with and without libunbound-dev libunbound8 installed) and STATIC=ON, on Ubuntu Trusty, Debian Jessie, and Arch Linux. For static builds, beware of #926 and #907. If this hack was introduced to make it build on some other system (Windows? OS X?), then it will have to be dealt with, but not this way.
2016-07-18libwallet_api cmake: conditionally creating libwallet_merged2 only forIlya Kitaev1-7/+16
STATIC build
2016-07-18hack to successfull linking for MSYS2Ilya Kitaev1-2/+6
2016-06-24CMake: GPL 'libutils' script removedIlya Kitaev1-2/+4
2016-06-23installing wallet_api headerIlya Kitaev1-2/+2
2016-06-23all wallet dependencies merged to single static libIlya Kitaev1-2/+15
2016-06-23merged with upstreamIlya Kitaev1-1/+2
2016-06-23api implementation splitted over separate filesIlya Kitaev1-2/+12
2016-03-16tests for wallet2_apiIlya Kitaev1-1/+1
2016-03-16wallet2 public api. initial commitIlya Kitaev1-2/+9
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-10-24cmake: support 2.8.7Ben Boeckel1-2/+2
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23cmake: handle private vs. public headersBen Boeckel1-2/+7
2014-10-23cmake: refactor common code with librariesBen Boeckel1-9/+1
2014-10-23cmake: put each library into its own directoryBen Boeckel1-0/+59
This cleans up the CMake code and shows patterns more easily (to be refactored in the next commit).