Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Mar 6, 2024
1 parent 262ab83 commit 01df7df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ at a PoET server the PoST services can be stopped with only the node having to b
This change moves the private keys associated for an identity from the PoST data directory to the node's data directory
and into the folder `identities` (i.e. if `state.sql` is in folder `data` the keys will now be stored in `data/identities`).
The node will automatically migrate the `key.bin` file from the PoST data directory during the first startup and copy
it to the new location as `identity.key`. The content of the file stays unchanged (= the private key of the identity hex-encoded).
it to the new location as `local.key`. The content of the file stays unchanged (= the private key of the identity hex-encoded).

##### Adding new identities/PoST services to a node

Expand All @@ -128,7 +128,7 @@ Make sure to replace `provider` with your provider of choice and `numUnits` with
initialize. The `commitmentAtxId` is the commitment ATX ID for the identity you want to initialize. For details on the
usage of `postcli` please refer to [postcli README](https://github.com/spacemeshos/post/cmd/postcli/README.md).

During initialization `postcli` will generate a new private key and store it in the PoST data directory as `key.bin`.
During initialization `postcli` will generate a new private key and store it in the PoST data directory as `<identity>.key`.
Copy this file to your `data/identities` directory and rename it to `xxx.key` where `xxx` is a unique identifier for
the identity. The node will automatically pick up the new identity and manage its lifecycle after a restart.

Expand All @@ -141,9 +141,9 @@ node. For details refer to the [post-service README](https://github.com/spacemes
If you have multiple nodes running and want to migrate to use only one node for all identities:

1. Stop all nodes.
2. Copy the `key.bin` files from the PoST data directories of all nodes to the data directory of the node you want to
use for both identities and into the folder `data/identities`. Rename the files to `xxx.key` where `xxx` is a unique
identifier for each identity.
2. Copy the `<identity>.key` files from the PoST data directories of all nodes to the data directory of the node you
want to use for both identities and into the folder `data/identities`. The name of the key file is the public key
by default to make it easier to match the key to the identity.
3. Start the node managing the identities.
4. For every identity setup a post service to use the existing PoST data for that identity and connect to the node.
For details refer to the [post-service README](https://github.com/spacemeshos/post-rs/blob/main/service/README.md).
Expand Down

0 comments on commit 01df7df

Please sign in to comment.