Skip to content

Instantly share code, notes, and snippets.

View Jayant818's full-sized avatar
🎯
Focusing

Jayant Jayant818

🎯
Focusing
View GitHub Profile
use risc0_zkvm::{guest::env};
use serde::{Serialize, Deserialize, Deserializer};

// Data Inputs that zk-worker will send
// These struct definitions match the JSON format from zk-data-prep

#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct Token {
use std::str::FromStr;

use anchor_lang::{prelude::*, solana_program::program::invoke};
use bonsol_interface::instructions::{CallbackConfig, ExecutionConfig, InputRef, execute_v1};

use crate::{Contest, ContestInput, ContestState, IMAGE_ID,error::ErrorCode};

#[derive(Accounts)]
#[instruction(execution_id:String)]
@Jayant818
Jayant818 / Error.md
Created October 28, 2025 14:31
Bonsol Error

When I call execute_v1 via CPI to request a ZK proof, I get the error:

An account required by the instruction is missing
Program log: Instruction: RequestEndContestProof
Program GVP9mBCdGTTfiBmMWf1h5pqyXxorFeBmUvBbC7aUiTXS consumed 28033 of 200000 compute units
Program GVP9mBCdGTTfiBmMWf1h5pqyXxorFeBmUvBbC7aUiTXS failed: An account required by the instruction is missing

My Setup

@Jayant818
Jayant818 / Tailwind CSS.md
Last active September 23, 2022 18:35
Tailwind CSS Starter

Installation Instruction

npm init -y
npm install -D tailwindcss postcss autoprefixer vite
npx tailwindcss init -p

Create a input.css file & add these things into that file.