-
br-m
<victor5577:matrix.org> Hi
-
br-m
<sophianawttyzoobabymatrix.org:matrix.org> Hello
-
br-m
<victor5577:matrix.org> What's uo
-
br-m
<sophianawttyzoobabymatrix.org:matrix.org> Good you?
-
johny_
Hello, I would like to know what is the min amount of time for monero mining in a web browser?
-
br-m
<elongated:matrix.org> johny_: Browser mining died half a decade ago, your are too late
-
johny_
it is not possible to mine monero with web browser?
-
br-m
<elongated:matrix.org> johny_: You maybe able to mine with 1-2h/s, so no you can’t mine in web browser
-
johny_
-
br-m
<rbrunner7> That may be the webminer that works. With an expected income of maybe 5 cents per year through browser mining. Does that sound interesting to you? :)
-
br-m
<elongated:matrix.org> johny_: A toy to mine, but it’s ineffective
-
br-m
<elongated:matrix.org> @rbrunner7: Maybe less than that
-
johny_
actually I want to use monero PoW for something else but maybe I should use another crypto currency
-
br-m
<elongated:matrix.org> It was fun for web developers while it lasted
-
br-m
<elongated:matrix.org> Randomx killed it
-
br-m
<elongated:matrix.org> johny_: You can use randomx pow for verification, but not mining income
-
johny_
I want mining income + PoW to kill 2 birds with one stone
-
br-m
<elongated:matrix.org> Maybe look at some other coins, but those ain’t going to make you much mullah as most of those coins are dead
-
Cindy
johny_: mining income LOOOOL
-
Cindy
from browser?
-
br-m
<elongated:matrix.org> Cindy: Botnets work
-
Cindy
not browser users though
-
br-m
<rbrunner7> johny_: Making money through mining for normal people with normal hardware is basically dead for a few years already. For all coins. The times where you could mine Ethereum with your GPU for maybe USD 1 per day are gone for good.
-
johny_
Cindy yeah I want to use the browser to mine crypto
-
br-m
<rbrunner7> I have a nagging feeling that dear Johny does not believe us ...
-
johny_
exactly I am not talking about a single user
-
Cindy
RandomX is very inefficient on browsers
-
Cindy
due to the fact that WASM doesn't have custom floating point rounding modes yet
-
br-m
<rbrunner7> Oh, you have a website with a million visitors per day, and you want to let them all mine for you? Good luck. Google will declare your website dangerous in 5 minutes or so and block it.
-
Cindy
the RandomX WASM implementation you see around here uses a custom-made library that emulates the floating point rounding modes, which leads to less hashrate
-
Cindy
rbrunner7: that is if the browser even lets you allocate enough memory for the dataset
-
johny_
Google does not also website that mine but it is ok for them to catch all personal data?
-
Cindy
browsers cap memory allocation, and will kill your tab if you go over it
-
Cindy
and the cap is not even a gigabyte
-
br-m
<rbrunner7> johny_: The world is a bad place, it's so unjust.
-
Cindy
rbrunner7: ETH nowadays can only be staked by rich people
-
br-m
<rbrunner7> You should start an AI coin and then do a rugpull. Could net you millions if you are lucky. You also will be a criminal afterwards, but isn't there always a problem?
-
br-m
<rbrunner7> Role model: Trump family
-
Cindy
though i will have to say, RandomX.js has improved beyond any other ports of RandomX
-
Cindy
including having a WASM JIT, rather than just blindly using the very slow interpreter
-
johny_
rbrunner7 actually extranet does not need to be indexed on google
-
johny_
I mean member area stuff like that
-
johny_
I need to find out the most profitable coin to mine in a web browser
-
Cindy
none
-
Cindy
the algorithms that are easier for browsers (like hashcash, equihash, cryptonight) are dominated by ASICs
-
Cindy
and will net you next to nothing due to the extremely high difficulty
-
johny_
is it good idea to create new crypto designed for web browser mining? I have to invent new algorithm?
-
Cindy
you can modify RandomX to get rid of the floating point rounding mode operations
-
BlueyHealer
If you want coins - maybe try selling your skills/possessions for some?
-
Cindy
but the problem is, your crypto will be worthless unless you sell it to exchanges or something
-
johny_
BlueyHealer you are out of topic, PoW is useful for many things but wasting cpu for nothing is a shame
-
Cindy
better yet, how about you pester the WASM board to implement floating point rounding modes
-
Cindy
that's the one thing that's massively slowing down RandomX in browsers
-
BlueyHealer
TBH I never even considered mining not in a dedicated application...
-
Cindy
-
Cindy
still a proposal
-
johny_
ok I will have to look at it, I don't have lots of knowledge about mining
-
Cindy
if this proposal becomes apart of webassembly (and implemented by major browsers)
-
Cindy
it would speed up RandomX.. a lot
-
Cindy
but unfortunately as of now, you'll have to deal with like 1-2H/s
-
Cindy
btw, how much do you think the guy at banmonero.com earns from his "burn address"
-
btcdwed
wtf is that for a page
-
br-m
<milas900:matrix.org> After swapping on cake wallet Xmr account shows zero why ?
-
Cindy
milas900: probably wait until tx confirms or something
-
btcdwed
it needs some confs maybe
-
btcdwed
yea
-
Cindy
anyone know of some ACTUAL burn addresses for monero
-
br-m
<milas900:matrix.org> It generated some new addresses when you swap . I’m afraid money goes to other addresses
-
btcdwed
its a sub adress maybe
-
br-m
<milas900:matrix.org> It’s really a bug it says synchronized and shows ur litecoin as zero..
-
btcdwed
klick the TX and check how many confirmations are there
-
btcdwed
sync is ONLY blocks SYNCED
-
btcdwed
it has nothing to do with confs
-
Cindy
i might modify moneropy to generate an address with the public keys being 0 or something
-
br-m
<milas900:matrix.org> Where to find the Tx
-
btcdwed
you swapping things and dont have a clue about things
-
Cindy
milas900: monero or litecoin??
-
btcdwed
next time you should read more into it maybe milas900 :P
-
br-m
<milas900:matrix.org> Swap from ltc to xmr
-
Cindy
did it give you a TXID?
-
Cindy
or something to identify?
-
btcdwed
there is something like a "history" buttin you can click
-
btcdwed
button :P
-
Cindy
again, cakewallet might be filtering transactions based on the number of confirms
-
Cindy
just wait like 20 minutes and get back to us
-
btcdwed
true, i agree
-
btcdwed
if not, show us your TXID
-
btcdwed
so we can check it on our own at the blockexplorer
-
Cindy
that would be super useless
-
btcdwed
my first swap on cake was crazy too
-
Cindy
but sure :P
-
btcdwed
just to verify everything is ok
-
btcdwed
:P
-
br-m
<milas900:matrix.org> How many confirmations are needed ?
-
btcdwed
10/10 maybe
-
Cindy
most wallets use 10 confs
-
br-m
<milas900:matrix.org> Ok got it thanks
-
br-m
<milas900:matrix.org> The GUI is not friendly at all
-
btcdwed
i agree on that
-
btcdwed
are you using desktop version?
-
br-m
<milas900:matrix.org> btcdwed: Are u developer there ?
-
btcdwed
no, just wondering ;D
-
br-m
<milas900:matrix.org> Any version should be a user journey and experience where you track your money like human being
-
btcdwed
i dont like it too
-
br-m
<milas900:matrix.org> Not like ur balance becomes zero and no pending or anything
-
Cindy
the official monero wallet shows all transactions
-
Cindy
pending, partially confirmed and confirmed
-
btcdwed
yea
-
Cindy
cakewallet is weird
-
br-m
<milas900:matrix.org> Cake wallet also shows
-
br-m
<milas900:matrix.org> But slow
-
btcdwed
cake is just showing unblanced amount when you do something
-
btcdwed
its kinda confusing
-
br-m
<milas900:matrix.org> Ur heart first stops
-
btcdwed
first time i thought my money is gone :P
-
br-m
<milas900:matrix.org> Then u panic
-
btcdwed
true
-
br-m
<milas900:matrix.org> Then you get a shock
-
btcdwed
we are here to help you
-
btcdwed
no shock at all
-
br-m
<milas900:matrix.org> Then you say thanks god
-
btcdwed
hehe
-
br-m
<milas900:matrix.org> Yes but in order price to shoot up developers should improve that cake wallet
-
br-m
<milas900:matrix.org> Is it open source or what ? An issue should be opened
-
btcdwed
youre free to comment an issue on github etc
-
br-m
<milas900:matrix.org> Is there a limit by the way to swap ?
-
Cindy
what limit
-
btcdwed
the only limit is time, just relax and msg us if you still unsure in 30mins
-
btcdwed
:P
-
br-m
<milas900:matrix.org> Amount I mean
-
btcdwed
you meant ltc to xmr?
-
br-m
<milas900:matrix.org> Yes
-
btcdwed
-
btcdwed
i cant see any swapping limits @ cake
-
Cindy
-
Cindy
i made a burn address by using the public view key derived from zero, and zero as the public spend key
-
Cindy
is this valid?
-
Cindy
maybe i should try generating the stagenet version of this and sending some stagenet XMR
-
Cindy
to test if the network doesn't freak out
-
Cindy
i heard that like in some ed25519 implementations, zero causes an error in validating a signature
-
DataHoarder
Cindy the real killer for wasm is using 2 GiB there are recent projects that do workable things for the float part
-
DataHoarder
So you are limited to light mode
-
DataHoarder
Use HashToPoint tbh Cindy that will get you a random point element within the curve that you don't know the discrete log
-
DataHoarder
HashToPoint(Burn Spend Key), HashToPoint(Burn View Key)
-
Cindy
hashtopoint?
-
Cindy
alright alright
-
DataHoarder
Though you might want to make a proper valid view key
-
DataHoarder
So you can monitor burns
-
DataHoarder
But not spend them
-
Cindy
but the view key must be something that you can easily know
-
Cindy
like uhh FF
-
Cindy
255 as the private view key
-
Cindy
or maybe all FF's
-
DataHoarder
You can use this
-
DataHoarder
Hash(spend key)
-
el3ctron
-
DataHoarder
Spend pub key*
-
DataHoarder
It cannot be all FF
-
Cindy
true i thought so too
-
DataHoarder
It must be an element of the scalar field for ed25519
-
Cindy
i could have swore i saw something like that in a ed25519 page
-
Cindy
that's why i hesitated
-
DataHoarder
Monero generates points as generators like that, for example
-
DataHoarder
Used in all new stuff
-
br-m
-
br-m
<datahoarder> Result:
-
br-m
-
br-m
<datahoarder> Actually, right result:
-
br-m
-
DataHoarder
that can load up a view wallet you don't know spend private key for, but can be monitored and even used to generate subaddresses
-
Cindy
-
Cindy
this better?
-
Cindy
also wtf is that A prefix of the address you generated
-
DataHoarder
you can't just use hash
-
DataHoarder
Cindy: testnet
-
Cindy
ah
-
DataHoarder
you need to do mod l, where l is the scalar element modulo
-
DataHoarder
monero already has defined methods to do this in code, I used the same on mine
-
Cindy
oh so that's sc_reduce
-
DataHoarder
it also ties spend + viewkey together
-
Cindy
sc_reduce in moneropy does intToHexStr(_hexStrToInt(key) % l)
-
DataHoarder
biased hash to point = hash_to_ec / hash_to_p3 / biased_hash_to_ec
-
Cindy
which is what get_view_key calls internally
-
DataHoarder
ScalarDeriveLegacy = sc_reduce(keccak(data))
-
Cindy
so i just call sc_reduce on the spend key?
-
DataHoarder
you also want the domain separator
-
Cindy
instead of just the view key?
-
DataHoarder
to ensure that these keys are only generated for this context
-
DataHoarder
which is why I made obvious the purpose of them
-
DataHoarder
"Monero Burn Spend Key" and "Monero Burn View Key"
-
DataHoarder
this way you only need these two strings to generate anything
-
DataHoarder
14:47:29 <Cindy> so i just call sc_reduce on the spend key?
-
DataHoarder
no
-
DataHoarder
that means you are generating a private key lol
-
DataHoarder
you are generating a POINT
-
DataHoarder
that must be handled properly or learning the dlog of it allows spend
-
Cindy
oh i see
-
DataHoarder
-
DataHoarder
this is how monero generates points when it must be infeasible to learn dlog
-
DataHoarder
"HopefulHashToPoint" is keccak(point
-
DataHoarder
but this fails 7/8th of the time :D
-
Cindy
wtf is unbiased
-
Cindy
is it usually biased
-
DataHoarder
BiasedHashToPoint is what is used in monero key images
-
Cindy
ah
-
DataHoarder
unbiased is new one for carrot/FCMP++
-
Cindy
i'm talking about the original cryptonote
-
Cindy
not really carrot yet
-
DataHoarder
that's HopefulHashToPoint
-
DataHoarder
and BiasedHashToPoint
-
Cindy
oh
-
DataHoarder
BiasedHashToPoint uses elligator2
-
DataHoarder
which is the ge_fromfe_frombytes_vartime
-
DataHoarder
just uncommented, unexplainded
-
DataHoarder
kayabanerve went through the effort of reverse engineering it and making a proper impl of it
-
Cindy
-
Cindy
nvm, someone else did it
-
Cindy
unless this is too old
-
Cindy
because it says something about the generator being different nowadays
-
DataHoarder
that's the hopeful one
-
DataHoarder
for GeneratorH
-
DataHoarder
key images did use BiasedHashToPoint which is what you want
-
DataHoarder
-
DataHoarder
(yes, I have implemented them!)
-
Cindy
moneropy is lacking
-
DataHoarder
though bulletproof uses BiasedHashToPoint(Keccak(data)) lol
-
Cindy
i can't find any hash to point generators
-
DataHoarder
which ends up with double keccak
-
DataHoarder
-
Cindy
yes
-
DataHoarder
8 years old lol
-
Cindy
lol
-
Cindy
i know
-
Cindy
probably before RingCT and bulletproof and shit
-
Cindy
the other monero python library is just a glorified RPC library
-
DataHoarder
key images?
-
Cindy
and not useful
-
DataHoarder
does it handle that?
-
DataHoarder
well, you can make C code that uses Monero's function to generate keys
-
Cindy
no
-
DataHoarder
then just import keys in hex to moneropy
-
DataHoarder
-
Cindy
monero-python is the RPC library i'm talking about
-
Cindy
moneropy implements the stuff behind monero.. at least the monero of 8 years ago
-
DataHoarder
lol yeah
-
DataHoarder
they hardcoded H
-
DataHoarder
just use my consensus library :')
-
Cindy
well unfortunately i can't use go in a interpreter :P
-
DataHoarder
finding stuff half implemented or old is why I ended up just doing it in-house
-
Cindy
it doesn't make it easy to mess around with monero crypto stuff
-
DataHoarder
actually you can!
-
DataHoarder
btw I support TinyGo as well
-
DataHoarder
Cindy: just generate elsewhere, small C program linking to monero (or mine)
-
DataHoarder
then import keys
-
DataHoarder
why not mininero?
-
DataHoarder
-
DataHoarder
that has hashToPointCN :D
-
DataHoarder
which is biased hash to point
-
Cindy
y'know
-
DataHoarder
9 years old ofc :P
-
Cindy
why not that
-
Cindy
can i like borrow your code :P
-
DataHoarder
feel free :D
-
DataHoarder
you'll need to make all the cryptographic base if your libraries don't have that, ofc
-
DataHoarder
-
DataHoarder
^ this needs field Elements to work with
-
Cindy
isn't elligator a FCMP++ thing?
-
DataHoarder
nope
-
DataHoarder
it was always what it was running hash_to_point
-
Cindy
shit i'm dumb
-
DataHoarder
-
DataHoarder
-
DataHoarder
what Carrot / FCMP++ do is define an unbiased hash to point
-
DataHoarder
which runs elligator2 twice
-
DataHoarder
and merges them
-
DataHoarder
-
DataHoarder
likes 108 to 156
-
Cindy
y'know i feel like i understood SOME of this :P
-
Cindy
definitely will read more about the point generators
-
DataHoarder
well this is hash (blob of data, uniformly sampled) to point
-
DataHoarder
generator is a different term
-
Cindy
point.. converters?
-
br-m
<sbt:nope.chat> Wow my last txn got 10 confirms in <5mins never seen that speed before
-
br-m
<ofrnxmr> Havent been spending enough
-
br-m
<sbt:nope.chat> Wdym
-
DataHoarder
-
br-m
<kayabanerve:matrix.org> DataHoarder: don't forget bp+ uses biasedhashtopoint for its domain-separation-tag for God knows what reason
-
DataHoarder
oh right
-
DataHoarder
I complained about that
-
DataHoarder
double keccak and that domain tag
-
DataHoarder
not only that but it also does Keccak(Keccak(
-
DataHoarder
Also the transcript does Keccak -> sc_reduce32 -> Keccak -> sc_reduce32
-
br-m
<kayabanerve:matrix.org> Also, DataHoarder, sqrt can be implemented with inverse for Ed25519 for a minor performance benefit. I don't think the theoretical optimization is realizable, but if you are going through the weeds, you may want to try.
-
DataHoarder
such a waste
-
DataHoarder
I did that already
-
DataHoarder
It's on my fork :)
-
br-m
<kayabanerve:matrix.org> Yes, I wrote the function as accepting 32-bytes because every call site did and it was the simplest way to invoke at-time-of-use as points are so literally defined, but that inadvertently introduces the requirement the value is hashed before it's hashed even moving forward...
-
br-m
<kayabanerve:matrix.org> While that requirement isn't currently in consensus, my work on it post-dates the decision of our last hard fork, it do be a quirk
-
br-m
<kayabanerve:matrix.org> Have a link/any insight into the practical performance benefit?
-
DataHoarder
hmm, actually, on Ed25519 FE Sqrt is implemented as pow 2^252-1 with an addchain
-
DataHoarder
err
-
DataHoarder
not exactly, and I noticed a typo on the function naming on original as well
-
DataHoarder
-
DataHoarder
Invert is implemented similarly
-
DataHoarder
most of the performances I went for on my libraries was explicitly adding precomputation of point in ScalarMult, and then also adding vartime alternatives for verification
-
DataHoarder
(I have done the same on helioselene one now)
-
DataHoarder
Do you have paper/information on implementing Sqrt from Inverse? As otherwise it's addchains that I have
-
DataHoarder
note most of my edwards25519 implementation comes from
github.com/FiloSottile/edwards25519 which is what the Go cryptographer maintained in std (though extracted here with a bunch more things)