Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Copyright (c) 2021 Nikita Kaskov <[email protected]>
// Copyright (c) 2022 Alisa Cherniaeva <[email protected]>
// Copyright (c) 2022 Ekaterina Chukavina <[email protected]>
// Copyright (c) 2023 Valeh Farzaliyev <[email protected]>
//
// MIT License
//
Expand Down Expand Up @@ -128,7 +129,7 @@ namespace nil {
}

assignment.witness(component.W(8), row) = data[0];
assignment.witness(component.W(8), row + 2) = data[1];
assignment.witness(component.W(8), row + 2) = data[1];

assignment.witness(component.W(3), row + 1) = range_chunks[1] * (65536) + range_chunks[0];
assignment.witness(component.W(2), row + 1) = range_chunks[3] * (65536) + range_chunks[2];
Expand Down Expand Up @@ -196,6 +197,12 @@ namespace nil {
const typename plonk_native_decomposition<BlueprintFieldType, ArithmetizationParams, 9>::input_type
&instance_input,
const std::size_t start_row_index) {

std::size_t row = start_row_index;
using var = typename plonk_native_decomposition<BlueprintFieldType, ArithmetizationParams, 9>::var;

bp.add_copy_constraint({var(component.W(8), row, false), instance_input.data[0]});
bp.add_copy_constraint({var(component.W(8), row + 2, false), instance_input.data[1]});
}

template<typename BlueprintFieldType, typename ArithmetizationParams>
Expand Down Expand Up @@ -231,4 +238,4 @@ namespace nil {
} // namespace blueprint
} // namespace nil

#endif // CRYPTO3_BLUEPRINT_COMPONENTS_PLONK_DECOMPOSITION_HPP
#endif // CRYPTO3_BLUEPRINT_COMPONENTS_PLONK_DECOMPOSITION_HPP
Loading