Phase
typePhase is a case's position in the commit-reveal lifecycle.
Value
jury.Phase
PhaseCommit
jury.PhaseValue
<gnolang.StringValue>
PhaseReveal
jury.PhaseValue
<gnolang.StringValue>
PhaseClosed
jury.PhaseValue
<gnolang.StringValue>
Juror
typeJuror is one panelist and their (eventually revealed) verdict.
Value
jury.Juror
Case
typeCase is a single dispute under review by a fixed panel.
Value
jury.Case
cases
[]*jury.Case// index 0 => ID 1
Value
<zero>
OpenCase
func(subject string, jurors [].uverse.address) uint64OpenCase starts a dispute with a fixed panel of jurors. An odd panel size avoids ties; duplicates are rejected.
- OID
- 088a7b…0441:4
OpenCase details
Commit
func(caseID uint64, commitment string)Commit locks in a juror's hidden verdict. commitment must equal commit.Verdict(verdict, salt) — computed off-chain. When the last juror commits, the case advances to the reveal phase automatically.
- OID
- 088a7b…0441:6
Commit details
Reveal
func(caseID uint64, verdict bool, salt string)Reveal opens a juror's verdict. The (verdict, salt) must reproduce the commitment made earlier, or the reveal is rejected. When the last juror reveals, the case closes and the majority outcome is recorded.
- OID
- 088a7b…0441:7
Reveal details
Get
func(caseID uint64) jury.CaseGet returns a copy of a case (jurors flattened separately via Jury).
- OID
- 088a7b…0441:8
Get details
Outcome
func(caseID uint64) stringOutcome returns the recorded outcome, or "" if the case is still open.
- OID
- 088a7b…0441:9
Outcome details
Count
func() intCount returns the number of cases.
- OID
- 088a7b…0441:10
Count details
closeCase
func(c *jury.Case)- OID
- 088a7b…0441:11
closeCase details
allCommitted
func(c *jury.Case) bool- OID
- 088a7b…0441:12
allCommitted details
allRevealed
func(c *jury.Case) bool- OID
- 088a7b…0441:13
allRevealed details
mustCase
func(id uint64) *jury.Case- OID
- 088a7b…0441:14
mustCase details
mustJuror
func(c *jury.Case, addr .uverse.address) *jury.Juror- OID
- 088a7b…0441:15
mustJuror details
boolStr
func(b bool) string- OID
- 088a7b…0441:16
boolStr details
assert
func(cond bool, msg string)- OID
- 088a7b…0441:17
assert details
Render
func(path string) stringRender shows all cases, or one case's panel + tally at :\<id>.
- OID
- 088a7b…0441:18
Render details
renderIndex
func() string- OID
- 088a7b…0441:19
renderIndex details
renderCase
func(id uint64) string- OID
- 088a7b…0441:20
renderCase details
parseID
func(s string) uint64- OID
- 088a7b…0441:21
parseID details
short
func(a .uverse.address) string- OID
- 088a7b…0441:22