-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdid_document_format.proto
61 lines (52 loc) · 1.12 KB
/
did_document_format.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
syntax = "proto3";
package document;
option go_package = "github.com/peaqnetwork/peaq-network-ev-charging-message-format/golang/document;document";
enum ServiceType {
p2p = 0;
payment = 1;
metadata = 2;
}
enum Status {
AVAILABLE = 0;
UNAVAILABLE = 1;
}
enum VerificationType {
Ed25519VerificationKey2020 = 0;
Sr25519VerificationKey2020 = 1;
}
message VerificationMethod {
string id = 1;
VerificationType type = 2;
string controller = 3;
string publicKeyMultibase = 4;
}
message Signature {
VerificationType type = 1;
string issuer = 2;
string hash = 3;
}
message Metadata {
string name = 1;
string power = 2;
Status status = 3;
string chargePointClientId = 4;
int32 connectorsCount = 5;
string plugType = 6;
float pricePerKWHR = 7;
}
message Service {
string id = 1;
ServiceType type = 2;
oneof serviceEndpoint {
string stringData = 3;
Metadata metadata = 4;
};
}
message Document {
string id = 1;
string controller = 2;
repeated VerificationMethod verificationMethods = 3;
Signature signature = 4;
repeated Service services = 5;
repeated string authentications = 6;
}