Skip to content

Commit 1279b08

Browse files
committed
docs(stack-encrypt): own context follows the narrowed derive
1 parent 8684de5 commit 1279b08

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎packages/stack-encrypt/CONTEXT.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,11 @@ the term's PRF context, and the ZeroKMS descriptor of the data key.
8888
_Avoid_: AAD (that is one of its encodings, not the concept), lock context
8989

9090
**Own context**:
91-
The context a field carries itself: a `context = ".."` literal (one text
92-
part, exactly as written), or the pair a `struct = ..` derive infers,
93-
`(<struct context>, <field>)`. A caller's context *extends* it
94-
(`(("users", "age"), id)`); it is never discarded. A subtree of a
95-
declaration is given one with `under` (the caller's is then optional) or
96-
`extend` (the caller's stays required).
91+
The context a field carries itself: `<record context>/<identity>`, where the
92+
identity defaults to the field's name and `identity = ".."` pins it (see
93+
**Identity**). A caller's context *extends* it (`(("users", "age"), id)`); it
94+
is never discarded. A subtree of a declaration is given one with `under` (the
95+
caller's is then optional) or `extend` (the caller's stays required).
9796
_Avoid_: default context, field prefix
9897

9998
**Context field**:

0 commit comments

Comments
 (0)