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 {'a', 'g', 'e', '_', 'o', 'v', 'e', 'r', '_', '1', '8'},
24 {0xf5},
25 11,
26 1,
27 kPrimitive};
28
29static const RequestedAttribute not_over_18 = {
30 .id = {'a', 'g', 'e', '_', 'o', 'v', 'e', 'r', '_', '1', '8'},
31 .value = {0xf4},
32 .id_len = 11,
33 .value_len = 1,
34 .type = kPrimitive};
35
36static const RequestedAttribute familyname_mustermann = {
37 .id = {'f', 'a', 'm', 'i', 'l', 'y', '_', 'n', 'a', 'm', 'e'},
38 .value = {'M', 'u', 's', 't', 'e', 'r', 'm', 'a', 'n', 'n'},
39 .id_len = 11,
40 .value_len = 10,
41 .type = kString};
42
43static const RequestedAttribute birthdate_1971_09_01 = {
44 .id = {'b', 'i', 'r', 't', 'h', '_', 'd', 'a', 't', 'e'},
45 .value = {'1', '9', '7', '1', '-', '0', '9', '-', '0', '1'},
46 .id_len = 10,
47 .value_len = 10,
48 .type = kDate};
49
50static const RequestedAttribute birthdate_1998_09_04 = {
51 .id = {'b', 'i', 'r', 't', 'h', '_', 'd', 'a', 't', 'e'},
52 .value = {'1', '9', '9', '8', '-', '0', '9', '-', '0', '4'},
53 .id_len = 10,
54 .value_len = 10,
55 .type = kDate};
56
57static const RequestedAttribute height_175 = {
58 {'h', 'e', 'i', 'g', 'h', 't'}, {0x18, 0xaf}, 6, 2, kInt};
59
60static const RequestedAttribute issue_date_2024_03_15 = {
61 {'i', 's', 's', 'u', 'e', '_', 'd', 'a', 't', 'e'},
62 {'2', '0', '2', '4', '-', '0', '3', '-', '1', '5'},
63 10,
64 10,
65 kDate};
66
67} // namespace test
68} // namespace proofs
69
70#endif // PRIVACY_PROOFS_ZK_LIB_CIRCUITS_MDOC_MDOC_TEST_ATTRIBUTES_H_