NethermindEth / cairo-vm-go

A virtual machine for Cairo written in Go
MIT License
79 stars 49 forks source link

Implement cairo0 compute slope V1 hint #377

Closed Tomi-3-0 closed 3 months ago

Tomi-3-0 commented 3 months ago

ComputeSlopeV1Hint #257

This hint calculates the slope between two points on an elliptic curve. A helper function LineSlope() is used for calculating the slope.

Test cases for this hint have been compared with the results produced by the VM implementations in Rust and Go. LineSlope method link: https://github.com/lambdaclass/cairo-vm_in_go/blob/31c3628bc10ebc1628685b3cdfa72d0e938b533e/pkg/builtins/ec_op.go#L258

MaksymMalicki commented 3 months ago

At first look everything looks amazing, good job 🚀