From 2df5086e1e40fa10e23f0b4dd4881a9897cea249 Mon Sep 17 00:00:00 2001 From: d1onys1us <13951458+d1onys1us@users.noreply.github.com> Date: Fri, 21 Jul 2023 10:56:59 -0400 Subject: [PATCH] feat(website): add private key warning --- .../docs/guides/run-a-node/enable-a-proposer.mdx | 6 ++++++ .../pages/docs/guides/run-a-node/enable-a-prover.mdx | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/website/pages/docs/guides/run-a-node/enable-a-proposer.mdx b/packages/website/pages/docs/guides/run-a-node/enable-a-proposer.mdx index e8f40159505..f05f61cc92a 100644 --- a/packages/website/pages/docs/guides/run-a-node/enable-a-proposer.mdx +++ b/packages/website/pages/docs/guides/run-a-node/enable-a-proposer.mdx @@ -58,6 +58,12 @@ Open the `.env` file in the `simple-taiko-node` directory. ### Set environment variables to enable a proposer + + Do **not** use a private key that is valuable to you. The private key will be + stored in plain text in the `.env` file, and this is not secure. There is a + real risk of losing your assets. You should **only use a test account**. + + Set the following environment variables to enable your node as a proposer: - Set `ENABLE_PROPOSER` to `true` (replacing the default `false` with `true`). diff --git a/packages/website/pages/docs/guides/run-a-node/enable-a-prover.mdx b/packages/website/pages/docs/guides/run-a-node/enable-a-prover.mdx index a2c9c5bcd12..c991df6181c 100644 --- a/packages/website/pages/docs/guides/run-a-node/enable-a-prover.mdx +++ b/packages/website/pages/docs/guides/run-a-node/enable-a-prover.mdx @@ -1,8 +1,10 @@ import { Callout, Steps } from "nextra-theme-docs"; - Keep in mind that running a prover is a very competitive space, and those who generate proofs will have very powerful machines and optimized clients. - It's unlikely to prove a block and gain rewards with the default client and minimum hardware requirements. + Keep in mind that running a prover is a very competitive space, and those who + generate proofs will have very powerful machines and optimized clients. It's + unlikely to prove a block and gain rewards with the default client and minimum + hardware requirements. # Enable a prover @@ -23,6 +25,12 @@ Open the `.env` file in the `simple-taiko-node` directory. ### Set environment variables to enable prover + + Do **not** use a private key that is valuable to you. The private key will be + stored in plain text in the `.env` file, and this is not secure. There is a + real risk of losing your assets. You should **only use a test account**. + + Set the following environment variables to enable your node as a prover: - Set `ENABLE_PROVER` to `true` (replacing the default `false` with `true`).