Challenge
func(tableID uint64, handNo uint64, accused int, kind string, index int, inB64 string, inProofHex string, outB64 string, outProofHex string)Challenge disputes one element of a shuffle or rekey pass during the challenge window (protocol.md section 5).
- OID
- 05889b…4f14:3
Challenge details
rootAt
func(h *poker.Hand, pass int) []uint8- OID
- 05889b…4f14:5
rootAt details
phShuffle
untyped bigintHand phases.
Value
(0 <untyped> bigint)
phRekey
untyped bigintHand phases.
Value
(1 <untyped> bigint)
phDealHole
untyped bigintHand phases.
Value
(2 <untyped> bigint)
phPreflop
untyped bigintHand phases.
Value
(3 <untyped> bigint)
phDealFlop
untyped bigintHand phases.
Value
(4 <untyped> bigint)
phFlop
untyped bigintHand phases.
Value
(5 <untyped> bigint)
phDealTurn
untyped bigintHand phases.
Value
(6 <untyped> bigint)
phTurn
untyped bigintHand phases.
Value
(7 <untyped> bigint)
phDealRiver
untyped bigintHand phases.
Value
(8 <untyped> bigint)
phRiver
untyped bigintHand phases.
Value
(9 <untyped> bigint)
phReveal
untyped bigintHand phases.
Value
(10 <untyped> bigint)
phChallenge
untyped bigintHand phases.
Value
(11 <untyped> bigint)
phDone
untyped bigintHand phases.
Value
(12 <untyped> bigint)
phaseNames
[]string- OID
- 05889b…4f14:7
phaseNames details
HandPlayer
typeHandPlayer is a seat's participation in one hand.
Value
poker.HandPlayer
ChallengeRecord
typeChallengeRecord is one resolved challenge.
Value
poker.ChallengeRecord
Result
typeResult is the outcome of a hand. Credits are what settlement adds to each hand player's stack (winnings, or refund plus penalty share on abort).
Value
poker.Result
Hand
typeHand is the state of the current or last hand of a table.
Value
poker.Hand
maxSeats
untyped bigintmaxSeats is the largest table; per-player buffers are sized by it.
Value
(6 <untyped> bigint)
isBettingPhase
func(ph int) bool- OID
- 05889b…4f14:8
isBettingPhase details
isDealPhase
func(ph int) bool- OID
- 05889b…4f14:10
isDealPhase details
StartHand
func(tableID uint64)StartHand moves the button, posts blinds and opens the shuffle.
- OID
- 05889b…4f14:11
StartHand details
handFor
func(tableID uint64, handNo uint64) (*poker.Table, *poker.Hand, int)handFor validates the table, hand number and caller, and returns the hand and the caller's hand index.
- OID
- 05889b…4f14:12
handFor details
SubmitShuffle
func(tableID uint64, handNo uint64, commitHex string, deckB64 string)SubmitShuffle records the caller's commitment and shuffled deck.
- OID
- 05889b…4f14:13
SubmitShuffle details
SubmitRekey
func(tableID uint64, handNo uint64, deckB64 string)SubmitRekey records the caller's re-keyed deck.
- OID
- 05889b…4f14:14
SubmitRekey details
ShareKeys
func(tableID uint64, handNo uint64, keysHex string)ShareKeys publishes the caller's card keys for the current deal step.
- OID
- 05889b…4f14:15
ShareKeys details
Act
func(tableID uint64, handNo uint64, action string, amount int64)Act applies a betting action by the player to act.
- OID
- 05889b…4f14:16
Act details
RevealSeed
func(tableID uint64, handNo uint64, seedHex string)RevealSeed opens the caller's seed; published card keys are checked at once.
- OID
- 05889b…4f14:17
RevealSeed details
seedBytes
func(p *poker.HandPlayer) []uint8- OID
- 05889b…4f14:18
seedBytes details
Accept
func(tableID uint64, handNo uint64)Accept agrees with the result; when all hand players accept, the hand is finalized without waiting for the window.
- OID
- 05889b…4f14:19
Accept details
Finalize
func(tableID uint64)Finalize settles the hand once the challenge window has passed.
- OID
- 05889b…4f14:20
Finalize details
Timeout
func(tableID uint64)Timeout applies the stall rules once the current deadline has passed.
- OID
- 05889b…4f14:21
Timeout details
denom
untyped stringValue
"ugnot"
Seat
typeSeat is an occupied table seat.
Value
poker.Seat
Table
typeTable is a persistent cash table.
Value
poker.Table
tables
[]*poker.Table- OID
- 05889b…4f14:150
tables details
txCtx
typetxCtx carries per-transaction values into helpers.
Value
poker.txCtx
newCtx
func() *poker.txCtx- OID
- 05889b…4f14:23
newCtx details
sentUgnot
func() int64sentUgnot returns the ugnot attached to a direct user call and rejects any other denomination.
- OID
- 05889b…4f14:25
sentUgnot details
assertNoSend
func()- OID
- 05889b…4f14:26
assertNoSend details
getTable
func(id uint64) *poker.Table- OID
- 05889b…4f14:27
getTable details
CreateTable
func(smallBlind int64, bigBlind int64, minBuyIn int64, maxBuyIn int64, maxPlayers int, actionTimeoutBlocks int64, challengeWindowBlocks int64, challengeBond int64) uint64CreateTable creates a table and returns its id.
- OID
- 05889b…4f14:28
CreateTable details
Join
func(tableID uint64, session string, gasAllowance int64)Join takes a free seat with the attached ugnot minus gasAllowance as stack and forwards gasAllowance to the session address.
- OID
- 05889b…4f14:29
Join details
TopUp
func(tableID uint64)TopUp adds the attached ugnot to the caller's stack between hands.
- OID
- 05889b…4f14:30
TopUp details
Leave
func(tableID uint64)Leave pays out the stack, or marks the seat leaving until the hand ends.
- OID
- 05889b…4f14:31
Leave details
SitOut
func(tableID uint64)SitOut skips the caller from the next hand on.
- OID
- 05889b…4f14:32
SitOut details
SitIn
func(tableID uint64)SitIn makes the caller eligible again from the next hand.
- OID
- 05889b…4f14:33
SitIn details
totalEscrow
func() int64totalEscrow is the ugnot the realm must hold across all tables.
- OID
- 05889b…4f14:34
totalEscrow details
ChallengesEnabled
func() boolChallengesEnabled reports whether this deployment accepts challenges.
- OID
- 05889b…4f14:35
ChallengesEnabled details
i64s
func(v int64) string- OID
- 05889b…4f14:36
i64s details
itoa
func(v int) string- OID
- 05889b…4f14:38
itoa details
qs
func(s string) string- OID
- 05889b…4f14:39
qs details
bools
func(b bool) string- OID
- 05889b…4f14:40
bools details
intList
func(xs []int) string- OID
- 05889b…4f14:41
intList details
ListTables
func() stringListTables returns a JSON array of table summaries.
- OID
- 05889b…4f14:42
ListTables details
GetTable
func(tableID uint64) stringGetTable returns the full table and hand state as JSON.
- OID
- 05889b…4f14:43
GetTable details
GetDeck
func(tableID uint64) stringGetDeck returns the latest deck pass of the current hand as standard base64, or "" before the first pass.
- OID
- 05889b…4f14:44
GetDeck details
renderMaxTables
untyped bigintrenderMaxTables is the most tables the list page shows.
Value
(50 <untyped> bigint)
Render
func(path string) stringRender shows the newest renderMaxTables tables, or one table at path "\<id>".
- OID
- 05889b…4f14:45
Render details
challengesEnabled
untyped boolValue
true
primeP
[]uint8- OID
- 05889b…4f14:47
primeP details
powModP
func(base []uint8, exp []uint8) []uint8powModP returns base^exp mod P as 256 bytes.
- OID
- 05889b…4f14:48