Seal and open
All secret operations (the mnemonic, ML-DSA signing, key derivation) happen in the local signer. The mnemonic is read only from the QORE_MNEMONIC environment variable, never from a flag or a file the CLI opens, and never in a web page.
Any command that sends a transaction is a dry run unless you add --broadcast.
Once per account
Fund the account from the testnet faucet, then register its two keys and publish a recipient card. The order is enforced: the ML-DSA key is the account’s first transaction, and the KEM key needs it.
liro() { node --env-file="packages/signer/.env.$1" packages/signer/dist/cli.js "${@:2}"; }
node packages/signer/dist/cli.js init-persona alice # writes packages/signer/.env.alice (mode 600)
liro alice register-pqc --broadcast # the ML-DSA-87 key
liro alice register-kem --broadcast # the ML-KEM-1024 key
liro alice card --out cards/alice.card.json # a signed recipient card The owner: seal, register, grant
export LIRO_DATAROOM_ADDRESS=0x201182cf11d32f379ad340202b4130b1cd12dea0
# a window scoped to the contract lets the account send EVM transactions to it
liro owner open-window --blocks 17280 --max-txs 10 --max-value-uqor 300000
--targets $LIRO_DATAROOM_ADDRESS --broadcast
liro owner seal term-sheet.txt --doc my-doc --to <qor1,qor1,...> --epoch 0
--out liro-out --cards cards > seal.json
liro owner register-doc --seal seal.json --broadcast
liro owner grant --doc my-doc --to <qor1,qor1,...> --expiry 0 --broadcast seal sends no transaction. It checks every recipient’s card against the keys registered on chain, refuses an ML-KEM-only entry, and signs one canonical manifest. Only hashes and a location go on chain; the ciphertext stays where you put it.
A member opens
liro alice open liro-out/doc-*-epoch0.envelope --doc my-doc --out term-sheet.decrypted
liro alice record-access --doc my-doc --broadcast # optional: report the fetch on chain open takes the uploader, the manifest hash, the member-set digest and the epoch from LiroDataRoom.getDocument, never from the envelope, and refuses a contract whose runtime code hash is not the pinned one. A document you are not a member of fails with NOT_A_RECIPIENT, a replayed old envelope with MANIFEST_NOT_ANCHORED.
Removing a member
Seal again at epoch + 1 to the remaining members, register that, and grant the new set. Older grants stop being live. What a removed member already downloaded stays readable to them; see what Liro does not do.
Your own contract
The CLI will not trust a contract you deployed by default. open, check-access and verify-envelope refuse any contract whose runtime code hash is not the pinned one unless you pass --contract <0x…> --expect-codehash <keccak256 of its runtime code>.