-
bbqcore[m]
is the monero codebase mirrored/self-hosted anywhere?
-
bbqcore[m]
i see there was a move to gitlab back when MS bought github but i just the the CCS on there
-
bbqcore[m]
s/the/see/
-
xmr-pr
j-berman opened pull request #8178: Bump ring size to 16 for v15
-
xmr-pr
-
selsta
bbqcore[m]: we have backhub.co setup
-
jrandom[m]
Hey guys, somebody knows where in the codebase can I find the function that encodes the seed to get the mnemonic?
-
jrandom[m]
The equivalent of this
-
-
jrandom[m]
s/Hey/Hi/
-
rbrunner
jrandom[m]: Check this for seed to key and vica versa: src/mnemonics/electrum-words.h
-
rbrunner
Do you know already my page about seeds? Maybe it will be useful to cross-check and help debugging:
monerotech.info/Home/Seed
-
xmr-pr
moneromooo-monero opened pull request #8179: wallet2: decrease the amount of data exchanged for output export
-
xmr-pr
-
bbqcore[m]
<selsta> "bbqcore: we have backhub.co..." <- wouldnt a self-hosted solution be better in case shtf?
-
bbqcore[m]
endogenic: i sent you DM
-
selsta
self hosted solution for what?
-
bbqcore[m]
the project code base
-
selsta
-
selsta
it was decided against it
-
bbqcore[m]
yeah i read that, but arent the concerns still valid?
-
selsta
it's a bit of an endless discussion, we have a backup and we can move somewhere else in case the repos get taken down
-
bbqcore[m]
i think a public self-hosted mirror would remove the trust aspect of uploading a backup in case github gets taken down without notice (hypothetical worse case)
-
bbqcore[m]
users should be able to verify the codebase on their own in such a situation
-
selsta
git is decentralized, a lot of people have a copy of the repo
-
selsta
commits are signed
-
bbqcore[m]
yes but lets say it goes down and i dont have a copy before
-
bbqcore[m]
how can i verify its the same code?
-
selsta
if you don't have a copy of the code and if you don't trust anyone else then you can't
-
selsta
but that's kinda a pointless what if, the code could also change now and if everyone is in on it you wouldn't notice
-
bbqcore[m]
right - a public self-hosted mirror would allow me to verify on my own
-
bbqcore[m]
selsta: yeah i know, this is all hypothetical and assuming some onewith commit access has been compromised
-
moneromooo
What makes you able to verify authenticity of the source depending on how you obtain it ?
-
bbqcore[m]
moneromooo: if there was a public mirror that would survive a github takedown, id be able to download the latest code and verify it against whatever backup comes on line after
-
moneromooo
Why is not the same as "if there was any other person having the source, id be able to download the latest code and verify it against whatever backup comes on line after" ?
-
bbqcore[m]
what do you mean? id have to trust whatever code comes back online after such an attack
-
bbqcore[m]
im sure loads of people will be able to call out any shady commits, but id have to trust them
-
moneromooo
Are you implying you would not have to trust it if it where that self-hosted mirror ?
-
selsta
you can't trust no one and then trust a random mirror :D
-
bbqcore[m]
moneromooo: id at least know that whatever was re-upped is the same as what was taken down
-
bbqcore[m]
apart from fully auditing the code myself theres already an obvious element of trust
-
moneromooo
How would you do that, and at the same time not be able to do that if you got it elsewhere ?
-
bbqcore[m]
because id be trusting some one elses copy of the code
-
moneromooo
So you're basing this on "I trust what comes from this source", correct ?
-
bbqcore[m]
no, im basing this on not being able to verify for myself if there was any fuckery between take-down and re-up
-
moneromooo
(I mean it's a fair default, but you started off with not having to trust)
-
selsta
how do you know that no one tempered with the mirror?
-
bbqcore[m]
i guess something like uploading the code to a torrent would solve this
-
bbqcore[m]
selsta: id be able to check, before every back up id download both sources and see if they match
-
bbqcore[m]
of course this is assuming the monero project isnt already compromised before anything like this happens
-
bbqcore[m]
thats not the approach im taking
-
moneromooo
I think you need to work the steps out in detail.
-
selsta
just because they matched in the past doesn't mean they don't diverge at some point
-
moneromooo
And I mean *detail*.
-
bbqcore[m]
selsta: of course, so the whole point is to see where that happens for myself
-
selsta
the easiest is to make your own mirror
-
moneromooo
(btw, I pushed a PR to decrease the output export data size, which you'd expressed interest in, still chunky though)
-
bbqcore[m]
selsta: yeah thats true, just thought a public one would be good for the project
-
moneromooo
It'd be good for availability.
-
bbqcore[m]
moneromooo: link? thanks for taking that up. what kind of reduction we looking at?
-
moneromooo
-
bbqcore[m]
cheers. can the same be done for key images?
-
selsta
-
selsta
that's a public mirror
-
moneromooo
Took about 2/3 off for the cold_signing functional test, but thse are pretty much only coinbase outs.
-
moneromooo
I think it'll save a little more in most cases.
-
moneromooo
-
moneromooo
And that data is way smaller already.
-
moneromooo
Now I'm wondering whether this should be a wallet flag... export all data, or just what's needed for cold signing.
-
bbqcore[m]
thanks moneromooo, ill pass this on to airgap and get this QR standard rolling
-
plowsof[m]
Thanks moneromooo
-
bbqcore[m]
<moneromooo> "Now I'm wondering whether this..." <- you mean like seed, view keys, addresses etc?
-
moneromooo
I meant whether the "send subset of data for size optimization" should be an option. To avoid the cold wallet having "dummy" data for outputs.
-
moneromooo
ie, run incoming_transfers and the txids will show up as 0000 I expect.
-
bbqcore[m]
oh ok i thought you meant if there was a way to reduce all data in the wallet for export
-
bbqcore[m]
cause there was talk of restoring wallets via QR also
-
moneromooo
hyc: if I want to lookup N arbitrary records in a table, is there a faster way to do it ? ie, sort them first ? MDB_MULTIPLE seems to be only for writing.
-
moneromooo
Ideally I'd want to minimize the number of uncached disk reads.
-
moneromooo
So I'm not sure sorting matters enough to bother with, root and level 1 are going to be likely cached, the rest probably uncached.
-
moneromooo
(the table is large)
-
moneromooo
Any other tip ?
-
moneromooo
It's DUPFIXED|DUPSORT btw.
-
moneromooo
Naively, it seems lmdb could implement MDB_MULTIPLE for lookups, locate the last non-leaf page for all requests, and use iovec for the last step, which will be full of cache misses. And hope the I/O scheduler can work with that intelligently.
-
jberman[m]
MDB_GET_MULTIPLE / MDB_NEXT_MULTIPLE
-
jberman[m]
-
moneromooo
Thanks. That's not really what I want here.
-
moneromooo
It could be used for a manual scan for small tables (or large amounts of lookups) but that's not my case.
-
jberman[m]
Ah I see
-
moneromooo
I guess we won't really prevent seeks, unless really RAM starved. They'll just happen in another order :/
-
moneromooo
Except if we query neighbours but that's not very likely in this case.
-
jeffro256[m]
Can someone please explain to me what the point of contrib/epee/include/copyable_atomic.h is? The class extends std::atomic<uint32_t> but doesn't appear to add any functionality. Thanks!
-
jeffro256[m]
Especially since std::atomic<uint32_t> is used in other places throughout the project