Skip to content

Commit 9aa0105

Browse files
committed
add ontIdHasValidRole and addrHasValidRole method
1 parent eeeee91 commit 9aa0105

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

OEPS/OEP-506.mediawiki

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,19 @@ func getClaimInfo(ontId string, roleName string, claimId string) (info claimInfo
232232
</source>
233233
Returns the claimInfo for the given ontId, roleName and claimId.
234234

235-
===== isValidClaim =====
235+
===== ontIdHasValidRole =====
236+
<source lang="golang">
237+
func ontIdHasValidRole(ontId string, roleName string) (valid bool)
238+
</source>
239+
A role roleName is valid for ontId only when it is supported by at least one valid claim.
236240

241+
===== addrHasValidRole =====
242+
<source lang="golang">
243+
func addrHasValidRole(address []byte, roleName string) (valid bool)
244+
</source>
245+
A role roleName is valid for address only when it is supported by at least one valid claim.
246+
247+
===== isValidClaim =====
237248
<source lang="golang">
238249
func isValidClaim(ontId string, roleName string, claimId string) bool {}
239250
</source>

0 commit comments

Comments
 (0)