feat(sirius-press): a WordPress where the account is a key, not a mailbox
WordPress makes two assumptions this project cannot accept: that identity
comes from an email address, and that a site lives at one server. Both are
things somebody else can take away — a mailbox is rented from a provider who
can close it or be compelled to open it, and a server is one seizure from
being gone.
Sirius Press replaces the first and hedges the second.
Signing in means signing a challenge with the key that controls a CashAddress.
The address is recovered from the signature, so nothing is typed but the
signature itself, and the result is an ordinary WordPress session cookie —
roles, capabilities, nonces and the REST API never learn the login was
different. Three ways to produce one: a wallet the browser already exposes, a
phrase used once in the page and wiped, or a signature pasted in from any
BIP-137 wallet, which needs no JavaScript and lets the key stay on a machine
that never touches the web.
There is no password reset, and the recovery page says so plainly rather than
offering a form that cannot work. A reset mechanism is by construction a way
to take an account from its owner, and it is always easier to attack than the
cryptography it bypasses.
Publishing a post also exports it as static HTML to the name's storage on Sia,
signed by the key that owns the name, so the site keeps answering when the
server does not.
Email as a feature is untouched. wp_mail() still works, SMTP still sends, and
contact forms still deliver to addresses real people typed. Only mail to the
site's own unroutable placeholder addresses is diverted to an in-app inbox.
The objection was to email as identity, not to email.
Core is pinned and patched rather than vendored. WordPress 7.1.1 is 149 MB and
5,008 files; the fork's entire core diff is 75 lines in wp-admin/install.php.
Carrying the former to express the latter would bury the patch where nobody
reviews it and make every clone of the monorepo pay for it. Upstream releases
still merge through tools/update-wordpress.sh, which reapplies the series and
says exactly which hunk needs a human.
The cryptography is implemented twice — PHP on the server, JavaScript in the
page — because the server must verify and the browser must sign. Both are
pinned against libauth, the library the Sirius portal wallet and the BNS
gateway already use, so a disagreement of one byte fails the test suite rather
than presenting as a rejected login at three in the morning.
132 checks, no framework, about a second.
2026-09-21 01:39:38 +02:00
|
|
|
/*
|
|
|
|
|
* Sign-in screen styling.
|
|
|
|
|
*
|
|
|
|
|
* Sits on top of whatever wp-login.php already looks like rather than
|
|
|
|
|
* replacing it, so a site using a login-branding plugin keeps its branding.
|
|
|
|
|
* The only strong visual claim made here is hierarchy: the wallet block reads
|
|
|
|
|
* as the way in, and the password field above it reads as a leftover.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-09-22 20:06:27 +02:00
|
|
|
/*
|
|
|
|
|
* Make the `hidden` attribute actually hide things.
|
|
|
|
|
*
|
|
|
|
|
* `hidden` works through a UA rule — `[hidden] { display: none }` — which any
|
|
|
|
|
* author rule carrying a `display` outranks. WordPress ships exactly such a
|
|
|
|
|
* rule: `.wp-core-ui .button { display: inline-block }` in buttons.css, which
|
|
|
|
|
* matches every button in this block.
|
|
|
|
|
*
|
|
|
|
|
* Without this the whole progressive-enhancement story silently inverts. The
|
|
|
|
|
* markup ships with the sign-in button, the browser-wallet button and the
|
|
|
|
|
* phrase field hidden, and the script reveals only the ones that can work.
|
|
|
|
|
* Defeat `hidden` and a visitor with JavaScript off is offered a button that
|
|
|
|
|
* does nothing, and everyone is offered a browser wallet that is not there.
|
|
|
|
|
*/
|
|
|
|
|
.sirius-wallet [hidden] {
|
|
|
|
|
display: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
feat(sirius-press): a WordPress where the account is a key, not a mailbox
WordPress makes two assumptions this project cannot accept: that identity
comes from an email address, and that a site lives at one server. Both are
things somebody else can take away — a mailbox is rented from a provider who
can close it or be compelled to open it, and a server is one seizure from
being gone.
Sirius Press replaces the first and hedges the second.
Signing in means signing a challenge with the key that controls a CashAddress.
The address is recovered from the signature, so nothing is typed but the
signature itself, and the result is an ordinary WordPress session cookie —
roles, capabilities, nonces and the REST API never learn the login was
different. Three ways to produce one: a wallet the browser already exposes, a
phrase used once in the page and wiped, or a signature pasted in from any
BIP-137 wallet, which needs no JavaScript and lets the key stay on a machine
that never touches the web.
There is no password reset, and the recovery page says so plainly rather than
offering a form that cannot work. A reset mechanism is by construction a way
to take an account from its owner, and it is always easier to attack than the
cryptography it bypasses.
Publishing a post also exports it as static HTML to the name's storage on Sia,
signed by the key that owns the name, so the site keeps answering when the
server does not.
Email as a feature is untouched. wp_mail() still works, SMTP still sends, and
contact forms still deliver to addresses real people typed. Only mail to the
site's own unroutable placeholder addresses is diverted to an in-app inbox.
The objection was to email as identity, not to email.
Core is pinned and patched rather than vendored. WordPress 7.1.1 is 149 MB and
5,008 files; the fork's entire core diff is 75 lines in wp-admin/install.php.
Carrying the former to express the latter would bury the patch where nobody
reviews it and make every clone of the monorepo pay for it. Upstream releases
still merge through tools/update-wordpress.sh, which reapplies the series and
says exactly which hunk needs a human.
The cryptography is implemented twice — PHP on the server, JavaScript in the
page — because the server must verify and the browser must sign. Both are
pinned against libauth, the library the Sirius portal wallet and the BNS
gateway already use, so a disagreement of one byte fails the test suite rather
than presenting as a rejected login at three in the morning.
132 checks, no framework, about a second.
2026-09-21 01:39:38 +02:00
|
|
|
.sirius-wallet {
|
|
|
|
|
margin: 16px 0 8px;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
border: 1px solid #dcdcde;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
background: #fbfbfc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__message {
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
color: #2c3338;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid #dcdcde;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
resize: vertical;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
margin: 12px 0 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__phrase {
|
|
|
|
|
margin-top: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__phrase label {
|
|
|
|
|
display: block;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__phrase-input,
|
|
|
|
|
.sirius-wallet__signature,
|
fix(sirius-press): recovering a key is not the same as verifying a signature
Running the fork against a live WordPress found a real hole in registration,
and it is the kind that only shows up when you actually try it.
ECDSA public-key recovery always succeeds. Given any well-formed signature
and any digest it returns a key — just not the signer's, unless the digest is
the one that was signed. The auth flow leaned on that as if a wrong message
would fail. It does not; it quietly yields a stranger's address.
At sign-in this was harmless, because the wrong address matches no account
and the attempt fails. Registration and wallet-linking were another matter:
both took the recovered address and bound it to an account, so a signature
over slightly different text — a challenge copied without its blank line, a
wallet that rewrote the text, a login signature replayed at the registration
form — created an account keyed to an address nobody could sign for. The
person would see "success" and discover the truth the next time they tried to
get in. Wallet-linking was worse still: it would move an existing account onto
a dead address and lock its owner out of their own site.
Both paths now require the address the signer claims and compare it to the
recovered one, which is what verification actually means. Sign-in accepts the
claim when the page sends it and uses it to turn "no account uses that wallet"
into the more useful "that signature is not over the text we asked for".
Also from running it:
URL rewriting mangled every link on a site whose URL carries a port. The
protocol-relative pass matched inside absolute URLs and gave each one a second
scheme, and matching the host without its port left the port stranded as
`//host:8760:8760/`. Local and staging installs would have exported a site of
broken links.
Plain permalinks silently collapse an entire site onto one exported file,
because every post's URL is `/?p=N` and its path is `/`. The queue looks
healthy the whole time. The Publishing screen now says so.
Translations loaded on `plugins_loaded`, which WordPress 6.7 warns about on
every request — the kind of noise that trains people to stop reading logs.
And one deletion: an `is_email()` filter written on the assumption that
WordPress rejects `.invalid` addresses. It does not — `is_email()` validates
syntax, not whether a domain could exist — so the filter never fired. A filter
that appears to relax a rule but does not is worse than no filter, because
someone later reasons from it. The documentation made the same claim and has
been corrected.
Verification added rather than asserted: tests/live.mjs drives a real instance
over HTTP (40 checks), and tests/mock-gateway.mjs answers uploads with the
signature check transcribed from the gateway's own source, so the publishing
path can be exercised without a registered name.
2026-09-21 02:35:32 +02:00
|
|
|
.sirius-wallet__address-input,
|
feat(sirius-press): a WordPress where the account is a key, not a mailbox
WordPress makes two assumptions this project cannot accept: that identity
comes from an email address, and that a site lives at one server. Both are
things somebody else can take away — a mailbox is rented from a provider who
can close it or be compelled to open it, and a server is one seizure from
being gone.
Sirius Press replaces the first and hedges the second.
Signing in means signing a challenge with the key that controls a CashAddress.
The address is recovered from the signature, so nothing is typed but the
signature itself, and the result is an ordinary WordPress session cookie —
roles, capabilities, nonces and the REST API never learn the login was
different. Three ways to produce one: a wallet the browser already exposes, a
phrase used once in the page and wiped, or a signature pasted in from any
BIP-137 wallet, which needs no JavaScript and lets the key stay on a machine
that never touches the web.
There is no password reset, and the recovery page says so plainly rather than
offering a form that cannot work. A reset mechanism is by construction a way
to take an account from its owner, and it is always easier to attack than the
cryptography it bypasses.
Publishing a post also exports it as static HTML to the name's storage on Sia,
signed by the key that owns the name, so the site keeps answering when the
server does not.
Email as a feature is untouched. wp_mail() still works, SMTP still sends, and
contact forms still deliver to addresses real people typed. Only mail to the
site's own unroutable placeholder addresses is diverted to an in-app inbox.
The objection was to email as identity, not to email.
Core is pinned and patched rather than vendored. WordPress 7.1.1 is 149 MB and
5,008 files; the fork's entire core diff is 75 lines in wp-admin/install.php.
Carrying the former to express the latter would bury the patch where nobody
reviews it and make every clone of the monorepo pay for it. Upstream releases
still merge through tools/update-wordpress.sh, which reapplies the series and
says exactly which hunk needs a human.
The cryptography is implemented twice — PHP on the server, JavaScript in the
page — because the server must verify and the browser must sign. Both are
pinned against libauth, the library the Sirius portal wallet and the BNS
gateway already use, so a disagreement of one byte fails the test suite rather
than presenting as a rejected login at three in the morning.
132 checks, no framework, about a second.
2026-09-21 01:39:38 +02:00
|
|
|
#sirius_derive_phrase {
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border: 1px solid #8c8f94;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
/* A recovery phrase is the one secret on this page; never offer it to a
|
|
|
|
|
password manager or a spellchecker's network round trip. */
|
|
|
|
|
-webkit-text-security: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__hint,
|
|
|
|
|
.sirius-hint {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #50575e;
|
|
|
|
|
margin: 6px 0 0;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__manual {
|
|
|
|
|
margin-top: 14px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__manual summary {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: #2271b1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__status {
|
|
|
|
|
margin: 10px 0 0;
|
|
|
|
|
min-height: 1.4em;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-wallet__status.is-error {
|
|
|
|
|
color: #b32d2e;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-intro {
|
|
|
|
|
border-left-color: #2271b1 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- the recovery page ------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
.sirius-recovery {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid #dcdcde;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
padding: 20px 24px;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-recovery h2 {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
margin: 20px 0 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-recovery .message {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
border-left: 4px solid #dba617;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
background: #fcf9e8;
|
|
|
|
|
margin: 0 0 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-derive {
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
background: #f6f7f7;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-derive label {
|
|
|
|
|
display: block;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-derive__out {
|
|
|
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
margin: 8px 0 0;
|
|
|
|
|
min-height: 1.4em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-derive__out.is-address {
|
|
|
|
|
color: #007017;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sirius-derive__out.is-error {
|
|
|
|
|
color: #b32d2e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
/* wp-login.php has no dark mode of its own, so only soften what would
|
|
|
|
|
glare if a login-branding plugin has provided one. */
|
|
|
|
|
.sirius-wallet {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
fix(sirius-press): recovering a key is not the same as verifying a signature
Running the fork against a live WordPress found a real hole in registration,
and it is the kind that only shows up when you actually try it.
ECDSA public-key recovery always succeeds. Given any well-formed signature
and any digest it returns a key — just not the signer's, unless the digest is
the one that was signed. The auth flow leaned on that as if a wrong message
would fail. It does not; it quietly yields a stranger's address.
At sign-in this was harmless, because the wrong address matches no account
and the attempt fails. Registration and wallet-linking were another matter:
both took the recovered address and bound it to an account, so a signature
over slightly different text — a challenge copied without its blank line, a
wallet that rewrote the text, a login signature replayed at the registration
form — created an account keyed to an address nobody could sign for. The
person would see "success" and discover the truth the next time they tried to
get in. Wallet-linking was worse still: it would move an existing account onto
a dead address and lock its owner out of their own site.
Both paths now require the address the signer claims and compare it to the
recovered one, which is what verification actually means. Sign-in accepts the
claim when the page sends it and uses it to turn "no account uses that wallet"
into the more useful "that signature is not over the text we asked for".
Also from running it:
URL rewriting mangled every link on a site whose URL carries a port. The
protocol-relative pass matched inside absolute URLs and gave each one a second
scheme, and matching the host without its port left the port stranded as
`//host:8760:8760/`. Local and staging installs would have exported a site of
broken links.
Plain permalinks silently collapse an entire site onto one exported file,
because every post's URL is `/?p=N` and its path is `/`. The queue looks
healthy the whole time. The Publishing screen now says so.
Translations loaded on `plugins_loaded`, which WordPress 6.7 warns about on
every request — the kind of noise that trains people to stop reading logs.
And one deletion: an `is_email()` filter written on the assumption that
WordPress rejects `.invalid` addresses. It does not — `is_email()` validates
syntax, not whether a domain could exist — so the filter never fired. A filter
that appears to relax a rule but does not is worse than no filter, because
someone later reasons from it. The documentation made the same claim and has
been corrected.
Verification added rather than asserted: tests/live.mjs drives a real instance
over HTTP (40 checks), and tests/mock-gateway.mjs answers uploads with the
signature check transcribed from the gateway's own source, so the publishing
path can be exercised without a registered name.
2026-09-21 02:35:32 +02:00
|
|
|
|
|
|
|
|
.sirius-wallet__address-label {
|
|
|
|
|
display: block;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin: 10px 0 4px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|