Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andrewmilson/sandstorm
/ functions
Functions
239 in github.com/andrewmilson/sandstorm
⨍
Functions
239
◇
Types & classes
118
Method
deref
(&self)
builtins/src/bitwise/mod.rs:88
Method
deref
(&self)
binary/src/lib.rs:167
Function
deserialize_big_uint
Deserializes a JSON big integer This deserializer uses serde_json's arbitrary precision features to convert large numbers to a string and then convert
binary/src/utils.rs:69
Function
deserialize_hex_str_as_field_element
Deserializes a hex string into a field element
binary/src/utils.rs:22
Function
deserialize_hex_str_memory_entries
Deserializes a list of memory entries of the form `{value: "0x...", address: ...}`
binary/src/utils.rs:37
Function
deserialize_vec_hex_str
Deserializes a list of hex strings into a list of big integers
binary/src/utils.rs:53
Method
deserialize_with_mode
( mut reader: R, compress: ark_serialize::Compress, validate: ark_serialize::Validate,
crypto/src/merkle/mod.rs:222
Method
deserialize_with_mode
( mut reader: R, compress: ark_serialize::Compress, validate: ark_serialize::Validate,
crypto/src/merkle/mixed.rs:89
Method
deserialize_with_mode
( reader: R, compress: ark_serialize::Compress, validate: ark_serialize::Validate,
binary/src/lib.rs:136
Function
dilute
Dilutes input v by interspersing `SPACING - 1` many 0s between bits E.g. `SPACING=4, v=0b1111, diluted_v=0001000100010001`
builtins/src/bitwise/mod.rs:127
Function
dilute_works
()
builtins/src/bitwise/mod.rs:141
Method
draw
(&mut self)
crypto/src/public_coin/solidity.rs:88
Function
draw_matches_solidity_verifier
()
crypto/src/public_coin/solidity.rs:173
Method
draw_queries
(&mut self, max_n: usize, domain_size: usize)
crypto/src/public_coin/cairo.rs:108
Method
draw_queries
(&mut self, max_n: usize, domain_size: usize)
crypto/src/public_coin/solidity.rs:99
Function
field_bytes
Calculates the number of bytes per field element the same way as StarkWare's runner
binary/src/utils.rs:88
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
crypto/src/public_coin/cairo.rs:33
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
crypto/src/public_coin/solidity.rs:27
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
crypto/src/hash/pedersen.rs:18
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
binary/src/errors.rs:12
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
binary/src/lib.rs:73
Function
friendly_merkle_tree_with_multi_row_decommitment
()
crypto/src/merkle/mod.rs:610
Function
friendly_merkle_tree_with_multiple_pedersen_layers
()
crypto/src/merkle/mod.rs:583
Function
friendly_merkle_tree_with_single_column
()
crypto/src/merkle/mod.rs:505
Function
friendly_merkle_tree_with_single_pedersen_layer
()
crypto/src/merkle/mod.rs:556
Function
friendly_merkle_tree_without_pedersen
()
crypto/src/merkle/mod.rs:529
Method
from
(value: Fp)
crypto/src/hash/pedersen.rs:39
Method
from
(value: Flag)
layouts/src/starknet/air.rs:2517
Method
from
(value: Flag)
layouts/src/recursive/air.rs:1302
Method
from
(value: Flag)
layouts/src/plain/air.rs:609
Method
from_matrix
(matrix: &Matrix<Fp>)
crypto/src/merkle/mod.rs:110
Method
from_public_input
( air_public_input: &AirPublicInput<<Self::Field as Field>::BasePrimeField>, )
src/lib.rs:134
Method
from_reader
Parses trace data in the format outputted by a `cairo-run`.
binary/src/lib.rs:152
Method
from_sharp_code
(code: u128)
binary/src/lib.rs:104
Function
full_round_keys0_match
()
builtins/src/poseidon/periodic.rs:242
Function
full_round_keys1_match
()
builtins/src/poseidon/periodic.rs:259
Function
full_round_keys2_match
()
builtins/src/poseidon/periodic.rs:276
Method
gen_deep_coeffs
( &self, public_coin: &mut Self::PublicCoin, air: &Air<Self::AirConfig>, )
src/lib.rs:102
Function
gen_ec_mad_steps
Generates a list of the steps involved with an EC multiply-add TODO: NOTE: MAX_POINT_DOUBLINGS is a little decoupled but this is to do with the period
builtins/src/ecdsa/mod.rs:167
Method
gen_hints
( trace_len: usize, execution_info: &AirPublicInput<Self::Fp>, challenges: &Challenges
layouts/src/starknet/air.rs:2408
Method
gen_hints
( trace_len: usize, execution_info: &AirPublicInput<Self::Fp>, challenges: &Challenges
layouts/src/recursive/air.rs:1202
Method
gen_hints
( trace_len: usize, public_input: &AirPublicInput<Self::Fp>, challenges: &Challenges<S
layouts/src/plain/air.rs:535
Function
gen_periodic_table
Generates a periodic table comprising of values in the matrix. The columns of the periodic table are are represented by polynomials that evaluate to t
builtins/src/utils.rs:32
Method
gen_public_coin
(&self, air: &ministark::Air<Self::AirConfig>)
src/lib.rs:118
Method
generate_trace
(&self, witness: CairoWitness<Fp>)
src/lib.rs:94
Method
get_ordered_accesses_with_padding
( &self, trace_len: usize, public_memory: Vec<MemoryEntry<F>>, padding_entry:
layouts/src/utils.rs:168
Function
get_ordered_memory_accesses
Orders memory accesses Accesses must be of the form (address, value) Output is of the form (address, value) TODO: make sure supports input, output and
layouts/src/utils.rs:116
Method
grind_proof_of_work
(&self, proof_of_work_bits: u8)
crypto/src/public_coin/solidity.rs:120
Method
hash
(bytes: impl IntoIterator<Item = u8>)
crypto/src/hash/blake2s.rs:16
Method
hash
(_bytes: impl IntoIterator<Item = u8>)
crypto/src/hash/pedersen.rs:50
Method
hash
(bytes: impl IntoIterator<Item = u8>)
crypto/src/hash/keccak.rs:19
Method
hash_boundary
( n0: &SerdeOutput<Blake2s256>, n1: &SerdeOutput<Blake2s256>, )
crypto/src/merkle/mixed.rs:148
Method
hash_chunks
(chunks: impl IntoIterator<Item = &'a [u8]>)
crypto/src/hash/blake2s.rs:24
Method
hash_chunks
(_chunks: impl IntoIterator<Item = &'a [u8]>)
crypto/src/hash/pedersen.rs:54
Method
hash_chunks
(chunks: impl IntoIterator<Item = &'a [u8]>)
crypto/src/hash/keccak.rs:41
Method
hash_elements
(elements: impl IntoIterator<Item = Fp>)
crypto/src/hash/blake2s.rs:51
Method
hash_elements
(elements: impl IntoIterator<Item = Fp>)
crypto/src/hash/pedersen.rs:68
Method
hash_elements
(elements: impl IntoIterator<Item = Fp>)
crypto/src/hash/keccak.rs:51
Function
hash_example0_works
()
builtins/src/pedersen/mod.rs:184
Function
hash_example1_works
()
builtins/src/pedersen/mod.rs:199
Method
hash_leaves
(_: u32, l0: &Fp, l1: &Fp)
crypto/src/merkle/mod.rs:426
Method
hash_leaves
(depth: u32, l0: &Self::Leaf, l1: &Self::Leaf)
crypto/src/merkle/mixed.rs:110
Method
hash_nodes
(_: u32, n0: &H::Digest, n1: &H::Digest)
crypto/src/merkle/mod.rs:430
Method
hash_nodes
(depth: u32, n0: &Self::Digest, n1: &Self::Digest)
crypto/src/merkle/mixed.rs:117
Function
hash_row
(row: &[Fp])
crypto/src/merkle/utils.rs:9
Function
hash_rows
(matrix: &Matrix<Fp>)
crypto/src/merkle/utils.rs:19
Method
identity
()
builtins/src/utils.rs:59
Function
leaf_variant_merkle_tree_with_multiple_columns
()
crypto/src/merkle/mod.rs:479
Function
leaf_variant_merkle_tree_with_single_column
()
crypto/src/merkle/mod.rs:456
Function
main
()
cli/src/main.rs:70
Function
mask_least_significant_bytes
(bytes: &mut [u8])
crypto/src/hash/mod.rs:6
Function
mask_most_significant_bytes
(bytes: &mut [u8])
crypto/src/hash/mod.rs:16
Function
matrix_multiplication
()
builtins/src/utils.rs:192
Method
memory_page_values
(&self)
src/input.rs:113
Method
merge
( v0: &SerdeOutput<Blake2s256>, v1: &SerdeOutput<Blake2s256>, )
crypto/src/hash/blake2s.rs:32
Method
merge
(v0: &PedersenDigest, v1: &PedersenDigest)
crypto/src/hash/pedersen.rs:58
Method
merge
(v0: &SerdeOutput<Keccak256>, v1: &SerdeOutput<Keccak256>)
crypto/src/hash/keccak.rs:27
Method
merge_with_int
(seed: &SerdeOutput<Blake2s256>, value: u64)
crypto/src/hash/blake2s.rs:42
Method
merge_with_int
(seed: &PedersenDigest, value: u64)
crypto/src/hash/pedersen.rs:62
Method
merge_with_int
(seed: &SerdeOutput<Keccak256>, value: u64)
crypto/src/hash/keccak.rs:34
Method
mul
Multiplies the matrix by a scalar
builtins/src/utils.rs:93
Method
new
(digest: Self::Digest)
crypto/src/public_coin/cairo.rs:64
Method
new
(digest: SerdeOutput<Keccak256>)
crypto/src/public_coin/solidity.rs:58
Method
new
()
layouts/src/utils.rs:159
Method
new
( air_private_input: AirPrivateInput, register_states: RegisterStates, memory: Memory<
layouts/src/lib.rs:45
Method
new
( program: CompiledProgram<Fp>, air_public_input: AirPublicInput<Fp>, witness: CairoWi
layouts/src/starknet/trace.rs:99
Method
new
( program: CompiledProgram<Fp>, air_public_input: AirPublicInput<Fp>, witness: CairoWi
layouts/src/recursive/trace.rs:89
Method
new
( program: CompiledProgram<Fp>, air_public_input: AirPublicInput<Fp>, witness: CairoWi
layouts/src/plain/trace.rs:59
Method
new
(cairo_program: CompiledProgram<Fp>, air_public_input: AirPublicInput<Fp>)
src/lib.rs:58
Method
new
(instance: PedersenInstance)
builtins/src/pedersen/mod.rs:83
Method
new
(instance: RangeCheckInstance)
builtins/src/range_check/mod.rs:12
Method
new
(instance: EcOpInstance)
builtins/src/ec_op/mod.rs:40
Method
new
TODO: error handling
builtins/src/ecdsa/mod.rs:85
Method
new
(instance: PoseidonInstance)
builtins/src/poseidon/mod.rs:63
Method
new
(instance: BitwiseInstance)
builtins/src/bitwise/mod.rs:23
Method
new
(word: U256)
binary/src/lib.rs:643
Method
new_dummy
Creates a new dummy instance. Can be used for filling holes in an execution trace
builtins/src/ec_op/mod.rs:76
Method
new_dummy
Creates a new dummy instance. Can be used for filling holes in an execution trace
builtins/src/ecdsa/mod.rs:151
Method
new_empty
(index: u32)
binary/src/lib.rs:380
Method
offset
(&self, cycle_offset: isize)
layouts/src/plain/air.rs:636
← previous
next →
101–200 of 239, ranked by callers