On the Vault tour, @vikisecrets asked how the ring key system works, where the keys are stored, and how members get the watermarked content. Here is the current protocol in plain English, with the full technical spec linked at the end.
The short version: the post text is encrypted before it reaches Hive. A monthly content key encrypts the post, a monthly ring key seals the keyring of content keys, and each member gets a copy of the ring key locked to a key pair that never leaves their browser. The watermark is added when the member's browser renders the decrypted text, not stored as a separate encrypted copy.
Explain like I'm 5
The spec has a deliberately non-normative ELI5 section at §0.1. It is still correct for the current v1 protocol, the v2 sharded bulletin and the optional relay. Here it is, with the relay path added:
- The locked box. You put the members-only text in a strong digital safe (AES-256-GCM) and leave a free teaser outside. Everyone can see the teaser and the locked box; only key holders can open it.
- The keychain. Each month you make a fresh content key for that month's posts. You keep the monthly keys together in a keyring, and seal that keyring with a separate monthly ring key.
- The ticket. A reader's browser makes a personal padlock-and-key pair (P-256). They pay you in HBD and put their open padlock (public key) in the payment memo.
- Handing over the key. You verify the payment, seal the keyring once, and make a copy of the ring key that only opens with that reader's padlock. You publish the sealed keyring plus all the wrapped ring keys in a bulletin, signed with your Hive posting key.
- Reading the diary. The reader's browser verifies your signature, uses their private key to open their copy of the ring key, decrypts the keyring, picks the content key for the post, and decrypts the text locally.
There is no Banksia server in the middle and no platform balance. The chain stores the locked box, the wrapped keys and your signature. The trade-off is that someone must issue the bulletin: in the base v1 path that is your open dashboard or an auto-issuing tab, while the optional relay can publish the same signed bulletin from its own account while you are offline. It is not DRM: a subscriber can screenshot or re-share text, and media URLs are not encrypted.
The five keys
| Key | What it is | Where it lives | What it does |
|---|---|---|---|
Content key K_kid | 32-byte AES-256-GCM key, one per YYYY-MM period | Inside the keyring; encrypted creator vault | Encrypts the post payload for that period |
| Keyring | JSON map of kid to content key; grows with the archive | Creator vault; sealed once per bulletin | Lets a member decrypt current and past posts |
Ring key K_ring | 32-byte AES-256-GCM key, rotated each period | Creator vault; wrapped per reader in the bulletin | Seals the keyring |
| Reader key | P-256 ECDH key pair, per device/origin | Private key in the reader's browser; public key in the payment memo and device registry | Receives the wrapped ring key |
| Grant signing key | Hive posting key, or a delegated relay posting key | Creator or relay signer | Signs the bulletin that carries the grants |
The creator's vault passphrase is not a key in this table. It is a user secret that encrypts the creator vault at rest. It is never stored by Banksia; the user keeps it in a password manager. The Hive posting key signs the bulletin but is never used as an encryption key.
How the ring key reaches a reader
- The reader makes a key pair. The browser creates a P-256 ECDH key pair. The public key is safe to publish; the private key never leaves the device.
- The reader pays. The payment is a normal HBD
transferorrecurrent_transferwith a memo containing the product, plan and reader public key. The active key signs the payment; Banksia never asks for it. - The creator or relay verifies the payment. Recipient, amount, product, recurrence, memo key and txid are checked against the on-chain product post. A duplicate txid cannot produce a second grant.
- The ring key is wrapped. The issuer takes
K_ringand wraps it to the reader's public key: ephemeral P-256 ECDH, HKDF-SHA256, then AES-256-GCM. The grant header binds the blog, reader thumbprint, period, tier and expiry, so a wrapped key cannot be moved to another blog, month, tier or expiry. - The bulletin is published. The bulletin contains the sealed keyring once and one wrapped
K_ringper reader. It is signed with the creator's posting key, or by a certified relay posting key. - The reader opens it locally. The browser verifies the signature, checks the expiry, unwraps its copy of
K_ring, decrypts the keyring, selectsK_kidfor the post, decrypts the payload, and verifies the plaintext hash and byte count. Any failure falls back to the paywall; no partial plaintext is rendered.
The sealed keyring is published once per bulletin, not once per reader. The per-reader part is only the wrapped ring key, about 200 bytes in the v1 entry. Above 300 active readers the issuer switches to the signed v2 sharded bulletin: the keyring stays in the manifest, and readers fetch only the shard their thumbprint belongs to.
The paywall card is the public side. The locked part decrypts only after a verified membership grant.
Where the keys are stored
Creator vault. The creator's keyring, current K_ring, ringKid and optional ringId live in an encrypted envelope in the browser at localStorage["banksia_vault_creator_<account>"]. The envelope is PBKDF2-SHA256 with 310,000 iterations plus AES-256-GCM, with AAD bound to the account. The passphrase is not stored. Copying the vault blob to another account fails because the account is part of the AAD.
Reader key. The private P-256 key is stored as an extractable CryptoKey in IndexedDB so the reader can export a passphrase-wrapped recovery file. That is a deliberate trade-off: a script on the same origin can read the key while the page is open. The recovery file is PBKDF2-SHA256 310k + AES-256-GCM, and the private key is inside it. A reader can also use a non-extractable key if their implementation provides a different recovery path.
On chain. The post metadata contains the ciphertext, IV, hash, byte count, kid, product and paywall copy. The bulletin contains the sealed keyring and the wrapped ring keys. The payment memo and the reader device registry contain public reader keys only. No private key, content key or ring key is written on chain in plaintext.
Relay. If the creator uses the optional relay, the relay holds an encrypted banksia.vault.relay@1 bundle containing the keyring and ring key. It decrypts that bundle to issue grants. It never receives the creator's posting or active key, cannot sign as the creator, and cannot move funds. It is trusted for availability and content-key custody: a compromised relay can leak the keyring or issue free grants, but it cannot change the creator's bulletin pointer or spend from the creator's wallet.
How the watermark works
The watermark is a render-time label, not a separate encrypted copy. The same ciphertext is published once and every member decrypts the same plaintext. When the reader is unlocked, the app builds a label:
Licensed to @reader · YYYY-MM
It appends that label to the rendered Markdown as a small paragraph and also shows it at the top and foot of the unlocked section. The creator can turn the watermark off in the Vault settings; when it is on, the label follows the signed period.
That means the watermark is a deterrent, not DRM. It makes a screenshot or a copy-paste traceable back to the account and period, but a member can still screenshot, re-share or strip the label if they control the rendering. The protocol does not pretend otherwise.
What the relay changes
The relay is an optional companion extension, banksia.vault.relay@1. The creator publishes a certificate in the blog metadata, signed with their posting key, naming a dedicated relay account and its posting key. The relay watches the creator's product payments, verifies them, wraps the ring key for each registered reader key, and publishes delegated bulletins under the creator's hidden container.
The bulletin is still the same banksia_vault_bulletin object. The additions are signer, a delegation block with the certificate hash, and a signature from the relay key. Readers verify the creator certificate, the relay account and key, the scope, the time window and the certificate hash before accepting a delegated bulletin. A missing, expired or revoked certificate leaves the normal paywall and the creator's self-signed path working.
The relay can publish from its own account while the creator is offline, but it cannot write the creator's blog.vault.bulletin pointer. Readers fall back to the container replies and choose the newest valid (period, seq) bulletin.
What this protects, and what it does not
Vault protects the post text before it reaches Hive, gives the key only after a verified payment, and lets any compatible frontend verify the same signature and decrypt locally. It binds the ciphertext to the blog, post, period and mode, and binds the wrapped key to the reader, blog, period, tier and expiry.
It does not protect against a subscriber who screenshots or re-shares the text. It does not encrypt media URLs. It does not hide the fact that a premium post exists or who published it. It does not make the creator's vault passphrase recoverable. And it is not an anonymity system: the payment memo carries the reader's public key beside the payer account.
How to get there and try it
Creators open /settings/blog/vault. Readers manage a plan at /subscriptions.
If you want to see the flow before committing, the @ausbit.vsc test post runs a deliberately silly 0.001 HBD per week test membership. The artwork says $9.99; the actual plan is 0.001 HBD. The paywall, payment, access update and unlock are real, and the locked content is a joke. The post carries its own NSFW warning.
Read the spec
- Base protocol: Banksia Vault protocol (
banksia.vault@1) — key hierarchy in §4, bulletin format in §7.4, storage in §8, ring-key wrap in §9.2, keyring seal in §9.3, payload encryption in §9.4 and the security checklist in §17. - Relay companion: Banksia Vault relay companion and the relay protocol.
- Reader devices: Vault device authorization.
- Relay hosting: Managed relay design.
Thanks to @vikisecrets for the question.