repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/scheme/hal.rs | ceno_zkvm/src/scheme/hal.rs | use crate::{
error::ZKVMError,
scheme::cpu::TowerRelationOutput,
structs::{ComposedConstrainSystem, EccQuarkProof, ZKVMProvingKey},
};
use either::Either;
use ff_ext::ExtensionField;
use gkr_iop::{
gkr::GKRProof,
hal::{ProtocolWitnessGeneratorProver, ProverBackend},
};
use mpcs::{Point, PolynomialCo... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/scheme/verifier.rs | ceno_zkvm/src/scheme/verifier.rs | use either::Either;
use ff_ext::ExtensionField;
use std::{iter, marker::PhantomData};
#[cfg(debug_assertions)]
use ff_ext::{Instrumented, PoseidonField};
use super::{ZKVMChipProof, ZKVMProof};
use crate::{
error::ZKVMError,
instructions::riscv::constants::{
END_PC_IDX, HEAP_LENGTH_IDX, HEAP_START_ADDR... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | true |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/scheme/gpu/mod.rs | ceno_zkvm/src/scheme/gpu/mod.rs | use super::hal::{
DeviceTransporter, EccQuarkProver, MainSumcheckProver, OpeningProver, ProverDevice,
TowerProver, TraceCommitter,
};
use crate::{
error::ZKVMError,
scheme::{
cpu::TowerRelationOutput,
hal::{DeviceProvingKey, MainSumcheckEvals, ProofInput, TowerProverSpec},
},
str... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | true |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/scheme/cpu/mod.rs | ceno_zkvm/src/scheme/cpu/mod.rs | use super::hal::{
DeviceTransporter, MainSumcheckEvals, MainSumcheckProver, OpeningProver, ProverDevice,
TowerProver, TraceCommitter,
};
use crate::{
error::ZKVMError,
scheme::{
constants::{NUM_FANIN, SEPTIC_EXTENSION_DEGREE},
hal::{DeviceProvingKey, EccQuarkProver, ProofInput, TowerProv... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | true |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/field.rs | ceno_zkvm/src/gadgets/field.rs | use serde::{Deserialize, Serialize};
pub mod field_inner_product;
pub mod field_op;
pub mod field_sqrt;
pub mod range;
/// This is an arithmetic operation for emulating modular arithmetic.
#[derive(Default, PartialEq, Copy, Clone, Debug, Serialize, Deserialize)]
pub enum FieldOperation {
/// Addition.
#[defau... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/is_lt.rs | ceno_zkvm/src/gadgets/is_lt.rs | use std::fmt::Display;
use ceno_emul::{SWord, Word};
use ff_ext::ExtensionField;
use gkr_iop::error::CircuitBuilderError;
use super::SignedExtendConfig;
use crate::{
Value,
circuit_builder::CircuitBuilder,
gadgets::InnerLtConfig,
instructions::riscv::constants::{LIMB_BITS, UINT_LIMBS, UInt},
witne... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/div.rs | ceno_zkvm/src/gadgets/div.rs | use std::fmt::Display;
use ff_ext::ExtensionField;
use gkr_iop::error::CircuitBuilderError;
use super::AssertLtConfig;
use crate::{
Value,
circuit_builder::CircuitBuilder,
instructions::riscv::constants::{LIMB_BITS, UINT_LIMBS, UInt},
witness::LkMultiplicity,
};
/// divide gadget
#[derive(Debug, Clon... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/util.rs | ceno_zkvm/src/gadgets/util.rs | // This file is modified from succinctlabs/sp1 under MIT license
// The MIT License (MIT)
// Copyright (c) 2023 Succinct Labs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without res... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/util_expr.rs | ceno_zkvm/src/gadgets/util_expr.rs | // This file is modified from succinctlabs/sp1 under MIT license
// The MIT License (MIT)
// Copyright (c) 2023 Succinct Labs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without res... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/mod.rs | ceno_zkvm/src/gadgets/mod.rs | mod div;
mod field;
mod is_lt;
mod is_zero;
mod poseidon2;
mod signed;
mod signed_ext;
mod signed_limbs;
mod util;
mod util_expr;
pub use div::DivConfig;
pub use field::*;
pub use gkr_iop::gadgets::{
AssertLtConfig, InnerLtConfig, IsEqualConfig, IsLtConfig, IsZeroConfig, cal_lt_diff,
};
pub use is_lt::{AssertSigne... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/is_zero.rs | ceno_zkvm/src/gadgets/is_zero.rs | // The crate is zero gadget is modified from succinctlabs/sp1 under MIT license
// The MIT License (MIT)
// Copyright (c) 2023 Succinct Labs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Softw... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/signed.rs | ceno_zkvm/src/gadgets/signed.rs | use std::fmt::Display;
use ff_ext::ExtensionField;
use crate::{
Value, circuit_builder::CircuitBuilder, error::ZKVMError, instructions::riscv::constants::UInt,
witness::LkMultiplicity,
};
use multilinear_extensions::Expression;
use super::SignedExtendConfig;
/// Interprets a `UInt` value as a 2s-complement ... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/signed_limbs.rs | ceno_zkvm/src/gadgets/signed_limbs.rs | /// circuit implementation refer from https://github.com/openvm-org/openvm/blob/ca36de3803213da664b03d111801ab903d55e360/extensions/rv32im/circuit/src/branch_lt/core.rs
use crate::{
circuit_builder::CircuitBuilder,
error::ZKVMError,
instructions::riscv::constants::{LIMB_BITS, UINT_LIMBS, UInt},
};
use ff_ex... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/poseidon2.rs | ceno_zkvm/src/gadgets/poseidon2.rs | // Poseidon2 over BabyBear field
use std::{
borrow::{Borrow, BorrowMut},
iter::from_fn,
mem::transmute,
};
use ff_ext::{BabyBearExt4, ExtensionField};
use gkr_iop::error::CircuitBuilderError;
use itertools::Itertools;
use multilinear_extensions::{Expression, ToExpr, WitIn};
use num_bigint::BigUint;
use p3... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/signed_ext.rs | ceno_zkvm/src/gadgets/signed_ext.rs | use crate::{
circuit_builder::CircuitBuilder,
instructions::riscv::constants::{LIMB_BITS, UInt},
witness::LkMultiplicity,
};
use ff_ext::{ExtensionField, FieldInto};
use gkr_iop::error::CircuitBuilderError;
use multilinear_extensions::{Expression, ToExpr, WitIn};
use p3::field::FieldAlgebra;
use std::marker... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/field/field_op.rs | ceno_zkvm/src/gadgets/field/field_op.rs | // The struct `FieldOpCols` is modified from succinctlabs/sp1 under MIT license
// The MIT License (MIT)
// Copyright (c) 2023 Succinct Labs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Softw... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/field/range.rs | ceno_zkvm/src/gadgets/field/range.rs | // The struct `FieldLtCols` is modified from succinctlabs/sp1 under MIT license
// The MIT License (MIT)
// Copyright (c) 2023 Succinct Labs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Softw... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/field/field_sqrt.rs | ceno_zkvm/src/gadgets/field/field_sqrt.rs | // The struct `FieldSqrtCols` is modified from succinctlabs/sp1 under MIT license
// The MIT License (MIT)
// Copyright (c) 2023 Succinct Labs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Sof... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/gadgets/field/field_inner_product.rs | ceno_zkvm/src/gadgets/field/field_inner_product.rs | // The struct `FieldInnerProductCols` is modified from succinctlabs/sp1 under MIT license
// The MIT License (MIT)
// Copyright (c) 2023 Succinct Labs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/program.rs | ceno_zkvm/src/tables/program.rs | use super::RMMCollections;
use crate::{
circuit_builder::{CircuitBuilder, SetTableSpec},
error::ZKVMError,
instructions::riscv::constants::LIMB_BITS,
structs::{ProgramParams, ROMType},
tables::TableCircuit,
};
use ceno_emul::{
InsnFormat, InsnFormat::*, InsnKind::*, Instruction, PC_STEP_SIZE, Pr... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/range.rs | ceno_zkvm/src/tables/range.rs | //! Definition of the range tables and their circuits.
mod range_impl;
mod range_circuit;
pub use range_circuit::{DoubleRangeTableCircuit, DynamicRangeTableCircuit, RangeTable};
use crate::ROMType;
pub struct DoubleU8Table;
impl RangeTable for DoubleU8Table {
const ROM_TYPE: ROMType = ROMType::DoubleU8;
fn... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/mod.rs | ceno_zkvm/src/tables/mod.rs | use crate::{circuit_builder::CircuitBuilder, error::ZKVMError, structs::ProgramParams};
use ff_ext::ExtensionField;
use gkr_iop::{
chip::Chip,
gkr::{GKRCircuit, layer::Layer},
selector::SelectorType,
};
use itertools::Itertools;
use multilinear_extensions::ToExpr;
use std::collections::HashMap;
use witness:... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/ram.rs | ceno_zkvm/src/tables/ram.rs | use ceno_emul::{Addr, VM_REG_COUNT, WORD_SIZE};
use ff_ext::ExtensionField;
use gkr_iop::error::CircuitBuilderError;
use multilinear_extensions::{Expression, StructuralWitIn, StructuralWitInType, ToExpr};
use ram_circuit::{DynVolatileRamCircuit, NonVolatileRamCircuit, PubIORamInitCircuit};
use crate::{
instruction... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/ops.rs | ceno_zkvm/src/tables/ops.rs | //! Definition of the ops tables and their circuits.
mod ops_impl;
mod ops_circuit;
use gkr_iop::tables::ops::{AndTable, LtuTable, OrTable, PowTable, XorTable};
pub use ops_circuit::OpsTableCircuit;
pub type AndTableCircuit<E> = OpsTableCircuit<E, AndTable>;
pub type OrTableCircuit<E> = OpsTableCircuit<E, OrTable>;
... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/shard_ram.rs | ceno_zkvm/src/tables/shard_ram.rs | use std::{collections::HashMap, iter::repeat_n, marker::PhantomData};
use crate::{
Value,
chip_handler::general::PublicValuesQuery,
e2e::RAMRecord,
error::ZKVMError,
gadgets::Poseidon2Config,
instructions::riscv::constants::UINT_LIMBS,
scheme::septic_curve::{SepticExtension, SepticPoint},
... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/range/range_circuit.rs | ceno_zkvm/src/tables/range/range_circuit.rs | //! Range tables as circuits with trait TableCircuit.
use std::{collections::HashMap, marker::PhantomData};
use crate::{
circuit_builder::CircuitBuilder,
error::ZKVMError,
structs::{ProgramParams, ROMType},
tables::{
RMMCollections, TableCircuit,
range::range_impl::{DoubleRangeTableCon... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/range/range_impl.rs | ceno_zkvm/src/tables/range/range_impl.rs | //! The implementation of range tables. No generics.
use ff_ext::{ExtensionField, SmallField};
use gkr_iop::{error::CircuitBuilderError, tables::LookupTable};
use rayon::iter::{IndexedParallelIterator, IntoParallelRefIterator, ParallelIterator};
use std::collections::HashMap;
use witness::{InstancePaddingStrategy, Row... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/ram/ram_impl.rs | ceno_zkvm/src/tables/ram/ram_impl.rs | use ceno_emul::Addr;
use ff_ext::{ExtensionField, SmallField};
use gkr_iop::error::CircuitBuilderError;
use itertools::Itertools;
use rayon::iter::{
IndexedParallelIterator, IntoParallelIterator, IntoParallelRefIterator,
IntoParallelRefMutIterator, ParallelExtend, ParallelIterator,
};
use std::{marker::PhantomD... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/ram/ram_circuit.rs | ceno_zkvm/src/tables/ram/ram_circuit.rs | use super::ram_impl::{
LocalFinalRAMTableConfig, NonVolatileTableConfigTrait, PubIOTableInitConfig,
};
use crate::{
circuit_builder::CircuitBuilder,
e2e::ShardContext,
error::ZKVMError,
scheme::PublicValues,
structs::{ProgramParams, RAMType},
tables::{RMMCollections, TableCircuit},
};
use ce... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/ops/ops_circuit.rs | ceno_zkvm/src/tables/ops/ops_circuit.rs | //! Ops tables as circuits with trait TableCircuit.
use super::ops_impl::OpTableConfig;
use std::{collections::HashMap, marker::PhantomData};
use crate::{
circuit_builder::CircuitBuilder,
error::ZKVMError,
structs::ProgramParams,
tables::{RMMCollections, TableCircuit},
};
use ff_ext::ExtensionField;
... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/src/tables/ops/ops_impl.rs | ceno_zkvm/src/tables/ops/ops_impl.rs | //! The implementation of ops tables. No generics.
use ff_ext::{ExtensionField, SmallField};
use gkr_iop::error::CircuitBuilderError;
use itertools::Itertools;
use rayon::iter::{IndexedParallelIterator, ParallelIterator};
use std::collections::HashMap;
use witness::{InstancePaddingStrategy, RowMajorMatrix, set_fixed_v... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/weierstrass_add.rs | ceno_zkvm/benches/weierstrass_add.rs | use std::time::Duration;
use ceno_zkvm::precompiles::{
random_point_pairs, run_weierstrass_add, setup_weierstrass_add_circuit,
};
use criterion::*;
use ff_ext::BabyBearExt4;
use mpcs::BasefoldDefault;
use sp1_curves::weierstrass::{
SwCurve, WeierstrassParameters, bls12_381::Bls12381, bn254::Bn254, secp256k1::S... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/is_prime.rs | ceno_zkvm/benches/is_prime.rs | use std::time::Duration;
use ceno_emul::{Platform, Program};
use ceno_host::CenoStdin;
use ceno_zkvm::{
self,
e2e::{Checkpoint, Preset, run_e2e_with_checkpoint, setup_platform},
scheme::{create_backend, create_prover},
};
mod alloc;
use ceno_zkvm::e2e::MultiProver;
use criterion::*;
use ff_ext::BabyBearExt... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/weierstrass_double.rs | ceno_zkvm/benches/weierstrass_double.rs | use std::time::Duration;
use ceno_zkvm::precompiles::{
random_points, run_weierstrass_double, setup_weierstrass_double_circuit,
};
use criterion::*;
use ff_ext::BabyBearExt4;
use mpcs::BasefoldDefault;
use sp1_curves::weierstrass::{
SwCurve, WeierstrassParameters, bls12_381::Bls12381, bn254::Bn254, secp256k1::... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/alloc.rs | ceno_zkvm/benches/alloc.rs | // Use jemalloc as global allocator for performance
#[cfg(all(feature = "jemalloc", unix))]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
| rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/lookup_keccakf.rs | ceno_zkvm/benches/lookup_keccakf.rs | use std::time::Duration;
use ceno_zkvm::precompiles::{run_lookup_keccakf, setup_lookup_keccak_gkr_circuit};
use criterion::*;
use ff_ext::BabyBearExt4;
use itertools::Itertools;
use mpcs::BasefoldDefault;
use rand::{RngCore, SeedableRng};
mod alloc;
criterion_group!(benches, keccak_f_fn);
criterion_main!(benches);
c... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/riscv_add.rs | ceno_zkvm/benches/riscv_add.rs | use std::time::Duration;
use ceno_zkvm::{
self,
instructions::{Instruction, riscv::arith::AddInstruction},
scheme::{create_backend, create_prover, hal::ProofInput, prover::ZKVMProver},
structs::{ZKVMConstraintSystem, ZKVMFixedTraces},
};
mod alloc;
use criterion::*;
use ceno_zkvm::scheme::constants::M... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/bitwise_keccakf.rs | ceno_zkvm/benches/bitwise_keccakf.rs | use std::time::Duration;
use ceno_zkvm::precompiles::{run_bitwise_keccakf, setup_bitwise_keccak_gkr_circuit};
use criterion::*;
use ff_ext::GoldilocksExt2;
use itertools::Itertools;
use mpcs::BasefoldDefault;
use rand::{RngCore, SeedableRng};
mod alloc;
criterion_group!(benches, keccak_f_fn);
criterion_main!(benches);... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/fibonacci_witness.rs | ceno_zkvm/benches/fibonacci_witness.rs | use ceno_emul::{Platform, Program};
use ceno_host::CenoStdin;
use ceno_zkvm::{
self,
e2e::{Checkpoint, Preset, run_e2e_with_checkpoint, setup_platform},
scheme::{create_backend, create_prover},
};
use std::{fs, path::PathBuf, time::Duration};
mod alloc;
use criterion::*;
use ceno_zkvm::e2e::MultiProver;
us... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/keccak.rs | ceno_zkvm/benches/keccak.rs | use std::time::Duration;
use ceno_emul::{Platform, Program};
use ceno_host::CenoStdin;
use ceno_zkvm::{
self,
e2e::{Checkpoint, Preset, run_e2e_with_checkpoint, setup_platform},
scheme::{create_backend, create_prover},
};
mod alloc;
use ceno_zkvm::{e2e::MultiProver, scheme::verifier::ZKVMVerifier};
use cri... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/quadratic_sorting.rs | ceno_zkvm/benches/quadratic_sorting.rs | use std::time::Duration;
use ceno_emul::{Platform, Program};
use ceno_host::CenoStdin;
use ceno_zkvm::{
self,
e2e::{Checkpoint, Preset, run_e2e_with_checkpoint, setup_platform},
scheme::{create_backend, create_prover},
};
mod alloc;
use ceno_zkvm::e2e::MultiProver;
use criterion::*;
use ff_ext::BabyBearExt... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_zkvm/benches/fibonacci.rs | ceno_zkvm/benches/fibonacci.rs | use std::time::Duration;
use ceno_emul::{Platform, Program};
use ceno_host::CenoStdin;
use ceno_zkvm::{
self,
e2e::{Checkpoint, Preset, run_e2e_with_checkpoint, setup_platform},
scheme::{create_backend, create_prover},
};
mod alloc;
use criterion::*;
use ff_ext::BabyBearExt4;
use gkr_iop::cpu::default_bac... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_rt/build.rs | ceno_rt/build.rs | use std::{env, fs, path::PathBuf};
fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
// Put the linker script somewhere the linker can find it.
fs::write(out_dir.join("memory.x"), include_bytes!("memory.x")).unwrap();
fs::write(out_dir.join("ceno_link.x"), include_bytes!("ceno_lin... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_rt/src/lib.rs | ceno_rt/src/lib.rs | #![deny(clippy::cargo)]
#![feature(linkage)]
use getrandom::{Error, register_custom_getrandom};
#[cfg(target_arch = "riscv32")]
use core::arch::{asm, global_asm};
use std::{
alloc::{Layout, alloc_zeroed},
ptr,
};
#[cfg(target_arch = "riscv32")]
mod allocator;
mod mmio;
pub use mmio::{commit, read, read_owned... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_rt/src/io.rs | ceno_rt/src/io.rs | use crate::WORD_SIZE;
use core::{cell::Cell, fmt, mem::size_of, slice};
pub struct IOWriter {
cursor: Cell<*mut u32>,
}
// Safety: Only single-threaded programs are supported.
// TODO: There may be a better way to handle this.
unsafe impl Sync for IOWriter {}
impl IOWriter {
#[cfg(debug_assertions)]
cons... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_rt/src/params.rs | ceno_rt/src/params.rs | pub const WORD_SIZE: usize = 4;
/// address defined in `memory.x` under RAM section.
pub const INFO_OUT_ADDR: u32 = 0x2000_0000;
| rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_rt/src/allocator.rs | ceno_rt/src/allocator.rs | //! A bump allocator.
//! Based on https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
use core::alloc::{GlobalAlloc, Layout};
struct SimpleAllocator {
next_alloc: *mut u8,
}
unsafe impl GlobalAlloc for SimpleAllocator {
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
// SAFETY: Single thr... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_rt/src/mmio.rs | ceno_rt/src/mmio.rs | //! Memory-mapped I/O (MMIO) functions.
use ceno_serde::from_slice;
use core::{cell::UnsafeCell, ptr, slice::from_raw_parts};
use serde::de::DeserializeOwned;
struct RegionState {
next_len_at: *const usize,
next_data_at: *const u8,
alignment: usize,
initialized: bool,
}
impl RegionState {
const f... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/sha2/src/consts.rs | guest_libs/sha2/src/consts.rs | //! Copied from <https://github.com/RustCrypto/hashes/blob/82c36a428f8d6f05f3bfccdedb243e9d1f85359d/sha2/src/consts.rs>
#![allow(clippy::unreadable_literal)]
pub const STATE_LEN: usize = 8;
pub type State256 = [u32; STATE_LEN];
/// Constants necessary for SHA-256 family of digests.
pub const K32: [u32; 64] = [
0... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/sha2/src/lib.rs | guest_libs/sha2/src/lib.rs | //! Copied from <https://github.com/RustCrypto/hashes/blob/82c36a428f8d6f05f3bfccdedb243e9d1f85359d/sha2/src/lib.rs>
//! under MIT license.
//!
//! An implementation of the [SHA-2][1] cryptographic hash algorithms.
//!
//! There are 6 standard algorithms specified in the SHA-2 standard: [`Sha224`],
//! [`Sha256`], [`Sh... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/sha2/src/core_api.rs | guest_libs/sha2/src/core_api.rs | //! Copied from <https://github.com/RustCrypto/hashes/blob/82c36a428f8d6f05f3bfccdedb243e9d1f85359d/sha2/src/core_api.rs>
use super::{consts, sha256::compress256};
use core::{fmt, slice::from_ref};
use digest::{
HashMarker, InvalidOutputSize, Output,
block_buffer::Eager,
core_api::{
AlgorithmName, B... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/sha2/src/sha256.rs | guest_libs/sha2/src/sha256.rs | use crate::consts::K32;
use ceno_syscall::syscall_sha256_extend;
use digest::{consts::U64, generic_array::GenericArray};
// Copied from <https://github.com/sp1-patches/RustCrypto-hashes/blob/bf1b2575ccc1bab0f0890f4c3064bcd1d8968a1f/sha2/src/sha256.rs#L42C1-L49C2>
#[inline(always)]
fn to_u32s(block: &[u8; 64]) -> [u32;... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/crypto/src/lib.rs | guest_libs/crypto/src/lib.rs | #![deny(missing_docs)]
//! Ceno zkVM guest implementations for the revm precompile crypto interface.
//!
//! This crate is revm version ir-relevant, unless the signature of the precompiles change.
/// BN254 elliptic curve
pub mod bn254;
/// secp256k1
pub mod secp256k1;
/// secp256r1
pub mod secp256r1;
/// sha2 hashing... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/crypto/src/bn254.rs | guest_libs/crypto/src/bn254.rs | //! Copied from <https://github.com/bluealloy/revm/blob/10ff66da1576a3532db657d7b953abcd59ec44a3/crates/precompile/src/bn254/substrate.rs>
//! under MIT license.
use crate::CenoCryptoError;
use bn::{AffineG1, AffineG2, Fq, Fq2, G1, G2, Group, Gt};
use std::vec::Vec;
/// FQ_LEN specifies the number of bytes needed to r... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/crypto/src/secp256r1.rs | guest_libs/crypto/src/secp256r1.rs | /// secp256r1 (P-256) signature verification.
#[inline]
pub fn secp256r1_verify_signature(_msg: &[u8; 32], _sig: &[u8; 64], _pk: &[u8; 64]) -> bool {
unimplemented!()
}
| rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/crypto/src/macros.rs | guest_libs/crypto/src/macros.rs | /// Declare a crypto operations provider using the Ceno zkVM guest implementations.
#[macro_export]
macro_rules! ceno_crypto {
( $( $key:ident = $val:tt ),* $(,)? ) => {
// default values
ceno_crypto!(@parse {
revm_precompile: ::revm_precompile,
alloy_consensus: ::alloy_conse... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/crypto/src/secp256k1.rs | guest_libs/crypto/src/secp256k1.rs | use crate::CenoCryptoError;
use ceno_keccak::{Hasher, Keccak};
#[cfg(feature = "profiling")]
use ceno_syscall::syscall_phantom_log_pc_cycle;
use k256::ecdsa::{RecoveryId, Signature, VerifyingKey};
/// secp256k1 ECDSA signature recovery.
#[inline]
pub fn secp256k1_ecrecover(
sig: &[u8; 64],
mut recid: u8,
m... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/keccak/src/lib.rs | guest_libs/keccak/src/lib.rs | //! Ceno Keccak zkVM Guest Library
#![no_std]
#![deny(missing_docs)]
extern crate alloc;
/// Re-export the `tiny_keccak` crate's `Hasher` trait.
pub use tiny_keccak::{self, Hasher};
mod vendor;
pub use vendor::keccak::Keccak;
pub use ceno_syscall::syscall_keccak_permute as keccakf;
mod keccakf {
use crate::{
... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/keccak/src/vendor.rs | guest_libs/keccak/src/vendor.rs | //! Private types and traits copied from the `tiny-keccak`.
use ceno_syscall::KECCAK_STATE_WORDS;
pub mod keccak;
#[derive(Default, Clone)]
pub struct Buffer([u64; KECCAK_STATE_WORDS]);
impl Buffer {
pub fn words(&mut self) -> &mut [u64; KECCAK_STATE_WORDS] {
&mut self.0
}
#[inline]
pub fn ... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/guest_libs/keccak/src/vendor/keccak.rs | guest_libs/keccak/src/vendor/keccak.rs | //! The `Keccak` hash functions.
use crate::{
Hasher,
keccakf::KeccakF,
vendor::{KeccakState, bits_to_rate},
};
/// The `Keccak` hash functions defined in [`Keccak SHA3 submission`].
///
/// # Usage
///
/// ```toml
/// [dependencies]
/// tiny-keccak = { version = "2.0.0", features = ["keccak"] }
/// ```
/... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/derive/src/lib.rs | derive/src/lib.rs | // The `aligned_borrow_derive` macro is taken from valida-xyz/valida under MIT license
//
// The MIT License (MIT)
//
// Copyright (c) 2023 The Valida Authors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to de... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_serde/src/lib.rs | ceno_serde/src/lib.rs | #![no_std]
//! Word-addressed serialization utilities extracted from OpenVM.
extern crate alloc;
mod deserializer;
mod err;
mod serializer;
pub use deserializer::{Deserializer, WordRead, from_slice};
pub use err::{Error, Result};
pub use serializer::{Serializer, WordWrite, to_vec, to_vec_with_capacity};
pub(crate)... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_serde/src/serializer.rs | ceno_serde/src/serializer.rs | use alloc::{string::ToString, vec::Vec};
use crate::{
WORD_SIZE,
err::{Error, Result},
};
/// A writer for writing streams preferring word-based data.
pub trait WordWrite {
/// Write the given words to the stream.
fn write_words(&mut self, words: &[u32]) -> Result<()>;
/// Write the given bytes t... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_serde/src/err.rs | ceno_serde/src/err.rs | use alloc::string::{String, ToString};
use core::fmt::{Display, Formatter};
/// Errors used by Serde
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum Error {
/// A custom error
Custom(String),
/// Found a bool that wasn't 0 or 1
DeserializeBadBool,
/// Found an invalid unicode char
DeserializeBa... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_serde/src/deserializer.rs | ceno_serde/src/deserializer.rs | use alloc::{string::String, vec, vec::Vec};
use bytemuck::Pod;
use serde::de::{DeserializeOwned, DeserializeSeed, IntoDeserializer, Visitor};
use crate::{
WORD_SIZE, align_up,
err::{Error, Result},
};
/// A reader for reading streams with serialized word-based data
pub trait WordRead {
/// Fill the given... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_host/src/lib.rs | ceno_host/src/lib.rs | use anyhow::Result;
use ceno_emul::{
IterAddresses, Platform, Program, VMState, WORD_SIZE, Word, host_utils::read_all_messages,
};
use ceno_serde::to_vec;
use core::mem::size_of;
use itertools::Itertools;
use serde::Serialize;
use std::{fs, io, iter::zip, path::Path, sync::Arc};
pub const WORD_ALIGNMENT: usize = s... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
scroll-tech/ceno | https://github.com/scroll-tech/ceno/blob/ce97cf805a131db43a6d3d56a2fd0506a6dc8431/ceno_host/tests/test_elf.rs | ceno_host/tests/test_elf.rs | use std::{collections::BTreeSet, iter::from_fn, sync::Arc};
use anyhow::Result;
use ceno_emul::{
BN254_FP_WORDS, BN254_FP2_WORDS, BN254_POINT_WORDS, CENO_PLATFORM, EmuContext, InsnKind,
Platform, Program, SECP256K1_ARG_WORDS, SECP256K1_COORDINATE_WORDS, SHA_EXTEND_WORDS,
StepRecord, UINT256_WORDS_FIELD_ELE... | rust | Apache-2.0 | ce97cf805a131db43a6d3d56a2fd0506a6dc8431 | 2026-01-04T20:23:30.257242Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/source_map.rs | src/source_map.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/range_check.rs | src/range_check.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/random.rs | src/random.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/image_loader.rs | src/image_loader.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/prelude.rs | src/prelude.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/detect.rs | src/detect.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/lib.rs | src/lib.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/image_writer.rs | src/image_writer.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/io.rs | src/io.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/sector_view.rs | src/sector_view.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/diskimage.rs | src/diskimage.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | true |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/platform.rs | src/platform.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/image_builder.rs | src/image_builder.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/util.rs | src/util.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/disk_lock.rs | src/disk_lock.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/tree_map.rs | src/tree_map.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/copy_protection.rs | src/copy_protection.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/codec/mod.rs | src/codec/mod.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/codec/stream/mfm.rs | src/codec/stream/mfm.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/codec/stream/mod.rs | src/codec/stream/mod.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/scripting/mod.rs | src/scripting/mod.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/scripting/rhai/interface.rs | src/scripting/rhai/interface.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/scripting/rhai/script_engine.rs | src/scripting/rhai/script_engine.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/scripting/rhai/mod.rs | src/scripting/rhai/mod.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/track/bitstream.rs | src/track/bitstream.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | true |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/track/metasector.rs | src/track/metasector.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/track/fluxstream.rs | src/track/fluxstream.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/track/mod.rs | src/track/mod.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/track/sector_iterator.rs | src/track/sector_iterator.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/visualization/prelude.rs | src/visualization/prelude.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/visualization/rasterize_disk.rs | src/visualization/rasterize_disk.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | true |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/visualization/pixmap_to_disk.rs | src/visualization/pixmap_to_disk.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
dbalsom/fluxfox | https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/src/visualization/mod.rs | src/visualization/mod.rs | /*
FluxFox
https://github.com/dbalsom/fluxfox
Copyright 2024-2025 Daniel Balsom
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limi... | rust | MIT | b4c04b51746e5fe7769f49a1b32b8caad426fc81 | 2026-01-04T20:24:04.021295Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.