Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NethermindEth/cairo-vm-go
/ functions
Functions
1,195 in github.com/NethermindEth/cairo-vm-go
⨍
Functions
1,195
◇
Types & classes
243
↓ 1 callers
Function
createSplitOutputMidLowHighHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_keccak.go:844
↓ 1 callers
Function
createSplitXXHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:783
↓ 1 callers
Function
createSqrtHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_math.go:1026
↓ 1 callers
Function
createSquashDictHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:576
↓ 1 callers
Function
createSquashDictInnerAssertLenKeysHinter
()
pkg/hintrunner/zero/zerohint_dictionaries.go:625
↓ 1 callers
Function
createSquashDictInnerCheckAccessIndexHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:697
↓ 1 callers
Function
createSquashDictInnerContinueLoopHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:751
↓ 1 callers
Function
createSquashDictInnerFirstIterationHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:825
↓ 1 callers
Function
createSquashDictInnerLenAssertHinter
()
pkg/hintrunner/zero/zerohint_dictionaries.go:905
↓ 1 callers
Function
createSquashDictInnerNextKeyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:957
↓ 1 callers
Function
createSquashDictInnerSkipLoopHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:869
↓ 1 callers
Function
createSquashDictInnerUsedAccessesAssertHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:1003
↓ 1 callers
Function
createTestAssignHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint.go:394
↓ 1 callers
Function
createUint128AddHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:841
↓ 1 callers
Function
createUint128SqrtHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:898
↓ 1 callers
Function
createUint256AddHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:90
↓ 1 callers
Function
createUint256MulDivModHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:584
↓ 1 callers
Function
createUint256SignedNNHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:277
↓ 1 callers
Function
createUint256SqrtHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:232
↓ 1 callers
Function
createUint256SubHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:684
↓ 1 callers
Function
createUint256UnsignedDivRemExpandedHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:467
↓ 1 callers
Function
createUint256UnsignedDivRemHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:360
↓ 1 callers
Function
createUnsafeKeccakFinalizeHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_keccak.go:312
↓ 1 callers
Function
createUnsafeKeccakHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_keccak.go:187
↓ 1 callers
Function
createUnsignedDivRemHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_math.go:1106
↓ 1 callers
Function
createUsortBodyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_usort.go:193
↓ 1 callers
Function
createUsortEnterScopeHinter
()
pkg/hintrunner/zero/zerohint_usort.go:37
↓ 1 callers
Function
createUsortVerifyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_usort.go:264
↓ 1 callers
Function
createUsortVerifyMultiplicityAssertHinter
()
pkg/hintrunner/zero/zerohint_usort.go:367
↓ 1 callers
Function
createUsortVerifyMultiplicityBodyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_usort.go:331
↓ 1 callers
Function
createVMEnterScopeHinter
VMEnterScope hint enters a new scope in the Cairo VM
pkg/hintrunner/zero/zerohint_others.go:114
↓ 1 callers
Function
createVMExitScopeHinter
VMExitScop hint exits the current scope in the Cairo VM
pkg/hintrunner/zero/zerohint_others.go:125
↓ 1 callers
Function
createVerifyECDSASignatureHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_signature.go:213
↓ 1 callers
Function
createVerifyZeroV3Hinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_signature.go:159
↓ 1 callers
Function
decodeInstructionFlags
Update instruction fields according to flags | dst | op0 | op1 src | res | pc | ap | opcode | - | | reg | reg | | logic | update
pkg/assembler/instruction.go:284
↓ 1 callers
Function
ecmult
performs elliptic curve multiplication on point `p` with scalar `m` and param `alpha`. `m` value gets modified in place
pkg/vm/builtins/ecop_test.go:67
↓ 1 callers
Function
ecop
returns the result of the ecop operation on points `P` and `Q` with scalar `m` and param `alpha`. The resulting point `R` is equal to P + m * Q
pkg/vm/builtins/ecop.go:151
↓ 1 callers
Function
encodeInstructionFlags
(instr *Instruction, encoding uint64)
pkg/assembler/instruction.go:421
↓ 1 callers
Function
encodeInstructionListToBytecode
* * Instruction list into bytecode functions */
pkg/assembler/instruction.go:362
↓ 1 callers
Function
encodeOffsets
(instr *Instruction)
pkg/assembler/instruction.go:409
↓ 1 callers
Function
encodeOneInstruction
break the instruction into 4 segments of 16 bits | flags | offOp1 | offOp0 | offDst |
pkg/assembler/instruction.go:392
↓ 1 callers
Function
extractCairoBuiltins
(cairoProgram *sn.StarknetProgram)
pkg/runner/program.go:97
↓ 1 callers
Function
extractCairoEntryPoints
(cairoProgram *sn.StarknetProgram)
pkg/runner/program.go:88
↓ 1 callers
Function
extractEntrypointsAndLabels
(json *zero.ZeroProgram)
pkg/runner/program.go:51
↓ 1 callers
Function
finalizePadding
(input []uint64, numPaddingWords uint32)
pkg/utils/keccak.go:108
↓ 1 callers
Method
formatMemoryOperand2
(reg assembler.Register, offset, offset2 int)
pkg/disasm/casm_formatter.go:112
↓ 1 callers
Function
gasInitialization
(memory *mem.Memory)
pkg/runner/gas.go:45
↓ 1 callers
Function
gcdext
(a, b *big.Int)
pkg/utils/math.go:166
↓ 1 callers
Function
getAllCairoLayout
()
pkg/vm/builtins/layouts.go:113
↓ 1 callers
Function
getAllSolidityLayout
()
pkg/vm/builtins/layouts.go:102
↓ 1 callers
Function
getDexLayout
()
pkg/vm/builtins/layouts.go:39
↓ 1 callers
Function
getGitInfo
()
scripts/benchmark.go:71
↓ 1 callers
Function
getNewHintRunnerContext
(program *Program, userArgs []starknet.CairoFuncArgs, availableGas uint64, proofmode bool)
pkg/runner/runner.go:64
↓ 1 callers
Function
getParameters
(zeroProgram *zero.ZeroProgram, hint zero.Hint)
pkg/hintrunner/zero/zerohint.go:363
↓ 1 callers
Function
getRecursiveLargeOutputLayout
()
pkg/vm/builtins/layouts.go:82
↓ 1 callers
Function
getRecursiveLayout
()
pkg/vm/builtins/layouts.go:48
↓ 1 callers
Function
getRecursiveWithPoseidonLayout
()
pkg/vm/builtins/layouts.go:92
↓ 1 callers
Function
getSmallLayout
()
pkg/vm/builtins/layouts.go:30
↓ 1 callers
Function
getStarknetLayout
()
pkg/vm/builtins/layouts.go:57
↓ 1 callers
Function
getStarknetWithKeccakLayout
()
pkg/vm/builtins/layouts.go:69
↓ 1 callers
Function
getTokenGasCost
Approximated costs token types Src: https://github.com/starkware-libs/cairo/blob/9ac17df38f28f267e03a6522d12031976a66d305/crates/cairo-lang-runner/src
pkg/runner/gas.go:24
↓ 1 callers
Function
hadesPermutation
(state []fp.Element)
pkg/vm/builtins/poseidon_math.go:50
↓ 1 callers
Method
incrementFreeOffset
Given a incrementBy value, it increments the freeOffset field of dictionary by it
pkg/hintrunner/hinter/zero_dict.go:37
↓ 1 callers
Function
lookupKeys
lookupKeys performs a multi-level map search given a list of keys to query. Given a map like {"a": {"b": {"c": 10}}} and keys ["a", "b", "c"] this fun
cmd/casm-inspect/utils.go:6
↓ 1 callers
Function
mixLayer
M = ((3,1,1), (1,-1,1), (1,1,-2)) state = M * state
pkg/vm/builtins/poseidon_math.go:36
↓ 1 callers
Function
newAssertLeFeltHint
AsserLeFelt hint assert that one value is less than or equal to another within a finite field `newAssertLeFeltHint` takes 3 operanders as arguments -
pkg/hintrunner/zero/zerohint_math.go:345
↓ 1 callers
Function
newBlake2sFinalizeV3Hint
Blake2sFinalizeV3 hint finalizes the Blake2s hash computation, ie it verifies that the results of blake2s() are valid `newBlake2sFinalizeV3Hint` take
pkg/hintrunner/zero/zerohint_blake.go:214
↓ 1 callers
Function
newComputeSlopeV2Hint
ComputeSlopeV2 hint computes the slope between two points on the Curve25519 curve `newComputeSlopeV2Hint` takes 2 operanders as arguments - `point0`
pkg/hintrunner/zero/zerohint_ec.go:1256
↓ 1 callers
Function
newComputeSlopeV3Hint
ComputeSlopeV3 hint computes the slope between two points on the Secp256k1 elliptic curve `newComputeSlopeV3Hint` takes 2 operanders as arguments - `
pkg/hintrunner/zero/zerohint_ec.go:1385
↓ 1 callers
Function
newEcDoubleSlopeV3Hint
EcDoubleSlopeV3 hint computes the slope for doubling a point on the elliptic curve `newEcDoubleSlopeV3Hint` takes 1 operander as argument - `pt` is t
pkg/hintrunner/zero/zerohint_ec.go:743
↓ 1 callers
Function
newReduceEd25519Hint
ReduceEd25519 hint reduces a packed value modulo the Curve25519 prime `newReduceEd25519Hint` takes 1 operander as argument - `x` is the packed value
pkg/hintrunner/zero/zerohint_ec.go:870
↓ 1 callers
Function
newUint256UnsignedDivRemExpandedHint
Uint256UnsignedDivRemExpanded hint computes the division and modulus operations on `uint256` variables, combining the `high`, `low` and `b23` (high),
pkg/hintrunner/zero/zerohint_uint256.go:392
↓ 1 callers
Function
newVerifyZeroV3Hint
VerifyZeroV3 hint verifies that a packed value is zero modulo the Curve25519 prime and stores in memory the quotient of the modular division of the pa
pkg/hintrunner/zero/zerohint_signature.go:103
↓ 1 callers
Function
nodeToInstruction
Given an Instruction Node return an Instruction and possible Immediate
pkg/assembler/assembler.go:54
↓ 1 callers
Function
parseBinOp
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:47
↓ 1 callers
Function
parseDeref
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:21
↓ 1 callers
Function
parseDoubleDeref
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:28
↓ 1 callers
Function
parseImmediate
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:41
↓ 1 callers
Function
parseOperator
(op string)
pkg/hintrunner/zero/hintparser.go:384
↓ 1 callers
Method
printInstruction
(w io.Writer, inst casmInstruction)
pkg/disasm/casm_formatter.go:17
↓ 1 callers
Method
pushDisasmLine
(inst casmInstruction)
pkg/disasm/disassembler.go:114
↓ 1 callers
Function
recoverY
recoverY recovers the y and -y coordinate of x. True y can be either y or -y
pkg/vm/builtins/ecdsa.go:151
↓ 1 callers
Function
round
(state []fp.Element, full bool, index int)
pkg/vm/builtins/poseidon_math.go:44
↓ 1 callers
Function
runCairoRunner
(path string)
integration_tests/cairo1_test.go:370
↓ 1 callers
Function
runPythonVm
given a path to a compiled cairo zero file, execute it using the python vm and returns the trace and memory files location
integration_tests/cairo0_test.go:214
↓ 1 callers
Function
runRustVmCairo1
given a path to a compiled cairo1 file, execute it using the rust vm and return the trace and memory files location
integration_tests/cairo1_test.go:276
↓ 1 callers
Function
runRustVmZero
given a path to a compiled cairo zero file, execute it using the rust vm and return the trace and memory files location
integration_tests/cairo0_test.go:249
↓ 1 callers
Function
runVmZero
given a path to a compiled cairo zero file, execute it using our vm
integration_tests/cairo0_test.go:285
↓ 1 callers
Method
set
Given a key and a value, it sets the value at the given key
pkg/hintrunner/hinter/zero_dict.go:32
↓ 1 callers
Method
setFreeOffset
Given a freeOffset value, it sets the freeOffset field of dictionary to it
pkg/hintrunner/hinter/zero_dict.go:42
↓ 1 callers
Function
setInstructionDst
(node *InstructionNode, instr *Instruction)
pkg/assembler/assembler.go:77
↓ 1 callers
Function
setInstructionFlags
(node *InstructionNode, instr *Instruction, expression Expressioner)
pkg/assembler/assembler.go:192
↓ 1 callers
Function
setInstructionOp0
(node *InstructionNode, instr *Instruction, expr Expressioner)
pkg/assembler/assembler.go:116
↓ 1 callers
Function
setInstructionOp1
Given an instruction node and an instruction set the corresponding offset and register of op1. It returns an immediate if it exists and the ocurrence
pkg/assembler/assembler.go:153
↓ 1 callers
Function
shortSymbolName
shortSymbolName turns a full symbol name like "a.b.c" into just "c".
pkg/hintrunner/zero/hint_reference_resolver.go:37
↓ 1 callers
Method
subAddress
subAddress subtracts from a memory address a felt or another memory address in the same segment.
pkg/vm/memory/memory_value.go:293
↓ 1 callers
Function
subWords
(state []fp.Element, full bool)
pkg/vm/builtins/poseidon_math.go:25
↓ 1 callers
Function
ySquaredFromX
(x, beta, fieldPrime *big.Int)
pkg/hintrunner/utils/math_utils.go:77
Method
Action
(ctx *cli.Context)
cmd/casm-inspect/disasm.go:27
Method
Action
(ctx *cli.Context)
cmd/casm-inspect/inst_fields.go:15
← previous
next →
601–700 of 1,195, ranked by callers