DogeJS / Doge on X / Prove your address

Prove your address

Sign once with your wallet, post the proof, and your tip page shows a green Proof badge. No API, no account.

Free, no account, nothing leaves your browser. For developers: the docs

A proof check on a phone: a green check, Signed by this address, the X account and the Dogecoin address.

What you get

Prove your address, step by step

Step 1 of the proof page on a phone: the X username and address, and a Sign with my wallet button.

Sign once with your wallet

Enter your X username and the address that should be yours. Your wallet signs a short message. No coins move and there is no fee.

  • Works with the DogeJS Wallet, MyDoge or any wallet that signs messages
  • Your recovery words and keys are never asked for
  • A regular address that starts with D
An illustration of a post box with the proof post: @dogejs_demo owns the Dogecoin address..., with the proof link.

Post the proof from your account

The page writes the post, with the signed link inside. You press Post on X yourself.

  • The post says which account owns which address
  • The link carries the signature, so there is nothing to store
  • Posting from your account is what ties the two together
Step 3 of the proof page on a phone: the post link pasted in, Got it, and Your proof is ready with the proof link and a button for the tip jar.

Paste the post link back

Copy the link of your post from X and paste it in. You get one proof link to share, and a button to use it on your tip page.

  • The page checks that the post is from your account
  • Copy the proof link or open the tip jar with it
  • Make a new proof any time you change address
A tip page on a phone: the X account with a green Proof badge, amounts from 10 to 100 DOGE and a Tip 25 DOGE button.

A green Proof badge on tips

With the proof added, your tip page shows a green badge next to your name. Fans see the address was signed for.

  • Anyone can open the proof link and check it
  • The check runs in their browser, not on our server
  • Claimed pages without a proof stay marked Claimed

How it works

  1. Sign with your wallet

    One signature proves you hold the address.

  2. Post the proof on X

    The page writes the post. You press Post.

  3. Share the proof link

    Anyone can check it and see the green check.

Questions

Does signing cost anything or move coins?

No. A signature moves nothing and has no fee.

Which wallets work?

The DogeJS Wallet pop-up, MyDoge, or any wallet that signs messages: choose "Use another wallet" and paste its signature. The address must be a regular one starting with D (n on the test network).

Why is the post id not signed?

The post is made after signing, with the signed link in it. The page shows the post so readers can check it is on the account.

Can a proof expire?

No. It records what was signed at that time; the expiry only limited how long the wallet request was valid.

Can I verify proofs on my server?

Yes. The checks are plain functions; run them in Node with the examples on this page.

Does the proof reveal my keys?

No. It holds a signature and your public address. The page never asks for recovery words or private keys.

Is this made by X?

No. DogeJS is an independent project and is not affiliated with X Corp. The tools only open X's own post box with the text filled in; you press Post yourself.

Prove your address

It works for real, right here. No sign-up.

For developers

Proofs for developers

The signed message, how a proof is checked, the trust model and the cases it refuses.

How it works

  1. Sign. The page asks your wallet, through the <doge-signin> element, to sign a Sign in with Doge message whose statement is I am @handle on X. My Dogecoin address is D.... (DogeJS Wallet pop-up, MyDoge, or any wallet that signs messages, pasted by hand).
  2. Post. "Post your proof" opens X's composer with the proof link. You post it from that account.
  3. Link the post. You paste the post's link; the page accepts only a status link of the same account and adds its id to the proof link.
  4. Check. Anyone who opens the proof link gets the check view: the page rebuilds the text and verifies the signature in their browser.

The message, the check steps, the trust model and the adversarial cases are on the developer page; the signed text looks like this:

Text
dogejs.com wants you to sign in with your Dogecoin address:
njrsdYxFzKyVfywip6LGRm6fYqTBRUi2wy

I am @dogejs_demo on X. My Dogecoin address is njrsdYxFzKyVfywip6LGRm6fYqTBRUi2wy.

