Skip to content

Commit 2351b72

Browse files
author
nedmsmith
committed
Added conditions map
Added map containing mkey and authorized-by conditions.
1 parent cdde887 commit 2351b72

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

cddl/attest-key-triple-record.cddl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
attest-key-triple-record = [
22
environment: environment-map
33
key-list: [ + $crypto-key-type-choice ]
4-
non-empty<{
5-
? &(mkey: 0) => $measured-element-type-choice,
6-
? &(authorized-by: 2) => [ + $crypto-key-type-choice ]
7-
}>
4+
? conditions: non-empty< {
5+
? &(mkey: 0) => $measured-element-type-choice,
6+
? &(authorized-by: 1) => [ + $crypto-key-type-choice ]
7+
}>
88
]

cddl/identity-triple-record.cddl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
identity-triple-record = [
22
environment: environment-map
33
key-list: [ + $crypto-key-type-choice ]
4-
? mkey: $measured-element-type-choice
5-
? authority-list: [ + $crypto-key-type-choice ]
4+
? conditions: non-empty<{
5+
? &(mkey: 0) => $measured-element-type-choice,
6+
? &(authorized-by: 1) => [ + $crypto-key-type-choice ]
7+
}>
68
]

0 commit comments

Comments
 (0)