Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 529222a

Browse files
Expand proof request API with attribute id and requested predicates
1 parent 62e65ef commit 529222a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

idl/v1/protocol.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,22 @@ message Protocol {
129129
message Attribute {
130130
string name = 1;
131131
string cred_defID = 2;
132+
// optional attribute ID
133+
string ID = 3;
132134
}
133135
repeated Attribute attributes = 1;
134136
}
137+
// Predicates is helper type for proof request predicate lists
138+
message Predicates {
139+
message Predicate {
140+
string name = 1;
141+
string p_type = 2;
142+
int64 p_value = 3;
143+
// optional predicate ID
144+
string ID = 4;
145+
}
146+
repeated Predicate predicates = 1;
147+
}
135148
// Protocol specific message type.
136149
message PresentProofMsg {
137150
// AttrFmt includes attributes either in JSON (previous API format, and
@@ -140,6 +153,11 @@ message Protocol {
140153
string attributesJSON = 1;
141154
Proof attributes = 2;
142155
}
156+
// requested predicates (indy) (optional)
157+
oneof PredFmt {
158+
string predicatesJSON = 3;
159+
Predicates predicates = 4;
160+
}
143161
}
144162
// Protocol specific message type.
145163
message BasicMessageMsg {

0 commit comments

Comments
 (0)