Longfellow ZK 0290cb32
Loading...
Searching...
No Matches
mdoc_test_attributes.h
1// Copyright 2025 Google LLC.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef PRIVACY_PROOFS_ZK_LIB_CIRCUITS_MDOC_MDOC_TEST_ATTRIBUTES_H_
16#define PRIVACY_PROOFS_ZK_LIB_CIRCUITS_MDOC_MDOC_TEST_ATTRIBUTES_H_
17
18#include "circuits/mdoc/mdoc_zk.h"
19
20namespace proofs {
21namespace test {
22static const RequestedAttribute age_over_18 = {
23 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
24 '3', '.', '5', '.', '1'},
25 .id = {'a', 'g', 'e', '_', 'o', 'v', 'e', 'r', '_', '1', '8'},
26 .cbor_value = {0xf5},
27 .namespace_len = 17,
28 .id_len = 11,
29 .cbor_value_len = 1};
30
31static const RequestedAttribute europa_age_over_18 = {
32 .namespace_id = {'e', 'u', '.', 'e', 'u', 'r', 'o', 'p', 'a', '.', 'e',
33 'c', '.', 'a', 'v', '.', '1'},
34 .id = {'a', 'g', 'e', '_', 'o', 'v', 'e', 'r', '_', '1', '8'},
35 .cbor_value = {0xf5},
36 .namespace_len = 17,
37 .id_len = 11,
38 .cbor_value_len = 1};
39
40static const RequestedAttribute not_over_18 = {
41 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
42 '3', '.', '5', '.', '1'},
43 .id = {'a', 'g', 'e', '_', 'o', 'v', 'e', 'r', '_', '1', '8'},
44 .cbor_value = {0xf4},
45 .id_len = 11,
46 .cbor_value_len = 1};
47
48static const RequestedAttribute age_birth_year = {
49 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
50 '3', '.', '5', '.', '1'},
51 .id = {'a', 'g', 'e', '_', 'b', 'i', 'r', 't', 'h', '_', 'y', 'e', 'a',
52 'r'},
53 .cbor_value = {0x19, 0x07, 0xB0},
54 .namespace_len = 17,
55 .id_len = 14,
56 .cbor_value_len = 3};
57
58static const RequestedAttribute familyname_mustermann = {
59 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
60 '3', '.', '5', '.', '1'},
61 .id = {'f', 'a', 'm', 'i', 'l', 'y', '_', 'n', 'a', 'm', 'e'},
62 .cbor_value = {0x6A, 'M', 'u', 's', 't', 'e', 'r', 'm', 'a', 'n', 'n'},
63 .namespace_len = 17,
64 .id_len = 11,
65 .cbor_value_len = 11};
66
67static const RequestedAttribute birthdate_1971_09_01 = {
68 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
69 '3', '.', '5', '.', '1'},
70 .id = {'b', 'i', 'r', 't', 'h', '_', 'd', 'a', 't', 'e'},
71 .cbor_value = {0xD9, 0x03, 0xEC, 0x6A, '1', '9', '7', '1', '-', '0', '9',
72 '-', '0', '1'},
73 .namespace_len = 17,
74 .id_len = 10,
75 .cbor_value_len = 14};
76
77static const RequestedAttribute birthdate_1998_09_04 = {
78 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
79 '3', '.', '5', '.', '1'},
80 .id = {'b', 'i', 'r', 't', 'h', '_', 'd', 'a', 't', 'e'},
81 .cbor_value = {0xD9, 0x03, 0xEC, 0x6A, '1', '9', '9', '8', '-', '0', '9',
82 '-', '0', '4'},
83 .namespace_len = 17,
84 .id_len = 10,
85 .cbor_value_len = 14};
86
87static const RequestedAttribute birthdate_1968_04_27 = {
88 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
89 '3', '.', '5', '.', '1'},
90 .id = {'b', 'i', 'r', 't', 'h', '_', 'd', 'a', 't', 'e'},
91 .cbor_value = {0xD9, 0x03, 0xEC, 0x6A, '1', '9', '6', '8', '-', '0', '4',
92 '-', '2', '7'},
93 .namespace_len = 17,
94 .id_len = 10,
95 .cbor_value_len = 14};
96
97static const RequestedAttribute height_175 = {
98 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
99 '3', '.', '5', '.', '1'},
100 .id = {'h', 'e', 'i', 'g', 'h', 't'},
101 .cbor_value = {0x18, 0xaf},
102 .namespace_len = 17,
103 .id_len = 6,
104 .cbor_value_len = 2};
105
106static const RequestedAttribute issue_date_2024_03_15 = {
107 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
108 '3', '.', '5', '.', '1'},
109 .id = {'i', 's', 's', 'u', 'e', '_', 'd', 'a', 't', 'e'},
110 .cbor_value = {0xD9, 0x03, 0xEC, 0x6A, '2', '0', '2', '4', '-', '0', '3',
111 '-', '1', '5'},
112 .namespace_len = 17,
113 .id_len = 10,
114 .cbor_value_len = 14};
115
116static const RequestedAttribute issue_date_2025_07_21 = {
117 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
118 '3', '.', '5', '.', '1'},
119 .id = {'i', 's', 's', 'u', 'e', '_', 'd', 'a', 't', 'e'},
120 .cbor_value = {0xc0, 0x74, '2', '0', '2', '5', '-', '0', '7', '-', '2',
121 '1', 'T', '0', '4', ':', '0', '0', ':', '0', '0', 'Z'},
122 .namespace_len = 17,
123 .id_len = 10,
124 .cbor_value_len = 22};
125
126static const RequestedAttribute aamva_name_suffix_mr = {
127 .namespace_id = {'o', 'r', 'g', '.', 'i', 's', 'o', '.', '1', '8', '0', '1',
128 '3', '.', '5', '.', 'a', 'a', 'm', 'v', 'a'},
129 .id = {'n', 'a', 'm', 'e', '_', 's', 'u', 'f', 'f', 'i', 'x'},
130 .cbor_value = {0x63, 'M', 'r', '.'},
131 .namespace_len = 21,
132 .id_len = 11,
133 .cbor_value_len = 4};
134
135} // namespace test
136} // namespace proofs
137
138#endif // PRIVACY_PROOFS_ZK_LIB_CIRCUITS_MDOC_MDOC_TEST_ATTRIBUTES_H_