Expand description
The app’s task-propose key (rc4-67): an Ed25519 key that lives only in
LeanCTX Code and signs the person’s own task proposals
(leanctx.cloud.task_propose_person.v1).
- The engine never holds the private half and never signs with it: it
keeps the public key (
TASK_KEY_FILE, public part only), prepares the exact bytes the app signs (person_task_signing_input) and checks the signature the app made before it relays it. - Scope
task_propose_person.v1only: never a consent action, a chat post or anything else (the Cloud verifies it against this key only). - The app binds the key at pairing: the device-token request carries
TaskKeyOffer(task_propose_key) withbind_signature, made by the task-propose key itself overbind_statement(proof of possession). - Encoding: base64url without padding for the key and signatures;
key_id = hex(sha256(public key))[..16];instance_public_keyis exactly the string the device-token request sends (standard base64).
Structs§
- Bound
Task Key - The bound task-propose key, public part only.
- Task
KeyOffer task_propose_keyof the device-token request, as the app hands it over (lean-ctx cloud connect --json --task-propose-key -, stdin).
Constants§
- ALG
- The one algorithm.
- BIND_
DOMAIN - Domain of the bind statement.
- PERSON_
TASK_ DOMAIN - Domain of a person’s signed task proposal.
- REQUEST_
MEMBER - The device-token request member.
- SCOPE
- The one scope a task-propose key is bound for.
- TASK_
KEY_ FILE - The bound task-propose key’s public part, in the Cloud config directory.
Functions§
- bind_
statement - The bytes the task-propose key signs to bind itself:
BIND_DOMAIN‖ canonical_json({alg, instance_public_key, key_id, public_key, scope}). - bound_
task_ key - The bound task-propose key, when its file is consistent.
- canonical_
person_ ids (instance_id, vault_id)as the Cloud checks a person’s proposal against them: the dashed lowercase UUID of the instance (cloud v2 ids are always UUIDs) and the vault’s 32 lowercase hex.Nonewhen either is no such id,inst_forms of old enrollments included: a signature over another spelling would be refused as unproven.- key_
id_ of hex(sha256(public key bytes))[..16].- person_
task_ signing_ input - The bytes the app signs for a person’s proposal
request(sent asPOST /v1/vaults/{vault_id}/tasks):PERSON_TASK_DOMAIN‖ canonical_json(the body withouttask_signature, plusinstance_idandvault_id). - remove_
bound - Forget the bound task-propose key (a pairing without one).
- store_
bound - Keep the public part of
offeras this machine’s task-propose key.