From a0232d5c4ca648e3969ab095605dd5ada9cd9449 Mon Sep 17 00:00:00 2001 From: Hein Dauven Date: Thu, 19 Nov 2026 19:01:55 +0100 Subject: [PATCH] Replace the Verify Team Account tool with a Stay safe page A client-side list of team handles can't verify who is behind an account, and it goes out of date. The new page covers what the Dusk team will never do, the official channels, how to spot impersonation, and what to do about it. - Remove VerifyAccount.astro and its page - Redirect /learn/verify-team-account/ to /learn/stay-safe/ - Put Stay Safe in the old sidebar slot - Keep one list of official channels: the community page links to it - Test the redirect, the sidebar entry, and that nothing in the build still refers to the old page or ships the checker --- astro.config.js | 1 + src/content/docs/learn/VerifyAccount.astro | 219 ------------------ src/content/docs/learn/community.mdx | 43 +--- src/content/docs/learn/stay-safe.mdx | 51 ++++ .../docs/learn/verify-team-account.mdx | 12 - src/sidebars/siteSidebar.js | 2 +- test/stay-safe.test.mjs | 60 +++++ 7 files changed, 117 insertions(+), 271 deletions(-) delete mode 100644 src/content/docs/learn/VerifyAccount.astro create mode 100644 src/content/docs/learn/stay-safe.mdx delete mode 100644 src/content/docs/learn/verify-team-account.mdx create mode 100644 test/stay-safe.test.mjs diff --git a/astro.config.js b/astro.config.js index 32cc2d0b..10ddf4fe 100644 --- a/astro.config.js +++ b/astro.config.js @@ -26,6 +26,7 @@ export default defineConfig({ '/learn/deep-dive/assets-and-regulations/dematerialization': '/learn/deep-dive/assets-and-regulations', '/learn/deep-dive/economic-protocol': '/learn/tokenomics', '/learn/wallet-terminology': '/learn/glossary', + '/learn/verify-team-account': '/learn/stay-safe/', '/developer/integrations/hashing-algorithms': '/developer/integrations/reference', '/developer/integrations/addresses': '/developer/integrations/reference', '/developer/smart-contract/hyperstaking_tech': '/learn/hyperstaking', diff --git a/src/content/docs/learn/VerifyAccount.astro b/src/content/docs/learn/VerifyAccount.astro deleted file mode 100644 index 6f75c65e..00000000 --- a/src/content/docs/learn/VerifyAccount.astro +++ /dev/null @@ -1,219 +0,0 @@ - -
-
- - - -
- - -

