You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Dev: get the invoke updateCredentialStatus transaction object
101
143
* function getIssuerCredentialStatus(address issuer, bytes32 issuerCredentialHash) view public validAddress(issuer) returns (bool exists, Status status)
102
144
* @param web3 ethereum connection
103
-
* @param didIssuer
104
-
* @param issuerCredentialHash
145
+
* @param didIssuer alastria Id
146
+
* @param issuerCredentialHash should have 32 bytes
105
147
*/
106
148
exportfunctiongetIssuerCredentialStatus(
107
149
web3,
@@ -120,10 +162,11 @@ export function getIssuerCredentialStatus(
120
162
}
121
163
122
164
/**
165
+
* THIS METHOD WILL BE DEPREATED
123
166
* Dev: Defining three status functions avoid linking the subject to the issuer or the corresponding hashes
124
167
* @param web3 ethereum connection
125
-
* @param subjectStatus
126
-
* @param issuerStatus
168
+
* @param subjectStatus uint that indicates the status of the credential for subject
169
+
* @param issuerStatus uint that indicates the status of the credential for issuer
@@ -16,8 +24,8 @@ export function addSubjectPresentation(web3, subjectPresentationHash, URI) {
16
24
/**
17
25
* Subject functions
18
26
* function updateSubjectPresentation(bytes32 subjectPresentationHash, Status status) public validStatus(status)
19
-
* @param web3
20
-
* @param subjectPresentationHash
27
+
* @param web3 ethereum connection
28
+
* @param subjectPresentationHash should have 32 bytes
21
29
*/
22
30
exportfunctionupdateSubjectPresentation(
23
31
web3,
@@ -39,9 +47,9 @@ export function updateSubjectPresentation(
39
47
* If the Presentation does not exists the return is a void Presentation
40
48
* If we want a log, should we add an event?
41
49
* function getSubjectPresentationStatus(address subject, bytes32 subjectPresentationHash) view public validAddress(subject) returns(bool exists, Status status)
42
-
* @param web3
43
-
* @param didSubject
44
-
* @param subsubjectPresentationHashject
50
+
* @param web3 ethereum connection
51
+
* @param didSubject alastria Id
52
+
* @param subsubjectPresentationHashject should have 32 bytes
45
53
*/
46
54
exportfunctiongetSubjectPresentationStatus(
47
55
web3,
@@ -63,9 +71,9 @@ export function getSubjectPresentationStatus(
63
71
/**
64
72
* Receiver functions
65
73
* function updateReceiverPresentation(bytes32 receiverPresentationHash, Status status) public validStatus(status)
66
-
* @param web3
67
-
* @param receiverPresentationHash
68
-
* @param status
74
+
* @param web3 ethereum connection
75
+
* @param receiverPresentationHash should have 32 bytes
76
+
* @param status uint that indicates the status of the presentation
69
77
*/
70
78
exportfunctionupdateReceiverPresentation(
71
79
web3,
@@ -87,9 +95,9 @@ export function updateReceiverPresentation(
87
95
* If the Presentation does not exists the return is a void Presentation
88
96
* If we want a log, should we add an event?
89
97
* function getReceiverPresentationStatus(address receiver, bytes32 receiverPresentationHash) view public validAddress(receiver) returns(bool exists, Status status) {
90
-
* @param web3
91
-
* @param didReceiver
92
-
* @param receiverPresentationHash
98
+
* @param web3 ethereum connection
99
+
* @param didReceiver alastria Id
100
+
* @param receiverPresentationHash should have 32 bytes
93
101
*/
94
102
exportfunctiongetReceiverPresentationStatus(
95
103
web3,
@@ -109,12 +117,13 @@ export function getReceiverPresentationStatus(
109
117
}
110
118
111
119
/**
120
+
* THIS METHOD WILL BE DEPREATED
112
121
* Utility function
113
122
* Defining three status functions avoids linking the Subject to the Receiver or the corresponding hashes
114
123
* function getPresentationStatus(Status subjectStatus, Status receiverStatus) pure public validStatus(subjectStatus) validStatus(receiverStatus) returns(Status){
115
-
* @param web3
116
-
* @param subjectStatus
117
-
* @param receiverStatus
124
+
* @param web3 ethereum connection
125
+
* @param subjectStatus uint that indicates the status of the presentation for subject
126
+
* @param receiverStatus uint that indicates the status of the presentation for receiver
0 commit comments