How does one setup the newfangled prefix_map and PublicKey(random)?

The config file is gone and replaced by some kind of unreadable public key.

How do I know if all the address are added in it?

When I create a first node now, the network name automatically becomes the name of the random key.
Is there a way to use sn_node to set the network name?

2 Likes

I expect the documentation will shortly catch up with the code. Lets give it a week or two and see if this new arrangement remains stable.

3 Likes

You can use networks add to name your network in the same way as we did with the config.

safe networks add folaht [path to your prefix-map]

If thats what you are after?

2 Likes

I like things clean. How do I delete the PublicKey network?

[folaht@pjehrsohmehj .safe]$ safe networks
+----------+-----------------------+--------------------------------------------------------+
| Networks |                       |                                                        |
|----------+-----------------------+--------------------------------------------------------|
| Current  | Network name          | Network map info                                       |
|----------+-----------------------+--------------------------------------------------------|
| *        | PublicKey(0e59..3a7d) | Local: "/home/folaht/.safe/prefix_maps/klik_sjefolaht" |
|----------+-----------------------+--------------------------------------------------------|
| *        | tata                  | Local: "/home/folaht/.safe/prefix_maps/klik_sjefolaht" |
+----------+-----------------------+--------------------------------------------------------+

[update]

I’ve got it.

mv ~/.safe/prefix_maps/$(ls ~/.safe/prefix_maps -Art | tail -1) ~/.safe/prefix_maps/my_networkname.pub
rm ~/.safe/cli/config.json
(curl keyfile to ufile.io)
safe networks add my_networkname https://ufule.io/path/to/file
7 Likes

OR

safe networks remove PublicKey(0e59..3a7d) should work as well. May need to cutnpaste the whole PublicKey string though…

2 Likes