-
- - -
- - diff --git a/src/content/docs/learn/community.mdx b/src/content/docs/learn/community.mdx index b41babee..f0811160 100644 --- a/src/content/docs/learn/community.mdx +++ b/src/content/docs/learn/community.mdx @@ -1,50 +1,15 @@ --- title: Get involved & Community -description: Official channels for updates and support, plus ways to contribute to the ecosystem and docs. +description: Where to ask questions about Dusk, follow updates, and contribute to the ecosystem and docs. --- -import { LinkCard, CardGrid } from '@astrojs/starlight/components'; - -Use the channels below to get updates, ask questions, and contribute. - -## Official channels - - - - - - - +Use Dusk's official channels to get updates, ask questions, and contribute. [Stay safe](/learn/stay-safe/#official-channels) lists each channel with its exact address. ## Getting help - For documentation fixes and requests, contribute in the docs repo: dusk-network/docs. -- For protocol/app questions, use Discord. -- Be careful with DMs and links. Official channels will never ask for your seed phrase or private keys. - -## Socials - -- [Dusk X(Twitter)](https://twitter.com/DuskFoundation) -- [Dusk LinkedIn](https://www.linkedin.com/company/dusknetwork/) -- [Dusk Youtube](https://www.youtube.com/c/DuskNetwork) -- [Dusk Reddit](https://www.reddit.com/r/DuskNetwork/) -- [Dusk Github](https://github.com/dusk-network) +- For protocol/app questions, use [Discord](https://discord.gg/dusk-official). +- Be careful with DMs and links. The Dusk team will never DM you first or ask for your recovery phrase or private keys. See [Stay safe](/learn/stay-safe/). ## Run a node diff --git a/src/content/docs/learn/stay-safe.mdx b/src/content/docs/learn/stay-safe.mdx new file mode 100644 index 00000000..11c6b177 --- /dev/null +++ b/src/content/docs/learn/stay-safe.mdx @@ -0,0 +1,51 @@ +--- +title: Stay safe +description: What the Dusk team will never ask you to do, where to find Dusk's official channels, and how to spot and report accounts that pretend to be Dusk. +--- + +Anyone can pretend to be part of the Dusk team on X, Discord, Telegram, or by email. A list of team accounts can't verify who is behind an account, and it goes out of date, so these docs don't keep one. Use the rules below instead. + +## What the Dusk team will never do + +The Dusk team will never: + +- Contact you first by direct message (DM). +- Ask for your recovery phrase (the words that restore your wallet), private keys, or passwords. +- Ask you to send funds, or to "verify" your wallet or your funds. +- Offer support, airdrops, or giveaways in DMs. +- Ask you to install software or connect your wallet through a link in a DM. + +Anyone who does one of these things isn't from Dusk, whatever their name, photo, or handle says. + +## Official channels + +Reach Dusk through the links below or the ones on [dusk.network/links](https://dusk.network/links/), not through links someone sends you. + +- Website: [dusk.network](https://dusk.network) +- Docs: [docs.dusk.network](https://docs.dusk.network) +- News: [dusk.network/news](https://dusk.network/news/) +- X: [x.com/duskfoundation](https://x.com/duskfoundation) +- Discord: [discord.gg/dusk-official](https://discord.gg/dusk-official) +- Telegram (announcements only): [t.me/DuskNetwork](https://t.me/DuskNetwork) +- GitHub: [github.com/dusk-network](https://github.com/dusk-network) +- LinkedIn: [linkedin.com/company/dusknetwork](https://www.linkedin.com/company/dusknetwork/) +- YouTube: [youtube.com/c/DuskNetwork](https://www.youtube.com/c/DuskNetwork) +- Reddit: [reddit.com/r/dusknetwork](https://www.reddit.com/r/dusknetwork) +- Email: [hello@dusk.network](mailto:hello@dusk.network) + +## How to spot impersonation + +- **Look-alike handles and domains.** Check every character. A fake account or site may add or swap a letter, use a 0 for an o, add an underscore or a word like "official" or "support", or use a different domain ending. +- **Copied names and photos.** Anyone can copy a team member's display name and profile photo. On Discord, display names aren't unique, and usernames can change hands. +- **Urgency and pressure.** A message that says your wallet will be locked, your funds are at risk, or an offer ends soon is trying to rush you. +- **A move to private messages.** Someone answers your question in a public channel, then asks you to continue in DMs or to open a "support ticket" through a link. + +## What to do + +1. Don't reply, click links, connect your wallet, or sign anything. +2. Report the account to the platform as impersonation. +3. Tell Dusk through an official channel, for example in [Discord](https://discord.gg/dusk-official) or by email to [hello@dusk.network](mailto:hello@dusk.network). + +:::caution +If you already shared your recovery phrase or a private key, assume someone else can move your funds. Create a new wallet with a new recovery phrase and move your funds to it right away. +::: diff --git a/src/content/docs/learn/verify-team-account.mdx b/src/content/docs/learn/verify-team-account.mdx deleted file mode 100644 index ec8fd76b..00000000 --- a/src/content/docs/learn/verify-team-account.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Verify Team Account -description: Verify a Dusk team account. ---- - -import VerifyAccount from './VerifyAccount.astro'; - - - -:::note -While this tool is designed to verify team members that primarily communicate with external partners, it is not foolproof. If an account is marked as "not verified" but you have reason to believe it is valid, please triple-check with official channels or documentation. False positives can occur. -::: diff --git a/src/sidebars/siteSidebar.js b/src/sidebars/siteSidebar.js index ae986bcf..cf9c749a 100644 --- a/src/sidebars/siteSidebar.js +++ b/src/sidebars/siteSidebar.js @@ -72,7 +72,7 @@ const siteSidebar = [ label: "Trust and Community", collapsed: true, items: [ - { label: "Verify Team Accounts", link: "/learn/verify-team-account" }, + { label: "Stay Safe", link: "/learn/stay-safe" }, { label: "Community", link: "/learn/community" }, ], }, diff --git a/test/stay-safe.test.mjs b/test/stay-safe.test.mjs new file mode 100644 index 00000000..4f55cd79 --- /dev/null +++ b/test/stay-safe.test.mjs @@ -0,0 +1,60 @@ +import assert from "node:assert/strict"; +import { readFile, readdir } from "node:fs/promises"; +import test from "node:test"; + +const dist = new URL("../dist/", import.meta.url); +const readBuilt = (path) => readFile(new URL(path, dist), "utf8"); +const oldPage = "learn/verify-team-account/index.html"; + +const builtTextFiles = async () => + (await readdir(dist, { recursive: true })) + .map((path) => path.replaceAll("\\", "/")) + .filter((path) => /\.(html|xml|txt)$/.test(path)); + +test("the old Verify Team Account URL redirects to Stay safe", async () => { + const redirectPage = await readBuilt(oldPage); + + assert.match( + redirectPage, + //, + ); + assert.match(redirectPage, //); + assert.match( + redirectPage, + //, + ); +}); + +test("Stay safe takes the old page's place in the sidebar and sitemap", async () => { + const page = await readBuilt("learn/stay-safe/index.html"); + const sitemap = await readBuilt("sitemap-0.xml"); + + assert.match(page, /Stay safe \| DOCS<\/title>/); + assert.match( + page, + /Trust and Community[\s\S]*?<a href="\/learn\/stay-safe" aria-current="page"[^>]*>\s*<span[^>]*>Stay Safe<\/span>[\s\S]*?<a href="\/learn\/community"/, + ); + assert.match(sitemap, /<loc>https:\/\/docs\.dusk\.network\/learn\/stay-safe\/<\/loc>/); +}); + +test("only the redirect still mentions the old Verify Team Account URL", async () => { + for (const path of await builtTextFiles()) { + if (path === oldPage) continue; + + assert.doesNotMatch( + await readBuilt(path), + /verify-team-account/, + `${path} still refers to the old page`, + ); + } +}); + +test("no built page ships the client-side account checker", async () => { + for (const path of await builtTextFiles()) { + assert.doesNotMatch( + await readBuilt(path), + /<verify-account\b/, + `${path} still ships the account checker`, + ); + } +});