Skip to content

Commit

Permalink
add ontIdHasValidRole and addrHasValidRole method
Browse files Browse the repository at this point in the history
  • Loading branch information
tanZiWen committed Dec 3, 2018
1 parent eeeee91 commit 9aa0105
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion OEPS/OEP-506.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,19 @@ func getClaimInfo(ontId string, roleName string, claimId string) (info claimInfo
</source>
Returns the claimInfo for the given ontId, roleName and claimId.

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

===== addrHasValidRole =====
<source lang="golang">
func addrHasValidRole(address []byte, roleName string) (valid bool)
</source>
A role roleName is valid for address only when it is supported by at least one valid claim.

===== isValidClaim =====
<source lang="golang">
func isValidClaim(ontId string, roleName string, claimId string) bool {}
</source>
Expand Down

0 comments on commit 9aa0105

Please sign in to comment.