Skip to content

Commit

Permalink
chore: rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
petscheit committed Aug 19, 2024
1 parent 6ee3890 commit 3685447
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rlp_little.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -251,23 +251,23 @@ func assert_subset_in_key_be{range_check_ptr, bitwise_ptr: BitwiseBuiltin*}(
let key_subset_256_le = key_subset_to_uint256(key_subset, key_subset_len);
%{
key_subset_256_le = hex(ids.key_subset_256_le.low + ids.key_subset_256_le.high*2**128)[2:]
print(f"Key subset 256 le: {key_subset_256_le}")
# print(f"Key subset 256 le: {key_subset_256_le}")
%}
let (key_subset_be_tmp: Uint256, n_bytes: felt) = uint256_reverse_endian_no_padding(
key_subset_256_le, pow2_array
);
%{
orig_key = hex(ids.key_be.low + ids.key_be.high*2**128)[2:]
key_subset = hex(ids.key_subset_be_tmp.low + ids.key_subset_be_tmp.high*2**128)[2:]
print(f"Orig key: {orig_key}, n_nibbles={len(orig_key)}")
print(f"Key subset: {key_subset}, n_nibbles={len(key_subset)}")
#print(f"Orig key: {orig_key}, n_nibbles={len(orig_key)}")
#print(f"Key subset: {key_subset}, n_nibbles={len(key_subset)}")
%}

// Cut nibble of the key subset if needed from the leftmost position. 0x123 -> 0x23
local key_subset_be: Uint256;
local bitwise_ptr_f: BitwiseBuiltin*;
if (cut_nibble != 0) {
%{ print(f"Cut nibble") %}
// %{ print(f"Cut nibble") %}
if (key_subset_be_tmp.high != 0) {
let (_, key_susbet_be_high) = bitwise_divmod(
key_subset_be_tmp.high, pow2_array[8 * (n_bytes - 16) - 4]
Expand Down

0 comments on commit 3685447

Please sign in to comment.