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
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
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 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
Sign with your wallet
One signature proves you hold the address.
Post the proof on X
The page writes the post. You press Post.
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.
The signed message, how a proof is checked, the trust model and the cases it refuses.
How it works
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).
Post. "Post your proof" opens X's composer with the proof link. You post it from that account.
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.
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.
Attempt
What happens
Another key signs the same text
bad_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 @bob
bad_signature.
Time, nonce, expiry or host changed in the link
bad_signature (or the CRC refuses the link first).
A valid proof signed for another website
other_site: only dogejs.com (and the page's own host) are accepted.
Mangled or non-canonical signature, extra characters
Refused 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 port
parsePostUrl refuses it.
The post id changed to another post
The 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.
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 proofconst 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) thrownew 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
The exact Sign in with Doge text the wallet signs for a record with a proof.
checkProof(record, allowedHosts?)
ProofCheck
Rebuilds 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?)
boolean
The tip-page rule: a valid signature for this handle and address and a post id.
proofProblem(reason)
string
Plain words for a failed check.
challengeAttrs(handle, address, network, host)
Record<string, string>
Attributes for the <doge-signin> element (statement, domain, uri, network, expires-in 600).
Reads "@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)
string
A plain sentence saying what is wrong with a handle that is not valid yet.
sameHandle(a, b)
boolean
Compares two handles without case, as X does.
profileUrl(handle)
string
https://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)
string
https://x.com/<handle>/status/<id>
HANDLE_RE
RegExp
/^[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
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.
Put the built dist/x-*.js next to the pages as site/x/x-*.js.
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.