Expand description
The part of MoreInLaw that every organization’s copy must share to stay listed and trusted by the others. A copy that changes these rules still runs, but the rest of the network stops seeing it.
Everything here is a pure function of its arguments: no database, no network, no
environment. The backend supplies those and calls in. README.md says what belongs here.
Re-exports§
pub use nostr;
Modules§
- badge
- The kind-30777 lawyer badge: a Host’s signed statement that one lawyer is verified on it. Other instances and the phone app read these to show who is a lawyer, so a badge built differently here is one nobody else recognises.
- count
- How many organizations vouch for another. Every instance shows this number next to an organization, so two instances that count differently show different trust for the same one.
- directory
- The maintainer-signed kind-30778 directory entry: the public statement “this operator key is a MoreInLaw Host, and here is where to reach it”. The phone app lists organizations from these and ignores any entry the maintainer key did not sign.
- lists
- How instances refer to each other: an organization’s address on the network, the public set of organizations an instance knows, and the private list of those its Host verified. A list that fails a check here is ignored, so its verifications are not counted.
- manifest
- The kind-4777 lawyer-verification manifest: the event a lawyer signs in the phone app naming the three encrypted evidence files, their hashes and the wrapped file key. Every Host takes submissions from the same phone app, so every Host must accept and refuse the same manifests. It is never put on a relay.
- nip98
- How one instance proves to another which organization is calling, without a shared password: a signed, short-lived note naming the exact address and method. A request that fails here is refused, so the caller sees none of the Host’s private verifications.
- params
- The fixed values that decide which network a copy of MoreInLaw is on: event numbers, labels, web addresses and size limits. Changing one cuts a copy off from every organization that did not make the same change.
- proof
- Decides whether an organization really owns the address it claims, so every server proves organizations the same way. An organization fails when its site answers with another slug or key, its API sits off its own site, or its signed registration names another key or address.
- registration
- How an organization announces itself to the others: the signed registration naming its address, and the checks every instance runs before believing one. A registration that fails a check is ignored, so the organization never appears on other instances.