Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
bsecret
command
Command bsecret keeps an organization's secrets on overlay hosts, and reads them as a member of the group a vault is keyed to: it creates an identity home around a borg organization's key, creates crypts and vaults, writes each version of a secret under a fresh content key wrapped to the group's current epoch, acknowledges a new epoch of the group and re-keys everything the vault held, retires and retracts, reads a secret with every check made in the signed order, audits a vault's trail from block headers alone, pays a host's 402 for the priced questions, and settles the payments a host accepted as its payee.
|
Command bsecret keeps an organization's secrets on overlay hosts, and reads them as a member of the group a vault is keyed to: it creates an identity home around a borg organization's key, creates crypts and vaults, writes each version of a secret under a fresh content key wrapped to the group's current epoch, acknowledges a new epoch of the group and re-keys everything the vault held, retires and retracts, reads a secret with every check made in the signed order, audits a vault's trail from block headers alone, pays a host's 402 for the priced questions, and settles the payments a host accepted as its payee. |
|
devchain
command
Command devchain is a local stand-in chain for trying bsecret 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 bsecret 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). |
|
internal
|
|
|
config
Package config resolves the bsecret command's settings: flags, then BSECRET_* in the environment, then the config file, then the built-in default.
|
Package config resolves the bsecret command's settings: flags, then BSECRET_* in the environment, then the config file, then the built-in default. |
|
engine
Package engine is a bsecret publisher: the owner's tooling (docs/spec.md sections 7, 8, 12 and 13), run from one identity's home.
|
Package engine is a bsecret publisher: the owner's tooling (docs/spec.md sections 7, 8, 12 and 13), run from one identity's home. |
|
secrec
Package secrec is the byte-level contract of bsecret: the vault record that rides a mined chain token, the secret record that rides an unmined carrier, the payload a secret's ciphertext holds, the BRC-369 keyed content around it, the wrap of a content key under a group epoch's key and to the owner's own wallet, the crypt, label and name grammars, the vault fold, and the lookup question classes.
|
Package secrec is the byte-level contract of bsecret: the vault record that rides a mined chain token, the secret record that rides an unmined carrier, the payload a secret's ciphertext holds, the BRC-369 keyed content around it, the wrap of a content key under a group epoch's key and to the owner's own wallet, the crypt, label and name grammars, the vault fold, and the lookup question classes. |
|
state
Package state is an identity's durable record in its home: the funding trees its carriers and vaults spend, the vaults it owns (each vault's chain of mined tokens and every version it published), the objects persisted before they are published, the sweeps it built, every content key commitment it ever published or listed, and, for a reader, the latest token of each vault it has verified.
|
Package state is an identity's durable record in its home: the funding trees its carriers and vaults spend, the vaults it owns (each vault's chain of mined tokens and every version it published), the objects persisted before they are published, the sweeps it built, every content key commitment it ever published or listed, and, for a reader, the latest token of each vault it has verified. |
|
testhost
Package testhost is the local stand-ins this module's tests run against: an overlay host that carries bsecret crypts and borg halls, a plane, a terms route, and an organization's borg tooling reduced to what a vault needs of it.
|
Package testhost is the local stand-ins this module's tests run against: an overlay host that carries bsecret crypts and borg halls, a plane, a terms route, and an organization's borg tooling reduced to what a vault needs of it. |
|
vectors
Package vectors generates the golden vectors under testdata/vectors from the codec in internal/secrec.
|
Package vectors generates the golden vectors under testdata/vectors from the codec in internal/secrec. |
|
vread
Package vread asks overlay hosts the ls_bsecret questions and checks every answer itself (docs/spec.md sections 10.2, 13 and 14): a vault token's record, lock and field signature, its proof against the reader's own headers and its descent by spends from the vault's first token; a secret carrier by the host's own admission rules and by SPV through its funding parent; a sweep by its proof.
|
Package vread asks overlay hosts the ls_bsecret questions and checks every answer itself (docs/spec.md sections 10.2, 13 and 14): a vault token's record, lock and field signature, its proof against the reader's own headers and its descent by spends from the vault's first token; a secret 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.