ZeroNet icon indicating copy to clipboard operation
ZeroNet copied to clipboard

[ Question ] About Master Seed insertion in Python Code File.

Open canewsin opened this issue 2 years ago • 4 comments

I recently exploring zeronet code to port to another language, but i found code in func src/main.py>Actions.main()

https://github.com/HelloZeroNet/ZeroNet/blob/454c0b2e7e000fda7000cba49027541fbf327b96/src/main.py#L138

    # Default action: Start serving UiServer and FileServer
    def main(self):
        from User import User
        user = User(master_seed='MY_MASTER_SEED_HERE')
        print(user)

        ...

is this file modified to include master seed, is there any specific reason to do so ?

canewsin avatar Jul 23 '21 11:07 canewsin

The file you linked to lacks the quoted code. Ditto for my local version. Where did you find that?

purplesyringa avatar Jul 23 '21 11:07 purplesyringa

I had an old copy of ZeroNet, now I was making working graph of ZeroNet, to port it to another language, but I found this code in that, first I thought it was common master_seed for some purpose, so I want to query about that somebody working on internal code, but when inspected the code on GitHub, I don't find those lines, so I posted how that code is injected into?

canewsin avatar Jul 23 '21 15:07 canewsin

Can you remember where did you get that copy of ZeroNet from? Also, does that master_seed match the one in users.json? If not, that's concerning. Mind sending me the seed to my github username at gmail dot com in that case?

purplesyringa avatar Jul 23 '21 15:07 purplesyringa

it is from official repo, yes that's same as master_seed from users.json, that's why i didn't publish that seed. i was expecting reply from @shortcutme, because it might be set by zeronet, for faster startups or might not be the case.

canewsin avatar Jul 23 '21 17:07 canewsin