04:22:49 Thanks, I will have a look at it. Most people have an old smart phone laying around, it needs to be a dedicated POS app that integrates with other peoples phones so they can just 'paywave' over the device for payments. 04:24:33 hook up to the stores wifi, and use NFC to detect the customers wallet up open on the phone to exchange amount and payment address then customer just fingerprint or pin approves the transaction 04:31:20 another nice to have feature would be trusted transactions. I know this goes against privacy and anomynity kinda but a vendor and client could agree to a trust, in which the vendors device remember the customers device and approve the transfer after only 1 block (2 minutes). Or a customer could have an 'account' on the vendors device so regular small deductions like from a coffee shop could be deducted. 04:32:49 if the transaction fails, next time the customer returns to the vendor it remembers and deducts the new and old in a full transaction 05:01:36 Hey guys! 05:02:22 What do you think a I7 - 920 CPU would hash? 05:04:22 Or a Gigabyte ga EX58 ud3r CPU, seems like they are too old to put in the calculators, anyone with a educated guess? 05:24:10 MoMo the i7 maybe 1800 H/s at most which currently gets you about .0016 xmr/day 05:26:35 how much less than that it will actually get I have no idea 07:38:08 That could be done by simply adding some sort of device id that gets sent via nfc when the customer makes the payment. Not included in the transaction data, but simply as a separate string that gets sent over in parallel from the customer to the seller. 08:42:04 when moon? 08:46:15 https://www.timeanddate.com/moon/phases/ 08:50:41 21st of june, apparently 09:22:30 Hello, i want to use Monero GUI with tor or i2p, can i do that by using the daemon startup flags? 12:08:24 Do you want to connect the wallet to the daemon through tor/i2p, or do you want the daemon to talk to the rest of the network through tor/i2p? 12:17:57 endor00[m], not sure what you mean in the first part of your sentence. The wallet GUI starts up the daemon, but what i want is to connect (obviously the daemon) to the tor/i2p network. But since the GUI starts up the daemon, will putting the commands in the "daemon startup flags" in the GUI work? 12:19:20 Easier to run it separately 14:07:52 Is there any library for doing monero stuff? Like keeping accounts with balances and handling deposits and so on, interfacing with monerod? 14:08:38 There is "monero integrations", high level interface between monero and... PHP I think ? 14:09:00 ugh php 14:09:02 Otherwise, various libs, see https://github.com/monero-ecosystem 14:09:50 There is a python layer above RPC (and strictly RPC only) in the monero tree too, but that's low level. 14:10:08 Some higher level python lib from the above link IIRC. 14:10:49 the c++ lib sounds interesting. Does this scale well? 14:11:02 Can I create a wallet upon a request with captcha and be safe? 14:11:20 No idea. Ask whoever made it :) 14:13:46 it seems to bind wallet2.h in monero 14:13:57 If I make say a million accounts in monero, will it cause problems? 14:14:32 Probably. IIRC 200 subaddresses per account by default, 80 bytes per subaddress. 14:14:41 You can tune the 200 down though. 14:14:45 so 80 mb? 14:14:55 More than that. 14:15:04 If I want to create a service where I can take deposits in XMR and someone spams it so it makes a million addresses, will I have a problem? 14:15:21 80 B * 1,000,000 = 80 MB 14:15:21 14 GB ? :) 14:15:34 Ah, if you set accounts to one subaddress per, yes. 14:15:42 Oh, I mean a million subaddresses. 14:15:51 Ah. Then yes, 80 MB only. 14:15:52 btw what's the difference? Is it just like derive paths? 14:16:01 Will it cause horrible lag when scanning the chain? 14:16:04 is it O(n)? 14:16:14 Mostly O(1). 14:16:49 There is no real difference between subaddress and account, it's just how they're interpreted by the wallet. 14:17:36 so havign a million subaddr is fine? 14:17:42 Should be. 14:18:10 Might be slow to load/save the wallet I guess, since it will load/save all those addresses. 14:18:29 if it'll be on a server (on 24/7), will it be a problem? 14:18:37 how do the big boys like xmr.to do it? binaryFate 14:18:44 Should not be, but you can try it easily. 14:19:14 are there any security tradeoffs to pruned nodes? 14:19:53 A pruned now can only serve an eigth of the chain to peers. So it decreases the overall "connectedness" of the chain a bit. 14:20:17 monero can have watch-only wallets but it won't show balance accurately, right? 14:20:25 For the local user, you can't access the pruned data if you want to look at it, but otherwise it's verified normally when synced. 14:20:47 It will show accurate balance, assuming you correctly imported outputs/key images. 14:21:07 Assuming I didn't? 14:21:13 GIGO. 14:21:20 Will I still see inputs? 14:21:38 If I need to credit accounts but not support withdrawals, can I just not send them? 14:21:42 You will see any incoming outputs. 14:22:08 If you only receive and never spend, it will show a correct balance without having to do import/export. 14:22:25 if I do spend, will the in amounts still be correct? 14:22:34 Once you export/import. 14:22:41 er 14:22:50 if I don't export, will I see wrong incoming amounts? 14:22:50 The *in* amounts will be correct always, yes. 14:23:05 But you won't be able to see when some are spent. 14:23:10 that's fine 14:23:56 To be clear, and since this is of general interest: 14:24:21 I have a read only wallet.... I haven't done the export/import... I can only WISH that I had that much Monero. :( 14:24:43 Oh wait, will it cause problems with the change addresses? 14:24:58 It just shows you the wrong balance. 14:25:12 If Alice has a wallet, and makes a watch only wallet, and that watch only wallet is set with correct key images, and if Bob steals stuff from that wallet, Alice's watch only wallet *will* see the theft, without her having to re-import. 14:25:32 is key images a one-time thing? 14:25:33 Just mentioning this since it seems it's a big use case for watch only. 14:25:44 It's for every time you receive a new output. 14:25:54 so each utxo gets one? 14:25:57 (if you want to know when they're spent) 14:26:11 Every output gets one, yes, and yo need the secret spend key to calculate it. 14:26:21 yeah OK that's fine. But if I have some XMR and I spend it, and it goes back to my change, will it randomly credit stuff? 14:26:25 I use it for the MoneroIntegrations Worpress plugin. So I can see when people buy stuff from me in XMR. 14:27:02 Only if the change goes to a subaddress set up for a client. By default change goes to subaddress 0, which will likely not be set up for a client. 14:27:24 ok, so I'll need to make sure that subaddr 0 is not a change addr. good to know 14:27:47 I am about 90% sure change goes to subaddress 0. 14:27:56 is not a client addr* 14:28:08 I have a doubt here. Is anyone sure of it ? :) 14:28:31 I never watched for this. 14:28:33 Hmmm 15:49:35 how do the big boys like xmr.to do it? binaryFate <--- no black magic required, just common backup practices. I would advise to record the index you last generated, so you have ground truth to work with if everything else crashes 15:51:28 But you use something like subaddresses and a SQL database? 15:54:53 binaryFate, does Minko just create 5 sub-addresses for each new user? 15:58:25 yanmaani you asked about subaddresses, I answer about subaddresses :) SQL is unrelated 15:58:48 Mochi101 yes afair 15:59:53 The index you last generated will only help you recover your money, correct? 16:00:30 I think on-chain stuff is really the best binaryFate. Now, when I see a gaming site where you have to create an account, I'm really turned off by it. 16:01:12 yanmaani: you can never lose money as long as you don't lose seeds. The last generated will help you get back on track and have your service running again at the point you stopped 16:01:37 Well, you can never lose *your* money, but you can lose your users' money 16:01:50 No, you can just fail to "see" it 16:03:21 That's why I hope we never lose integrated addresses. 16:03:34 Never have to really worry about that binaryFate 16:04:53 IMO it's not a major worry. Doesn't justify not using subaddresses just by itself 16:04:53 but with sub-addresses if you want to provide a unique address for every tx you have to remember which you used last. 16:05:35 Then if you change wallets... how do you handle that in your db if you store index number? 16:05:58 Well (i) the wallet does that for you with convenient API calls and (ii) you can save the index you last generated and get back exactly to the same state by yourself if you wish so, at any point 16:06:25 I know the wallet takes care of that for you. 16:06:32 Subaddresses are very similar to Bitcoin HD wallets from the service perspective 16:07:32 Surely not the same state? 16:07:33 you have to remember which you used last < if you have multiple servers and don't want to sync a global last-issued-subaddress between them, you just have a different account for the wallet for each server 16:07:45 You still need idx <-> bitcoin addr mappings? 16:07:58 But what if you for some reason need to store index number in your database... and then you rotate your wallet or something... then you'll have a couple of entries with the same index number 16:08:40 Why would you record index number in your DB and not the specific subaddress? 16:08:48 Whereas with an integrated address I just store the payment ID 16:08:58 save space? 16:09:13 Your customers should have a subaddress associated, not an index. The global index is just a way for you to recover wallet operation quickly if need be. 16:09:29 you mean like the privkey?? that seems insane 16:10:14 No, just the subaddress you give to them. Then you check incoming transactions, if it's to their subaddress it's for them. 16:10:28 That's what every exchanges and services do. 16:10:35 Same with BTC addresses 16:10:38 Oh, so you discard the info on how to derive it 16:10:44 hmm, yeah that makes sense 16:11:00 all you need to derive it is the seed :) 16:11:23 yeah I guess you don't need the specific way to derive that addr 16:11:41 and remember that your last subaddress is, say, 2 millions something. Then re-create wallet, create 2 miliions something subaddresses and you're good to go again 16:12:05 modulo those where you got the payment in but didn't send out. 16:12:11 or just give some random payment id 16:12:25 and not have to worry about create new addresses at all 16:13:27 Don’t they get created automatically because of the subaddress lookahead? 16:13:42 binaryFate, have you seen monero.win? 16:13:45 modulo those where you got the payment in but didn't send out. <-- I don't think it has anything to do with it? Or maybe I don't know what you want to do besides detecting payments 16:14:25 binaryFate: If your server crashes to the point of losing all your database, then users' blanaces will be toast too 16:14:33 on xmr.to, txns currently in flight will be gone 16:14:53 selsta: they are unless you have a sufficiently long streak without incoming payments. Say you onboard 1000 customers who don't deposit anything, then your wallet will not by itself generate the addresses for customers 1001 and so on 16:15:03 If I was using su-addresses and someone just made a script that "created a game ticket" and then never actually played it... I could be at 10 million sub addresses in no time. 16:15:19 on xmr.to, txns currently in flight will be gone <--- mmm no 16:15:26 binaryFate: right but you could increase the lookahead 16:15:42 but with payment IDs I can go and flush my db of created game tickets 16:15:47 binaryFate: If your entire database dies except for the last ID info, txns awaiting confirms to send out XBT will never send 16:16:03 selsta: yep indeed. It's just easy good practice to record the last index you generated. A single integer, makes life easier 16:16:10 sure 16:16:24 Mochi101: it's just gambling? 16:16:32 just 16:16:46 yes, what's the point 16:16:48 Better than unjust gambling. 16:16:51 yanmaani: I'm confused. If the DB dies, service can't work that's expected. 16:17:00 yeah, so why save the last ID then? 16:17:07 If the DB dies you're SOL anyway, right? 16:17:27 yanmaani, you're talking to me? 16:17:32 Mochi101: about gambling 16:17:35 yes, what's the point 16:17:40 is it your site? 16:17:45 yes 16:17:54 if you have a gambling license why not do something fun? 16:17:58 like a prediction market on elections 16:18:15 betmoose already does that 16:18:26 I wanted something that did on chain for Monero. 16:18:38 Fair... easy to prove that it's fair. 16:18:44 no, betmoose has a garbage market structure 16:18:51 > Please understand that it's your own responsibility to gamble responsibly - if you think you need help please click here. 16:18:56 this link just goes to the frontpage dude 16:19:01 I don't know how you intend to run your service, but generally it should be impossible that "your DB dies". You have regular backups etc. Anyway it still makes a difference. If you lose your DB entirely, and the last subaddress index used, generating the wallet from seed might not show the entire balance and you don't know how many subaddress to generate see everything again 16:19:07 yeap yanmaani 16:19:14 Personal responsibility 16:20:00 binaryFate: That's my point: it should be impossible that "your DB dies". So why ever do this? It doesn't help you recover your customers' money, just your own. I guess it's better than nothing tho 16:20:18 something here tells me that your site is not 100% compliant mochi 16:20:27 I don't know what you mean by your money vs. your customers money 16:20:30 Compliant to what? 16:20:35 the law 16:20:41 Which law? 16:20:47 gambling laws 16:20:57 For where though? 16:21:18 binaryFate: If your DB totally collapses, then you will have no way of telling apart which customer had what money. So you can't give them their due, only take it for yourself. 16:21:29 Mochi101: Your country of residence if it's not incorporated 16:21:45 oh ok 16:21:59 generally speaking there are laws, depends onw here you live though 16:22:11 if you're from Costa Rica, there's no law as long as you block local IPs for example 16:22:24 you're describing something service specific. I'm only giving you a general advise to save that one single integer of subaddress index. Just don't if you don't see the benefits