Security Guide
Open Security

Per-customer addresses (xpub keys)

For sites that give every customer their own deposit address.

10 minutes Advanced
Before you start, you need
  • A website that gives each customer their own deposit address (for example BTCPay Server, or a custom payment script).
  • The extended public key your payment system uses (it starts with xpub, ypub, zpub, Ltub or Mtub).

If every customer gets their own deposit address, you can’t approve each address one by one. But all those addresses come from one key — an extended public key. Approve the key, and Vannibel can work out every address it makes. An address on your site that does not come from your key rings the alarm.

Never paste a private key (starting with xprv, yprv, zprv) or your recovery words anywhere — they let anyone spend your money. Vannibel refuses them and warns you. The public key (xpub) can only show addresses, not spend.

Find your public key

SystemWhere to find it
BTCPay ServerStore → Wallet → Settings → “Derivation scheme”
ElectrumWallet → Information → “Master Public Key”
Ledger / Trezor SuiteOpen the account → Details / Show public key (XPUB)
Custom payment script (ETH, USDT, TRON)Ask your developer for the account xpub (for Ethereum usually path m/44'/60'/0', for TRON m/44'/195'/0')

Add the key

1

Open “Add xpub key”

In Security, open your website. Under Customer deposit keys (xpub), click Add xpub key.

2

Paste the key and check the first addresses

Paste the public key.Address type — leave “Guess from the key” unless you know (zpub = bc1q…, ypub = 3…, xpub = 1…; for ETH/BNB/USDT choose the 0x type, for TRON the T… type).Derivation — “Account key” for most wallets and BTCPay.Click Show addresses.Compare address #0 with the first receiving address in your wallet or payment system. They must be identical.If they match, click Continue and confirm with your password and the emailed code.
  1. Paste the public key.
  2. Address type — leave “Guess from the key” unless you know (zpub = bc1q…, ypub = 3…, xpub = 1…; for ETH/BNB/USDT choose the 0x type, for TRON the T… type).
  3. Derivation — “Account key” for most wallets and BTCPay.
  4. Click Show addresses.
  5. Compare address #0 with the first receiving address in your wallet or payment system. They must be identical.
  6. If they match, click Continue and confirm with your password and the emailed code.
Doesn’t match? If address #0 does not match, do not continue. Change “Derivation” or “Address type” and click Show addresses again. A wrong setting would make Vannibel treat your real customer addresses as unknown.

How it works after that

  • Vannibel prepares the first 100 addresses at once, and always keeps 200 addresses ahead of the highest one your site has used (the “gap”). If your site skips ahead a lot, raise the gap when adding the key.
  • When the agent, page scan or widget finds a customer address, Vannibel checks whether it comes from your key. Yes → fine. No → alarm.
  • Like single addresses, keys added more than 24 hours after verifying your site wait 12 hours and ring an alarm, so a hacker can’t quietly approve their own key.
  • Customer deposit addresses are not watched on the blockchain — they are emptied (“swept”) often, which would ring all the time. Watch the main wallet they are swept into with Wallet watch.
Ticks are saved on this device only, so you can see your progress in the menu.
Stuck? Check Troubleshooting, or send this page’s link to your developer — the guides are public, so they can open them without your password.