Macros§
- Construct a
serde_json::Value
from a JSON literal.
Structs§
- Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
- The result when after handling the message or task.
- method & multiple values for Param, compatible with jsonrpc
- Network config informato, use EIP-3085
- Network native currency config
- peer’s network id.
- Standard player from chain & pozk
Enums§
- Z4 error
- Network types
- Task message type
- Represents any valid JSON value.
Constants§
- Default network
- Player bytes length
- Z4 init room id/tdn group id
Traits§
- Handle message received from players
- Serialize & deserialize for params
- Timer tasks when game room started
Functions§
- Convert address to hex string
- convert address to peer
- Get value from env and parse it to T
- Get value array from env and parse it to T
- Generate engine used keypair for player
- Handle and listening tasks
- Convert hex string to address
- Merge two values
- convert peer to address
- Sign for zk-friendly
- Helper for generate simple game result, for ranking
- Verify for zk-friendly
Type Aliases§
- Game id = Address
- Type PublicKey
- Z4 main Result with Z4 error
- Room id = u64
- Type SecretKey
- Type helper for tasks