A signed room, not just an encrypted file
A QoreSeal envelope encrypts one data key to every recipient and then encrypts the body under that key. That keeps outsiders out. It does not tell a reader who made the file, which members it was made for, or whether it is still the room's current one. Liro adds exactly that.
The flow
- Seal. The owner encrypts the body once, then wraps the data key separately to each member with ML-KEM-1024 and X25519. Every wrap is bound to a transcript: chain, app, purpose, document id, epoch, uploader, the hash of the sorted member set and the member’s own key hash. One canonical manifest lists it all and the owner signs it with ML-DSA-87.
- Register. The owner records the manifest hash, the body hash, the member-set digest and the epoch on the room contract. The ciphertext itself stays wherever you keep it.
- Grant. The owner grants each member access for that epoch. Grants are the access list and the audit trail; the lock is the encryption.
- Open. A member takes the uploader, the anchor and the epoch from the contract, never from the file, then checks the signature under the uploader’s on-chain key, finds their own wrap and unwraps it.
- Rotate. To remove a member, the owner seals again at the next epoch to the remaining members. The old envelope no longer matches the contract, and the removed member’s grant is dead.
Raw QoreSeal against Liro
The scenes below are real attacks, most of them by a legitimate member, run by pnpm run demo.
| Scene | Attack | Raw QoreSeal | Liro |
|---|---|---|---|
| Co-recipient forgery | bob rebuilds the body around alice’s untouched entry | alice opens bob’s text with no error | BODY_HASH_MISMATCH, UPLOADER_MISMATCH, BAD_SIGNATURE |
| Set malleability | bob swaps his slot for an outsider’s entry | the envelope opens cleanly and the outsider can read it too | BAD_SIGNATURE, MANIFEST_NOT_ANCHORED |
| Context confusion | open on the wrong chain or with the wrong purpose | generic DECRYPTION_FAILED, the same as corruption | CONTEXT_MISMATCH naming the field |
| Outsider | a non-member tries to read | NOT_A_RECIPIENT (hint-based, unsigned) | NOT_A_RECIPIENT, and KEY_MISMATCH if they pose as a member |
| Replay | a removed member presents the old owner-signed envelope | opens, with no signal that it is no longer current | MANIFEST_NOT_ANCHORED |
What goes on chain
Only hashes, a location, the member-set digest, the epoch and the grants. No key and no plaintext ever touches the chain. Member addresses are visible, and so are grants and reported fetches: Liro has no hidden-participation mode, and says so.
Check it yourself
You do not need to trust this page. Keyless verification runs the same public checks from a terminal, and the security model lists what each one defends against.