MCPcopy Create free account

hub / github.com/NethermindEth/cairo-vm-go / functions

Functions1,195 in github.com/NethermindEth/cairo-vm-go

↓ 1 callersFunctioncreateSplitOutputMidLowHighHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_keccak.go:844
↓ 1 callersFunctioncreateSplitXXHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:783
↓ 1 callersFunctioncreateSqrtHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_math.go:1026
↓ 1 callersFunctioncreateSquashDictHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:576
↓ 1 callersFunctioncreateSquashDictInnerAssertLenKeysHinter
()
pkg/hintrunner/zero/zerohint_dictionaries.go:625
↓ 1 callersFunctioncreateSquashDictInnerCheckAccessIndexHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:697
↓ 1 callersFunctioncreateSquashDictInnerContinueLoopHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:751
↓ 1 callersFunctioncreateSquashDictInnerFirstIterationHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:825
↓ 1 callersFunctioncreateSquashDictInnerLenAssertHinter
()
pkg/hintrunner/zero/zerohint_dictionaries.go:905
↓ 1 callersFunctioncreateSquashDictInnerNextKeyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:957
↓ 1 callersFunctioncreateSquashDictInnerSkipLoopHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:869
↓ 1 callersFunctioncreateSquashDictInnerUsedAccessesAssertHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_dictionaries.go:1003
↓ 1 callersFunctioncreateTestAssignHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint.go:394
↓ 1 callersFunctioncreateUint128AddHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:841
↓ 1 callersFunctioncreateUint128SqrtHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:898
↓ 1 callersFunctioncreateUint256AddHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:90
↓ 1 callersFunctioncreateUint256MulDivModHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:584
↓ 1 callersFunctioncreateUint256SignedNNHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:277
↓ 1 callersFunctioncreateUint256SqrtHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:232
↓ 1 callersFunctioncreateUint256SubHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:684
↓ 1 callersFunctioncreateUint256UnsignedDivRemExpandedHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:467
↓ 1 callersFunctioncreateUint256UnsignedDivRemHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_uint256.go:360
↓ 1 callersFunctioncreateUnsafeKeccakFinalizeHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_keccak.go:312
↓ 1 callersFunctioncreateUnsafeKeccakHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_keccak.go:187
↓ 1 callersFunctioncreateUnsignedDivRemHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_math.go:1106
↓ 1 callersFunctioncreateUsortBodyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_usort.go:193
↓ 1 callersFunctioncreateUsortEnterScopeHinter
()
pkg/hintrunner/zero/zerohint_usort.go:37
↓ 1 callersFunctioncreateUsortVerifyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_usort.go:264
↓ 1 callersFunctioncreateUsortVerifyMultiplicityAssertHinter
()
pkg/hintrunner/zero/zerohint_usort.go:367
↓ 1 callersFunctioncreateUsortVerifyMultiplicityBodyHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_usort.go:331
↓ 1 callersFunctioncreateVMEnterScopeHinter
VMEnterScope hint enters a new scope in the Cairo VM
pkg/hintrunner/zero/zerohint_others.go:114
↓ 1 callersFunctioncreateVMExitScopeHinter
VMExitScop hint exits the current scope in the Cairo VM
pkg/hintrunner/zero/zerohint_others.go:125
↓ 1 callersFunctioncreateVerifyECDSASignatureHinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_signature.go:213
↓ 1 callersFunctioncreateVerifyZeroV3Hinter
(resolver hintReferenceResolver)
pkg/hintrunner/zero/zerohint_signature.go:159
↓ 1 callersFunctiondecodeInstructionFlags
Update instruction fields according to flags | dst | op0 | op1 src | res | pc | ap | opcode | - | | reg | reg | | logic | update
pkg/assembler/instruction.go:284
↓ 1 callersFunctionecmult
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 callersFunctionecop
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 callersFunctionencodeInstructionFlags
(instr *Instruction, encoding uint64)
pkg/assembler/instruction.go:421
↓ 1 callersFunctionencodeInstructionListToBytecode
* * Instruction list into bytecode functions */
pkg/assembler/instruction.go:362
↓ 1 callersFunctionencodeOffsets
(instr *Instruction)
pkg/assembler/instruction.go:409
↓ 1 callersFunctionencodeOneInstruction
break the instruction into 4 segments of 16 bits | flags | offOp1 | offOp0 | offDst |
pkg/assembler/instruction.go:392
↓ 1 callersFunctionextractCairoBuiltins
(cairoProgram *sn.StarknetProgram)
pkg/runner/program.go:97
↓ 1 callersFunctionextractCairoEntryPoints
(cairoProgram *sn.StarknetProgram)
pkg/runner/program.go:88
↓ 1 callersFunctionextractEntrypointsAndLabels
(json *zero.ZeroProgram)
pkg/runner/program.go:51
↓ 1 callersFunctionfinalizePadding
(input []uint64, numPaddingWords uint32)
pkg/utils/keccak.go:108
↓ 1 callersMethodformatMemoryOperand2
(reg assembler.Register, offset, offset2 int)
pkg/disasm/casm_formatter.go:112
↓ 1 callersFunctiongasInitialization
(memory *mem.Memory)
pkg/runner/gas.go:45
↓ 1 callersFunctiongcdext
(a, b *big.Int)
pkg/utils/math.go:166
↓ 1 callersFunctiongetAllCairoLayout
()
pkg/vm/builtins/layouts.go:113
↓ 1 callersFunctiongetAllSolidityLayout
()
pkg/vm/builtins/layouts.go:102
↓ 1 callersFunctiongetDexLayout
()
pkg/vm/builtins/layouts.go:39
↓ 1 callersFunctiongetGitInfo
()
scripts/benchmark.go:71
↓ 1 callersFunctiongetNewHintRunnerContext
(program *Program, userArgs []starknet.CairoFuncArgs, availableGas uint64, proofmode bool)
pkg/runner/runner.go:64
↓ 1 callersFunctiongetParameters
(zeroProgram *zero.ZeroProgram, hint zero.Hint)
pkg/hintrunner/zero/zerohint.go:363
↓ 1 callersFunctiongetRecursiveLargeOutputLayout
()
pkg/vm/builtins/layouts.go:82
↓ 1 callersFunctiongetRecursiveLayout
()
pkg/vm/builtins/layouts.go:48
↓ 1 callersFunctiongetRecursiveWithPoseidonLayout
()
pkg/vm/builtins/layouts.go:92
↓ 1 callersFunctiongetSmallLayout
()
pkg/vm/builtins/layouts.go:30
↓ 1 callersFunctiongetStarknetLayout
()
pkg/vm/builtins/layouts.go:57
↓ 1 callersFunctiongetStarknetWithKeccakLayout
()
pkg/vm/builtins/layouts.go:69
↓ 1 callersFunctiongetTokenGasCost
Approximated costs token types Src: https://github.com/starkware-libs/cairo/blob/9ac17df38f28f267e03a6522d12031976a66d305/crates/cairo-lang-runner/src
pkg/runner/gas.go:24
↓ 1 callersFunctionhadesPermutation
(state []fp.Element)
pkg/vm/builtins/poseidon_math.go:50
↓ 1 callersMethodincrementFreeOffset
Given a incrementBy value, it increments the freeOffset field of dictionary by it
pkg/hintrunner/hinter/zero_dict.go:37
↓ 1 callersFunctionlookupKeys
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 callersFunctionmixLayer
M = ((3,1,1), (1,-1,1), (1,1,-2)) state = M * state
pkg/vm/builtins/poseidon_math.go:36
↓ 1 callersFunctionnewAssertLeFeltHint
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 callersFunctionnewBlake2sFinalizeV3Hint
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 callersFunctionnewComputeSlopeV2Hint
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 callersFunctionnewComputeSlopeV3Hint
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 callersFunctionnewEcDoubleSlopeV3Hint
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 callersFunctionnewReduceEd25519Hint
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 callersFunctionnewUint256UnsignedDivRemExpandedHint
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 callersFunctionnewVerifyZeroV3Hint
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 callersFunctionnodeToInstruction
Given an Instruction Node return an Instruction and possible Immediate
pkg/assembler/assembler.go:54
↓ 1 callersFunctionparseBinOp
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:47
↓ 1 callersFunctionparseDeref
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:21
↓ 1 callersFunctionparseDoubleDeref
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:28
↓ 1 callersFunctionparseImmediate
(ro starknet.ResOperand)
pkg/hintrunner/core/cairo_hintparser.go:41
↓ 1 callersFunctionparseOperator
(op string)
pkg/hintrunner/zero/hintparser.go:384
↓ 1 callersMethodprintInstruction
(w io.Writer, inst casmInstruction)
pkg/disasm/casm_formatter.go:17
↓ 1 callersMethodpushDisasmLine
(inst casmInstruction)
pkg/disasm/disassembler.go:114
↓ 1 callersFunctionrecoverY
recoverY recovers the y and -y coordinate of x. True y can be either y or -y
pkg/vm/builtins/ecdsa.go:151
↓ 1 callersFunctionround
(state []fp.Element, full bool, index int)
pkg/vm/builtins/poseidon_math.go:44
↓ 1 callersFunctionrunCairoRunner
(path string)
integration_tests/cairo1_test.go:370
↓ 1 callersFunctionrunPythonVm
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 callersFunctionrunRustVmCairo1
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 callersFunctionrunRustVmZero
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 callersFunctionrunVmZero
given a path to a compiled cairo zero file, execute it using our vm
integration_tests/cairo0_test.go:285
↓ 1 callersMethodset
Given a key and a value, it sets the value at the given key
pkg/hintrunner/hinter/zero_dict.go:32
↓ 1 callersMethodsetFreeOffset
Given a freeOffset value, it sets the freeOffset field of dictionary to it
pkg/hintrunner/hinter/zero_dict.go:42
↓ 1 callersFunctionsetInstructionDst
(node *InstructionNode, instr *Instruction)
pkg/assembler/assembler.go:77
↓ 1 callersFunctionsetInstructionFlags
(node *InstructionNode, instr *Instruction, expression Expressioner)
pkg/assembler/assembler.go:192
↓ 1 callersFunctionsetInstructionOp0
(node *InstructionNode, instr *Instruction, expr Expressioner)
pkg/assembler/assembler.go:116
↓ 1 callersFunctionsetInstructionOp1
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 callersFunctionshortSymbolName
shortSymbolName turns a full symbol name like "a.b.c" into just "c".
pkg/hintrunner/zero/hint_reference_resolver.go:37
↓ 1 callersMethodsubAddress
subAddress subtracts from a memory address a felt or another memory address in the same segment.
pkg/vm/memory/memory_value.go:293
↓ 1 callersFunctionsubWords
(state []fp.Element, full bool)
pkg/vm/builtins/poseidon_math.go:25
↓ 1 callersFunctionySquaredFromX
(x, beta, fieldPrime *big.Int)
pkg/hintrunner/utils/math_utils.go:77
MethodAction
(ctx *cli.Context)
cmd/casm-inspect/disasm.go:27
MethodAction
(ctx *cli.Context)
cmd/casm-inspect/inst_fields.go:15
← previousnext →601–700 of 1,195, ranked by callers