Merge latest changes from the syndicate-protocols repository
This commit is contained in:
commit
c0d4b535a3
|
@ -4,16 +4,17 @@ embeddedType EntityRef.Cap .
|
||||||
; The sequence of Caveats is run RIGHT-TO-LEFT.
|
; The sequence of Caveats is run RIGHT-TO-LEFT.
|
||||||
; That is, the newest Caveats are at the right.
|
; That is, the newest Caveats are at the right.
|
||||||
;
|
;
|
||||||
; Let f = HMAC-BLAKE2s, e = canonical machine-oriented serialization of some preserves value,
|
; Let f(k,d) = HMAC-BLAKE2s-256(k,d)[0..16),
|
||||||
; and k = the original secret key for the ref.
|
; e = canonical machine-oriented serialization of some preserves value, and
|
||||||
|
; k = the original secret key for the ref.
|
||||||
;
|
;
|
||||||
; The `sig` is then f(f(f(f(k, e(oid)), ...), Caveat), ...).
|
; The `sig` is then f(f(f(f(k, e(oid)), ...), e(Caveat)), ...).
|
||||||
;
|
;
|
||||||
SturdyRef = <ref @oid any @caveatChain [Caveat ...] @sig bytes>.
|
SturdyRef = <ref @oid any @caveatChain [Caveat ...] @sig bytes>.
|
||||||
|
|
||||||
; embodies 1st-party caveats over assertion structure, but nothing else
|
; embodies 1st-party caveats over assertion structure, but nothing else
|
||||||
; can add 3rd-party caveats and richer predicates later
|
; can add 3rd-party caveats and richer predicates later
|
||||||
Caveat = Rewrite / Alts / Reject /@unknown any .
|
Caveat = Rewrite / Alts / Reject / @unknown any .
|
||||||
Rewrite = <rewrite @pattern Pattern @template Template> .
|
Rewrite = <rewrite @pattern Pattern @template Template> .
|
||||||
Reject = <reject @pattern Pattern> .
|
Reject = <reject @pattern Pattern> .
|
||||||
Alts = <or @alternatives [Rewrite ...]>.
|
Alts = <or @alternatives [Rewrite ...]>.
|
||||||
|
|
Loading…
Reference in New Issue