Create Manifold markets with hidden resolution criteria. This allows for creating markets where knowing the resolution criteria would affect betting behavior.
- Create markets with encrypted resolution criteria
- View your secret criteria privately
- Reveal criteria publicly when ready
- Secure encryption using your API key
- Proof of criteria via SHA-256 hash
- Install dependencies:
npm install- Set up environment variables:
Create a
.envfile with:
MONGODB_URI=your_mongodb_connection_string
- Run the development server:
npm run dev-
Get your Manifold API key from your profile settings
-
Create a market:
- Enter your API key
- Provide a market title
- Enter the secret resolution criteria
- Click "Create Secret Market"
-
Managing your market:
- Use "View Secret Description" to privately check the criteria
- Use "Reveal Publicly" when ready to make the criteria public
- The criteria hash proves the criteria wasn't changed
- Resolution criteria are encrypted using AES-256
- Your API key is used as the encryption key
- Criteria are never stored in plaintext
- Hashes provide proof of unchanged criteria
Built with:
- Next.js 13 App Router
- MongoDB for secure storage
- CryptoJS for encryption
- Tailwind CSS for styling
MIT