You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/run-node/5-flare-entity.mdx
+56-86Lines changed: 56 additions & 86 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ A Flare Entity consists of the following six components:
36
36
-[Docker Engine](https://docs.docker.com/engine/install/), ensure the Docker data root directory has sufficient disk space. If necessary, configure Docker to use a specific storage location or mount point (refer to Docker's [storage documentation](https://docs.docker.com/engine/storage/)).
2. Create an `entities.json` file with the following account addresses and private keys. Generate a sortition private key by following step 1 in [Register sortition key](#register-sortition-key). :
99
100
100
-
```json
101
-
[
102
-
{
103
-
"identity": {
104
-
"address": "<address>",
105
-
"privateKey": "<private key hex>"
106
-
},
107
-
"submit": {
108
-
"address": "<address>",
109
-
"privateKey": "<private key hex>"
110
-
},
111
-
"submitSignatures": {
112
-
"address": "<address>",
113
-
"privateKey": "<private key hex>"
114
-
},
115
-
"signingPolicy": {
116
-
"address": "<address>",
117
-
"privateKey": "<private key hex>"
118
-
},
119
-
"delegation": {
120
-
"address": "<address>",
121
-
"privateKey": "<private key hex>"
122
-
},
123
-
"sortitionPrivateKey": "<private key hex>"// docker run --rm ghcr.io/flare-foundation/fast-updates/go-client:latest keygen
3. Rename `.env.template` to `.env` and add the path to your `entities.json` file:
150
130
151
-
```text title=".env"
152
-
ENTITIES_FILE_PATH="<path to entities.json>"
153
-
COSTON_RPC=<non-public Coston RPC>
154
-
CHAIN_CONFIG="coston"
155
-
```
131
+
```text title=".env"
132
+
ENTITIES_FILE_PATH=entities.json # <-- REPLACE WITH PATH TO YOUR entities.json
133
+
```
156
134
157
-
</TabItem>
158
-
</Tabs>
135
+
4. Run the registration tasks ([`register-entities.ts`](https://github.com/flare-foundation/flare-smart-contracts-v2/blob/main/deployment/tasks/register-entities.ts) and [`register-public-keys.ts`](https://github.com/flare-foundation/flare-smart-contracts-v2/blob/main/deployment/tasks/register-public-keys.ts)):
If these scripts complete successfully, you have registered both the FSP addresses and the sortition key.
190
160
You can proceed directly to [Fund FSP addresses](#fund-fsp-addresses).
@@ -193,7 +163,7 @@ You can proceed directly to [Fund FSP addresses](#fund-fsp-addresses).
193
163
194
164
#### Method 2: Manual registration
195
165
196
-
On mainnet, or if you prefer not to use the automated script on testnets, you must manually register the required FSP addresses by interacting directly with the `EntityManager` smart contract.
166
+
On mainnet, or if you prefer not to use the automated script on testnets, you must manually register the required FSP addresses by interacting directly with the [`EntityManager`](/network/fsp/solidity-reference/IEntityManager) smart contract.
197
167
198
168
1. Ensure you have generated the following five addresses and **securely stored their private keys**. Understand their roles:
0 commit comments