DRAFT 0.3.0 · definitions of the BSA kinds are a draft (round 5); two pilot circles run on test infrastructure · last checked 27 Oct 2026

The two layers#

Two different jobs are done by two different kinds of server. Keep them apart in your head and in your code.

A third thing, BalanceID and the Compliance Passport (identity checks for banks), is a separate, future layer and is described on its own page. It is not part of either layer above and is not built.

Side by side#

Layer 1: directory infrastructureMany equal directories and relays that only store and find signed records: profiles (kind 0), circle records, heads, member homes and the present state. Anyone can run one. A directory cannot forge anything, it can only leave something out or be late. Deletion is impossible. LAYER 1 Directory infrastructure the phone book Many equal directories + relays they only STORE and FIND signed records They hold: • profiles (KIND 0) • circle records (30910), heads (30915) • member homes (30916) • present state: newest seals and snapshots (43917, 43918) Anyone can run one. A directory can only leave out or be late; it cannot forge. Nobody can delete on request.
Layer 1 finds people and circles. It holds no balances you can trust on its own.
Layer 2: balanced wallets and circlesEach circle keeps its own ledger of blocks on its own relays, with its own rules, its own Circle Heart and its own witnesses. A wallet balance is an account line in the circle ledger. The sum of the circle is zero after every block. LAYER 2 Balanced wallets / circles the books Each circle has its OWN ledger a chain of numbered blocks on the circle’s own relays Each circle has its own: • rules (settings in its found act) • Circle Heart (the people who tend it) • witnesses (computers that sign blocks) • currency (one per circle) Your wallet balance is one account line in the circle’s ledger: balance, wave, debt. The sum of the circle is always 0.
Layer 2 is where money is. The circle’s own chain is the only truth about a balance.
Layer 1 · Directory infrastructureLayer 2 · Balanced wallets / circles
JobFind circles and people. Say where to lookBe the ledger. Say what is true
What is storedProfiles (KIND 0), circle records (30910), heads (30915), member homes (30916), the present state: the newest day seals (43917) and snapshot chunks (43918) of the last 7 daysBlocks (43911) with notes (43910) and acts (43916), day seals (43917), snapshots (43918), rate quotes (43919), references (43921), statements (43924). The whole history
Who writesPeople (their own profile and home), a circle's key and witnesses (record, head, seals), the directory's own collector (copies after it verified the chain)The circle's node and witnesses (blocks, seals, snapshots), members (notes and acts), the circle (references, quotes)
Who can verifyAnyone: every record is signed. A directory also checks and may say verifiedAnyone: the chain by prev digest, the witnesses' quorum, the genesis pin, the Merkle roots
DeletionImpossible: the relay refuses KIND 5 and KIND 62. Old seals and snapshots (older than 9 days) are removed by an hourly cleanup because a directory is the present, not an archiveImpossible: circle relays never delete anything and refuse KIND 5 and KIND 62 for ledger kinds
CopiesMany equal directories, each with the same index; the target is as many as people want (up to 1,000)At least 4 relays at 3 operators per circle, plus archives; a payment counts when a majority of witnesses has signed and 3 relays hold the block
If one server diesAsk another directory. Nothing is lost: it is rebuilt from the circles' relaysRead another relay of the circle. If the circle's node dies, the circle is restored from its relays and a new node takes over by a public decision
What it can get wrongIt can omit or be late. It cannot forgeIt cannot be wrong silently: every witness recomputes every block; a wrong block has no quorum
Who is trusted for whatFor finding, for convenienceFor the truth about a balance, and only through verification

The same 64-character HEX key appears in three places:

  1. the profile (KIND 0) stored by directories (layer 1),
  2. the member home (KIND 30916) that says which circle you belong to, written by you and attested by a witness (it bridges both layers),
  3. your account line s3|<key>|… in the circle's ledger (layer 2).
One key links profile, membership and walletThe same 64-character HEX key appears in three places: the profile (kind 0) stored by directories, the home record (kind 30916) that says which circle you belong to, and your account line in the circle ledger. Nothing is linked by hand; they meet by the key. ONE KEY 64 characters of HEX Profile KIND 0 name, picture kept by directories LAYER 1 Home KIND 30916 key → circle, since block h, witness attests BOTH LAYERS Wallet account line s3|<key>|… balance, wave, debt LAYER 2 Nothing is linked by hand. Everything meets at the key. Names are never copied into the ledger.
The ledger knows people only by key. The name lives in the profile and the home record, which the person can change.

Nothing is linked by hand and no name enters the ledger. A directory shows a person as: profile, circle, block joined. Whether the circle's own ledger confirms the join is ledgerChecked.

Which kind belongs to which layer#

Taken from the record definitions 0.3.0 (kinds page, kinds.json). Directory = accepted and kept by the directory relay. Circle ledger = lives on the circle's own relays as part of its book.

KINDNameLayer 1 · directoryLayer 2 · circle ledger
0Profile (plain Nostr)●
30910Circle Record●
30915Circle Head●
30916Member Home●
43910Payment Note●
43911Circle Block●
43916Circle Act●
43917Day Seal● (newest 7 days)●
43918Snapshot Chunk● (newest 7 days)●
43919Rate Quote●
43921Reference●
43924Statement●
43920BSA Rules (retired)retired (decision E-1)
43922, 43923(unused)reserved, unused
30917Service Offerreserved for later

Notes:

Why separate them?#

Because they fail differently and they are trusted differently. A directory may be wrong by omission and nobody loses money. A ledger must never be wrong. Because many directories are cheap and one circle's ledger is the circle's own. And because the principles say so: everything is public; everything is on relays in at least three copies; there are no central authorities; each circle is an independent, balanced cell; cells connect by themselves into more. Read the six principles.