Skip to content

Commit

Permalink
Fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Apr 25, 2023
1 parent 6c7b84a commit 93e5145
Showing 1 changed file with 11 additions and 30 deletions.
41 changes: 11 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#### Upcoming Changes

<<<<<<< HEAD
* Implement hint on ec_recover.json whitelist [#1038](https://github.com/lambdaclass/cairo-rs/pull/1038):

`BuiltinHintProcessor` now supports the following hint:
Expand All @@ -14,22 +13,11 @@
```

* Implement hint on ec_recover.json whitelist [#1037](https://github.com/lambdaclass/cairo-rs/pull/1037):
=======
<<<<<<< HEAD
* Implement hint on ec_recover.json whitelist [#1037](https://github.com/lambdaclass/cairo-rs/pull/1037):
=======
* Implement hint for `starkware.cairo.common.cairo_keccak.keccak.finalize_keccak` as described by whitelist `starknet/security/whitelists/cairo_keccak.json` [#1041](https://github.com/lambdaclass/cairo-rs/pull/1041)
>>>>>>> 50c90d944bc090578824bb50bed1b1ada5a5fbc0
>>>>>>> c729b9f3990195f4bf04d5fea7a0f6dd1ad29b61

`BuiltinHintProcessor` now supports the following hint:

```python
%{
<<<<<<< HEAD
=======
<<<<<<< HEAD
>>>>>>> c729b9f3990195f4bf04d5fea7a0f6dd1ad29b61
from starkware.cairo.common.cairo_secp.secp_utils import pack
from starkware.python.math_utils import div_mod, safe_div

Expand All @@ -39,9 +27,16 @@
m = pack(ids.m, PRIME)

value = res = product % m
<<<<<<< HEAD
=======
=======

%}
```

* Implement hint for `starkware.cairo.common.cairo_keccak.keccak.finalize_keccak` as described by whitelist `starknet/security/whitelists/cairo_keccak.json` [#1041](https://github.com/lambdaclass/cairo-rs/pull/1041)

`BuiltinHintProcessor` now supports the following hint:

```python
%{
# Add dummy pairs of input and output.
_keccak_state_size_felts = int(ids.KECCAK_STATE_SIZE_FELTS)
_block_size = int(ids.BLOCK_SIZE)
Expand All @@ -50,8 +45,6 @@
inp = [0] * _keccak_state_size_felts
padding = (inp + keccak_func(inp)) * _block_size
segments.write_arg(ids.keccak_ptr_end, padding)
>>>>>>> 50c90d944bc090578824bb50bed1b1ada5a5fbc0
>>>>>>> c729b9f3990195f4bf04d5fea7a0f6dd1ad29b61
%}
```

Expand All @@ -60,10 +53,7 @@
`BuiltinHintProcessor` now supports the following hint:

```python
<<<<<<< HEAD
=======

>>>>>>> c729b9f3990195f4bf04d5fea7a0f6dd1ad29b61
%{
from starkware.cairo.common.cairo_secp.secp_utils import pack
from starkware.python.math_utils import div_mod, safe_div
Expand All @@ -72,10 +62,7 @@
b = pack(ids.b, PRIME)
value = res = a - b
%}
<<<<<<< HEAD
=======

>>>>>>> c729b9f3990195f4bf04d5fea7a0f6dd1ad29b61
```

* Implement hint on ec_recover.json whitelist [#1032](https://github.com/lambdaclass/cairo-rs/pull/1032):
Expand All @@ -94,10 +81,6 @@
%}
```

<<<<<<< HEAD
=======
<<<<<<< HEAD
=======
* Implement hints on field_arithmetic lib (Part 2) [#1004](https://github.com/lambdaclass/cairo-rs/pull/1004)

`BuiltinHintProcessor` now supports the following hint:
Expand Down Expand Up @@ -156,8 +139,6 @@
ids.x_inverse_mod_p.high = x_inverse_mod_p_split[1]
```

>>>>>>> fb731257da6fc2842abff103fccab964ae87bb38
>>>>>>> c729b9f3990195f4bf04d5fea7a0f6dd1ad29b61
* BREAKING CHANGE: Fix `CairoRunner::get_memory_holes` [#1027](https://github.com/lambdaclass/cairo-rs/pull/1027):

* Skip builtin segements when counting memory holes
Expand Down Expand Up @@ -898,4 +879,4 @@
* `pub fn from_vm_error(runner: &CairoRunner, error: VirtualMachineError, pc: usize) -> Self` is now `pub fn from_vm_error(runner: &CairoRunner, vm: &VirtualMachine, error: VirtualMachineError) -> Self`
* `pub fn get_location(pc: &usize, runner: &CairoRunner) -> Option<Location>` is now `pub fn get_location(pc: usize, runner: &CairoRunner) -> Option<Location>`
* `pub fn decode_instruction(encoded_instr: i64, mut imm: Option<BigInt>) -> Result<instruction::Instruction, VirtualMachineError>` is now `pub fn decode_instruction(encoded_instr: i64, mut imm: Option<&BigInt>) -> Result<instruction::Instruction, VirtualMachineError>`
* `VmExcepion` field's string format now mirror their cairo-lang conterparts.
* `VmExcepion` field's string format now mirror their cairo-lang conterparts.

0 comments on commit 93e5145

Please sign in to comment.