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
@@ -141,8 +142,8 @@ export function updateIssuerCredential(web3, issuerCredentialHash, status) {
141
142
* Dev: get the invoke updateCredentialStatus transaction object
142
143
* function getIssuerCredentialStatus(address issuer, bytes32 issuerCredentialHash) view public validAddress(issuer) returns (bool exists, Status status)
143
144
* @param web3 ethereum connection
144
-
* @param didIssuer
145
-
* @param issuerCredentialHash
145
+
* @param didIssuer alastria Id
146
+
* @param issuerCredentialHash should have 32 bytes
146
147
*/
147
148
exportfunctiongetIssuerCredentialStatus(
148
149
web3,
@@ -164,8 +165,8 @@ export function getIssuerCredentialStatus(
164
165
* THIS METHOD WILL BE DEPREATED
165
166
* Dev: Defining three status functions avoid linking the subject to the issuer or the corresponding hashes
166
167
* @param web3 ethereum connection
167
-
* @param subjectStatus
168
-
* @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
@@ -24,8 +24,8 @@ export function addSubjectPresentation(web3, subjectPresentationHash, URI) {
24
24
/**
25
25
* Subject functions
26
26
* function updateSubjectPresentation(bytes32 subjectPresentationHash, Status status) public validStatus(status)
27
-
* @param web3
28
-
* @param subjectPresentationHash
27
+
* @param web3 ethereum connection
28
+
* @param subjectPresentationHash should have 32 bytes
29
29
*/
30
30
exportfunctionupdateSubjectPresentation(
31
31
web3,
@@ -47,9 +47,9 @@ export function updateSubjectPresentation(
47
47
* If the Presentation does not exists the return is a void Presentation
48
48
* If we want a log, should we add an event?
49
49
* function getSubjectPresentationStatus(address subject, bytes32 subjectPresentationHash) view public validAddress(subject) returns(bool exists, Status status)
50
-
* @param web3
51
-
* @param didSubject
52
-
* @param subsubjectPresentationHashject
50
+
* @param web3 ethereum connection
51
+
* @param didSubject alastria Id
52
+
* @param subsubjectPresentationHashject should have 32 bytes
53
53
*/
54
54
exportfunctiongetSubjectPresentationStatus(
55
55
web3,
@@ -71,9 +71,9 @@ export function getSubjectPresentationStatus(
71
71
/**
72
72
* Receiver functions
73
73
* function updateReceiverPresentation(bytes32 receiverPresentationHash, Status status) public validStatus(status)
74
-
* @param web3
75
-
* @param receiverPresentationHash
76
-
* @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
77
77
*/
78
78
exportfunctionupdateReceiverPresentation(
79
79
web3,
@@ -95,9 +95,9 @@ export function updateReceiverPresentation(
95
95
* If the Presentation does not exists the return is a void Presentation
96
96
* If we want a log, should we add an event?
97
97
* function getReceiverPresentationStatus(address receiver, bytes32 receiverPresentationHash) view public validAddress(receiver) returns(bool exists, Status status) {
98
-
* @param web3
99
-
* @param didReceiver
100
-
* @param receiverPresentationHash
98
+
* @param web3 ethereum connection
99
+
* @param didReceiver alastria Id
100
+
* @param receiverPresentationHash should have 32 bytes
101
101
*/
102
102
exportfunctiongetReceiverPresentationStatus(
103
103
web3,
@@ -121,9 +121,9 @@ export function getReceiverPresentationStatus(
121
121
* Utility function
122
122
* Defining three status functions avoids linking the Subject to the Receiver or the corresponding hashes
123
123
* function getPresentationStatus(Status subjectStatus, Status receiverStatus) pure public validStatus(subjectStatus) validStatus(receiverStatus) returns(Status){
124
-
* @param web3
125
-
* @param subjectStatus
126
-
* @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