Glossary: treetracker-wallet-api

Generated by .github/scripts/build-glossary.mjs from domain-graph.json (source commit e95c15a). Do not edit by hand.

This glossary lists the business terms of treetracker-wallet-api. Each term links to its domain, which says what the domain does, its rules, and its flows. The estate glossary shows which other repos use the same terms.

Terms

Domains

Authentication

Verifies caller identity for every request. Wallets sign in with a password to receive an RS256 JWT, and every protected route is gated by an API-key check and a JWT check before it reaches business logic.

Terms: Wallet credentials, ApiKey, JWT

Rules:

Flows:

Wallet Management

Owns wallet accounts: creation, lookup, hierarchical parent/sub-wallet control, and batch provisioning. A wallet can be a standalone account or a sub-wallet managed by another wallet, and 'control-over' checks here underpin authorization everywhere else in the system.

Terms: Wallet, sub-wallet / managed wallet

Rules:

Flows:

Trust Relationship Management

Manages consent between wallets before tokens can move automatically. A wallet requests to 'send' to or 'manage'/'yield' another wallet; the target must accept before transfers between them can complete without manual approval.

Terms: Trust relationship (wallet_trust), trust type (send/manage/yield), trust state

Rules:

Flows:

Token Transfer

Moves tree-planting tokens between wallets, either as explicit named tokens or as unclaimed bundles selected by count. Transfers route to completed, pending, or requested state depending on trust and wallet-control relationships, and support accept, decline, cancel, and fulfill actions.

Terms: Transfer, Token, Transaction, bundle

Rules:

Flows:

Token Query

Read-only access to a wallet's tokens and their transaction history, with ownership checks ensuring a wallet can only see tokens it owns or controls.

Terms: Token, Transaction

Rules:

Flows:

Event/Audit Logging

Records and exposes an audit trail of wallet activity (authentication, trust, transfer, wallet events) and lets a wallet query its own event history.

Terms: Event (wallet_event)

Rules:

Flows: