Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andrewmilson/ministark
/ functions
Functions
407 in github.com/andrewmilson/ministark
⨍
Functions
407
◇
Types & classes
131
↓ 78 callers
Method
map
Adapted from https://github.com/0xProject/OpenZKP Applies a mapped bottom-up traversal. The function applies to each node after application to its des
src/expression.rs:66
↓ 70 callers
Method
encode
(&mut self, buffer: &mut [F])
gpu/src/plan.rs:254
↓ 55 callers
Method
curr
Create a constraint element for the current cycle
src/constraints.rs:387
↓ 49 callers
Method
len
Returns the number of rows in this execution trace.
src/trace.rs:20
↓ 37 callers
Method
next
(&mut self)
src/random.rs:150
↓ 33 callers
Method
into_iter
(self)
src/matrix.rs:412
↓ 32 callers
Method
clone
(&self)
src/utils.rs:548
↓ 32 callers
Function
page_aligned_uninit_vector
(length: usize)
gpu/src/utils.rs:208
↓ 30 callers
Method
index
(&self)
examples/brainfuck/tables.rs:23
↓ 27 callers
Method
len
(&self)
examples/fib/main.rs:41
↓ 27 callers
Method
pow
(&self, exp: S)
src/utils.rs:279
↓ 27 callers
Function
void_ptr
(v: &T)
gpu/src/utils.rs:183
↓ 21 callers
Method
get_buffer
(&mut self, ty: FieldType)
src/eval_gpu.rs:857
↓ 20 callers
Function
buffer_no_copy
(device: &metal::DeviceRef, v: &[T])
gpu/src/utils.rs:106
↓ 18 callers
Function
get_planner
()
gpu/src/plan.rs:329
↓ 16 callers
Method
num_rows
TODO: perhaps bring naming of rows and cols in line with how the trace is names i.e. len and width.
src/matrix.rs:67
↓ 12 callers
Function
buffer_mut_no_copy
(device: &metal::DeviceRef, v: &mut [T])
gpu/src/utils.rs:123
↓ 12 callers
Method
execute
TODO: change to &mut
gpu/src/plan.rs:229
↓ 12 callers
Method
interpolate
Interpolates the columns of the matrix over the domain
src/matrix.rs:157
↓ 12 callers
Method
is_zero
(&self)
src/utils.rs:312
↓ 11 callers
Method
finish
(mut self)
gpu/src/plan.rs:67
↓ 11 callers
Method
get_row
(&self, row: usize)
src/matrix.rs:288
↓ 11 callers
Method
is_empty
(&self)
src/matrix.rs:97
↓ 10 callers
Function
into_columns
(rows: Vec<[F; N]>)
examples/brainfuck/trace.rs:291
↓ 10 callers
Method
trace_len
(&self)
src/air.rs:161
↓ 9 callers
Function
bit_reverse
(v: &mut [T])
gpu/src/utils.rs:44
↓ 9 callers
Method
root
(&self)
src/merkle.rs:145
↓ 8 callers
Method
reseed_with_digest
(&mut self, val: &H::Digest)
src/random.rs:111
↓ 8 callers
Method
update
(&mut self, col: &'a [F])
gpu/src/plan.rs:53
↓ 7 callers
Method
ce_blowup_factor
(&self)
src/air.rs:173
↓ 7 callers
Method
degree
Returns an upper bound on the item's degree in `x`
src/constraints.rs:32
↓ 7 callers
Method
draw
(&mut self)
src/random.rs:134
↓ 7 callers
Method
evaluate
Evaluates the columns of the matrix
src/matrix.rs:237
↓ 6 callers
Function
draw_multiple
(public_coin: &mut P, n: usize)
src/random.rs:194
↓ 6 callers
Method
eval
Adapted from https://github.com/0xProject/OpenZKP NOTE: evaluates the expression as a tree not a DAG Evaluates an expression bottom up as a tree Use `
src/expression.rs:363
↓ 6 callers
Method
hash
(bytes: impl IntoIterator<Item = u8>)
src/hash.rs:65
↓ 6 callers
Function
horner_evaluate
( poly_coeffs: &[F], point: &T, )
src/utils.rs:124
↓ 6 callers
Method
prove
(&self, indices: &[usize])
src/merkle.rs:149
↓ 6 callers
Method
reuse_shared_nodes
(&self)
src/expression.rs:186
↓ 5 callers
Function
assert_valid_over_transition_domain
( domain: Radix2EvaluationDomain<F::FftField>, poly_matrix: Matrix<F>, )
tests/constraint.rs:332
↓ 5 callers
Function
bit_reverse_index
(n: usize, i: usize)
gpu/src/utils.rs:4
↓ 5 callers
Method
challenge
Symbolic representation of a challenge TODO: terrible name. Needs refactoring
src/constraints.rs:369
↓ 5 callers
Method
clone
(&self)
src/merkle.rs:98
↓ 5 callers
Function
evaluate_symbolic
TODO: consider merging with ConstraintComposer::evaluate_constraint_cpu
tests/constraint.rs:352
↓ 5 callers
Function
extract_lde_chunk
( lde: &'_ [F], offset: usize, )
src/eval_cpu.rs:154
↓ 5 callers
Method
num_cols
(&self)
src/matrix.rs:93
↓ 5 callers
Method
options
(&self)
src/air.rs:165
↓ 4 callers
Method
as_bytes
(&self)
src/utils.rs:505
↓ 4 callers
Function
bit_reverse_ce_trace
Bit reverses the first ce_domain_size many values of the matrix columns. Returns a slice to the portion of the columns that were bit reversed
src/prover.rs:185
↓ 4 callers
Method
cmp
(&self, other: &Self)
src/expression.rs:465
↓ 4 callers
Method
trace_domain
(&self)
src/air.rs:209
↓ 4 callers
Method
traverse
Adapted from https://github.com/0xProject/OpenZKP Applies a bottom-up traversal.
src/expression.rs:48
↓ 4 callers
Function
verify
()
src/merkle.rs:529
↓ 3 callers
Method
bit_reversed_evaluate
(&self, domain: Radix2EvaluationDomain<F::FftField>)
src/matrix.rs:245
↓ 3 callers
Function
ceil_power_of_two
Rounds the input value up the the nearest power of two
src/utils.rs:76
↓ 3 callers
Method
clone
(&self)
src/matrix.rs:398
↓ 3 callers
Method
coeffs
(&self)
src/constraints.rs:130
↓ 3 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
src/random.rs:171
↓ 3 callers
Method
graph_eval
Evaluates an expression graph bottom up Intermediate results are cached to prevent re-evaluation
src/expression.rs:409
↓ 3 callers
Method
index
(&self)
src/constraints.rs:358
↓ 3 callers
Method
interval_size
(&self)
src/constraints.rs:126
↓ 3 callers
Method
inverse
(&self)
src/utils.rs:269
↓ 3 callers
Method
lde_blowup_factor
(&self)
src/air.rs:231
↓ 3 callers
Method
lde_domain
Low degree extension domain
src/air.rs:214
↓ 3 callers
Method
map_leaves
(&self, f: &mut impl FnMut(&T) -> U)
src/expression.rs:164
↓ 3 callers
Method
next
Create a constraint element for the next cycle
src/constraints.rs:392
↓ 3 callers
Method
pow
(self, exp: usize)
src/expression.rs:329
↓ 3 callers
Method
pow
(self, rhs: usize)
src/eval_gpu.rs:720
↓ 3 callers
Method
public_inputs
(&self)
src/air.rs:169
↓ 3 callers
Method
reseed_with_field_elements
(&mut self, vals: &[Self::Field])
src/random.rs:117
↓ 3 callers
Method
trace_arguments
(&self)
src/air.rs:241
↓ 3 callers
Method
update
(&mut self, input: F)
examples/rescue/rescue.rs:49
↓ 3 callers
Method
verify
(self, positions: &[usize])
src/fri.rs:117
↓ 3 callers
Method
verify_proof_of_work
(&self, proof_of_work_bits: u8, nonce: u64)
src/random.rs:129
↓ 2 callers
Method
add
(self, rhs: Self)
src/eval_gpu.rs:362
↓ 2 callers
Method
as_fq
(&self)
src/utils.rs:284
↓ 2 callers
Method
base_columns
(&self)
examples/fib/main.rs:45
↓ 2 callers
Function
bit_reverse_serial
(v: &mut [T])
gpu/src/utils.rs:32
↓ 2 callers
Function
blowup_factor
Returns the power-of-2 degree blowup observed by evaluating constraints over the trace polynomials.
src/constraints.rs:340
↓ 2 callers
Method
blowup_factor
Returns the power-of-2 degree blowup observed by evaluating constraints over the trace polynomials.
src/constraints.rs:162
↓ 2 callers
Method
ce_domain
Constraint evaluation domain
src/air.rs:222
↓ 2 callers
Function
compile
(source: &str)
examples/brainfuck/vm.rs:68
↓ 2 callers
Method
composition_constraint
( &self, )
src/air.rs:235
↓ 2 callers
Method
create_fft_encoder
( &self, direction: FftDirection, domain: Radix2EvaluationDomain<F::FftField>, )
gpu/src/plan.rs:378
↓ 2 callers
Function
divide_out_points_into
Calculates `sum(c_i * (P(X) - P(z_i)) / (X - z_i)` using synthetic division <https://en.wikipedia.org/wiki/Synthetic_division> adapted from OpenZKP <h
src/utils.rs:166
↓ 2 callers
Method
draw_queries
(&mut self, max_n: usize, domain_size: usize)
src/random.rs:138
↓ 2 callers
Method
encode_bit_reverse_stage
(&self, input_buffer: &mut metal::Buffer)
gpu/src/plan.rs:217
↓ 2 callers
Method
encode_butterfly_stages
(&self, input_buffer: &mut metal::Buffer)
gpu/src/plan.rs:211
↓ 2 callers
Method
encode_scale_stage
(&self, input_buffer: &mut metal::Buffer)
gpu/src/plan.rs:222
↓ 2 callers
Function
eval_periodic_column
Generates a preiodic low degree extension of a periodic column of values
src/eval_cpu.rs:235
↓ 2 callers
Function
fold_positions
# Panics Panics is positions are not all unique and sorted
src/fri.rs:615
↓ 2 callers
Function
gen_binary_valued_matrix
Generates a single column matrix consisting of two values i.e. ┌───────┐ │ Col 0 │ ├───────┤ │ 3 │ ├───────┤ │ 7 │ ├───────┤ │ 3 │ ├──────
src/utils.rs:649
↓ 2 callers
Method
gen_deep_coeffs
( &self, public_coin: &mut Self::PublicCoin, air: &Air<Self::AirConfig>, )
src/stark.rs:41
↓ 2 callers
Function
gen_fib_matrix
Generates a matrix of fibbonacci sequence across two columns i.e. ┌───────┬───────┐ │ Col 0 | Col 1 │ ├───────┼───────┤ │ 1 │ 1 │ #1 -> #2 ->
src/utils.rs:617
↓ 2 callers
Method
gen_hints
(&self, challenges: &Challenges<C::Fq>)
src/air.rs:195
↓ 2 callers
Method
gen_public_coin
(&self, air: &ministark::Air<Self::AirConfig>)
examples/fib/main.rs:166
↓ 2 callers
Function
gen_rpo_merkle_tree
(leaves: &[[F; 4]])
gpu/src/plan.rs:150
↓ 2 callers
Method
get_public_inputs
(&self)
examples/fib/main.rs:158
↓ 2 callers
Function
gpu_vec_to_vec
(v: GpuVec<T>)
src/utils.rs:462
↓ 2 callers
Method
into_bit_reversed_evaluations
(self, domain: Radix2EvaluationDomain<F::FftField>)
src/matrix.rs:225
next →
1–100 of 407, ranked by callers