Directories
¶
| Path | Synopsis |
|---|---|
|
Package borgrec is the byte-level contract of borg: the organization and group records that ride mined chain tokens, the membership grant and the epoch-key wrap that ride unmined carriers, the hall and scope grammars, the BRC-369 epoch key, and the lookup question classes.
|
Package borgrec is the byte-level contract of borg: the organization and group records that ride mined chain tokens, the membership grant and the epoch-key wrap that ride unmined carriers, the hall and scope grammars, the BRC-369 epoch key, and the lookup question classes. |
|
cmd
|
|
|
borg
command
Command borg runs an organization and its groups on overlay hosts, and reads them as a member: it creates an identity home and halls, begins an organization and issues its members BRC-52 grants, keeps the roll on a chain of mined tokens, creates groups whose every removal begins a new epoch with a fresh key wrapped only to the members who remain, revokes by the roll and by sweep, opens a group's epoch key as a member, reads the roll and memberships from one or several hosts checking every answer itself, pays a host's 402 for the priced history question, and settles the payments a host accepted as its payee.
|
Command borg runs an organization and its groups on overlay hosts, and reads them as a member: it creates an identity home and halls, begins an organization and issues its members BRC-52 grants, keeps the roll on a chain of mined tokens, creates groups whose every removal begins a new epoch with a fresh key wrapped only to the members who remain, revokes by the roll and by sweep, opens a group's epoch key as a member, reads the roll and memberships from one or several hosts checking every answer itself, pays a host's 402 for the priced history question, and settles the payments a host accepted as its payee. |
|
devchain
command
Command devchain is a local stand-in chain for trying borg without a node, a settlement service or any coin: bcommon devkit's devchain (a node's JSON-RPC at /rpc, its asset API under /api/v1/ and a header source at /v1/root/<height> and /v1/tip, every transaction mined at once).
|
Command devchain is a local stand-in chain for trying borg without a node, a settlement service or any coin: bcommon devkit's devchain (a node's JSON-RPC at /rpc, its asset API under /api/v1/ and a header source at /v1/root/<height> and /v1/tip, every transaction mined at once). |
|
vectors
command
Command vectors writes the golden vectors under testdata/vectors, or with -check compares them byte for byte and writes nothing (bcommon devkit's vectors runner over this repository's generator).
|
Command vectors writes the golden vectors under testdata/vectors, or with -check compares them byte for byte and writes nothing (bcommon devkit's vectors runner over this repository's generator). |
|
Package enforce is the whole of borg's decision procedure (docs/spec.md section 13) behind one call, for a service that decides on a requester's behalf: the organization's latest token and the subject's grants, groups and policy records, each verified against the service's own headers, folded into a verdict, signed into a receipt and handed back.
|
Package enforce is the whole of borg's decision procedure (docs/spec.md section 13) behind one call, for a service that decides on a requester's behalf: the organization's latest token and the subject's grants, groups and policy records, each verified against the service's own headers, folded into a verdict, signed into a receipt and handed back. |
|
internal
|
|
|
config
Package config resolves the borg command's settings: flags, then BORG_* in the environment, then the config file, then the built-in default.
|
Package config resolves the borg command's settings: flags, then BORG_* in the environment, then the config file, then the built-in default. |
|
engine
Package engine is a borg publisher: the organization's tooling (docs/spec.md sections 7, 9 and 12), run from one identity's home.
|
Package engine is a borg publisher: the organization's tooling (docs/spec.md sections 7, 9 and 12), run from one identity's home. |
|
state
Package state is an identity's durable record in its home: the funding trees its carriers and chains spend, the organization it runs (its own chain, its grants, its groups and every epoch key it sampled), the objects persisted before they are published, the sweeps it built, and, for a member, the epoch keys it opened, the grants it holds and the latest token of each chain it has verified.
|
Package state is an identity's durable record in its home: the funding trees its carriers and chains spend, the organization it runs (its own chain, its grants, its groups and every epoch key it sampled), the objects persisted before they are published, the sweeps it built, and, for a member, the epoch keys it opened, the grants it holds and the latest token of each chain it has verified. |
|
testchain
Package testchain is the local stand-ins this module's tests run against: the shared chain, and this application's host.
|
Package testchain is the local stand-ins this module's tests run against: the shared chain, and this application's host. |
|
vectors
Package vectors generates the golden vectors under testdata/vectors from the codec in borgrec.
|
Package vectors generates the golden vectors under testdata/vectors from the codec in borgrec. |
|
Package reader asks overlay hosts the ls_borg questions and checks every answer itself (docs/spec.md sections 10.2, 12 and 13): a token's record, lock and field signature and its proof against the reader's own headers; a carrier by the host's own admission rules and by SPV through its funding parent; a sweep by its proof.
|
Package reader asks overlay hosts the ls_borg questions and checks every answer itself (docs/spec.md sections 10.2, 12 and 13): a token's record, lock and field signature and its proof against the reader's own headers; a carrier by the host's own admission rules and by SPV through its funding parent; a sweep by its proof. |
Click to show internal directories.
Click to hide internal directories.