-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(starknet_os): add stateful compression hints (#4101)
- Loading branch information
1 parent
0d48fbd
commit 89b1576
Showing
3 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
crates/starknet_os/src/hints/hint_implementation/stateful_compression.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
use crate::hints::error::HintResult; | ||
use crate::hints::types::HintArgs; | ||
|
||
pub fn enter_scope_with_aliases(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn get_alias_entry_for_state_update( | ||
HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>, | ||
) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn key_lt_min_alias_alloc_value(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn assert_key_big_enough_for_alias( | ||
HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>, | ||
) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn read_alias_from_key(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn write_next_alias_from_key(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn read_alias_counter(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn initialize_alias_counter(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn update_alias_counter(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn contract_address_le_max_for_compression( | ||
HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>, | ||
) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn compute_commitments_on_finalized_state_with_aliases( | ||
HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>, | ||
) -> HintResult { | ||
todo!() | ||
} |