-
duso
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.
-
duso
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
-
duso
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.
-
duso
if the transaction fails, next time the customer returns to the vendor it remembers and deducts the new and old in a full transaction
-
MoMo
Hey guys!
-
MoMo
What do you think a I7 - 920 CPU would hash?
-
MoMo
Or a Gigabyte ga EX58 ud3r CPU, seems like they are too old to put in the calculators, anyone with a educated guess?
-
niocbrrrrrr
MoMo the i7 maybe 1800 H/s at most which currently gets you about .0016 xmr/day
-
niocbrrrrrr
how much less than that it will actually get I have no idea
-
endor00[m]
<duso "another nice to have feature wou"> 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.
-
goldmine_compact
when moon?
-
d4ndo[m]
-
ErCiccione[m]
21st of june, apparently
-
miu5
Hello, i want to use Monero GUI with tor or i2p, can i do that by using the daemon startup flags?
-
endor00[m]
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?
-
miu5
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?
-
dEBRUYNE
Easier to run it separately
-
yanmaani
Is there any library for doing monero stuff? Like keeping accounts with balances and handling deposits and so on, interfacing with monerod?
-
moneromooo
There is "monero integrations", high level interface between monero and... PHP I think ?
-
yanmaani
ugh php
-
moneromooo
Otherwise, various libs, see
github.com/monero-ecosystem
-
moneromooo
There is a python layer above RPC (and strictly RPC only) in the monero tree too, but that's low level.
-
moneromooo
Some higher level python lib from the above link IIRC.
-
yanmaani
the c++ lib sounds interesting. Does this scale well?
-
yanmaani
Can I create a wallet upon a request with captcha and be safe?
-
moneromooo
No idea. Ask whoever made it :)
-
yanmaani
it seems to bind wallet2.h in monero
-
yanmaani
If I make say a million accounts in monero, will it cause problems?
-
moneromooo
Probably. IIRC 200 subaddresses per account by default, 80 bytes per subaddress.
-
moneromooo
You can tune the 200 down though.
-
yanmaani
so 80 mb?
-
moneromooo
More than that.
-
yanmaani
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?
-
yanmaani
80 B * 1,000,000 = 80 MB
-
moneromooo
14 GB ? :)
-
moneromooo
Ah, if you set accounts to one subaddress per, yes.
-
yanmaani
Oh, I mean a million subaddresses.
-
moneromooo
Ah. Then yes, 80 MB only.
-
yanmaani
btw what's the difference? Is it just like derive paths?
-
yanmaani
Will it cause horrible lag when scanning the chain?
-
yanmaani
is it O(n)?
-
moneromooo
Mostly O(1).
-
moneromooo
There is no real difference between subaddress and account, it's just how they're interpreted by the wallet.
-
yanmaani
so havign a million subaddr is fine?
-
moneromooo
Should be.
-
moneromooo
Might be slow to load/save the wallet I guess, since it will load/save all those addresses.
-
yanmaani
if it'll be on a server (on 24/7), will it be a problem?
-
yanmaani
how do the big boys like xmr.to do it? binaryFate
-
moneromooo
Should not be, but you can try it easily.
-
yanmaani
are there any security tradeoffs to pruned nodes?
-
moneromooo
A pruned now can only serve an eigth of the chain to peers. So it decreases the overall "connectedness" of the chain a bit.
-
yanmaani
monero can have watch-only wallets but it won't show balance accurately, right?
-
moneromooo
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.
-
moneromooo
It will show accurate balance, assuming you correctly imported outputs/key images.
-
yanmaani
Assuming I didn't?
-
moneromooo
GIGO.
-
yanmaani
Will I still see inputs?
-
yanmaani
If I need to credit accounts but not support withdrawals, can I just not send them?
-
moneromooo
You will see any incoming outputs.
-
moneromooo
If you only receive and never spend, it will show a correct balance without having to do import/export.
-
yanmaani
if I do spend, will the in amounts still be correct?
-
moneromooo
Once you export/import.
-
moneromooo
er
-
yanmaani
if I don't export, will I see wrong incoming amounts?
-
moneromooo
The *in* amounts will be correct always, yes.
-
moneromooo
But you won't be able to see when some are spent.
-
yanmaani
that's fine
-
moneromooo
To be clear, and since this is of general interest:
-
Mochi101
I have a read only wallet.... I haven't done the export/import... I can only WISH that I had that much Monero. :(
-
yanmaani
Oh wait, will it cause problems with the change addresses?
-
Mochi101
It just shows you the wrong balance.
-
moneromooo
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.
-
yanmaani
is key images a one-time thing?
-
moneromooo
Just mentioning this since it seems it's a big use case for watch only.
-
moneromooo
It's for every time you receive a new output.
-
yanmaani
so each utxo gets one?
-
moneromooo
(if you want to know when they're spent)
-
moneromooo
Every output gets one, yes, and yo need the secret spend key to calculate it.
-
yanmaani
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?
-
Mochi101
I use it for the MoneroIntegrations Worpress plugin. So I can see when people buy stuff from me in XMR.
-
moneromooo
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.
-
yanmaani
ok, so I'll need to make sure that subaddr 0 is not a change addr. good to know
-
moneromooo
I am about 90% sure change goes to subaddress 0.
-
yanmaani
is not a client addr*
-
moneromooo
I have a doubt here. Is anyone sure of it ? :)
-
Mochi101
I never watched for this.
-
Mochi101
Hmmm
-
binaryFate
<yanmaani> 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
-
yanmaani
But you use something like subaddresses and a SQL database?
-
Mochi101
binaryFate, does Minko just create 5 sub-addresses for each new user?
-
binaryFate
yanmaani you asked about subaddresses, I answer about subaddresses :) SQL is unrelated
-
binaryFate
Mochi101 yes afair
-
yanmaani
The index you last generated will only help you recover your money, correct?
-
Mochi101
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.
-
binaryFate
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
-
yanmaani
Well, you can never lose *your* money, but you can lose your users' money
-
binaryFate
No, you can just fail to "see" it
-
Mochi101
That's why I hope we never lose integrated addresses.
-
Mochi101
Never have to really worry about that binaryFate
-
binaryFate
IMO it's not a major worry. Doesn't justify not using subaddresses just by itself
-
Mochi101
but with sub-addresses if you want to provide a unique address for every tx you have to remember which you used last.
-
Mochi101
Then if you change wallets... how do you handle that in your db if you store index number?
-
binaryFate
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
-
Mochi101
I know the wallet takes care of that for you.
-
binaryFate
Subaddresses are very similar to Bitcoin HD wallets from the service perspective
-
yanmaani
Surely not the same state?
-
knaccc
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
-
yanmaani
You still need idx <-> bitcoin addr mappings?
-
Mochi101
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
-
binaryFate
Why would you record index number in your DB and not the specific subaddress?
-
Mochi101
Whereas with an integrated address I just store the payment ID
-
Mochi101
save space?
-
binaryFate
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.
-
yanmaani
you mean like the privkey?? that seems insane
-
binaryFate
No, just the subaddress you give to them. Then you check incoming transactions, if it's to their subaddress it's for them.
-
binaryFate
That's what every exchanges and services do.
-
binaryFate
Same with BTC addresses
-
yanmaani
Oh, so you discard the info on how to derive it
-
yanmaani
hmm, yeah that makes sense
-
binaryFate
all you need to derive it is the seed :)
-
yanmaani
yeah I guess you don't need the specific way to derive that addr
-
binaryFate
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
-
yanmaani
modulo those where you got the payment in but didn't send out.
-
Mochi101
or just give some random payment id
-
Mochi101
and not have to worry about create new addresses at all
-
selsta
Don’t they get created automatically because of the subaddress lookahead?
-
Mochi101
binaryFate, have you seen monero.win?
-
binaryFate
<yanmaani> 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
-
yanmaani
binaryFate: If your server crashes to the point of losing all your database, then users' blanaces will be toast too
-
yanmaani
on xmr.to, txns currently in flight will be gone
-
binaryFate
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
-
Mochi101
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.
-
binaryFate
<yanmaani> on xmr.to, txns currently in flight will be gone <--- mmm no
-
selsta
binaryFate: right but you could increase the lookahead
-
Mochi101
but with payment IDs I can go and flush my db of created game tickets
-
yanmaani
binaryFate: If your entire database dies except for the last ID info, txns awaiting confirms to send out XBT will never send
-
binaryFate
selsta: yep indeed. It's just easy good practice to record the last index you generated. A single integer, makes life easier
-
selsta
sure
-
yanmaani
Mochi101: it's just gambling?
-
Mochi101
just
-
yanmaani
yes, what's the point
-
moneromooo
Better than unjust gambling.
-
binaryFate
yanmaani: I'm confused. If the DB dies, service can't work that's expected.
-
yanmaani
yeah, so why save the last ID then?
-
yanmaani
If the DB dies you're SOL anyway, right?
-
Mochi101
yanmaani, you're talking to me?
-
yanmaani
Mochi101: about gambling
-
yanmaani
yes, what's the point
-
yanmaani
is it your site?
-
Mochi101
yes
-
yanmaani
if you have a gambling license why not do something fun?
-
yanmaani
like a prediction market on elections
-
Mochi101
betmoose already does that
-
Mochi101
I wanted something that did on chain for Monero.
-
Mochi101
Fair... easy to prove that it's fair.
-
yanmaani
no, betmoose has a garbage market structure
-
yanmaani
> Please understand that it's your own responsibility to gamble responsibly - if you think you need help please click here.
-
yanmaani
this link just goes to the frontpage dude
-
binaryFate
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
-
Mochi101
yeap yanmaani
-
Mochi101
Personal responsibility
-
yanmaani
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
-
yanmaani
something here tells me that your site is not 100% compliant mochi
-
binaryFate
I don't know what you mean by your money vs. your customers money
-
Mochi101
Compliant to what?
-
yanmaani
the law
-
Mochi101
Which law?
-
yanmaani
gambling laws
-
Mochi101
For where though?
-
yanmaani
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.
-
yanmaani
Mochi101: Your country of residence if it's not incorporated
-
Mochi101
oh ok
-
yanmaani
generally speaking there are laws, depends onw here you live though
-
yanmaani
if you're from Costa Rica, there's no law as long as you block local IPs for example
-
binaryFate
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