URI: https://dogejs.com/x/proof/
Version: 1
Network: testnet
Nonce: a1b2c3d4e5f60718293a4b5c6d7e8f90
Issued At: 2026-11-28T16:00:00.000Z
Expiration Time: 2026-11-28T16:10:00.000Z

Trust model

The signature ties the address to the words "I am @name on X"; the post on that account shows the account agrees. X shows a post under any name in its URL, so the check view links the post and asks readers to confirm it is on that account.

AttemptWhat happens
Another key signs the same textbad_signature: the signature recovers another address.
Same signature, handle changed (even only its case)bad_signature: the rebuilt text differs.
A real proof for @alice replayed as @bobbad_signature.
Time, nonce, expiry or host changed in the linkbad_signature (or the CRC refuses the link first).
A valid proof signed for another websiteother_site: only dogejs.com (and the page's own host) are accepted.
Mangled or non-canonical signature, extra charactersRefused when the link is read; checkProof never throws.
Main network address with a test network proof (or the reverse)Refused: the network is part of the signed text.
A post link from another account, a look-alike host, user:password@, another portparsePostUrl refuses it.
The post id changed to another postThe signature still checks (the id is not signed), so the page shows the post and asks readers to check it is on that account.

Use it in your own code

The package is @dogejs/xkit. It is not on npm yet: install it from its repository tag, then import the helpers. They are plain functions with no DOM at module level, so they run in Node 20+, in browsers and in workers.

Shell
npm install github:DogeJS-Dev/doge-on-x#v0.2.0
JavaScript
import { tipLink, decodeLink, checkProof, draw, postIntentUrl } from '@dogejs/xkit';

Check proof links in your own app or bot with decodeLink and checkProof, or without xkit with @dogejs/signin alone (third example).

Code examples

Each example runs in Node against the built package; the output is recorded from that run and checked by npm run examples.

Create and verify a proof with a test key

Signs the proof text with a throwaway test-network key, as a wallet would, then checks it and a tampered copy. File examples/proof.mjs; run: node examples/proof.mjs.

JavaScript
// Create a proof with a test key (test network, no value) and verify it.
import { sha256 } from '@noble/hashes/sha256';
import { encodeWif, getNetwork, getPublicKey, p2pkhAddress, signMessage } from '@dogejs/core';
import { checkProof, decodeLink, hasProofBadge, proofLink, proofMessage } from '@dogejs/xkit';

// A throwaway key made from a public phrase: never use a key like this for real coins.
const net = getNetwork('testnet');
const priv = sha256(new TextEncoder().encode('dogejs docs example key, test network only'));
const wif = encodeWif(priv, { network: net });
const address = p2pkhAddress(getPublicKey(priv), net);

const record = {
  handle: 'dogejs_demo', address, network: 'testnet',
  proof: { host: 'dogejs.com', nonce: 'a1b2c3d4e5f60718293a4b5c6d7e8f90', issued: Date.UTC(2026, 10, 28, 16, 0, 0), expires: 600, signature: '', post: '' },
};
const message = proofMessage(record);            // the exact text the wallet signs
record.proof.signature = signMessage(message, wif); // what a wallet returns (base64, 88 characters)
console.log(message);

console.log(checkProof(record));                 // the signature checks out
console.log(hasProofBadge(record));              // false: no post id yet
record.proof.post = '1862001234567890123';       // the id of the post that carries the proof
const link = proofLink(record);
console.log(link.length, hasProofBadge(decodeLink(link).record));

// Change one letter of the handle: the same signature no longer matches.
console.log(checkProof({ ...record, handle: 'dogejs_dem0' }));
Output
dogejs.com wants you to sign in with your Dogecoin address:
njrsdYxFzKyVfywip6LGRm6fYqTBRUi2wy

I am @dogejs_demo on X. My Dogecoin address is njrsdYxFzKyVfywip6LGRm6fYqTBRUi2wy.

URI: https://dogejs.com/x/proof/
Version: 1
Network: testnet
Nonce: a1b2c3d4e5f60718293a4b5c6d7e8f90
Issued At: 2026-11-28T16:00:00.000Z
Expiration Time: 2026-11-28T16:10:00.000Z
{ ok: true, signedAt: 1795881600000, host: 'dogejs.com' }
false
245 true
{ ok: false, reason: 'bad_signature' }

Accept only the right post link

The post must be a status link of the same account; look-alike hosts are refused. File examples/post-url.mjs; run: node examples/post-url.mjs.

JavaScript
// The proof post: only a status link from the same account is accepted.
import { parseHandle, parsePostUrl, postUrl } from '@dogejs/xkit';

const handle = parseHandle('@DogeJS_Demo');
for (const link of [
  'https://x.com/dogejs_demo/status/1862001234567890123?s=20',
  'twitter.com/DOGEJS_DEMO/status/1862001234567890123',
  'https://x.com/someone_else/status/1862001234567890123',
  'https://x.com.example.net/dogejs_demo/status/1',
]) console.log(JSON.stringify(parsePostUrl(link, handle)));
console.log(postUrl(handle, '1862001234567890123'));
Output
{"ok":true,"id":"1862001234567890123"}
{"ok":true,"id":"1862001234567890123"}
{"ok":false,"reason":"That post is from @someone_else, not @DogeJS_Demo. Post the proof from @DogeJS_Demo."}
{"ok":false,"reason":"Paste a link to a post on x.com."}
https://x.com/DogeJS_Demo/status/1862001234567890123

Verify a proof link with @dogejs/signin only

Rebuilds the message from the link fields and calls verifySignIn directly. Pass any proof link as the first argument. File examples/proof-verify-raw.mjs; run: node examples/proof-verify-raw.mjs.

JavaScript
// Check a proof link without xkit's checkProof: rebuild the signed text and verify it with @dogejs/signin.
import { createSignInMessage, verifySignIn } from '@dogejs/signin/verify';
import { decodeLink } from '@dogejs/xkit';

const link = process.argv[2] ?? 'https://dogejs.com/x/proof/#1~dogejs_demo~njrsdYxFzKyVfywip6LGRm6fYqTBRUi2wy~~a1b2c3d4e5f60718293a4b5c6d7e8f90~1795881600000~600~H_EF9XQXmhSgxCFpD2jQ_arIQSkqmGfMGA50NUDzT259FLyo78rToNq5UBZ028udhvZp7od_uh9qJavQQJnaT_M~1862001234567890123~df7483fa';
const d = decodeLink(link);
if (!d.ok || !d.record.proof) throw new Error('not a proof link: ' + (d.ok ? 'no signature' : d.reason));
const r = d.record;
const p = r.proof;
const uri = `https://${p.host}/x/proof/`;
const message = createSignInMessage({
  domain: p.host, address: r.address, uri, network: r.network, nonce: p.nonce,
  statement: `I am @${r.handle} on X. My Dogecoin address is ${r.address}.`,
  issuedAt: new Date(p.issued),
  expirationTime: p.expires ? new Date(p.issued + p.expires * 1000) : undefined,
});
const res = verifySignIn({
  message, signature: p.signature, now: p.issued, clockSkewSeconds: 0,
  expected: { domain: p.host, nonce: p.nonce, address: r.address, network: r.network, uri },
});
console.log(res.ok ? `signed by ${r.address} for @${r.handle}` : `refused: ${res.reason}`);
console.log(`post to look at: https://x.com/${r.handle}/status/${p.post}`);
Output
signed by njrsdYxFzKyVfywip6LGRm6fYqTBRUi2wy for @dogejs_demo
post to look at: https://x.com/dogejs_demo/status/1862001234567890123

API reference

The exports this page uses. The full list is on the Doge on X developer page.

Proofs src/proof.ts

ExportReturnsWhat it does
proofStatement(handle, address)stringI am @handle on X. My Dogecoin address is D....
proofMessage(record)stringThe exact Sign in with Doge text the wallet signs for a record with a proof.
checkProof(record, allowedHosts?)ProofCheckRebuilds the text and verifies the signature at the signing time. Default hosts: ["dogejs.com"]. Never throws; reasons: none, other_site, not_p2pkh, bad_signature, malformed.
hasProofBadge(record, allowedHosts?)booleanThe tip-page rule: a valid signature for this handle and address and a post id.
proofProblem(reason)stringPlain words for a failed check.
challengeAttrs(handle, address, network, host)Record&lt;string, string&gt;Attributes for the <doge-signin> element (statement, domain, uri, network, expires-in 600).
recordFromSignIn(handle, address, detail, allowedHosts){ ok, record } | { ok: false, reason }Turns the element's doge-signin:verified detail into a record, after checking it is exactly the proof that was asked for.
PROOF_PATH'/x/proof/'Path in the signed URI.

Link format src/codec.ts

ExportReturnsWhat it does
encodeRecord(record)stringThe link fragment (the part after #) for a record, with or without a proof. Throws on a field that is not valid.
decodeRecord(fragment)DecodedReads a fragment (with or without "#"). Strict: one spelling per value, otherwise { ok: false, reason }. Only %7E is undone.
decodeLink(link)DecodedSame, from a whole link or just the fragment. Only the fragment is read, so copies of the pages on other hosts read the same links. New in 0.2.0.
decodeProblem(reason)stringPlain words for a refused link.
sigToUrl(sig) / sigFromUrl(s)string | null88-character base64 signature to the 87-character base64url form in links and back; null when not canonical.
isB64Sig(s)booleanTrue for a canonical 65-byte base64 signature.
originOf(host)stringhttps://host, or http:// for localhost and 127.0.0.1 (local testing).
VERSION, MAX_FRAGMENT, DOGEJS_HOST, MAX_EXPIRES'1', 600, 'dogejs.com', 86400Format version, longest fragment read, the default host, longest challenge expiry in seconds.
XRecord, Proof, Decodedtypes{ handle, address, network, proof? }; { host, nonce, issued, expires, signature, post }; { ok: true, record } | { ok: false, reason }.

Handles and post links src/handle.ts

ExportReturnsWhat it does
parseHandle(input)string | nullReads "@name", "name", "x.com/name" or "https://twitter.com/name" as a handle (1 to 15 of A-Z a-z 0-9 _), or null.
handleHint(input)stringA plain sentence saying what is wrong with a handle that is not valid yet.
sameHandle(a, b)booleanCompares two handles without case, as X does.
profileUrl(handle)stringhttps://x.com/<handle>
parsePostUrl(input, handle){ ok: true, id } | { ok: false, reason }Accepts only an https x.com or twitter.com status link whose path names the same handle (any case). Refuses look-alike hosts, user:password@, other ports and non-status paths.
postUrl(handle, id)stringhttps://x.com/<handle>/status/<id>
HANDLE_RERegExp/^[A-Za-z0-9_]{1,15}$/

Self-hosting

Everything is static files. The page scripts are built from DogeJS-Dev/doge-on-x; the HTML and CSS of the pages are in DogeJS-Dev/website under site/x/.

Shell
git clone https://github.com/DogeJS-Dev/doge-on-x
cd doge-on-x
npm install
npm run build      # dist/x-tip.js, x-t.js, x-proof.js, x-price.js, x-wow.js, x-profile.js, x-giveaway.js
npm test           # unit tests
npm run examples   # runs every example on this page and compares its output
  1. Copy site/x/ from the website repository (the product page of each tool is x/<tool>/, the tool itself x/<tool>/app/), with ui.css, apps.css, styles.css, site.js, pay.js (tip pages) and signin.js (proof page) from the site root, and the images the pages name.
  2. Put the built dist/x-*.js next to the pages as site/x/x-*.js.
  3. Serve the folder from any static host. Nothing else is needed: no database, no keys, no X API.

What changes on your own host: the pages write links for the host they are served from (so your tip links point to your copy), and proofs are signed for your host. A proof page accepts proofs signed for dogejs.com and for its own host, nothing else. To make another host the default for links built in code, pass it as the base argument of tipLink, proofLink and bioLine, and the hosts you accept as allowedHosts of checkProof.