Skip to main content

System Overview

The following pages will help you to understand:

  • The different types of users
  • How the dApp front-end works with the smart contract

Sessions

The system logic revolves around the concept of a Session. A Session can be considered a single test or game, and there are multiple Sessions stored in the smart contract.

A Session consists of the following variables. These variables will be explained in detail in the following sections and pages.

contracts/src/structs.sol
struct Session  {
bytes32 targetCommitment;
string target;
uint startedAt;
address tasker;
}

User Types

Tasker

These users create one or more Sessions. They choose the target word, and later reveal it after predictions have been submitted.

Psychic

The Psychic is the user who uses psychic intuition to guess the contents of the secret target for a particular session.